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

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

    [ https://issues.apache.org/jira/browse/WICKET-5902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14534431#comment-14534431 ] 

ASF GitHub Bot commented on WICKET-5902:
----------------------------------------

GitHub user gsmet opened a pull request:

    https://github.com/apache/wicket/pull/117

    WICKET-5902 Allow to easily override the PatternValidator error message

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/openwide-java/wicket WICKET-5902

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/wicket/pull/117.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #117
    
----
commit 3eb7ab1b68707e85b1dbdc44b559d77ca2f963f4
Author: Guillaume Smet <gu...@gmail.com>
Date:   2015-05-08T12:34:54Z

    WICKET-5902 Allow to easily override the PatternValidator error message

----


> 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)