You should use the same label and just replace the model object: final Label label = new Label("text", new Model("")); ... label.setModelObject("processing..."); ... label.setModelObject("");
-----Original Message----- From: Yazeed Isaacs [mailto:yaz...@switch.tj] Sent: Wednesday, January 07, 2009 8:27 AM To: users@wicket.apache.org Subject: RE: DropDownChoice onchange event with AjaxEventBehaviour Yes, I want feedback text for a lengthy process and then update the table and remove the feedback text. I'm not seeing the words "processing..." due to all 3 steps in the same onchange event. Example: AjaxEventBehaviour("onchange") { @Override protected onEvent(AjaxRequestTarget target) { // step 1 containerA.replace(new Label("text","processing...")); target.addComponent(containerA); // step 2 DataView data = new DataView("data", new DataProvider(), 10); containerB.replace(data); target.addComponent(containerB); // step 3 containerA.replace(new Label("text","")); target.addComponent(containerA); } } Obviously, step 1 does not belong in the onEvent method since step 3 replace the text with "", however step 1 needs to happen during the onchange event. Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -----Original Message----- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: 07 January 2009 03:08 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Hi, Are you able to see the words "processing..."? From your post I thought what you wanted was to have some kind of feedback for a lengthy process and once it was finished then update the table and no longer show the "processing..." anymore... Best, Ernesto On Wed, Jan 7, 2009 at 1:59 PM, Yazeed Isaacs <yaz...@switch.tj> wrote: > If I implement all 3 steps in the same onchange event, then step 3 would > remove the text in step 1, resulting in no text being seen on the page. > > Yazeed Isaacs - Java Developer > yaz...@transactionjunction.co.za > > > > -----Original Message----- > From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] > Sent: 07 January 2009 02:30 PM > To: users@wicket.apache.org > Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour > > Why not implement all actions within the same onchange? > > ** > Martin > > 2009/1/7 Yazeed Isaacs <yaz...@switch.tj>: > > Hi > > > > I have a select box with an AjaxEventBehaviour linked to its onchange > > event. > > > > I want to perform the following but I need some help. > > > > When onchange occurs the following steps are implemented using the > > AjaxRequestTarget: > > > > 1. Update a WebMarkupContainer containerA with the words > "processing..." > > 2. Update a WebMarkupContainer containerB with a DataView table. > > 3. Update containerA to display empty, ie. No words. > > > > How could I implement step 1 during the onchange event, and then have > > steps 2 & 3 execute after the onchange event? > > > > > > Regards, > > Yazeed Isaacs - Java Developer > > yaz...@transactionjunction.co.za > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org