]
Pete Muir closed JBSEAM-1228.
-----------------------------
Resolution: Won't Fix
Add sort option to <s:selectItems>
----------------------------------
Key: JBSEAM-1228
URL:
https://jira.jboss.org/jira/browse/JBSEAM-1228
Project: Seam
Issue Type: Patch
Components: JSF Controls
Affects Versions: 1.2.1.GA
Reporter: Stephan Bublava
Assignee: Pete Muir
Attachments: sort-selectitems-patch.txt
The attached patch adds a sort option to <s:selectItems>, that allows the entries
to be sorted by their label.
Example:
<h:selectOneMenu value="#{person.honorific}">
<s:selectItems value="#{honorifics}" var="honorific"
label="#{honorific.label}" noSelectionLabel="Please select"
sort="ascending" />
<s:convertEnum />
</h:selectOneMenu>
This version has not been tested in depth (especially interactions with
"noSelectionLabel"), but I've been using similar code in our project (based
upon Seam SelectItems 1.1.1beta1) for some time now and not encountered any problems.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: