[
https://issues.apache.org/jira/browse/WICKET-2350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Major Peter updated WICKET-2350:
--------------------------------
Attachment: validation-quickstart.zip
This is a quickstart to show the problem.
> 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-RC3, 1.4-RC4, 1.4-RC5
> Reporter: Major Peter
> Fix For: 1.3.5, 1.3.6, 1.4-RC1
>
> 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-rc3-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.