-
1. Re: Passing Param to List
ztiringer Apr 21, 2009 6:00 PM (in response to sandman202)In AddressTable.page.xml you can define params (if you used seam-gen then sort and dir is already there for the sorting)
-
2. Re: Passing Param to List
sandman202 Apr 21, 2009 6:17 PM (in response to sandman202)Yes, I am using seam-gen. All of the columns are capable of being sorted. My params in AddressList.page.xml is
<param name="addressListFirstResult" value="#{addressList.firstResult}" /> <param name="addressListSort" value="#{addressList.orderColumn}"/> <param name="addressListDir" value="#{addressList.orderDirection}" />
I would need to set the sort on my AddressList.xhtml.
-
3. Re: Passing Param to List
sandman202 Apr 21, 2009 9:51 PM (in response to sandman202)If I separate the AddressList.page.xml to where the sorting and direction is within the AddressTable.page.xml and run with this, it appears that the AddressTable.page.xml is not seen. The sorting works fine when the params are within the AddressList.page.xml.
So, my question now is this...
When you use an ui:include like explained above and then have an AddressList.page.xml can you have an AddressTable.page.xml, where the sort params are defined there? If so, then how can I get the sorting to work?
-
4. Re: Passing Param to List
ztiringer Apr 22, 2009 12:10 AM (in response to sandman202)I would suggest that you check out how param passing works in the seam-gen xxxList pages with sort.xhtml included. As I can see this exactly does what you want to achieve.
-
5. Re: Passing Param to List
sandman202 Apr 22, 2009 4:07 PM (in response to sandman202)Zoltan, can you provide me a link to the documentation you are referring to?
By the way, I did figure a way to achieve what I wanted by executing an action within the AddressList.page.xml.