Hi BernhardHave a look at StringResourceModel, though I think it's not possible to use it directly with <wicket:message> but you can use it easily in a label.
It supports both MessageFormat style and model-style replacements.
Matt Bernhard Grünewaldt wrote:
Hello, I am using a properties.xml file for my wicket:message tags. And soon I wondered if there is a way to parameterize these messages, like it worked for apache struts. With wicket I can just say <entry key="test">foo</entry> and use <wicket:message key="test" /> In Struts something like mymessage = foo {0} - and - <bean:message key="mymessage " arg0="bar"/> was possible, which produced "foo bar" Is there already a way to do this? And if not, do you think it is worth being implemented?I searched the mailing lists and the wiki fo a solution but didn't find something similar.thx, Bernhard Grünewaldt --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
smime.p7s
Description: S/MIME Cryptographic Signature
