Hi,
with #setRequired(true) an empty string is not a valid value, thus
#onUpdate is not called, see javadoc:
"Listener invoked on the ajax request. This listener is invoked
after the component's model has been updated."
The model is not updated because of the invalid value, you have to
Hello Wicket Wizards,
I am experiencing this strange behavior with the *CompoundPropertyModel
form, a required text field, and the OnChangeBehavior added to the text
field*.
*Apache Wicket Version: 8.12.0 *
Here is the situation:
//Page/Class level variable
int charCount = 0;
//Inside Page