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

Nested collapsibleSubTable not collapse All Sub Level SubTable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.0.Final
    • Fix Version/s: 4.5.2
    • Component/s: component-tables
    • Labels:
      None

      Description

      I do have 4 levels of collapsibleSubTable nesting, but I click Level 2 collapsibleSubTableToggler not collapse all sub Table!

      All expanded:
      allExp.png
      click second Level collapsibleSubTableToggler :
      level 2 col.png
      Only collapse Level 3 but Level 4 not collapsed

      Code:

      bean:

       public List<TopLevel> getTopLevelDatas(){  
              List<TopLevel> result = new ArrayList<TopLevel>(2);  
              result.add(new TopLevel( "test Top level"));  
              return result;  
          }  
        
        
          public static class TopLevel {  
        
        
              private String title;  
        
        
              private List<SecondLevel> secondLevels = new ArrayList<SecondLevel>(3);  
        
        
              public TopLevel(String title) {  
                  this.title =  title;  
                  secondLevels.add(new SecondLevel("test second Level"));  
              }  
        
        
             // geter and seter ..  
          }  
        
        
          public static class SecondLevel {  
              private String title;  
        
        
              private List<ThirdLevel> thirdLevels = new ArrayList<ThirdLevel>(3);  
        
        
        
        
              public SecondLevel(String title) {  
                  this.title = title;  
                  thirdLevels.add(new ThirdLevel("test third Level"));  
              }  
        
        
              // geter and seter ..  
          }  
        
        
          public static class ThirdLevel{  
              private String title;  
        
        
              private List<String> fourthLevels = new ArrayList<String>(3);  
        
        
              public ThirdLevel(String title) {  
                  this.title = title;  
                  fourthLevels.add("1");  
                  fourthLevels.add("2");  
                  fourthLevels.add("3");  
              }  
        
        
              // geter and seter ..  
          }  
      

      Page:

          <r:dataTable value="#{testKnow.topLevelDatas}" var="_topLevel">  
              <r:column>  
                  <r:collapsibleSubTableToggler id="aaa" for="sbtb2"/>  
                  <h:outputText value="#{_topLevel.title}"/>  
              </r:column>  
              <r:collapsibleSubTable id="sbtb2" value="#{_topLevel.secondLevels}" var="_sencondLevel">  
        
        
                  <r:column>  
                      <r:collapsibleSubTableToggler id="bbb" for="sbtb3"/>  
                      <h:outputText value="#{_sencondLevel.title}"/>  
                  </r:column>  
        
        
                  <r:collapsibleSubTable id="sbtb3" value="#{_sencondLevel.thirdLevels}" var="_thirdLevel">  
                      <r:column>  
                          <r:collapsibleSubTableToggler for="sbtb4"/>  
                          <h:outputText value="#{_thirdLevel.title}"/>  
                      </r:column>  
        
        
                      <r:collapsibleSubTable  id="sbtb4" value="#{_thirdLevel.fourthLevels}" var="_fourthLevel">  
                             <r:column>  
                                 <h:outputText value="#{_fourthLevel}"/>  
                             </r:column>  
                      </r:collapsibleSubTable>  
        
        
                  </r:collapsibleSubTable>  
        
        
              </r:collapsibleSubTable>  
          </r:dataTable>  
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  cooper_lyt cooper lee
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: