I went down the road of trying to bake Ajax into contrib:table at first. In the end, I found that it was easier to use a plain old HTML table with Ajax rather than trying to figure out how to make it work with contrib:table.
I've accomplished this using using DWR and a simple HTML table rather than a contrib:table component. I found that the most straightforward approach was to provide a service level method to retrieve the list of results for the table, remote that method with DWR, and fill the table using DWR utils. My service level method takes an argument of the type of object that I'm retrieving results for. If this arg is not null, it is used to filter the results with Hibernate's Criteria query API. The method can also take an array or list of "order by" strings, and some paging information if you need paging functionality. In the end, it only took me about 1/2 hr. to get a pageable, sortable and filterable table up and running with DWR. Cheers, Mark On 8/10/05, X. Y. Zhao <[EMAIL PROTECTED]> wrote: > Hello. > Is it possible to implement table sorting using ajax with > contrib:table? Has anyone done this or know where to start? Thank you. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
