yes, unfortunately it is the correct behavior. ajax submits were
deviating from normal submits where form.onsubmit() is called after
button.onsubmit(). in rc1 we fixed the deviating ajax behavior so now
it works like normal non-ajax submits.

a long time ago i wanted to change it so form.onsubmit() is called
after the buttons' onsubmit because it made more sense, but that idea
was voted down.

this is why i almost never use form.onsubmit() for anything, always
put my logic into button's onsubmit.

-igor

On Sat, Jan 22, 2011 at 5:13 PM, hok <ivanvasi...@gmail.com> wrote:
>
> Forgot to add the main thing - in this case Form.onSubmit is never called,
> because the form is hidden before this.
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/ModalWindow-containing-form-in-Wicket-1-5-RC1-tp3232077p3232079.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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

Reply via email to