[ 
http://issues.apache.org/jira/browse/MYFACES-1332?page=comments#action_12416097 
] 

Bruno Aranda commented on MYFACES-1332:
---------------------------------------

This discussion was held a few time ago. The answer is "percent", so the 
documentation is wrong and I have just fixed it.
Regarding the specification, there is a difference between the spec document 
and the javadocs. In the RI javadocs (and in the TCK tests, to certify JSF 
implementations) "percent" is expected. java.text.NumberFormat also uses 
"percent", so it is the natural answer.

Thanks for spotting it,

> Documented value of type attribute for <f:converNumber> does not match the 
> implementation
> -----------------------------------------------------------------------------------------
>
>          Key: MYFACES-1332
>          URL: http://issues.apache.org/jira/browse/MYFACES-1332
>      Project: MyFaces Core
>         Type: Bug

>     Versions: 1.1.4-SNAPSHOT
>     Reporter: Paul Spencer
>      Fix For: 1.1.4-SNAPSHOT

>
> The TLD documents "percentage" as an allowable value for the attribute "type" 
> of <f:convertNumber>.  This value throws the following exception:
> SEVERE: Servlet.service() for servlet jsp threw exception
> javax.faces.convert.ConverterException: Cannot get NumberFormat, illegal type 
> percentage
>       at 
> javax.faces.convert.NumberConverter.getNumberFormat(NumberConverter.java:162)
>       at 
> javax.faces.convert.NumberConverter.getAsString(NumberConverter.java:117)
>       at 
> org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:251)
>       at 
> org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:69)
>       at 
> org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:57)
>       at 
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> The implementation is expecting "percent"
> Which is correct?

-- 
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