Hi,
you actually need an AjaxFormSubmitBehavior to transfer all input values
to the server.
Note that AjaxFormValidatingBehavior attaches a AjaxFormSubmitBehavior
to *each* FormComponent in your form.
You could do something similar with a *single* AjaxFormSubmitBehavior
and event "focusout".
@Bas, I was originally adding it to the form (which is in a parent
component), but it just wasn’t working. I’m sure I’m missing something
about the nature of parent/child components.
@Sven Can you elaborate for me a little more (still a Wicket newb). Can I
use a AjaxEventBehavior with a Form?
T
Thanks Bas!
I see, this is new in Wicket 7.x (WICKET-5196).
We could delay the check for the parental form into #onConfigure().
IMHO a better solution would be to use a bubbling event instead (e.g.
"focusout") and attaching a single listener to the form (instead of
adding a behaviors to each
Uhh, that error message is right there on the AFVB’s onBind():
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/form/AjaxFormValidatingBehavior.java#L102
The problem is that the check for a parent form is happening in onBind(), so
when the behavior i
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