[
https://issues.apache.org/jira/browse/WICKET-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg updated WICKET-2128:
----------------------------------
Fix Version/s: 1.5-M3
(was: 1.5-M2)
> StringValidator error messages erroneously mention input instead of label
> -------------------------------------------------------------------------
>
> Key: WICKET-2128
> URL: https://issues.apache.org/jira/browse/WICKET-2128
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: any
> Reporter: Rodrigo
> Priority: Minor
> Fix For: 1.5-M3
>
>
> Using a StringValidator.MaximumLengthValidator (or any flavor of the
> StringValidator class), the reported errors are currently under the form:
> StringValidator.minimum='${input}' is shorter than the minimum of ${minimum}
> characters.
> which creates odd messages where the content of the field is mentionned
> instead of the field label.
> Example:
> * 'Joe' is shorter than the minimum of 5 characters.
> should be
> * The field 'Name' should be at least 5 characters long
> This is specially important in password fields, where the StringValidator is
> not usable because it displays the input in clear text on the web page:
> * 'x4eR4*z' is shorter than the minimum of 5 characters.
> should be
> * The field 'Password' should be at least 5 characters long
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.