You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org> on 2012/02/03 11:37:53 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13199633#comment-13199633 ] 

Martin Grigorov commented on WICKET-2128:
-----------------------------------------

Looking at o.a.w.Application.properties I think most of the messages should use something like "The value of '${label}' ..." instead of "${input} ..."
                
> 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: Igor Vaynberg
>            Priority: Minor
>             Fix For: 6.0.0
>
>
> 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