You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Arnaud Garcia <ar...@imagemed-87.com> on 2009/09/07 17:10:45 UTC

AjaxButton onSubmit and Submit Form order...

Hi List,

I want to add a custom anim gif while the page is rendering...
To do this, I created an AjaxButton and a Form
- In the AjaxButton submit method I setVisible my anim gif
- In the form submit metho I call the setResponsePage

If I remove the setResponsePage and I log something on the form submit
method => it works

If I had the setResponsePage on the form submit, the ajax step is
bypassed...the priority is to render the new page...

How can I first do the Ajax call back (to display the gif anim) THEN
going to the next page ?

Thanks for help !!

Arnaud

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


Re: AjaxButton onSubmit and Submit Form order...

Posted by Dipu <di...@googlemail.com>.
have a look at AjaxLazyLoadPanel, looks like thats what you are looking for

-dipu





On Mon, Sep 7, 2009 at 4:10 PM, Arnaud Garcia<ar...@imagemed-87.com> wrote:
> Hi List,
>
> I want to add a custom anim gif while the page is rendering...
> To do this, I created an AjaxButton and a Form
> - In the AjaxButton submit method I setVisible my anim gif
> - In the form submit metho I call the setResponsePage
>
> If I remove the setResponsePage and I log something on the form submit
> method => it works
>
> If I had the setResponsePage on the form submit, the ajax step is
> bypassed...the priority is to render the new page...
>
> How can I first do the Ajax call back (to display the gif anim) THEN
> going to the next page ?
>
> Thanks for help !!
>
> Arnaud
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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