5 Replies Latest reply on Nov 27, 2014 7:17 AM by cooper lee

    Nested collapsibleSubTable  BUG with RichFaces 4.5.0.Final

    cooper lee Newbie

      I do have 3 levels of collapsibleSubTable nesting, but i click collapse link only collapse ten row!


      my bean:

      public class TestKnow {
      
          public List<TopLevel> getTopLevelDatas(){
              List<TopLevel> result = new ArrayList<TopLevel>(1);
              result.add(new TopLevel());
              return result;
          }
      
          public static class TopLevel {
      
              private String title;
      
              private List<SecondLevel> secondLevels = new ArrayList<SecondLevel>(1);
      
              public TopLevel() {
                  this.title = "test Top level";
                  secondLevels.add(new SecondLevel("test second Level"));
              }
      
              // geter and seter ...          
          }
      
          public static class SecondLevel {
              private String title;
      
              private List<String> thirdLevels = new ArrayList<String>(15);
      
              public SecondLevel(String title) {
                  this.title = title;
                  for (int i = 0; i < 15; i++) {
                      thirdLevels.add(String.valueOf(i));
                  }
              }
              // geter and seter ...                
          }
      }
      
      
      

       

      my page:

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

       

      display:

      expand:

      expand.png

      collapse:

      collapse.png

      any idea?