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

Martin Grigorov commented on WICKET-5663:
-----------------------------------------

Yet another way to make the "degree" field working is to have:
{code}
    <entry key="form.degree">Abschluss</entry>
{code}
without using setLabel() at all. 

The key could be "degree" (as the component id), "form.degree" (the component 
id prefixed with its parent component id to be more specific), etc.

> Wicket Validator Message Template values not translated/customized
> ------------------------------------------------------------------
>
>                 Key: WICKET-5663
>                 URL: https://issues.apache.org/jira/browse/WICKET-5663
>             Project: Wicket
>          Issue Type: Bug
>            Reporter: Thibault Kruse
>
> Wicket provides standard Validation Messages in diverse languages in form of 
> Application_xzy.properties in wicket core, e.g.
> {code}
> IConverter=The value of '${label}' is not a valid ${type}.
> {code}
> The problem we have is that {code}${label}{code} is apparently replaced with 
> the wicket:id of the field, and not the value of field.getLabel().
> For {code}${type}{code} we would need to be able to translate Typenames (such 
> as joda's YearMonth) to a localized String. Though that one we can probably 
> work around using specialized error messages as below.
> For now, our workaround is to overwrite the standard Error messages with 
> non-templated messages, having less informational value though, as they do 
> not include the label of the invalid field, e.g.
> {code:xml}
> <properties>
>     <entry key="IConverter.Partial">Bitte geben Sie ein gültiges Datum 
> an</entry>
> </properties>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to