Hi, I cannot find that error message in Wicket's source.
Are you using org.apache.wicket.ajax.form.AjaxFormValidatingBehavior or some subclass or alternative?
Have fun Sven On 18.05.2016 02:37, Lon Varscsak wrote:
Hey guys, I may be missing something here, but if I do: TextField textField = new TextField<String>("keyCode", new PropertyModel<>( order, OrderHeader.SOURCE_KEY_KEY)); textField.add(new AjaxFormValidatingBehavior("blur")); * add(textField);* I get an error “*AjaxFormValidatingBehavior should be bound to a Form component or a component that is inside a form!*” If I change it to: TextField textField = new TextField<String>(“keyCode", new PropertyModel<>( order, OrderHeader.SOURCE_KEY_KEY)); * add(textField);* textField.add(new AjaxFormValidatingBehavior("blur")); It works. Basically the AjaxFormValidatingBehavior is expecting to find a form in it’s parent, but it’s parent hasn’t been assigned yet. Is this expected behavior? Thanks, Lon
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org