[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-880) Make UISelectItems more permissive to null-values
Guy Veraghtert (JIRA)
jira-events at lists.jboss.org
Sun Feb 25 04:43:44 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-880?page=all ]
Guy Veraghtert closed JBSEAM-880.
---------------------------------
Resolution: Done
Pete, things work fine now when adding a noSelectionLabel.
FYI, if NO noSelectionLabel is added, Sun RI 1.2 generates following stacktrace:
java.lang.IllegalArgumentException: Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne(projectMenu). Found null.
at com.sun.faces.renderkit.RenderKitUtils.getSelectItems(RenderKitUtils.java:357)
at com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:675)
at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:793)
at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:335)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
> 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: Pete 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
More information about the seam-issues
mailing list