You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Created) (JIRA)" <ji...@apache.org> on 2012/04/17 13:28:16 UTC

[jira] [Created] (WICKET-4501) NumberTextField renders its value in unsupported number format

NumberTextField<BigDecimal> renders its value in unsupported number format 
---------------------------------------------------------------------------

                 Key: WICKET-4501
                 URL: https://issues.apache.org/jira/browse/WICKET-4501
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5.5
            Reporter: Martin Grigorov


The issue is similar to WICKET-3591 but its fix doesn't help when the model object of the NumberTextField is a BigDecimal because BigDecimalConverter#convertToString() produces something like "123, 456, 789" and this is not supported by <input type="number">'s spec: http://dev.w3.org/html5/markup/datatypes.html#common.data.float.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WICKET-4501) NumberTextField renders its value in unsupported number format

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4501.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.0.0-RC1
                   1.5.6
         Assignee: Martin Grigorov

Fixed by applying Christoph's patch.
                
> NumberTextField<BigDecimal> renders its value in unsupported number format 
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-4501
>                 URL: https://issues.apache.org/jira/browse/WICKET-4501
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.5
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5.6, 6.0.0-RC1
>
>         Attachments: WICKET-4501.patch, number-field.tgz
>
>
> The issue is similar to WICKET-3591 but its fix doesn't help when the model object of the NumberTextField is a BigDecimal because BigDecimalConverter#convertToString() produces something like "123, 456, 789" and this is not supported by <input type="number">'s spec: http://dev.w3.org/html5/markup/datatypes.html#common.data.float.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WICKET-4501) NumberTextField renders its value in unsupported number format

Posted by "Sven Meier (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259595#comment-13259595 ] 

Sven Meier commented on WICKET-4501:
------------------------------------

I was tinkering with something similar but new Locale("en", "", "wicket-html5") didn't came to my mind.

Nice solution Christoph :).
                
> NumberTextField<BigDecimal> renders its value in unsupported number format 
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-4501
>                 URL: https://issues.apache.org/jira/browse/WICKET-4501
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.5
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5.6, 6.0.0-RC1
>
>         Attachments: WICKET-4501.patch, number-field.tgz
>
>
> The issue is similar to WICKET-3591 but its fix doesn't help when the model object of the NumberTextField is a BigDecimal because BigDecimalConverter#convertToString() produces something like "123, 456, 789" and this is not supported by <input type="number">'s spec: http://dev.w3.org/html5/markup/datatypes.html#common.data.float.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WICKET-4501) NumberTextField renders its value in unsupported number format

Posted by "Christoph Leiter (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph Leiter updated WICKET-4501:
-------------------------------------

    Attachment: WICKET-4501.patch

This patch uses a special locale for which the grouping of digits can be disabled without changing global behavior.
                
> NumberTextField<BigDecimal> renders its value in unsupported number format 
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-4501
>                 URL: https://issues.apache.org/jira/browse/WICKET-4501
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.5
>            Reporter: Martin Grigorov
>         Attachments: WICKET-4501.patch, number-field.tgz
>
>
> The issue is similar to WICKET-3591 but its fix doesn't help when the model object of the NumberTextField is a BigDecimal because BigDecimalConverter#convertToString() produces something like "123, 456, 789" and this is not supported by <input type="number">'s spec: http://dev.w3.org/html5/markup/datatypes.html#common.data.float.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WICKET-4501) NumberTextField renders its value in unsupported number format

Posted by "Martin Grigorov (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov updated WICKET-4501:
------------------------------------

    Attachment: number-field.tgz

A quickstart that demonstrates the problem.
Enter a number with at least 4 digits and submit.
                
> NumberTextField<BigDecimal> renders its value in unsupported number format 
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-4501
>                 URL: https://issues.apache.org/jira/browse/WICKET-4501
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.5
>            Reporter: Martin Grigorov
>         Attachments: number-field.tgz
>
>
> The issue is similar to WICKET-3591 but its fix doesn't help when the model object of the NumberTextField is a BigDecimal because BigDecimalConverter#convertToString() produces something like "123, 456, 789" and this is not supported by <input type="number">'s spec: http://dev.w3.org/html5/markup/datatypes.html#common.data.float.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira