IIUC, Wicket offers a way to "override" message keys of components.
Consider for instance a page with the following markup
<!-- Page.html contains: -->
<div wicket:id="a">
<div wicket:id="b">
with corresponding Java code
// in Page constructor
add(new MyPanel("a"));
add(new MyPanel("b"));
If MyPanel.html contains
<wicket:panel>
<div wicket:id="somediv">
<wicket:message key="msg"/>
</div>
</wicket:panel>
Then I can "override" the msg in my Page.properties using
a.somediv.msg=msg a
b.somediv.msg=msg b
However, if the library designer of MyPanel changes the markup to for
instance
<wicket:panel>
<wicket:message key="msg"/>
<div wicket:id="somediv">
</div>
</wicket:panel>
then I, the user of library MyPanel, am forced to change a.somediv.msg
to a.msg, etc.
Is there a way around this (without adding code for the
<wicket:message>'s)?
Kaspar
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]