[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1355) ConverterChain.getAsString behaves incorrectly if the input is String already

Gavin King (JIRA) jira-events at lists.jboss.org
Mon May 28 13:49:08 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1355?page=all ]

Gavin King updated JBSEAM-1355:
-------------------------------

      Component/s: JSF
    Fix Version/s: 1.3.1.BETA1
         Assignee: Pete Muir

> ConverterChain.getAsString behaves incorrectly if the input is String already
> -----------------------------------------------------------------------------
>
>                 Key: JBSEAM-1355
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1355
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 1.2.1.GA
>            Reporter: Sergey Koshcheyev
>         Assigned To: Pete Muir
>             Fix For: 1.3.1.BETA1
>
>
> ConverterChain.getAsString(FacesContext context, UIComponent component, Object value) will return null if value is String already. It should cast the value to String and return that instead. Proposed fix: change
> String output = null;
> to
> String output = value instanceof String ? (String) value : null;
> This happens when UIComponent.value is bound to a String property. In this case no "final" converter will be added to the chain, so output will be null after the loop in getAsString.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list