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

    Datascrollers for tables inside of a table/grid

    Ande Popande Newbie


      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:

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

       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);
       return list;