Thanks for the nice example Gavin.
Little sidenote for scaleablity and for the additional use of the Tomahawk Data Scroller component: in order to reduce the heat and the overhead for very large datasets I'd implement the sort() functionality not in the java code but in the EJBQL (means to "dynamicly" modify the querystring with some "if"'s based on the selected way of sorting and pagination).
If you want to display all results on one page without the Data Scoller component it is not so important because you need to fetch all the data from the DB anyways but as soon as you have some 500,000+ datarows and use the Data Scroller to only see the 50 records on page 132 sorted by colum XY in an ascending order this is going to be a pain if its done in-code and not with EJBQL in the DB.
yes, agreed.
Thanks, Gavin. It works. Perhaps a nice hint: You can use renderedIfEmpty="false" instead of render="...".
ah, ok.