Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localizing HTML submit button label in Wicket

Tags:

html

wicket

How do I put a localized message on the face of a submit button? I am using Wicket, and normally to use a localized message, I'd use something like <wicket:message key="message-key"/>

I have an HTML button defined as <input type="submit" value="login"/>

I want to localize/internationalize the value 'login'

Any ideas?

like image 510
joshua Avatar asked Nov 11 '10 15:11

joshua


1 Answers

From https://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket:

If you want to use Wicket's i18n in other HTML elements, for example:

<input type="submit" value="Search"/>

You can't use the <wicket:message/> component, you should use the following:

<input type="submit" wicket:message="value:page.search"/>
like image 79
Geoff Reedy Avatar answered Sep 21 '22 10:09

Geoff Reedy