Rob,

we will see what others say and if there is a standard way for this in wicket. I'm currently testing the implementation - it also replaces keys found in hierarchy, because Wickets Localizer is going to be used for each key which is going to be replaced. So the example of your first mail is also covered.

kind regards

Tobias

Am 21.02.15 um 16:37 schrieb Rob Sonke:
Tobias,

Somehow I'm missing your replies in gmail. But thanks for the suggestions.
Using custom models would be a last resort for me. Because I will have to
replace all occurences. I'm somehow hoping to hook into the localizer.

On Sat, Feb 21, 2015 at 2:01 PM, Rob Sonke <r...@tigrou.nl> wrote:

Hi all,

I'm trying to achieve a fairly simple thing within .properties files to
avoid a lot of duplicate words through different files.

For example there's is a HomePage.properties with:
lbl.foo=This is an example text, we love ${lbl.item}

And then in MyWebApplication.properties:
lbl.item=Wicket

But as far as I can see, Wicket tries to resolve the parameters with
objects passed to eg StringResourceModel. How can I hook into this and
solve this in a nice way?

Kind regards,
Rob



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to