[
https://issues.apache.org/jira/browse/WICKET-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660195#action_12660195
]
Juergen Donnerstag commented on WICKET-1888:
--------------------------------------------
Though this is true, you still can defined your own "Required" string. Please
see ValidatorPropertiesTest for some examples. Assume
MyPage.myPanel.myForm.myTextfield
you could still do any of the following:
MyPage.properties: myPanel.myForm.myTextfield.Required = My Text
MyPage.properties: Required = My Text
MyPanel.properties: myForm.myTextfield.Required = My Text
MyPanel.properties: Required = My Text
MyTextField.properties: myTextfield.Required = My Text
MyTextField.properties: Required = My Text
> FormComponents (and subclasses) should be able to provide their own resource
> bundles
> ------------------------------------------------------------------------------------
>
> Key: WICKET-1888
> URL: https://issues.apache.org/jira/browse/WICKET-1888
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.3.4
> Reporter: Christian Oldiges
> Priority: Minor
>
> In order to fully support the idea to break down a large application into
> small reusable components it seems necessary that FormComponents provide
> their own resource bundles. We have a project that uses a customized subclass
> of Checkbox that needs to provide customized error messages. The ideal place
> for those error messages would be a resource bundle living next to the
> Checkbox subclass but this is not yet supported. Unfortunately the JavaDoc
> for ComponentStringResourceLoader indicates (see example: input1.properties
> => Required) that support for this already exists.
> A small change to FormComponent$MessageSource.getMessage(String key) could
> add support for this. Instead of using the formComponent.getParent() as the
> base for searching the resource string, simply use the formComponent itself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.