Hi,

Better use #renderHead(IHeaderResponse).

#renderHead(HtmlHeaderContainer) is for internal jobs. This is improved in
7.x to avoid such confusions.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Dec 10, 2015 at 7:44 AM, Martin Makundi <
[email protected]> wrote:

> Another way in overriding class:
>
> /**
>    * @see
>
> org.apache.wicket.Component#renderHead(org.apache.wicket.markup.html.internal.HtmlHeaderContainer)
>    */
>   @Override
>   public void renderHead(HtmlHeaderContainer container) {
>     super.renderHead(container);
>     getResponse().write("<title>" +
> application.getEmployee().getPerson().displayName() + "</title>");
>   }
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372p4672919.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]
>
>

Reply via email to