and still need that validator... 2010/9/7 Xavier López <[email protected]>
> 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 <[email protected]> > > > yup validator's more correct > > > > 2010/9/7 Xavier López <[email protected]> > > > > > 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 <[email protected]> > > > > > > > you an also do it server side... just check your model on submit > etc.. > > > > > > > > 2010/9/6 Zeldor <[email protected]> > > > > > > > > > > > > > > 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: [email protected] > > > > > For additional commands, e-mail: [email protected] > > > > > > > > > > > > > > > > > > > > > > > -- > "Klein bottle for rent--inquire within." >
