[ http://issues.apache.org/jira/browse/MYFACES-624?page=all ]
Mathias Broekelmann closed MYFACES-624:
---------------------------------------
Resolution: Fixed
fixed in r291881
> selectOneMenu calls converter getAsString() with String value instead of
> object
> -------------------------------------------------------------------------------
>
> Key: MYFACES-624
> URL: http://issues.apache.org/jira/browse/MYFACES-624
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: 1.1.0
> Reporter: Jan Dockx
> Assignee: Mathias Broekelmann
>
> We use a SelectOneMenu to set a City object on a Person. City's are records
> in our DB with a Long primary key we use as value in the select. A Converter
> converts the PK to objects with getAsObject (getAsString simply return the PK
> from the object). We have seen indeed that the getAsObject is called on
> submit, then followed by a getAsString during the render phase BUT WITH the
> Long PK as THE VALUE. The component is asking to convert the String value
> into the String value!
> What is particularly weird is that, in the previous request/response phase,
> the select renders ok, which also requires a getAsString of course.
> To be sure, we switched back to the nightly we were using before (20050821),
> and the select worked ok again. So, as far as we are concerned, this is a
> serious bug, at least in SelectOneMenu!. We also tried to workaround the
> issue, checking in the converter if the "value" argument for getAsString is a
> String, and then just returning it, but that didn't work either.
--
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