RF4.1 M3: collapsibleSubTable and ajax mode
vrelits Nov 4, 2011 5:15 AMHi!
I would really like the Richfaces developer to provide an example of how collapsibleSubTable should work in ajax mode.
I cannot simply get it to work:
<rich:dataTable value="#{logicalInstanceListController.environments}" var="environment">
<f:facet name="header">
<rich:column>
<h:outputText value="#{msgs['instancegroup']}"/>
</rich:column>
<rich:column>
<h:outputText value="#{msgs['description']}"/>
</rich:column>
<rich:column/>
</f:facet>
<rich:column colspan="3">
<h:outputText value="#{msgs['environment']}: #{environment.environment}"/>
<rich:collapsibleSubTableToggler for="envtoggle"/>
</rich:column>
<rich:collapsibleSubTable value="#{logicalInstanceListController.getGroups(environment.environment)}" var="group" id="envtoggle"
expandMode="ajax" expanded="#{environment.expanded}">
<rich:column>
<h:outputText value="#{group.name}"/>
</rich:column>
<rich:column>
<h:outputText value="#{group.description}"/>
</rich:column>
</rich:collapsibleSubTable>
</rich:dataTable>
I have an boolean to keep state in enviornment.expanded.
It seems however nothing happens when i use the toggle. An ajax request is submitted, but nothing happens.
How is this supposed to work? I have not been able to find a singlew orking example of this.
Using RF 4.1 M3.
Output from a4j:log when clicking on toggle:
info [10:14:14.165]: Received 'beforedomupdate' event from <tr id=j_idt44:8:envtoggle ...>
info [10:14:14.166]: Listing content of response changes element:
Element update for id=javax.faces.ViewState
<update id="javax.faces.ViewState"><![CDATA[7170450732510052213:-5113748205692369463]]></update>
info [10:14:14.170]: Received 'success' event from <tr id=j_idt44:8:envtoggle ...>
info [10:14:14.170]: Received 'complete' event from <tr id=j_idt44:8:envtoggle ...>