2 Replies Latest reply on Mar 19, 2009 3:04 AM by ande

    Datascrollers for tables inside of a table/grid

    ande

      Hi,

      I have a problem:
      I created a table with multiple tables inside and I want to add datascrollers to the tables. But it seems that something is not working.
      Am i doing something wrong?

      Here is an example code:

      <h:form>
       <rich:dataGrid value="#{debugBean.list}" var="list1" columns="1">
       <rich:column>
       <rich:dataTable id="table2" value="#{list1}" var="list2" rowKeyVar="j" rows="3">
       <f:facet name="header">
       <rich:datascroller for="table2" reRender="table2" />
       </f:facet>
       <rich:column>
       #{list2}
       </rich:column>
       </rich:dataTable>
       </rich:column>
       </rich:dataGrid>
      </h:form>
      


       private List<List<String>> list;
      
       public List<List<String>> getList() {
       if (list == null) {
       list = new ArrayList<List<String>>();
       for (int i = 0; i < 5; i++) {
       List<String> l = new ArrayList<String>();
       for (int j = 0; j < 10; j++) {
       l.add("" + j);
       }
       list.add(l);
       }
       }
       return list;
       }