[ https://issues.apache.org/jira/browse/FLEX-17257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-17257. ---------------------------------- Resolution: Fixed Fix Version/s: Apache Flex 4.10.0 Checked into develop branch > DateValidator attachs the inputFormat on custom wrongLength parameters > ---------------------------------------------------------------------- > > Key: FLEX-17257 > URL: https://issues.apache.org/jira/browse/FLEX-17257 > Project: Apache Flex > Issue Type: Bug > Components: Validators > Affects Versions: Adobe Flex SDK 3.2 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: German > Reporter: Adobe JIRA > Fix For: Apache Flex 4.10.0 > > > The common known pattern for date formats in Germany looks like this: > short date: common known: TT.MM.JJ (technical: DD.MM.YY ) > long date: common known: TT.MM.JJJJ (technical: DD.MM.YYYY) > If you validate a date with the wrong length, the DateValidator adds a error > tooltip to the source. On the end of the tooltips is the defined input format > (technical pattern), but german users aren't familar the technical pattern. > They would expect the non technical pattern in the error tooltip. > In the Source code: > The DateValidator attachs the input format to the line 271 and line 343 the > error message of the ValidationResult. > Steps to reproduce: > 1. Using the DateValidator, overwriting the error messages > (wrongLengthError, formatError,.....) and overwriting the inputFormat. > <mx:DateValidator source="{txtDate}" property="text" > inputFormat="{resourceManager.getString('rb', 'dateFormat')} > wrongLengthError="{resourceManager.getString('rb', 'wrongLengthError')}"/> > 2. Typing a date into the Textnput with a wrongLength > 3. Validate the input with the DateValidator > > Actual Results: > > DateValidator creates a error tooltip with the wrongLength error message + > inputFormat > > Expected Results: > DateValidator creates a error tooltip with the wrongLength error message > If it's not possible to remove the input format be default from the error > message, boolean parameter to disable this attachment would be great. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira