2 Replies Latest reply on Mar 12, 2010 9:50 AM by eugenbesel

    method modify and filter

    eugenbesel

      since I implemented the method modify in my DataTableModel, the filtermethod doesn't work.

       

       

      first of all I implemented the filterMethod like in

      http://livedemo.exadel.com/richfaces-demo/richfaces/filteringFeature.jsf?tab=ex-usage&cid=10141771

       

      then I implemented the DataModel and method modify like

       

      public void modify(List<FilterField> arg0, List<SortField2> sortFields) {

       

       

      now the application doesnt go into my filterMethod.

       

      is the new method modify responsible for this behavior??

       

      can I delegate the filtercall to my filterMethod??

       

      thank you

       

      wbr

      Eugen

        • 1. Re: method modify and filter
          konstantin.mishin
          If you use ExtendedDataModel which implements Modifiable as value of DataTable you should manage filtering and sorting yourself.
          • 2. Re: method modify and filter
            eugenbesel

            Hallo Konstantin.

             

            you are right. when I remove the method modify and when my column is not implemented the interface Modifiable then the framework sort the datavalues by itself.

             

            it is ok.

             

            The Component ExtendedDataTable has a very usefull feature: "groupBy". The disadvantage of ExtendedDataTable is that it is very very slow.

             

            So I try to implement simple DataTable and if I know which column should be sorted, then I can go throw the sorted column and when the value is changed then I add new empty row .

            On the page the user can see goups of dataValue.

             

            do you know what I mean??

             

            For this purpose I tried to implement the method modify.

            The first problem I still dont know which column should be sorted.

            The second the framework dont want to sort the data. I thought that I can call some method from framework and provide my Data to sort. But which Method??

             

            wbr

            Eugene