tags:

views:

225

answers:

2

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?

A: 

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.

Zeratul
A: 

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()?

ireddick