2 Replies Latest reply on Jun 26, 2009 7:05 PM by johnarevalo

    h:selectOneRadio in rich:dataTable

    johnarevalo

      Hi all,

      i'm looking for a solution to "<input type=radio> per row"

      <rich:dataTable value="#{myBackingBean.myList}" var="myItem">
       <rich:column>
       <f:facet name="header">Select</f:facet>
       <h:selectOneRadio id="myRadio" value="#{myBackingBean.myRadioValue}">
       <f:selectItem itemValue="#{myItem.id}">
       </h:selectOneRadio>
       </rich:column>
       <rich:column>
       <f:facet name="header">Description</f:facet>
       <h:outputText value="#{myItem.name}">
       </rich:column>
      </rich:dataTable>


      this piece of code generates one rabiobuttongroup per row.
      Components from another libs[1][2] solves this problem with additional tags, how can I render this table with richfaces only?. Thanks for your replies.

      Regards,

      [1] http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/tableSelectOne.html
      [2] http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_selectOneRadio.html