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 <[email protected]> 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 <[email protected]>: > > > > Hi Chris, the background process should be asynchronous... > > > > > > On Sun, May 3, 2015 at 9:30 PM, Chris <[email protected]> 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 <[email protected]>: > >>> > >>> 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 <[email protected]>: > >>>> > >>>> 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 <[email protected]> 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: [email protected] > >>> For additional commands, e-mail: [email protected] > >>> > >> > >> > >
