I have a ListView which contains AjaxCheckboxes. (Each AjaxCheckbox is added as a ListItem inside the ListView.)
I have the requirement that if a particular 'special' AjaxCheckbox is selected, that should instantly select another particular AjaxCheckbox. There is the overrideable method onUpdate() that gets called on an AjaxCheckbox change, protected void onUpdate(AjaxRequestTarget arg0) { .. } I can certainly capture the "source event" -- identify when my source checkbox is selected -- but how do I find the particular checkbox B that needs to be turned on? The debugger shows that the hierarchy is List.get("1").get("chkbox"), List.get("2").get("chkbox") Is there a better way than to iterate over ListItems in this clumsy way to find the destination AjaxCheckbox that I need, and add it to the Ajax target? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Select-AjaxCheckbox-from-Another-AjaxCheckbox-inside-ListView-tp4659829.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org