[ http://issues.apache.org/jira/browse/MYFACES-736?page=comments#action_12357791 ]
Mike Kienenberger commented on MYFACES-736: ------------------------------------------- It seems clear that the intended data type for numberConverter setters is "Number". That's probably why it's called convertNumber. :) Using any other type is going to cause problems since you don't know how the converter is going to return the value. It's trivial enough to use Number.floatValue() or Number.intValue() in your setter if you want a specific conversion. Other than that, your only option is to write your own converter. This issue should be marked Won't Fix, and the issue subject should probably be changed to "Number converter not working with arbitrary Number subclasses" > 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
