You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org> on 2006/05/31 18:42:32 UTC

[jira] Commented: (MYFACES-891) Broken number converter

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

Mario Ivankovits commented on MYFACES-891:
------------------------------------------

I commited a number converter to tomahawk sandbox which will automatically convert the value to the beans expected type

> Broken number converter
> -----------------------
>
>          Key: MYFACES-891
>          URL: http://issues.apache.org/jira/browse/MYFACES-891
>      Project: MyFaces Core
>         Type: Bug

>     Versions: 1.1.1
>  Environment: IBM Websphere CE, Windows XP, IBM JDK 1.4.2
>     Reporter: Routis Haralampos
>     Assignee: Martin Marinschek
>     Priority: Critical
>      Fix For: 1.1.2

>
> I have a managed bean that declares a Float property. If I register in a jsp the  number converter (in greek local)
> <f:convertNumber groupingUsed="true" maxFractionDigits="2" minFractionDigits="2"/>
> then I get
> a) for input =2,00  
>      error =javax.faces.el.EvaluationException: Cannot set value for expression '#{drugView.model.value}' to a new value of type java.lang.Long
> b) for input=2,31
>    error =javax.faces.el.EvaluationException: Cannot set value for expression '#{drugView.model.value}' to a new value of type java.lang.Double
> The code works fine in 1.1.0

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