1 Reply Latest reply on Apr 29, 2009 8:29 AM by Nick Belaevski

    h:selectOneRadio selected value problem inside dataTable

    utpal patra Newbie

      Hi,
      I have a rich:dataTable. Inside it one column contains h:selectOneRadio. The button selection value should come from the managed/ backing bean. based on some criteria.

      can anyone guide me how to accomplish the task. the code is as follows:-


      <rich:dataTable id="dt" value="#{createTicketManagedBean.devlopersNamesList}"
      binding="#{discussionForumsManagedBean.table}" var="empName">

      <f:facet name="header">
      <h:outputText value="Developer Users List" />
      </f:facet>

      <rich:column id="checkColumnId">
      <f:facet name="header">
      <h:outputText value="" />
      </f:facet>
      <a4j:outputPanel>
      <h:selectOneRadio binding="#{createTicketManagedBean.htmlSelectOneRadio}"
      onclick="uncheckRadioButtons(this);"

      valueChangeListener="#{discussionForumsManagedBean.select}" >
      <f:selectItem itemValue="null"/>
      </h:selectOneRadio>
      </a4j:outputPanel>
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Employee Name" />
      </f:facet>
      <h:outputText value="#{empName.employeeName}" />
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Project Name" />
      </f:facet>
      <h:outputText value="#{empName.projectName}" />
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Ticket Name" />
      </f:facet>
      <h:outputText value="#{empName.RTID}" />
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Start Date" />
      </f:facet>
      <h:outputText value="#{empName.ticketCreatedDate}" />
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Due Date" />
      </f:facet>
      <h:outputText value="#{empName.RTEndDate}" />
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Status" />
      </f:facet>
      <h:outputText value="#{empName.rtStatus}" />
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Expertize" />
      </f:facet>
      <h:outputText value="#{empName.technicalSkill}" />
      </rich:column>

      </rich:dataTable>