Hi all,

I have a panel with some wicket:message keys with some text out of
property files and would like to input some variables in there with
values coming from a global configuration. What I do not want to do is
to create a label for each message just to provide my map for variable
substitution, I would like to have some more automatic approach.

I had a look at WicketMessageResolver and it's private
MessageContainer and the latter seems to be capable of doing variable
substitution from e.g. a default model of a component. The problem
seems to be that this only takes the direct parent of the
wicke:message-object into account which is some
TransparentMarkupContainer I don't seem to have access to. The parent
of that TransparentMarkupContainer is my panel, but I'm simply unable
to find any way to tell MessageContainer to use the default model of
my panel or something else I have provided.

I don't seem to understand how this is supposed to work as the
TransparentMarkupContainer is automatically created by Wicket and it
doesn't seem to me that it's parent component has any influence on the
created object to provide it with a default model or whatever.

Could you please enlighten me a bit again and tell me if it's possible
to achieve what I want at all and if so how?


Mit freundlichen Grüßen,

Thorsten Schöning

Thorsten Schöning       E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

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

Reply via email to