[
http://issues.apache.org/jira/browse/MYFACES-894?page=comments#action_12359018
]
Guy Bashan commented on MYFACES-894:
------------------------------------
Code fregment in which problem occured:
<h:selectOneMenu id="webletOwnership"
converter="WebletOwnershipConverter">
<f:selectItems value="#{applicationBean.webletOwnershipItems}"/>
</h:selectOneMenu>
(applicationBean is application scope bean)
I can tell for sure that the exception occures due to the fact that on the
method "getAsString" of the converter the "object" that is passed to the method
is "null" for some reason ...
> MyFaces, Converter, Application Bean scope
> ------------------------------------------
>
> Key: MYFACES-894
> URL: http://issues.apache.org/jira/browse/MYFACES-894
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: 1.1.1
> Environment: Windows XP, JDeveloper running OC4J
> Reporter: Guy Bashan
>
> I am getting a general: javax.servlet.ServletException:
> javax.servlet.ServletException without any explanation when using:
> selectOneMenu component with a custom converter.
> I can tell for sure the following things:
> 1) The problem happens due to the fact that the items are taken from
> application scope bean. Using the exact same code with request scope bean is
> working fine.
> 2) The problem does not happen with SUN RI. The exact same code, using
> application scope bean, with SUN RI is working fine.
--
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