Thanks.
But how can the client side know when the task is complete ?

I tried to set a persistent field just after the task is complete but
Tapestry throws an exception saying that it can't persist the field,
probably because it's getting executed inside a thread.
I have the client side polling the server side for any kind of signal that
the task is over, but i can't quite figure out out to give that information
to the client.

On Tue, Feb 3, 2009 at 12:30 PM, Ville Virtanen <ville.virta...@cerion.fi>wrote:

>
> Hi,
>
> take a look at this:
> http://wiki.apache.org/tapestry/Tapestry5HowToRunTaskInThread
>
> Your page only delegates the execution of the task to another thread and
> then the ajax part polls the page wether the task is ready, once it is you
> show the results.
>
> Don't know the ajax part, but that example should be extended a bit so that
> the thread source takes also the thread progress inspector which can tell
> you how many percent the task is complete...
>
>  - Ville
>
>
> HugoPalma wrote:
> >
> > I have an operation that needs to be executed that could take a couple
> > of minutes and so i'd like to provide a page where at first it
> > displays a waiting message while the operation is getting executed and
> > then if shows the result of that operation, using ajax so that i don't
> > have to go to another page.
> >
> > Any ideas about the best way to do this ? If i bind the process
> > execution to any phase of the page lifecycle it will always be
> > executed before it renders anything and i loose control on how to
> > update the page once the operation is complete.
> >
> > Thanks.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-implement-a-long-lasting-operation-waiting-page-tp21790821p21808947.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to