You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Patrick Davids <pa...@nubologic.com> on 2014/07/21 10:27:15 UTC

[SOLVED] Re: StringResourceModel with a defaultValue as model

Yes, already implemented this way. :-)
Added a todo now, waiting for wicket7 to improve it.
Thanx for the hint anyway...

regards
Patrick

 >For now you can workaround it with: add(new Label("aaaa", new 
 >StringResourceModel("key.${someInfoFromBean}",
 >Component.this, Model.of(anyBean), new
 >StringResourceModel("key.default", Component.this).*getObject()*));



Am 21.07.2014 09:43, schrieb Martin Grigorov:
> For now you can workaround it with:
>   add(new Label("aaaa", new StringResourceModel("key.${someInfoFromBean}",
> Component.this, Model.of(anyBean), new
> StringResourceModel("key.default", Component.this).*getObject()*));