Submitted a patch that adds the ability to have Radio/RadioGroup that
violate the component hierarchy. I needed this because I was working on a
system that needed to present a form with radio options that were not
adjacent. and unable to be related via the component hierarchy.
Something like this:
<form>
<span wicket:id="optionGroup"></span>
<fieldset>
<legend>Option 1</legend>
<input type="radio" name="option" value="option1"> Selected<br/>
<input type="text" name="option1Text"> Option 1 Text<br/>
<input type="text" name="option1Num"> Option 1 Number<br/>
</fieldset>
<fieldset>
<legend>Option 2</legend>
<input type="radio" name="option" value="option2"> Selected<br/>
<input type="text" name="option1Temp"> Option 2 Temperature<br/>
<input type="text" name="option1Num"> Option 2 Number<br/>
</fieldset>
</form>
I tried to figure out a way to related these Radio objects to the RadioGroup
as children, but ended up just added methods to both Radio and RadioGroup
that let me programmatically relate them. It was further complicated by
the fact that I had to support multiple radio groups.
https://issues.apache.org/jira/browse/WICKET-1055
--
------
Tim O'Brien: (847) 863-7045