2 Replies Latest reply on Jul 21, 2009 5:54 AM by johndoe123

    rich table sorting

    janepepo

      I have a need to sort rich:column by date or combination of strings made from multiple sources. Is there a way I can specify the type of data ?

      Thanks,

      J

        • 1. Re: rich table sorting
          ilya_shaikovsky

          you have to implement external sorting as at demosite.

          • 2. Re: rich table sorting

            I have actually done this with a custom DataModel.

            The key issue here is to implement the Modifiable interface and set restrictions accordingly. I used reflection to get the datatypes of the bound entities.

            The modify method of this interface gets two lists as arguments: one for filterFields and one for sortFields. Then just evaluate them and construct your own restrictions.

            Maybe that helps a bit.