selectOneRadio w/ spread issues  XML
Forum Index -> Components
Author Message

Joined: 30/Sep/2008 00:00:00
Messages: 15

I'm pretty sure this is just me being retarded in some way, but I'm having an issue with prepopulating my selectOneRadio when using spread.

Here's a code snippet that works just fine! Notice the lack of spread layout...

<ice:selectOneRadio id="someRadio" value="#{ABean.radioValue}">
    <f:selectItem itemValue="1" itemLabel="A Label"/>
    <f:selectItem itemValue="2" itemLabel="Another Label"/>

ABean.radioValue int value is set to 1 in the constructor and when I render the above, the "A Label" is preselected. However, when I try to do the following...

 <ice:selectOneRadio id="someRadio" layout="spread" value="#{ABean.radioValue}">
    <f:selectItem itemValue="1" itemLabel=""/>
    <f:selectItem itemValue="2" itemLabel=""/>
       <td><ice:radio for="someRadio" index="0"/></td>
       <td> <b>SOME TEXT</b> </td>
       <td><ice:radio for="someRadio" index="1"/> </td>

...They render fine, function fine, but the SOME TEXT radio button is not preselected. Is there a bug in the spread that I don't know about or am I just doing something wrong?
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team