Your Internet Explorer version is not compatible with our shopping cart system. Please use version 9 or higher to avoid problems with your order(s). Close
The JSP Designer marks <f:convertNumber type=”percent” /> as “Value is not valid”. It does not reconize “percent” as an allowable value. Per the 1.1 spec, jsf-1_1-mr-spec section 9.4.4, tha allowable values are “number”, “currency” and “percent”.
MyFaces 1.1 TLD declare number, currency or percentage as valid values for this attribute.
Sun RI does not declare this attribute as enum, but it still has following comment:
Specifies how the number string will be formatted and parsed. Valid values are “number”, “currency”, and “percentage”. Default value is “number”.
Which is correct?
o “percent” – Documented in the 1.1 Spec and used by the MyFaces implementation
o “percentage” – Documented in the 1.1 TLD
I suspect the TLD is wrong.
Paul Spencer
I tested it, “percentage” is not supported. Looks like a bug in MyFaces. We will consider bundling newer MyFaces versions in next MyEclipse releases. It is likely they have this problem fixed.