myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mbm67 (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3008) javax.faces.component.UIInput.getConvertedValue converts empty String to null even when javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false
Date Tue, 19 Jul 2011 09:59:58 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067599#comment-13067599
] 

mbm67 commented on MYFACES-3008:
--------------------------------

The same problem seems to be present also in MyFaces 2.1.1.
Need a patch as soon as possible.

> javax.faces.component.UIInput.getConvertedValue converts empty String to null even when
javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3008
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3008
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.2, 2.0.3
>         Environment: Glassfish v3, myfaces core 2.0.2
>            Reporter: Jay Palaniappan
>
> javax.faces.component.UIInput.getConvertedValue converts empty String to null even when
javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set as false.
> When I dug deeper I narrowed down the issue to the method org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUISelectOneValue
where if the submitted value is an empty string the submittedvalue is set to null. I also
understand that this logic was put in place to solve the issue no. 1759 for version 1.2.2
but in JSF 2.0 the empty string to null conversion is handled globally using context parameter
javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message