wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Entropy <blmulholl...@gmail.com>
Subject ModalWindow alert popup that submits form
Date Wed, 13 May 2020 20:29:59 GMT
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message