1 final CheckBoxMultipleChoice resultlistChoice = new CheckBoxMultipleChoice ("resultlist", new PropertyModel >(this, "valueList"), new PropertyModel >(this, "list")); 2 3 resultlistChoice.add(new AjaxFormComponentUpdatingBehavior("onclick") { 4 5 @Override 6 protected void onUpdate(AjaxRequestTarget target) { 7 // TODO Auto-generated method stub 8 } 9 });10 11 resultlistChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() {12 13 @Override14 protected void onUpdate(AjaxRequestTarget target) {15 // TODO Auto-generated method stub16 selectedList.clear();17 for (String item : resultlistChoice.getModelObject()) {18 selectedList.add(item);19 System.out.println(item);20 }21 target.add(selectedChoice);22 }23 });