How can I make wicket to call CheckBox setObject every time form is submitted?
new CheckBox("booox", new IModel(){ .. .. .. });
Now it's called only IF value has changed. Please?
How can I make wicket to call CheckBox setObject every time form is submitted?
new CheckBox("booox", new IModel(){ .. .. .. });
Now it's called only IF value has changed. Please?
Why would you need this? If you are calling business logic in setter it's not very good approach. If you just need dynamic model updating, go for (Compound)PropertyModel.
What's the use case?
Surely anything that needs to be aware of the checkbox model changing on form submit should look at the model value in the relevant onSubmit()?