Hello, You can use a RadioChoice for this case, like: <table> <tr wicket:id="choice1"></tr> <tr wicket:id="choice2"></tr> </table
The setPrefix() and setSuffix() methods can be used to get it to render the '<td>' and '</td>' markup which will separate each rendered choice.
RadioChoice c1 = new RadioChoice ("choice1", new Model(), OPTIONS1_LIST);
RadioChoice c2 = new RadioChoice ("choice2", new Model(), OPTIONS2_LIST);
c1.setPrefix ("<td>");
c1.setSuffix ("</td>);
c2.setPrefix ("<td>");
c2.setSuffix ("</td>);
add (c1);
add (c2)
Mike
this does not work because each TR has its own RadioGroup (2 TD with radio in each) so i cannot wrap whole table. how to get this to work?Date: Wed, 19 Mar 2008 12:31:24 -0700 From: [EMAIL PROTECTED] To: [email protected] Subject: Re: RadioGroup in TD you would have one RadioGroup around the table and Radio inside td -igor On Wed, Mar 19, 2008 at 11:28 AM, i ii <[EMAIL PROTECTED]> wrote:will that work with more than one RadioGroup in different TD? i would put RadioGroup around RadioGroup? > Date: Wed, 19 Mar 2008 11:22:02 -0700 > From: [EMAIL PROTECTED]To: [email protected]> Subject: Re: RadioGroup in TD> put radiogroup around the table> > -igor > > > On Wed, Mar 19, 2008 at 11:20 AM, i ii <[EMAIL PROTECTED]> wrote: > > > > i tried to add html: > > > > < table >h; > > < td >h; < input wicket:id="rd1" type="radio" / >h; < /td >h; > > < td >h; < input wicket:id="rd2" type="radio" / >h; < /td >h; > > < /table >h; > > > > > From: [EMAIL PROTECTED] > > > To: [email protected] > > > Subject: RadioGroup in TD > > > Date: Wed, 19 Mar 2008 18:16:26 +0000 > > > > > > > > > > > > > how can i use RadioGroup or RadioChoice when radios are in TD? > > > > > > > > > > > > > > > > > > > > > i try to use Radio on its own with same name attribute, but cannot. it says Radio must be inside RadioGroup? > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
