Hi Sebastian, Thanks for your support! I am glad that you help me.
I had a look at the spinner but this does not have the feature as the progress bar to automatically show some progress? The problem is that not only subpanel B uses the model (which takes lots of time) but also panel A (I am using the model/data in the response Header to add JS). So panel A and subpanel B have to wait till the model is loaded. Isn’t there a way to add a progress bar either to panel A or to it’s parent to show the progress of the model’s loading somehow which is rendered immediately? Thanks, Chris > Am 04.05.2015 um 00:09 schrieb Sebastien <seb...@gmail.com>: > > Hi Chris, > > One solution: If it is acceptable for you to replace the progress-bar by a > spinner, then on-click you can add a AjaxLazyLoadPanel instance, which > underneath loads subpanel b (#getLazyLoadComponent())... > > Hope this helps, > Sebastien > > > On Sun, May 3, 2015 at 11:37 PM, Chris <chris...@gmx.at> wrote: > >> Hi Sebastian, >> >> I will explain what I would like to achieve in more detail. >> >> Based on a component’s button click, panel A receives this event and adds >> a subpanel B with further information (an empty panel is replaced by >> subpanel B). However, it takes about 30 sec to load the model which is used >> both by panel A and subpanel B. The panel gets only rendered after >> everything is loaded and the user currently has to wait and does not get >> any notification. >> >> Therefore, I added a progress bar (also) in panel A which should get >> immediately updated as the wicket event is fired and executed until the >> model is loaded. However, if I add the AbstractAjaxTimerBehavior to the >> progress bar’s form based on the wicket event, the progress bar does not >> get rendered. It is rendered together with panel A as all are bound to the >> same ajax target. >> >> How can I change this so that the progress bar is executed (updated) in >> parallel to rendering panel A? >> >> I hope this is understandable - >> >> Thanks, Chris >> >> >> >>> Am 03.05.2015 um 23:22 schrieb Sebastien <seb...@gmail.com>: >>> >>> Hi Chris, the background process should be asynchronous... >>> >>> >>> On Sun, May 3, 2015 at 9:30 PM, Chris <chris...@gmx.at> wrote: >>> >>>> Hi, >>>> >>>> the theme.css was missing. >>>> >>>> I have put the progress bar in a panel and add the behavior to the form >>>> based on a wicket event (click button). >>>> How can I run the run the progress bar in parallel to some background >>>> process so that the panel gets updated and not waits until the page >> renders >>>> itself? >>>> update.getTarget().add(...); >>>> >>>> Thanks >>>> >>>> >>>>> Am 03.05.2015 um 21:06 schrieb Chris <chris...@gmx.at>: >>>>> >>>>> Hi Sebastian, >>>>> >>>>> thanks - I will have a look at it. >>>>> >>>>> Currently, I would like to run the example, however, only the feedback >>>> panel is shown, but not the table. >>>>> I have included the jquery-ui.css - what else might I be missing? >>>>> >>>>> Chris >>>>> >>>>> >>>>> >>>>>> Am 03.05.2015 um 20:44 schrieb Sebastien <seb...@gmail.com>: >>>>>> >>>>>> Hi Chris, >>>>>> >>>>>> Actually progressbar does not hold a timer, its a separate >>>>>> AbstractAjaxTimerBehavior. >>>>>> You can extend the AbstractAjaxTimerBehavior to control the >> progressbar >>>> - >>>>>> like in the demo - and add this custom behavior only when you need it >>>>>> (button click for instance) >>>>>> >>>>>> Hope this helps, >>>>>> Sebastien >>>>>> >>>>>> >>>>>> >>>>>> On Sun, May 3, 2015 at 8:06 PM, Chris <chris...@gmx.at> wrote: >>>>>> >>>>>>> Hi all, >>>>>>> >>>>>>> how can the timer of the progress bar initialized, so that it does >> not >>>>>>> start automatically and only after a Wicket event is received (e.g. >>>> button >>>>>>> click in another component?) >>>>>>> >>>> >> http://www.7thweb.net/wicket-jquery-ui/progressbar/DefaultProgressBarPage?5 >>>>>>> < >>>>>>> >>>> >> http://www.7thweb.net/wicket-jquery-ui/progressbar/DefaultProgressBarPage?5 >>>>>>>> >>>>>>> >>>>>>> Thanks, Chris >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> 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