Hi,
form processing should work as usual in the modal window, including validation
of course.
Does it make a difference when you let the AjaxButton find its form by itself?
Have fun
Sven
Am 13. Mai 2020 22:29:59 MESZ schrieb Entropy :
>We have a custom popup alert box launched from wicket. It's build
>around
>org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow. It
>works
>great in most situations where it's just messaging and doing other
>not-validating things. But one of the buttons in one scenario needs to
>cause a save (and validate) of the form. The buttons are based on
>AjaxButton, and the defaultformprocessing flag was set to true on that
>button during initialization. the button has reference back to the
>form on
>the main page (the form is not INSIDE the modal).
>
>But everytime I submit, the onSubmit() runs instead of the onError()
>despite
>the fact that I deliberately put a validation error in the text that
>DOES
>get trapped on the normal submit process.
>
>Does anyone have an idea of where I should look? or if this is just
>something you can't do from inside a modalwindow?
>
>--
>Sent from:
>http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org