You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paul Spencer (JIRA)" <de...@myfaces.apache.org> on 2006/06/13 16:30:29 UTC
[jira] Created: (MYFACES-1331) Value attribute in is
documented as not required, but javax.faces.FacesException: SelectItem with
no value is thrown
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
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
[jira] Resolved: (MYFACES-1331) Value attribute in
is documented as not required, but javax.faces.FacesException: SelectItem
with no value is thrown
Posted by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org>.
[ 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
[jira] Commented: (MYFACES-1331) Value attribute in
is documented as not required, but javax.faces.FacesException: SelectItem
with no value is thrown
Posted by "Paul Spencer (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-1331?page=comments#action_12416024 ]
Paul Spencer commented on MYFACES-1331:
---------------------------------------
The attribute ItemValue is also document as Required = false. But when I add this attribute the exception is
not thrown
Is this just a documentation Bug?
> 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
>
> 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