4 Replies Latest reply on Aug 8, 2008 4:35 AM by tamerg

    datatable problem

    tamerg

      Hi friends,

      I have datatable which column headers have selectOneRadio but there is problem getting value of this radio.When I look at the generated html all Id and name attiribute has same value for all input radio.
      When I move selectOneRadio out of f:facet rendering is correct
      is it bug or has a solution?

      Thanks


      <rich:dataTable id="periodSubTable" border="2" value="#{hotelContractPeriodicRoomBaseCost.getRoomCellList()}"
       var="periodCell" rowClasses="rvgRowOne,rvgRowTwo">
      
      <rich:column width="30">
       <f:facet name="header">
       <h:selectOneRadio value="#{hotelContractPeriodicRoomBaseCost.checkin}">
       <f:selectItem itemLabel="Checkin" itemValue="0"/>
       <f:selectItem itemLabel="Period" itemValue="1"/>
       </h:selectOneRadio>
       </f:facet>
      
       <h:inputText value="#{periodCell.settlementCost}" size="6"/>
      
       </rich:column>
      </rich:dataTable>
      
      </rich:column>
      </rich:dataTable>