myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yee-Wah Lee (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TRINIDAD-2331) convertNumber component does not work with target type of BigInteger
Date Thu, 25 Oct 2012 17:31:13 GMT
Yee-Wah Lee created TRINIDAD-2331:
-------------------------------------

             Summary: convertNumber component does not work with target type of BigInteger
                 Key: TRINIDAD-2331
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2331
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 2.0.1-core
            Reporter: Yee-Wah Lee
            Priority: Minor


            <af:inputText label="BigInteger number converter"
                          value="#{testValidate.bigInt}"
                          id="bigintegernumberconverter">
              <af:convertNumber/>
            </af:inputText>

Bind testValidate.bigInt to return an instance of java.math.BigInteger. 

The converter will fail with TypeConversionException even though isAssignable() returns true.
This is because the convert() method does not implement the conversion. The fix should be
similar to Trinidad-372 for BigDecimal. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message