You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Guillaume Smet (JIRA)" <ji...@apache.org> on 2015/05/08 14:37:59 UTC

[jira] [Created] (WICKET-5902) Allow to easily override the error key of a PatternValidator

Guillaume Smet created WICKET-5902:
--------------------------------------

             Summary: Allow to easily override the error key of a PatternValidator
                 Key: WICKET-5902
                 URL: https://issues.apache.org/jira/browse/WICKET-5902
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
            Reporter: Guillaume Smet


By default, PatternValidor builds its error message by including the pattern, which might be a complicated regexp.

In our applications, we often override the error message key to provide a user-compliant error message.

We currently do it by overriding decorate() but it would be simpler with a setter on PatternValidator.

PR to come.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)