best practice for a wait page

View: New views
7 Messages — Rating Filter:   Alert me  

best practice for a wait page

by Scott Swank :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We have a page with a form and the form's onSubmit() method takes a
while.  After it is complete the user is re-directed to another page.
We'd like to introduce a nice "please wait while we process your
request" page in between these pages.  If anyone has done this, what
approach has worked well for you?

public class Page1 extends ...
{
  ...
    add(new SomeForm()
    {
      public void onSubmit()
      {
        aBunchOfProcessing();
        redirect(new Page2());
      }
    }
  ...
}


Thank you,
Scott

--
Scott Swank
reformed mathematician

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: best practice for a wait page

by Thijs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Scott Swank wrote:

> We have a page with a form and the form's onSubmit() method takes a
> while.  After it is complete the user is re-directed to another page.
> We'd like to introduce a nice "please wait while we process your
> request" page in between these pages.  If anyone has done this, what
> approach has worked well for you?
>
> public class Page1 extends ...
> {
>   ...
>     add(new SomeForm()
>     {
>       public void onSubmit()
>       {
>         aBunchOfProcessing();
>         redirect(new Page2());
>       }
>     }
>   ...
> }
>
>
> Thank you,
> Scott
>
>  
How about using a LazyLoadingPanel (or similar?) see wicket-extention

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: best practice for a wait page

by Nick Heudecker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You could set a flag in the user's session indicating the process is
ongoing, then use a meta refresh to check the status of the flag and respond
accordingly.

On Jan 24, 2008 11:45 AM, Scott Swank <scott.swank@...> wrote:

> We have a page with a form and the form's onSubmit() method takes a
> while.  After it is complete the user is re-directed to another page.
> We'd like to introduce a nice "please wait while we process your
> request" page in between these pages.  If anyone has done this, what
> approach has worked well for you?
>
> public class Page1 extends ...
> {
>  ...
>    add(new SomeForm()
>    {
>      public void onSubmit()
>      {
>        aBunchOfProcessing();
>        redirect(new Page2());
>      }
>    }
>  ...
> }
>
>
> Thank you,
> Scott
>
> --
> Scott Swank
> reformed mathematician
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


--
Nick Heudecker
Professional Wicket Training & Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com

Re: best practice for a wait page

by Scott Swank :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sweet.

http://wicketstuff.org/wicket13/ajax/lazy-loading.1

I think that we can make something like that work for us.

Thank ya.

On Jan 24, 2008 9:47 AM, Thijs Vonk <vonk.thijs@...> wrote:

>
> Scott Swank wrote:
> > We have a page with a form and the form's onSubmit() method takes a
> > while.  After it is complete the user is re-directed to another page.
> > We'd like to introduce a nice "please wait while we process your
> > request" page in between these pages.  If anyone has done this, what
> > approach has worked well for you?
> >
> > public class Page1 extends ...
> > {
> >   ...
> >     add(new SomeForm()
> >     {
> >       public void onSubmit()
> >       {
> >         aBunchOfProcessing();
> >         redirect(new Page2());
> >       }
> >     }
> >   ...
> > }
> >
> >
> > Thank you,
> > Scott
> >
> >
> How about using a LazyLoadingPanel (or similar?) see wicket-extention
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
Scott Swank
reformed mathematician

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: best practice for a wait page

by Scott Swank :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'll try Thijs' suggestion first, but if the unforseen arises I might
try a meta refresh.  Thank Nick.

On Jan 24, 2008 9:48 AM, Nick Heudecker <nheudecker@...> wrote:

> You could set a flag in the user's session indicating the process is
> ongoing, then use a meta refresh to check the status of the flag and respond
> accordingly.
>
>
> On Jan 24, 2008 11:45 AM, Scott Swank <scott.swank@...> wrote:
>
> > We have a page with a form and the form's onSubmit() method takes a
> > while.  After it is complete the user is re-directed to another page.
> > We'd like to introduce a nice "please wait while we process your
> > request" page in between these pages.  If anyone has done this, what
> > approach has worked well for you?
> >
> > public class Page1 extends ...
> > {
> >  ...
> >    add(new SomeForm()
> >    {
> >      public void onSubmit()
> >      {
> >        aBunchOfProcessing();
> >        redirect(new Page2());
> >      }
> >    }
> >  ...
> > }
> >
> >
> > Thank you,
> > Scott
> >
> > --
> > Scott Swank
> > reformed mathematician
> >
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@...
> > For additional commands, e-mail: users-help@...
> >
> >
>
>
> --
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
>
> Eventful - Intelligent Event Management
> http://www.eventfulhq.com
>



--
Scott Swank
reformed mathematician

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: best practice for a wait page

by Evan Chooly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What about IndicatingAjaxButton?

On Jan 24, 2008 1:16 PM, Scott Swank <scott.swank@...> wrote:

> I'll try Thijs' suggestion first, but if the unforseen arises I might
> try a meta refresh.  Thank Nick.
>
> On Jan 24, 2008 9:48 AM, Nick Heudecker <nheudecker@...> wrote:
> > You could set a flag in the user's session indicating the process is
> > ongoing, then use a meta refresh to check the status of the flag and
> respond
> > accordingly.
> >
> >
> > On Jan 24, 2008 11:45 AM, Scott Swank <scott.swank@...> wrote:
> >
> > > We have a page with a form and the form's onSubmit() method takes a
> > > while.  After it is complete the user is re-directed to another page.
> > > We'd like to introduce a nice "please wait while we process your
> > > request" page in between these pages.  If anyone has done this, what
> > > approach has worked well for you?
> > >
> > > public class Page1 extends ...
> > > {
> > >  ...
> > >    add(new SomeForm()
> > >    {
> > >      public void onSubmit()
> > >      {
> > >        aBunchOfProcessing();
> > >        redirect(new Page2());
> > >      }
> > >    }
> > >  ...
> > > }
> > >
> > >
> > > Thank you,
> > > Scott
> > >
> > > --
> > > Scott Swank
> > > reformed mathematician
> > >
> >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@...
> > > For additional commands, e-mail: users-help@...
> > >
> > >
> >
> >
> > --
> > Nick Heudecker
> > Professional Wicket Training & Consulting
> > http://www.systemmobile.com
> >
> > Eventful - Intelligent Event Management
> > http://www.eventfulhq.com
> >
>
>
>
> --
> Scott Swank
> reformed mathematician
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

Re: best practice for a wait page

by Scott Swank :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think that AjaxLazyLoadPanel gets me closer but I'll poke around
with IndicatingAjaxButton if I'm wrong.


On Jan 24, 2008 1:00 PM, Evan Chooly <evanchooly@...> wrote:

> What about IndicatingAjaxButton?
>
>
> On Jan 24, 2008 1:16 PM, Scott Swank <scott.swank@...> wrote:
>
> > I'll try Thijs' suggestion first, but if the unforseen arises I might
> > try a meta refresh.  Thank Nick.
> >
> > On Jan 24, 2008 9:48 AM, Nick Heudecker <nheudecker@...> wrote:
> > > You could set a flag in the user's session indicating the process is
> > > ongoing, then use a meta refresh to check the status of the flag and
> > respond
> > > accordingly.
> > >
> > >
> > > On Jan 24, 2008 11:45 AM, Scott Swank <scott.swank@...> wrote:
> > >
> > > > We have a page with a form and the form's onSubmit() method takes a
> > > > while.  After it is complete the user is re-directed to another page.
> > > > We'd like to introduce a nice "please wait while we process your
> > > > request" page in between these pages.  If anyone has done this, what
> > > > approach has worked well for you?
> > > >
> > > > public class Page1 extends ...
> > > > {
> > > >  ...
> > > >    add(new SomeForm()
> > > >    {
> > > >      public void onSubmit()
> > > >      {
> > > >        aBunchOfProcessing();
> > > >        redirect(new Page2());
> > > >      }
> > > >    }
> > > >  ...
> > > > }
> > > >
> > > >
> > > > Thank you,
> > > > Scott
> > > >
> > > > --
> > > > Scott Swank
> > > > reformed mathematician
> > > >
> > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@...
> > > > For additional commands, e-mail: users-help@...
> > > >
> > > >
> > >
> > >
> > > --
> > > Nick Heudecker
> > > Professional Wicket Training & Consulting
> > > http://www.systemmobile.com
> > >
> > > Eventful - Intelligent Event Management
> > > http://www.eventfulhq.com
> > >
> >
> >
> >
> > --
> > Scott Swank
> > reformed mathematician
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@...
> > For additional commands, e-mail: users-help@...
> >
> >
>



--
Scott Swank
reformed mathematician

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...