Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11656

Nested collapsibleSubTable always expanded

    Details

    • Sprint:
      4.5.0.Beta2 - Sprint 3

      Description

      When I use nested collapsibleSubTable the nested collapsibleSubTable is always expanded.
      Even if I put expended="#{false}" it is also expanded.

      My facelet looks like this:

       <rich:collapsibleSubTable value="#{logicalInstanceListController.getGroups(environment.entry)}" var="group"
                                                id="envtoggle" expandMode="ajax" expanded="#{environment.expanded}">
               <rich:column>
                    <f:facet name="header">
                         <h:outputText value="#{dps_msgs['instancegroup']}"/>
                    </f:facet>
                   <h:outputText style="margin-left: 15px" value="#{group.entry.name}"/>
                   <rich:collapsibleSubTableToggler for="logicaltoggle"/>
               </rich:column>
               <rich:column>
                   <f:facet name="header">
                       <h:outputText value="#{dps_msgs['description']}"/>
                   </f:facet>
                   <h:outputText value="#{group.entry.description}"/>
               </rich:column>
               <rich:collapsibleSubTable value="#{logicalInstanceListController.getLogicalInstances(group)}"
                                               var="logicalinstance" id="logicaltoggle" expandMode="ajax"
                                                    expanded="#{group.expanded}">
                    <rich:column>
                        <h:outputText style="margin-left: 30px" value="#{logicalinstance.name}"/>
                    </rich:column>
                    <rich:column>
                       <h:outputText value="#{logicalinstance.description}"/>
                   </rich:column>
              </rich:collapsibleSubTable>
         </rich:collapsibleSubTable>
      

      Group.expanded seems to be updated correctly, so it seems the Renderer does not use this. A guess is that it uses the parent collapsibleSubTable expanded value, because they seem synchronized. My guess it the Renderer code does not work with nested collapsible sub tables.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bleathem Brian Leathem
                Reporter:
                vrelits Jesper Vrelits
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified