write your own tag handler. use wicket:message as a template. see
WicketMessageResolver and WicketMessageTagHandler

-igor

On Fri, Feb 17, 2012 at 8:36 PM, pkc <pkci...@gmail.com> wrote:
> 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=&quot;theThing&quot;>, and also here
> <wicket:call=&quot;theThing&quot;>, 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

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

Reply via email to