|
From: Danie R. (JIRA) <no...@at...> - 2006-11-01 15:27:01
|
Inline validation of Integer fields
-----------------------------------
Key: RCP-438
URL: http://opensource.atlassian.com/projects/spring/browse/RCP-438
Project: Spring Framework Rich Client Project
Type: Bug
Components: Binding System
Versions: 0.2.1
Reporter: Danie Roux
Validation does not execute after initial key-press.
For example:
Fails validation
a9999
.09js
Passes validation
9aaaa
1.2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|
|
From: Aaron D. (JIRA) <no...@at...> - 2006-11-15 14:20:50
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-438?page=comments#action_20847 ] Aaron Digulla commented on RCP-438: ----------------------------------- This is the standard Java number parser. It will stop parsing as soon as it detects an illegal character but won't complain (unless it's the first character of the string). It's a feature. My guess is that they need this behavior to parse dates where a parent parser uses child parsers to munge through the input. > Inline validation of Integer fields > ----------------------------------- > > Key: RCP-438 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-438 > Project: Spring Framework Rich Client Project > Type: Bug > Components: Binding System > Versions: 0.2.1 > Reporter: Danie Roux > > Validation does not execute after initial key-press. > For example: > Fails validation > a9999 > .09js > Passes validation > 9aaaa > 1.2 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
From: Yudhi W. (JIRA) <no...@at...> - 2007-07-26 13:47:59
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yudhi Widyatama updated RCP-438:
--------------------------------
Attachment: RCP-438.patch
I think this issue is rooted on the fact that NumberFormat.parse(String) parses from the start of the String and doesn't throw any exception on partial parses (the number stopped before the end of the String). The method NumberFormat.parse(String,ParsePosition) must be used if we want to know whether the parse completed for the whole String. There is some possible solution to this, we could either modify org.springframework.util.NumberUtils.parse, or modify org.springframework.binding.format.support.NumberFormatter.doParseValue, or decorate the java.text.NumberFormat so it throws ParseException when encountering partial parses.
This patch proposes a solution using the last approach, by decorating a NumberFormat, creating a customized FormatterFactory extending SimpleFormatterFactory, and changing DefaultConversionServiceFactoryBean so it uses the customized factory as a default FormatterFactory.
> Inline validation of Integer fields
> -----------------------------------
>
> Key: RCP-438
> URL: http://opensource.atlassian.com/projects/spring/browse/RCP-438
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Components: Binding System
> Affects Versions: 0.2.1
> Reporter: Danie Roux
> Attachments: RCP-438.patch
>
>
> Validation does not execute after initial key-press.
> For example:
> Fails validation
> a9999
> .09js
> Passes validation
> 9aaaa
> 1.2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Peter De B. (JIRA) <no...@at...> - 2007-12-18 08:21:21
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter De Bruycker updated RCP-438:
----------------------------------
Assignee: Peter De Bruycker
Remaining Estimate: 0d
Original Estimate: 0d
> Inline validation of Integer fields
> -----------------------------------
>
> Key: RCP-438
> URL: http://opensource.atlassian.com/projects/spring/browse/RCP-438
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Components: Binding System
> Affects Versions: 0.2.1
> Reporter: Danie Roux
> Assignee: Peter De Bruycker
> Attachments: RCP-438.patch
>
> Original Estimate: 0d
> Remaining Estimate: 0d
>
> Validation does not execute after initial key-press.
> For example:
> Fails validation
> a9999
> .09js
> Passes validation
> 9aaaa
> 1.2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Jan H. (JIRA) <no...@sp...> - 2008-03-04 14:21:09
|
[ http://jira.springframework.org/browse/RCP-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Hoskens closed RCP-438.
---------------------------
Assignee: Jan Hoskens (was: Peter De Bruycker)
Resolution: Fixed
Fix Version/s: 1.0.0
Fixed in
http://spring-rich-c.svn.sourceforge.net/viewvc/spring-rich-c?view=rev&revision=1996
Thanks for the patch
> Inline validation of Integer fields
> -----------------------------------
>
> Key: RCP-438
> URL: http://jira.springframework.org/browse/RCP-438
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Components: Binding System
> Affects Versions: 0.2.1
> Reporter: Danie Roux
> Assignee: Jan Hoskens
> Fix For: 1.0.0
>
> Attachments: RCP-438.patch
>
> Original Estimate: 0d
> Remaining Estimate: 0d
>
> Validation does not execute after initial key-press.
> For example:
> Fails validation
> a9999
> .09js
> Passes validation
> 9aaaa
> 1.2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|