0 Replies Latest reply on Apr 4, 2012 9:10 AM by Pavna Daryani

    how can a filter expression to allow wild card (*) - Richfaces 4.0

    Pavna Daryani Newbie

      I am using filter expression in a datatable. I do know there are inbuilt function provided which says fn:containsIgnoreCase and fn:startWith. But my user would like to add a wild card to select what they want to filter with. how can I do it?  The below code does not work 

       

      Any help is appreciated....

       

      <rich:column width="60px" sortBy="#{wo.displayWO.status}" sortOrder="#{sortingBean.sortOrders['displayWO.status']}"

                     filter="#{filterBean.statusFilter}">

       

       

       

       

      FilterBean.java#

      public Filter<DisplayWO> getStatusFilter() {

        return new Filter<DisplayWO>() {

         @Override

         public boolean accept(DisplayWO t) {

         switch (statusFilterNumber) {

       

          ?????

       

       

         }

         }

        };

        }

       

       

      Could some help me ???????????