I'm using wicket page inheritance to take care of consistent look and feel
for pages but I'm stuck on one detail...
In the markup for a WebPage, I need to insert dynamic text in lots of
places. What is the closest wicket has to something like this:
<html><body>add text here <wicket:call="theThing">, and also here
<wicket:call="theThing">, and in a few other places
too.</body></html>
class ExamplePage extends WebPage{
String xyz;
...
public String getTheThing(){ return xyz + new Date().toString(); }
}
I was thinking adding a label and turning off the tags, or maybe use
wicket:message somehow? I am looking for a concise way to do it.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-as-a-templating-engine-tp4399165p4399165.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]