What I suggested before could work but it is a bit more complicated than your current solution. 1-Step 1: go to the server and start a new thread with the lengthy process and keep track of it.... update panel with "processing..." and a timer that goes back to the server to check if the job is finished. 2-Once the Job is finished replace your "processing..." with an empty panel (with no timer) and update the "panel" with the table.
I use a similar approach when exporting data so that the user can track progress ( or even cancel it if it is taking to long to complete).... Best, Ernesto On Wed, Jan 7, 2009 at 2:27 PM, Yazeed Isaacs <[email protected]> wrote: > 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 > [email protected] > > > > -----Original Message----- > From: Ernesto Reinaldo Barreiro [mailto:[email protected]] > Sent: 07 January 2009 03:08 PM > To: [email protected] > 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 <[email protected]> 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 > > [email protected] > > > > > > > > -----Original Message----- > > From: Martin Makundi [mailto:[email protected]] > > Sent: 07 January 2009 02:30 PM > > To: [email protected] > > Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour > > > > Why not implement all actions within the same onchange? > > > > ** > > Martin > > > > 2009/1/7 Yazeed Isaacs <[email protected]>: > > > 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 > > > [email protected] > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
