Hi!
On 8/13/07, shumbola <[EMAIL PROTECTED]> wrote:
> If I use RadioGroup, then having problem with my Model. Appreciate if
> someone show me the right way with a sample code.
We use RadioGroup for something similar and it works fine.
The form has a CompoundPropertyModel with attributes including
"radioGroup", "panel0", "panel1", which the subcomponents can find
even when they are nested into each other.
Here's a simplified example:
<span wicket:id="radioGroup">
<tr>
<td wicket:id="panel0"> </td>
<td> <input wicket:id="0"
type="radio"> </td>
</tr>
<tr>
<td wicket:id="panel1"> </td>
<td> <input wicket:id="1"
type="radio"> </td>
</tr>
</span>
form constructor:
RadioGroup radioGroup = new RadioGroup("radioGroup");
Panel panel0 = new Panel("panel0");
Radio choice0 = new Radio("0", new Model(new
Integer(0)));
radioGroup.add(panel0);
radioGroup.add(choice0);
Panel panel1 = new Panel("panel1");
Radio choice1 = new Radio("1", new Model(new
Integer(1)));
radioGroup.add(panel1);
radioGroup.add(choice1);
form.add(radioGroup);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]