1. Yes, it should be invoked.

2. form.replaceWith(anotherComponent);

-Matej

On 5/16/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote:
> I have a form on a page which I want to replace with another form when a
> Next button is pressed. I want to do this with AJAX. The form should only be
> replaced if there are no validation errors.
>
> Two questions:
> - the AjaxSubmitButton.onSubmit method is not being invoked when the button
> is clicked. Should I expect it to be?
> - assuming that it was invoked, how can can I replace the enclosing form
> with a new form?
>
> Mark
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to