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 2009/07/03 17:50:47 UTC

[jira] Reopened: (WICKET-2350) Localization messages stops working with validators since 1.4-rc2

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

Igor Vaynberg reopened WICKET-2350:
-----------------------------------


rethinking this. using field.key is handy in more global property files. need to try to find and revisit the reasons why this was removed.

> Localization messages stops working with validators since 1.4-rc2
> -----------------------------------------------------------------
>
>                 Key: WICKET-2350
>                 URL: https://issues.apache.org/jira/browse/WICKET-2350
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2, 1.4-RC4, 1.4-RC5
>            Reporter: Major Peter
>            Assignee: Igor Vaynberg
>         Attachments: validation-quickstart.zip
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> With the previous 1.3.6 and 1.4-rc1 releases I was capable to restrict a localization message for a validation to only one wicket id e.g. :
> in foobar.java
> RequiredTextField nameTF = new RequiredTextField("name");
> nameTF.add(StringValidator.lengthBetween(2, 255));
> nameTF.add(new PatternValidator("[^|:]*"));
> and in foobar.properties
> name.Required=some text
> name.StringValidator.range=some other text
> name.PatternValidator=some other text again
> So, like this I could have to create an another RequiredTextField named "password", and attach to it a different localization message (for example "password.Required=blabla").
> But somehow with the 1.4-rc2-5 it looks like that this function is broken, it only recognizes the localization text, when I remove the "name." prefix from my property.

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