This content has been marked as final.
Show 4 replies
-
1. Re: How to implement sortable list?
gavin.king Feb 18, 2008 2:13 PM (in response to wachtda.scsi.gmx.ch)Put stuff in a SortedSet and change the comparator, maybe?
-
2. Re: How to implement sortable list?
wachtda.scsi.gmx.ch Feb 18, 2008 4:37 PM (in response to wachtda.scsi.gmx.ch)hello gavin thank you for answering...
i'm trying with the comparator and i need to pass two vars from seam-el to the backin-bean. is this not possible?jsp:
<h:commandLink action="#{facilityAction.sortResult('name', facilityAction.sortAscending)}" >
bean:
public void sortResult(String p_SortField, boolean p_SortAscending) { m_SortField = p_SortField; m_SortAscending = p_SortAscending; // Sort results. if (m_SortField != null) { Collections.sort(m_Facilities, new DTOComparator(p_SortField, p_SortAscending)); } }
-
3. Re: How to implement sortable list?
gavin.king Feb 18, 2008 5:53 PM (in response to wachtda.scsi.gmx.ch)Should be possible. Exception?
-
4. Re: How to implement sortable list?
wachtda.scsi.gmx.ch Feb 20, 2008 11:14 AM (in response to wachtda.scsi.gmx.ch)Sorry I looked at the wrong position!
It work's great!Thanks for hints,
Greetings Daniel