You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org> on 2006/03/18 17:49:58 UTC

[jira] Created: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

NumberTranslator doesn't allow digit grouping separators to be specified
------------------------------------------------------------------------

         Key: TAPESTRY-887
         URL: http://issues.apache.org/jira/browse/TAPESTRY-887
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 4.0    
    Reporter: Leonardo Quijano Vincenzi


Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:

translator="number,pattern=##,##.00" 

would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-887?page=all ]

Jesse Kuhnert updated TAPESTRY-887:
-----------------------------------

    Fix Version/s: 4.1.2

> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>                 Key: TAPESTRY-887
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-887
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Leonardo Quijano Vincenzi
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-887:
-----------------------------------

    Fix Version/s:     (was: 4.1.5)
                   4.1.6

> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>                 Key: TAPESTRY-887
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-887
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Leonardo Quijano Vincenzi
>            Priority: Minor
>             Fix For: 4.1.6
>
>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-887?page=comments#action_12371246 ] 

Leonardo Quijano Vincenzi commented on TAPESTRY-887:
----------------------------------------------------

Added a Hivemind issue that fixes this:

http://issues.apache.org/jira/browse/HIVEMIND-172



> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>          Key: TAPESTRY-887
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-887
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Leonardo Quijano Vincenzi
>     Priority: Minor

>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-887:
-----------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.1.3

> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>                 Key: TAPESTRY-887
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-887
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Leonardo Quijano Vincenzi
>            Priority: Minor
>             Fix For: 4.1.3
>
>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-887?page=comments#action_12371005 ] 

Leonardo Quijano Vincenzi commented on TAPESTRY-887:
----------------------------------------------------

AFAIK, TranslatorBinding uses a StringTokenizer to parse the text. An escape char is needed for this to work.
As for the workaround, yes, there it is. But the main reason of the shortcut is to be able to specify the translator "inline", instead of having to declare a bean for every page that uses this translator. Imagine a 500+ page application.


> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>          Key: TAPESTRY-887
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-887
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Leonardo Quijano Vincenzi
>     Priority: Minor

>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-887:
-----------------------------------

    Fix Version/s:     (was: 4.1.3)
                   4.1.4

> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>                 Key: TAPESTRY-887
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-887
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Leonardo Quijano Vincenzi
>            Priority: Minor
>             Fix For: 4.1.4
>
>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Paul Ferraro (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-887?page=all ]

Paul Ferraro updated TAPESTRY-887:
----------------------------------

    Priority: Minor  (was: Major)

To clarify, this is a limitation of the TranslatorBinding, not the NumberTranslator itself.
You can always specify the NumberTranslator as a bean and reference it as such.
e.g.

<bean name="number" class="org.apache.tapestry.form.translator.NumberTranslator">
    <set name="pattern" value="literal:#,###.00"></set>
</bean>


<input jwcid="@TextField" ... translator="bean:number"/>

I'm downgrading the priority since this issue has a clear workaround.

> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>          Key: TAPESTRY-887
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-887
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Leonardo Quijano Vincenzi
>     Priority: Minor

>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Updated: (TAPESTRY-887) NumberTranslator doesn't allow digit grouping separators to be specified

Posted by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Schulte updated TAPESTRY-887:
------------------------------------

    Fix Version/s:     (was: 4.1.6)
                   4.1.7

> NumberTranslator doesn't allow digit grouping separators to be specified
> ------------------------------------------------------------------------
>
>                 Key: TAPESTRY-887
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-887
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Leonardo Quijano Vincenzi
>            Priority: Minor
>             Fix For: 4.1.7
>
>
> Currently, NumberTranslator doesn't allow the use of the digit separator ("," in USA, the digit separator in other countries) in the pattern area. For example:
> translator="number,pattern=##,##.00" 
> would throw an error. There's no way to escape it, either. This causes a problem when translating formatted numbers (specially after Javascript formatting).
>  

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org