[
http://jira.jboss.com/jira/browse/JBSEAM-880?page=all ]
Peter Muir updated JBSEAM-880:
------------------------------
Fix Version/s: 1.1.7.GA
(was: 1.1.8.GA)
In CVS this works as described in my comment above:
If UISelectItems knows how to make the value into a list of SelectItem it does. If it
doesn't, and a noSelectionLabel has been requested, it creates a list with one item in
it (the noSelectionLabel), otherwise it just returns the value unmodified.
The example has been updated to show a use-case like the one provided by Guy.
UISelectItems is now far saner :)
Make UISelectItems more permissive to null-values
-------------------------------------------------
Key: JBSEAM-880
URL:
http://jira.jboss.com/jira/browse/JBSEAM-880
Project: JBoss Seam
Issue Type: Patch
Components: JSF
Affects Versions: 1.1.6.GA
Reporter: Guy Veraghtert
Assigned To: Peter Muir
Priority: Minor
Fix For: 1.1.7.GA
Attachments: patch-880.txt
The method createSelectItems(Object value) in UISelectItems is not permissive to
null-values; a framework class should not die on NPE.
This can be fixed by assigning an empty list to value when value == null
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira