[ http://issues.apache.org/jira/browse/MYFACES-736?page=comments#action_12357512 ]
Sylvain Vieujot commented on MYFACES-736: ----------------------------------------- I didn't find how to fix this yet, but here is a workaround. As NumberFormat.parse returns either a Long or a Double, the workaroud way is : - For Integer values, use only Long or long accessor types. - For non Integer, use only Number (as an integer value, like 3, will return a Long, and a non integer, as 3.14 will return a Double). So, using a Double or double will fail for integer values. So, Number is the only safe way. > Number converter not working with Number > ---------------------------------------- > > Key: MYFACES-736 > URL: http://issues.apache.org/jira/browse/MYFACES-736 > Project: MyFaces > Type: Bug > Components: Implementation > Versions: Nightly > Reporter: Sylvain Vieujot > > If the backing bean setter takes a Number argument (Integer, Float, ...), the > converter fails : > Conversion Error "XXX: Error during model data update. > If the setter uses a primitive type, then it works fine. > This worked with the trunk version from September 30. > There must have been a change that broke it since. -- 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
