2
votes

Is it possible to plave value from properties file into tag parameter with wicket:message without using java. For example i have the following element <i class="ico ico-filter-code" data-toggle="tooltip" data-placement="top" title="" data-original-title="Sime title from properties file"></i>

Any suggestions?

1
Have you looked at wicket:message? - bert
I don't think it is possible to do it directly like that. A possible workaround would be populating the parameter using javascript, which sources the data from wicket:message. - Domas Poliakas
There is. See this link: pushinginertia.com/2011/08/… - Rob Audenaerde

1 Answers

3
votes

(In case the links die, here a full blown answer, rep should go to bert as his first comment is corrert :) )

You should use wicket:message For example:

<input
  type="submit"
  wicket:message="name:InputName,title:InputTitle"
/>

Will end up as:

<input type="submit" name="..." title="..."> 

Where the dots are filled from the propertyFile.

See also the Wicket documentation on i18n