[ 
http://issues.apache.org/jira/browse/MYFACES-54?page=comments#action_66028 ]
     
Pino Silvaggio commented on MYFACES-54:
---------------------------------------

I just double checked this, the spec is really messed up.
In the tag attribute description no mention of
String type for locale is mentioned but
in the spec document changes it says:
The "locale" attribute for <f:convertDateTime> and <f:convertNumber> in 9.4.3
and 9.4.4 is described to only accept a Locale instance, but must also accepts a
String.


> Attribute locale of type String not supported in convertNumber
> --------------------------------------------------------------
>
>          Key: MYFACES-54
>          URL: http://issues.apache.org/jira/browse/MYFACES-54
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.7 beta
>  Environment: JBoss 4, Tomcat 5, JDK 1.5, Win XP
>     Reporter: Darlan Oliveira

>
> When I set the value of locale (convertNumber) to "pt_BR" it throws this 
> below message. From my point of view all attributes of type String must be 
> supported at all components (TAG).
> java.lang.IllegalArgumentException: Attribute locale of type String not 
> supported
>       at 
> net.sourceforge.myfaces.taglib.core.ConvertNumberTag.setConverterLocale(ConvertNumberTag.java:224)
>       at 
> net.sourceforge.myfaces.taglib.core.ConvertNumberTag.createConverter(ConvertNumberTag.java:128)
>       at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:60)
>       at 
> org.apache.jsp.test_jsp._jspx_meth_f_convertNumber_0(test_jsp.java:223)
>       at org.apache.jsp.test_jsp._jspx_meth_h_inputText_0(test_jsp.java:197)
>       at org.apache.jsp.test_jsp._jspx_meth_h_form_0(test_jsp.java:150)
>       at org.apache.jsp.test_jsp._jspx_meth_f_view_0(test_jsp.java:116)
>       at org.apache.jsp.test_jsp._jspService(test_jsp.java:72)
>       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

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

Reply via email to