You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org> on 2010/01/21 22:33:54 UTC

[jira] Updated: (MYFACES-2356) HtmlRadioRendererBase calls converter method getAsString() not with the object, but with the string version when an validation error occured

     [ https://issues.apache.org/jira/browse/MYFACES-2356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr updated MYFACES-2356:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-alpha-2
           Status: Resolved  (was: Patch Available)

Committed my patch.

> HtmlRadioRendererBase calls converter method getAsString() not with the object, but with the string version when an validation error occured
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2356
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2356
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>            Reporter: Jakob Korherr
>            Assignee: Jakob Korherr
>            Priority: Minor
>             Fix For: 2.0.0-alpha-2
>
>         Attachments: HtmlRadioRendererBase.patch
>
>
> If you have a <h:selectOneRadio> component with some SelectItems and you select an item, submit it and an validation error occurs, HtmlRadioRendererBase calls org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue() with the submitted value, which is not converted an therefore already the string version of the SelectItem. So the provided converter tries to convert the string version to the string version, which can end in strange behaviour.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.