You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martijn Dashorst (JIRA)" <ji...@apache.org> on 2012/05/08 12:23:50 UTC

[jira] [Resolved] (WICKET-2128) StringValidator error messages erroneously mention input instead of label

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

Martijn Dashorst resolved WICKET-2128.
--------------------------------------

    Resolution: Fixed
      Assignee: Martijn Dashorst  (was: Igor Vaynberg)
    
> 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
>            Assignee: Martijn Dashorst
>            Priority: Minor
>             Fix For: 6.0.0-RC1
>
>
> 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.
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