6 Replies Latest reply on Nov 18, 2009 6:11 AM by fabioos

    Bug: rich:scrollabledatatable and rich:columns when used fil

    apg9595

      Environment

      Java 5
      Richfaces 3.3.1
      JSF 1.2 - Myfaces 1.2.7
      Jboss 4.3 EAP
      Windows XP, LINUX

      <rich:scrollableDataTable width="700px" id="table"
      value="#{gridController.formattedGrid.rows}" var="row"
      rowKeyVar="rowKey" hideWhenScrolling="false">

      <rich:columns value="#{gridController.formattedGrid.heading}"
      var="column" index="ind" id="dynaColumn"
      filterMethod="#{gridController.filterGrid}">
      </rich:columns>
      </rich:scrollableDataTable>


      The filterMethod does not get called.

        • 1. Some more info
          apg9595

          Same works, if used as rich:datatable

          • 2. Re: Bug: rich:scrollabledatatable and rich:columns when used
            ilya_shaikovsky

            in general not enough info. Does request actually fired? Check in FireBug? Also check at livedemo that while using columns - you have to define filterValue because columns recreated at every request , so you should store current filter value in model.

            • 3. Re: Bug: rich:scrollabledatatable and rich:columns when used
              smrallen

              I have a jsp with scrollableDataTable and filterMethod (filterGrid) in my controller (GridController). Now i am using filterMethod (filterGrid) from <rich:columns>. The filter method is not invoked when i used scrollableDataTable. But the same filter method get invoked if I change rich:scrollableDataTable to rich:datatable. Please find the below source code.
              -------------------------------------
              Jsp File : (scrollableDataTable.jsp)

              <rich:scrollableDataTable width="700px" id="table"
              value="#{gridController.formattedGrid.rows}" var="row"
              rowKeyVar="rowKey">

              <rich:columns value="#{gridController.formattedGrid.heading}"
              var="column" index="ind" id="dynaColumn"
              filterMethod="#{gridController.filterGrid}"
              sortable="false">


              <f:facet name="header">
              <h:outputText value="#{column.label}"/>
              </f:facet>
              <h:outputText value="#{row.cells[ind].value}"/>

              </rich:scrollableDataTable>
              -------------------------------------
              GridController.java

              public class GridController extends Controller {

              public boolean filterGrid(Object object) {

              // Do some filter Logic
              }

              public void process(ActionEvent event) {

              // Process Logic
              }
              }

              -------------------------------------
              faces-config.xml

              <managed-bean>
              <managed-bean-name>gridController</managed-bean-name>
              <managed-bean-class>org.ets.ibis.richfaces.grid.controllers.GridController</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
              <managed-property>
              <property-name>itemService</property-name>
              #{itemService}
              </managed-property>
              </managed-bean>

              • 4. Re: Bug: rich:scrollabledatatable and rich:columns when used
                apg9595

                I have the similar issue, exactly same as what Allen is talking about.

                - Arun

                • 5. Re: Bug: rich:scrollabledatatable and rich:columns when used
                  ilya_shaikovsky

                  filtering not supported in scrollable table.

                  • 6. Re: Bug: rich:scrollabledatatable and rich:columns when used

                    Not yet support filter in scrollable table, even with filterBy property? I really neede this and dont work for me.