Label label = new Label("pageTitle", new ResourceModel("pageTitle");
label.setRenderBodyOnly(true);
add(label);

<title wicket:id="pageTitle">[localized title</title>

On Sun, Sep 14, 2008 at 4:17 PM, Luther Baker <[EMAIL PROTECTED]> wrote:

> Is there a way to put a <wicket:message in the title tag?
>
> This keeps rendering:
>
> <title><wicket:message key="pageTitle">Placeholder
> Text</wicket:message></title>*
> *
> from this:
>
> <title><wicket:message key="pageTitle"/></title>*
> *
> Of course, it displays everything nested between the title tags:
> <wicket:message key="pageTitle">Valid Page Title</wicket:message> in the
> browser caption bar.
>
> The substitution happens just fine - but the <wicket ... text all appears
> in
> the title.
>
> This page talks
>
>
> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html
>
> talks about expanding in the attribute of an input but I don't see syntax
> to
> replace the whole thing. I tried this but not luck: <wicket:message
> key="pageTitle"/>.
>
> I read somewhere that I can turn off all the "wicket" syntax from showing
> up
> on the page ... do I need to do that or is there a defined way to use the
> <wicket:message mechanism in the title?
>
> I could also try the Label object in the Java - but hoping to use the
> .properties file.
>
> Thanks,
>
> -Luther
>



-- 
Ryan Gravener
http://twitter.com/ryangravener

Reply via email to