Reputation: 11673
I'm having a weird problem in Wicket with the following code:
CheckBoxMultipleChoice<String> checkBoxMultipleChoice = new CheckBoxMultipleChoice<String>("multipleChoice", checkBoxModel, stringList);
checkBoxMultipleChoice.add(new AjaxFormChoiceComponentUpdatingBehavior(){
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
//Do Something
}
});
The onUpdate method get's called if you check/uncheck one of the checkboxes. But if you uncheck the last checked checkbox nothing happens. The onUpdate method doesnt get called.
Does anyone know how to fix this? I've searched online but couldnt find anyone with the same problem.
Edit: I use Seam Wicket 3.0.0 with wicket 1.4.15 i believe.
Upvotes: 0
Views: 825
Reputation: 21
I had the identical problem and found that marking the CheckBoxMultipleChoice as not required resolved the issue.
Upvotes: 2