1 Reply Latest reply on Jun 20, 2008 3:14 PM by David Greenberg

    rich:togglePanel inside t:dataTable

    Tathagat Tathagat Newbie

      <h:form id="myForm">
      <t:dataTable border="0" styleClass="standardTable expand100P" id="myTable" forceId="true"
      rowClasses="standardTable_RowOdd, standardTable_RowEven"
      var="" value="" sortColumn="" sortAscending="">
      <t:column id="columnId">
      <rich:togglePanel switchType="ajax" stateOrder="s,b" id="id1">
      <f:facet name="s">
      <h:panelGrid columns="2">
      <h:outputText value="First" />
      <rich:toggleControl value="edit11" for="id1" id="toggle1"/>
      <f:facet name="b">
      <h:panelGrid columns="2">
      <h:outputText value="Second" />
      <rich:toggleControl value="update1" for="id1" id="toggle2"/>

      In this case ID for the toggle component is generated automatically (there is no way to define id for each row). And I guess therefore toggelPanel does not work. The id for togglePanel is - myForm:myTable:0:toggle1. 0 is the row 1 id generalted automatically.

      Is there a way to manually give id's to each row of a table?

      Any ideas?