To switch the last check with the first checked in case there are two of them checked already, you could also use an AjaxFormComponentUpdatingBehavior to do it server-side, though that would only be disadvantages. I remember some nasty issues with the onchange event on checkboxes with IE, and the server-side ajax would be just doing dom attribute manipulations. You'll be much better off doing it with JS, as Igor stated.
Cheers, Xavi 2010/9/7 nino martinez wael <nino.martinez.w...@gmail.com> > yup validator's more correct > > 2010/9/7 Xavier López <xavil...@gmail.com> > > > I'd do it with a component validator. That would avoid the Form's > onSubmit > > being called and getting the model updated with incorrect user data. Or > > also > > with a FormValidator. If I remember correctly, you can call > > getConvertedInput to get the Checkgroup's list of selected values. > > > > Cheers, > > Xavi > > > > 2010/9/7 nino martinez wael <nino.martinez.w...@gmail.com> > > > > > you an also do it server side... just check your model on submit etc.. > > > > > > 2010/9/6 Zeldor <pgronkiew...@gmail.com> > > > > > > > > > > > Oh, I hoped that it can be avoided. So anyone has AJAX example at > hand? > > > > -- > > > > View this message in context: > > > > > > > > > > http://apache-wicket.1842946.n4.nabble.com/checkGroup-2-out-of-5-tp2527723p2527763.html > > > > Sent from the Wicket - User 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 > > > > > > > > > > > > > > -- "Klein bottle for rent--inquire within."