You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Paolo Di Tommaso <pa...@gmail.com> on 2006/12/18 18:14:05 UTC
Dinamically change header title
How to change an page header title?
Is it possible to make something like this:
<wicket:head>
<title wicket:id="title"> my dinamic title </title>
</wicket:head>
But how to map then in code?
Or does exist another API method?
Thank you,
Paolo
Re: Dinamically change header title
Posted by Erik van Oosten <e....@chello.nl>.
Hi Paolo,
Just add(new Label("title", "new title value"));
Regards,
Erik.
Paolo Di Tommaso schreef:
> How to change an page header title?
>
> Is it possible to make something like this:
>
> <wicket:head>
> <title wicket:id="title"> my dinamic title </title>
> </wicket:head>
>
>
> But how to map then in code?
>
> Or does exist another API method?
>
>
> Thank you,
>
>
> Paolo
>
--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
Re: Dinamically change header title
Posted by Nick Heudecker <nh...@gmail.com>.
Also, this message should be sent to user list instead of the developer
list. Thanks.
On 12/18/06, Igor Vaynberg <ig...@gmail.com> wrote:
>
> add(new Label("title", "hello"));
>
> -igor
>
>
> On 12/18/06, Paolo Di Tommaso <pa...@gmail.com> wrote:
> >
> > How to change an page header title?
> >
> > Is it possible to make something like this:
> >
> > <wicket:head>
> > <title wicket:id="title"> my dinamic title </title>
> > </wicket:head>
> >
> >
> > But how to map then in code?
> >
> > Or does exist another API method?
> >
> >
> > Thank you,
> >
> >
> > Paolo
> >
> >
>
>
Re: Dinamically change header title
Posted by Paolo Di Tommaso <pa...@gmail.com>.
Just the Wicket way .. obviously ..
Thanks to all
Paolo
On 12/18/06, Igor Vaynberg <ig...@gmail.com> wrote:
>
> add(new Label("title", "hello"));
>
> -igor
>
>
>
Re: Dinamically change header title
Posted by Igor Vaynberg <ig...@gmail.com>.
add(new Label("title", "hello"));
-igor
On 12/18/06, Paolo Di Tommaso <pa...@gmail.com> wrote:
>
> How to change an page header title?
>
> Is it possible to make something like this:
>
> <wicket:head>
> <title wicket:id="title"> my dinamic title </title>
> </wicket:head>
>
>
> But how to map then in code?
>
> Or does exist another API method?
>
>
> Thank you,
>
>
> Paolo
>
>
Re: Dinamically change header title
Posted by Nick Heudecker <nh...@gmail.com>.
I have a setPageTitle(String) method in my base Page class that can be
called from subclasses.
On 12/18/06, Paolo Di Tommaso <pa...@gmail.com> wrote:
>
> How to change an page header title?
>
> Is it possible to make something like this:
>
> <wicket:head>
> <title wicket:id="title"> my dinamic title </title>
> </wicket:head>
>
>
> But how to map then in code?
>
> Or does exist another API method?
>
>
> Thank you,
>
>
> Paolo
>
>