4 Replies Latest reply on Jun 15, 2009 7:54 AM by atdavie

    rich:column and sorting

    atdavie

      I am using Richfaces 3.3 and the sorting looks nice and easy to apply to a datatable using the sortBy keyword. The problem is it just doesn't work for me.

      I get the arrows when I add the keyword, and I get the correct order if I add an order by but clicking on the arrows appears to do nothing.

      In the Eclipse console I can see what looks like the backing bean being initialised but that is all.

      Does this sound familiar to anyone? It just seems odd to me.

      My next step is to put together a simple example and see if that works ok.


        • 1. Re: rich:column and sorting
          ilya_shaikovsky

          visit the link in my signature. there you could find the SVN link to sources of richfaces-demo.

          • 2. Re: rich:column and sorting
            atdavie

            I am having to give this up for the moment.

            I was trying to tack this on to an existing project and it is hard to isolate where there might be a problem and I need to move on.

            Back to tomahawk datatables for now.

            • 3. Re: rich:column and sorting
              ilya_shaikovsky

              Unfortunatelly it's not easy to help without any details and code samples and just "not works" description. Update us with details if you will return to this.

              • 4. Re: rich:column and sorting
                atdavie

                Quick update, in case anyone hits similar issues.

                My backing bean in request scoped and the init refreshed the array that is used for my rich:datatable.

                It is possible that this is causing the sortBy not to work. I still have to dig a little futher.

                I added an a4j:keepAlive to the page and it now works as expected.

                I was so convinced it was down to a tomahwk richfaces incompatability it took me while to nail down. That and the original code I inherited was using a t:savestate.