You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/10/30 06:57:44 UTC

[jira] Resolved: (WICKET-1103) Allow custom validators to provide their own resourcebundles

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

Igor Vaynberg resolved WICKET-1103.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.5-M1)
                   1.4-M4

both validator bundles and package bundles are now picked up.

there was already some support for package bundles (package.properties) but it would only search against the actual component, not its whole component hieararchy. this was pretty useless because most of the time errors are reported against core components eg textfield and so only core packages would be searched for package.properties files, this has been fixed.

> Allow custom validators to provide their own resourcebundles
> ------------------------------------------------------------
>
>                 Key: WICKET-1103
>                 URL: https://issues.apache.org/jira/browse/WICKET-1103
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4-M1
>            Reporter: Martijn Dashorst
>            Assignee: Igor Vaynberg
>             Fix For: 1.4-M4
>
>
> Basically allow the following to work:
> public class MyValidator extends AbstractValidator {
>    protected void onValidate(IValidatable v) {
>        error(v);
>    }
> }
> MyValidator.properties
> MyValidator=${label} is invalid
> MyValidator_nl.properties
> MyValidator=${label} is niet goed
> Igor also asked for package level resource bundles

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.