<h:form id="myForm">
<t:dataTable border="0" styleClass="standardTable expand100P" id="myTable" forceId="true"
headerClass="standardTable_SortHeader"
footerClass="standardTable_Footer"
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"/>
</h:panelGrid>
</f:facet>
<f:facet name="b">
<h:panelGrid columns="2">
<h:outputText value="Second" />
<rich:toggleControl value="update1" for="id1" id="toggle2"/>
</h:panelGrid>
</f:facet>
</rich:togglePanel>
</t:column>
</t:dataTable>
</h:form>
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?
Did you ever find a solution to this? I am having the exact same issue.
RichFaces 3.2.1.GA
MyFaces 1.2.3 (client state saving method)
Tomcat 6
Mozilla
Thanks,
David