[ http://issues.apache.org/jira/browse/MYFACES-1331?page=all ]
Bruno Aranda resolved MYFACES-1331:
-----------------------------------
Fix Version: 1.2.0-SNAPSHOT
Resolution: Invalid
Assign To: Bruno Aranda
Yes, the exception is not very clear...
None of the parameters are required because you can use one or the other, but
in different cases. You would use 'selectItem' to provide the value returned by
the server when that option is clicked. You would use the 'value' attribute to
bind the selectItem to an instance containing the information for that option
using a binding expression.
Then, the exception is right, as the value is missing, being it provided with
the itemValue or the binding expression. The only thing I see is to improve the
exception message...
> Value attribute in <f:selectItem> is documented as not required, but
> javax.faces.FacesException: SelectItem with no value is thrown
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-1331
> URL: http://issues.apache.org/jira/browse/MYFACES-1331
> Project: MyFaces Core
> Type: Bug
> Versions: 1.1.3
> Reporter: Paul Spencer
> Assignee: Bruno Aranda
> Fix For: 1.2.0-SNAPSHOT
>
> The Value attribute in <f:selectItem> is documented as not required, but the
> following is thrown when the attibute is not present:
> javax.faces.FacesException: SelectItem with no value
>
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
>
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira