[richfaces-issues] [JBoss JIRA] Created: (RF-4142) GradientType.valueOf(string.toUpperCase()) Localization problem

Mustafa Dasgin (JIRA) jira-events at lists.jboss.org
Mon Aug 11 07:57:50 EDT 2008


GradientType.valueOf(string.toUpperCase()) Localization problem
---------------------------------------------------------------

                 Key: RF-4142
                 URL: https://jira.jboss.org/jira/browse/RF-4142
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.1
            Reporter: Mustafa Dasgin


If your defaut local language and country setting is "tr_TR", GradientType.valueOf(string.toUpperCase()) statement converts "plain" to "PLAİN" (upper case "i" with dot). And gets the below exception:

SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalArgumentException: No enum const class org.richfaces.renderkit.html.images.GradientType.PLAİN
at java.lang.Enum.valueOf(Unknown Source)
at org.richfaces.renderkit.html.images.GradientType.valueOf(GradientType.java:14)
at org.richfaces.renderkit.html.images.GradientType.getByParameter(GradientType.java:99)
at org.richfaces.renderkit.html.BaseGradient.saveData(BaseGradient.java:247) 

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

       




More information about the richfaces-issues mailing list