You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Adam Winer (JIRA)" <ad...@incubator.apache.org> on 2007/05/04 16:44:15 UTC

[jira] Assigned: (ADFFACES-427) Broken client decimal number validator

     [ https://issues.apache.org/jira/browse/ADFFACES-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer reassigned ADFFACES-427:
-----------------------------------

    Assignee: Matthias Weßendorf

> Broken client decimal number validator
> --------------------------------------
>
>                 Key: ADFFACES-427
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-427
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>         Environment: Windows XP
> Facelets 1.1.2
> Glassfish v2 b33
> 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Luka Surija
>         Assigned To: Matthias Weßendorf
>
> after switching from m1 to 1.0.1. snapshot, I realize that client validator for decimal numbers is broken.
> Settings in trinidad-config:
> <number-grouping-separator>.</number-grouping-separator>
> <decimal-separator>,</decimal-separator>
> In faces-config.xml:
> <locale-config>
>       <default-locale>hr_HR</default-locale>
>       <supported-locale>hr_HR</supported-locale>
>       <supported-locale>en</supported-locale>
> </locale-config>
> on code snippet:
> somevalue=7.54355
> Scenario 1:
> <tr:inputText value="#{somevalue}" >
>   <tr:convertNumber />
> </tr:inputText>
> <tr:commandButton />
> on value in inputText is shown: 7,54355, but clicking on button, alert window is open with message:
> Form validation failures:
> 7.54355 is not a number
> Scenario 2:
> <tr:inputText value="#{somevalue}" />
> <tr:commandButton />
> on value in inputText is shown: 7.54355 - not 7,54355
> Scenario 3:
> <tr:inputText value="#{somevalue}" >
>   <tr:convertNumber  pattern="0.00####"/>
> </tr:inputText>
> <tr:commandButton />
> on value in inputText is shown: 7,54355, and there is no client validation errors.
> On snapshot m1 it worked fine on "scenario 1". 

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