Thanks Martin. I changed my code from Button to AjaxButton. But now when I try to validate some input I'm not getting any value.
public class MyFormValidator extends AbstractFormValidator implements Serializable { @Override public void validate( Form<?> form ) { Integer value = textField.getConvertedInput(); // returns null This technique was mentioned in http://tomaszdziurko.pl/2010/02/wicket-ajax-modal-are-you-sure-window/ <http://tomaszdziurko.pl/2010/02/wicket-ajax-modal-are-you-sure-window/> but it's not working for me. I've read something about adding an AjaxFormComponentUpdatingBehavior to a field, but I'm not sure if this is what I want. I want the value of the field at the time that I submit it, not every time I type in something. Looking at http://tomaszdziurko.pl/2010/02/wicket-ajax-modal-are-you-sure-window/ <http://tomaszdziurko.pl/2010/02/wicket-ajax-modal-are-you-sure-window/> I may have to change my code in the form even further. Right now my form doesn't have a reference to the ModalWindow, but this post suggests that I need to explictly call ModalWindow.close() in order to close it from an AjaxButton. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-not-displaying-messages-correctly-tp4658351p4658363.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