-
1. Re: icefaces datatable sorting with seam and facelets
jguglielmin Sep 18, 2009 6:25 PM (in response to ericjung2)There is a version of component showcase with Seam that uses an EntityQuery for the datatable and sorting. You can find it on the ICEfaces downloads page. There is another example available at Dan Allen's Seam In Action page at http://seaminaction.googlecode.com/svn/trunk/prototype/projects/open18ice --it's a little more involved as you'd have to add some data, register, etc, but you could look at the MyScoreCard and MyRoundList classes.
-
2. Re: icefaces datatable sorting with seam and facelets
ericjung2 Sep 18, 2009 7:12 PM (in response to ericjung2)Thanks, Judy.
There appears to be a file missing in seam-showcase-1.8.0.zip. I can't find dataTable-commandSortHeader.jspx, which is used by ComponentsTableSortableHeader.jspx.
Do you know how I can get it?
thanks,
eric -
3. Re: icefaces datatable sorting with seam and facelets
jguglielmin Sep 21, 2009 5:24 PM (in response to ericjung2)It's copied over from the standard facelets component-showcase application. Did you use the ant task copy-source?
-
4. Re: icefaces datatable sorting with seam and facelets
ericjung2 Sep 23, 2009 8:28 PM (in response to ericjung2)Thanks, Judy. I got it working. So now that I have the Seam version working, I have a follow-up question.
Is the PhaseListener (SortHeaderModel.java) really necessary? If so, how can this scale? If I have 30 or 40 sortable tables in my application, I need 30-40 phase listeners??
Thanks,
Eric -
5. Re: icefaces datatable sorting with seam and facelets
jguglielmin Sep 23, 2009 9:34 PM (in response to ericjung2)Actually, that backing bean is not used in the seam version at all. To avoid duplication, the facelets non-seam version beans are all copied over. (a few aren't used and this is one of them).
You want to look at SeamSortHeaderModel.java as the class that is the backing bean for sortable headers. It strictly uses SMPC EntityQuery for the datamodel.