Hi all, I'm trying to build DataTable using the Wickets DefaultDataTable component. One of the column in the list is a RadioButton component, which is used to select a particular row.
I'm using wicket fragment feature. My html looks like this... <div> <table cellpadding="0" cellspacing="1" wicket:id="table"/> </div> <wicket:fragment wicket:id="radioChoiceFrag"> <input type="radio" wicket:id="selected"/> </wicket:fragment> My fragment looks like this.. public class FlightSelectionFragment extends Fragment { private RadioGroup radioGroup; public FlightSelectionFragment(String id, String markupId, MarkupContainer markupProvider) { super(id, markupId, markupProvider); radioGroup.add(new Radio("selected", new Model("")) { }); } How do i add the same Radio button component (id=selected) to RadioGroup (id=radioChoicegroup) for multiple rows. i.e Assuming there are three rows in table. So i need 3 radio buttons which will be added to the same radio group (id=radioChoicegroup). But the component id (id=selected) cannot be the same for all the three rows. This gives Runtime Exception. How to handle this issue? -- View this message in context: http://www.nabble.com/RadioButton-inside-DataTable-tp16522717p16522717.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]