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

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


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...

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


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...

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


...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