Glad to be of help ;-)

On Thu, Jun 21, 2018 at 12:39 AM, Zbynek Vavros <zbynekvav...@gmail.com>
wrote:

> Hi Ernesto,
>
> sorry I was away in the afternoon/evening.
> Passing application into runnable constructor is working for me!
>
> Many thanks
>
> On Wed, Jun 20, 2018 at 11:13 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > https://github.com/reiern70/antilia-bits/blob/master/
> > bgprocess/src/main/java/com/antilia/task/TasksRunnable.java#L28
> >
> > On Wed, Jun 20, 2018 at 12:10 PM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Did you look at
> > >
> > > https://github.com/reiern70/antilia-bits/tree/master/bgprocess
> > >
> > >
> > >
> > > On Wed, Jun 20, 2018 at 12: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
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to