You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org> on 2006/08/18 17:07:13 UTC

[jira] Created: (TOMAHAWK-610) convertNumberAsBigDecimal converter

convertNumberAsBigDecimal converter
-----------------------------------

                 Key: TOMAHAWK-610
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-610
             Project: MyFaces Tomahawk
          Issue Type: New Feature
          Components: New Component
            Reporter: Mike Kienenberger
         Assigned To: Mike Kienenberger


I will contribute a subclass of NumberConverter that converts numbers into BigDecimals and properly handles converting currency values (as this is the primary need for a BigDecimal-returning NumberConverter).

Joe Sam Shirah has agreed to grant ASF the license for the currency handling (the currency parser requires a currency symbol, but we don't want end users to have to input currency symbols unless they want to), and he'll attach this code to this issue.


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

        

[jira] Commented: (TOMAHAWK-610) Add currency symbol handling to Mario's sandbox numberConverter

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605476#action_12605476 ] 

Mike Kienenberger commented on TOMAHAWK-610:
--------------------------------------------

Other pitfalls to avoid when parsing currency values, also by Joe Sam Shirah:

http://www.ibm.com/developerworks/java/library/j-numberformat/index.html

> Add currency symbol handling to Mario's sandbox numberConverter
> ---------------------------------------------------------------
>
>                 Key: TOMAHAWK-610
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-610
>             Project: MyFaces Tomahawk
>          Issue Type: New Feature
>          Components: New Component
>            Reporter: Mike Kienenberger
>            Assignee: Mike Kienenberger
>         Attachments: JCFDP.java
>
>
> I will contribute a subclass of NumberConverter that converts numbers into BigDecimals and properly handles converting currency values (as this is the primary need for a BigDecimal-returning NumberConverter).
> Joe Sam Shirah has agreed to grant ASF the license for the currency handling (the currency parser requires a currency symbol, but we don't want end users to have to input currency symbols unless they want to), and he'll attach this code to this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOMAHAWK-610) convertNumberAsBigDecimal converter

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-610?page=comments#action_12429127 ] 
            
Mike Kienenberger commented on TOMAHAWK-610:
--------------------------------------------

Mario's numberConverter implementation is already there, so we'll use that.
It still needs the ability to convert currency values, and it needs to be rewritten to inherit from NumberConverter.
I'll work on these issues once Joe Sam has contributed the code.   (It'll probably be a couple of weeks in any case before I have time).

> convertNumberAsBigDecimal converter
> -----------------------------------
>
>                 Key: TOMAHAWK-610
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-610
>             Project: MyFaces Tomahawk
>          Issue Type: New Feature
>          Components: New Component
>            Reporter: Mike Kienenberger
>         Assigned To: Mike Kienenberger
>
> I will contribute a subclass of NumberConverter that converts numbers into BigDecimals and properly handles converting currency values (as this is the primary need for a BigDecimal-returning NumberConverter).
> Joe Sam Shirah has agreed to grant ASF the license for the currency handling (the currency parser requires a currency symbol, but we don't want end users to have to input currency symbols unless they want to), and he'll attach this code to this issue.

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

        

[jira] Commented: (TOMAHAWK-610) convertNumberAsBigDecimal converter

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-610?page=comments#action_12429107 ] 
            
Mario Ivankovits commented on TOMAHAWK-610:
-------------------------------------------

In the sandbox there is a numberconverter which will automatically detect the required destination type by looking at the value binding.
Might this not do the job too?


> convertNumberAsBigDecimal converter
> -----------------------------------
>
>                 Key: TOMAHAWK-610
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-610
>             Project: MyFaces Tomahawk
>          Issue Type: New Feature
>          Components: New Component
>            Reporter: Mike Kienenberger
>         Assigned To: Mike Kienenberger
>
> I will contribute a subclass of NumberConverter that converts numbers into BigDecimals and properly handles converting currency values (as this is the primary need for a BigDecimal-returning NumberConverter).
> Joe Sam Shirah has agreed to grant ASF the license for the currency handling (the currency parser requires a currency symbol, but we don't want end users to have to input currency symbols unless they want to), and he'll attach this code to this issue.

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