[ 
http://issues.apache.org/jira/browse/MYFACES-894?page=comments#action_12359019 
] 

Guy Bashan commented on MYFACES-894:
------------------------------------

I found the problem:
It seems that if "value" property is not assigned to: selectOneMenu (I guess it 
is the same for other components as well ...) and a Converter is used, then the 
method "getAsString" passes "object" as "null" value in the converter.

So, it is not related to the fact the the bean is on application sope, but it 
does not happen in SUN RI.
It looks like this issue may or may not be considered as a bug (Specification 
may determine). Anyway, just adding a value property to both tag and bean 
solves the problem.

> 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

Reply via email to