You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by John Allerdyce <al...@gmail.com> on 2006/12/04 06:01:36 UTC
How to handle a Action in Form which takes a long time?
Hi,
Can someone please advice me how handle a Action in Form which takes a long
time to complete?
In myfaces a user submits and a function in the backing bean is invoked. And
the user will see the result page after that function is returned.
My question is what if that function takes a long time to complete (e.g. 10
minutes). How can i indicate to user that everything is fine (e.g. display a
'processing page with % of completion' ), and forward him to a result page
when things are done?
Thank you.
Re: How to handle a Action in Form which takes a long time?
Posted by Andrew Robinson <an...@gmail.com>.
You can also use AJAX with polling. This would be implemented
differently per AJAX provider. Ajax4Jsf does this with partial-page
refreshing and JBoss-Seam has it with a JSON implementation
On 12/4/06, Adrian Mitev <ad...@googlemail.com> wrote:
> Look at the mailing lists archive from november. There was discussion about
> progress bar component.
>
> 2006/12/4, John Allerdyce <allerdyce.john@gmail.com >:
> > Hi,
> >
> > Can someone please advice me how handle a Action in Form which takes a
> long time to complete?
> >
> > In myfaces a user submits and a function in the backing bean is invoked.
> And the user will see the result page after that function is returned.
> >
> > My question is what if that function takes a long time to complete (e.g.
> 10 minutes). How can i indicate to user that everything is fine (e.g.
> display a 'processing page with % of completion' ), and forward him to a
> result page when things are done?
> >
> > Thank you.
>
>
Re: How to handle a Action in Form which takes a long time?
Posted by Adrian Mitev <ad...@googlemail.com>.
Look at the mailing lists archive from november. There was discussion about
progress bar component.
2006/12/4, John Allerdyce <al...@gmail.com>:
>
> Hi,
>
> Can someone please advice me how handle a Action in Form which takes a
> long time to complete?
>
> In myfaces a user submits and a function in the backing bean is invoked.
> And the user will see the result page after that function is returned.
>
> My question is what if that function takes a long time to complete (e.g.
> 10 minutes). How can i indicate to user that everything is fine (e.g.
> display a 'processing page with % of completion' ), and forward him to a
> result page when things are done?
>
> Thank you.