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

[jira] [Commented] (MYFACES-4193) javax.faces.convert.EnumConverter.getAsString null value problem

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

Paul Nicolucci commented on MYFACES-4193:
-----------------------------------------

added a patch here. I'll commit it soon.

> javax.faces.convert.EnumConverter.getAsString null value problem
> ----------------------------------------------------------------
>
>                 Key: MYFACES-4193
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4193
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-372
>    Affects Versions: 2.3.0-beta
>            Reporter: Paul Nicolucci
>            Assignee: Paul Nicolucci
>            Priority: Minor
>         Attachments: MYFACES-4193.patch
>
>
> public java.lang.String getAsString([FacesContext |file:///C:/Users/IBM_ADMIN/Desktop/Dev/JSF%202.3%20-%20Servlet%204%20Dev/final%20draft/javax.faces-api-2.3-javadoc/javadocs/javax/faces/context/FacesContext.html]context, [UIComponent |file:///C:/Users/IBM_ADMIN/Desktop/Dev/JSF%202.3%20-%20Servlet%204%20Dev/final%20draft/javax.faces-api-2.3-javadoc/javadocs/javax/faces/component/UIComponent.html]component, java.lang.Object value)
>  
> Parameters: {{context}} - [{{FacesContext}}|file:///C:/Users/IBM_ADMIN/Desktop/Dev/JSF%202.3%20-%20Servlet%204%20Dev/final%20draft/javax.faces-api-2.3-javadoc/javadocs/javax/faces/context/FacesContext.html] for the request being processed {{component}} - [{{UIComponent}}|file:///C:/Users/IBM_ADMIN/Desktop/Dev/JSF%202.3%20-%20Servlet%204%20Dev/final%20draft/javax.faces-api-2.3-javadoc/javadocs/javax/faces/component/UIComponent.html] with which this model object value is associated {{value}} - Model object value to be converted (may be {{null}})
>  
> Returns: a zero-length String if value is {{null}}, otherwise the result of the conversion
>  
> Currently we return null if the value is null rather than a zero-length String ("")



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)