You can use Applucation.get('THE_NAME_OF_YOUR_APP') it works in other
threads as well

On Wed, Jun 20, 2018 at 4:05 PM Zbynek Vavros <zbynekvav...@gmail.com>
wrote:

> Still the same:
>
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to current thread pool-XX-thread-XX
>
> Zbynek
>
>
>
> On Wed, Jun 20, 2018 at 10:44 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Maybe this can help
> >
> > https://github.com/reiern70/antilia-bits/tree/master/bgprocess
> >
> > On Wed, Jun 20, 2018 at 11:13 AM, Zbynek Vavros <zbynekvav...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I've got an AjaxButton and hidden panel with progress bar and status
> > > message which is hidden in the beggining.
> > > My idea is to display the panel when the button is clicked and span
> long
> > > task.
> > > This task would update a counter that the progress will display using
> > > AjaxSelfUpdatingTimerBehavior.
> > >
> > > The problem is that the task has to be run in separate thread so the
> ajax
> > > completes
> > > and panel is even displayed before task end.
> > >
> > > Got the idea from
> > > https://stackoverflow.com/questions/15337198/wicket-
> > > calling-a-lengthy-operation-and-updating-through-ajax
> > > .
> > >
> > > But I'm getting org.apache.wicket.WicketRuntimeException: There is no
> > > application attached to current thread Thread-XX.
> > >
> > > Any suggestions?
> > >
> > > Thanks,
> > > Zbynek
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


-- 
WBR
Maxim aka solomax

Reply via email to