Re: wizard starting background task
Then pass the reference around so it is possible:) On Feb 9, 2012 6:47 PM, "N. Metzger" wrote: > Yes, I tried that, too. I'm having problems ordering events. > So I overwrite the finish button which then starts the background task as > well as opens up a modal window with the progress bar. > Szenario 1) The background process is started by the modal window itself > and > I need to add a form that automatically clicks the ajax button on load to > start both the progress bar and the background task (how?). > Szenario 2) The background process is started by the finish button of the > wizard. After that the finish button opens up the modal window with the > progress bar. That leaves me with no option to update the progress bar from > the background task, doesn't it? > > Natalie > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4373685.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: wizard starting background task
Yes, I tried that, too. I'm having problems ordering events. So I overwrite the finish button which then starts the background task as well as opens up a modal window with the progress bar. Szenario 1) The background process is started by the modal window itself and I need to add a form that automatically clicks the ajax button on load to start both the progress bar and the background task (how?). Szenario 2) The background process is started by the finish button of the wizard. After that the finish button opens up the modal window with the progress bar. That leaves me with no option to update the progress bar from the background task, doesn't it? Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4373685.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wizard starting background task
Simply implement your own FinishButton, e.g. extend AjaxButton and put your logic in it's unSubmit(…) method. Therefore you will have to override Wizard#newButtonBar(final String id) and provide your own impl, but WizardButtonBar does not have very much logic, so that's acceptable IMHO. Cheers, -Tom Am 09.02.2012 um 15:04 schrieb N. Metzger: > To give you more information: > > I can ope a new page (or modal window) and start the wicketstuff progress > bar with a new ajax button on that page. > I can also open a new page with the ajax lazy load panel that will display > the indicating gif while loading stuff in the background. > > What I'm looking for is a way to NOT open a new page and NOT to click > another ajax button to start the background task and display the progress > bar. I would like the finish button of the wizard to take care of it. > > Now I can of course replace the wizard with a row of pages or panel > replacements, but I don't want to lose the wizard functionality if possible. > > Thanks for all your help, > Natalie > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4372939.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > 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
Re: wizard starting background task
To give you more information: I can ope a new page (or modal window) and start the wicketstuff progress bar with a new ajax button on that page. I can also open a new page with the ajax lazy load panel that will display the indicating gif while loading stuff in the background. What I'm looking for is a way to NOT open a new page and NOT to click another ajax button to start the background task and display the progress bar. I would like the finish button of the wizard to take care of it. Now I can of course replace the wizard with a row of pages or panel replacements, but I don't want to lose the wizard functionality if possible. Thanks for all your help, Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4372939.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wizard starting background task
N. Metzger wrote: > 1) I start the background task in a lazy load panel, but haven't figured out > yet how to display a progress bar while the lazy load is executing. You might also take a look at http://wicket.visural.net/examples/submitters (hit the "Calculate X*Y (Modal)" button). Cheers, -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wizard starting background task
Hi, > 1) I start the background task in a lazy load panel, but haven't figured out > yet how to display a progress bar while the lazy load is executing. Take a look at wicket-progressbar from Wicketstuff for background processing and showing a progressbar. Cheers Hans - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wizard starting background task
Hi all, I'm looking for hints to realize the following scenario: I have a wizard gathering data. On finish the wizard kicks off a background task that uses the aforementioned data. On clicking "finish" I would like to open a new page or even a modal widow that displays a progress bar while the background task is executing. So far the only working solutions I found are: 1) I start the background task in a lazy load panel, but haven't figured out yet how to display a progress bar while the lazy load is executing. 2) Open new page and add a form that displays another button to the user that kicks off the background task. I would really like to avoid the extra form and button, the finish button of the wizard should be able to do it. Thanks for your help, Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4371604.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org