Hi,
You need to set the label model on your FormComponent, component id is
used as a fallback.
See Wicket guide:
https://ci.apache.org/projects/wicket/guide/8.x/single.html#_feedback_messages_and_localization
Kind regards,
Florian Lacreuse
Le 28/01/2019 à 10:43, Zbynek Vavros a écrit :
So I am using localized version of validation message for required fields
Required=My custom message for field '${label}'
but the resulting message contains field ID as parameters and result is i.e.
"My custom message for field 'password'"
since the whole page is not in English I would like to have the parameter
localized as well.
Some of the users do not speak English and they would not understand what
"password" is.
I see in code of org.apache.wicket.markup.html.form.FormComponent
that the component's getId() is used as parameter. Any way to customize
this?
I can surely use validation message for this specific field with key i.e.
"password.Required"
but I would like to be more generic.
Thanks,
Zbynek
--
Kobalt <https://www.kobalt.fr/>
Florian Lacreuse
Lead developer · Expert Java / UX
06 95 57 48 57
www.kobalt.fr <https://www.kobalt.fr/>