Re: [T5] getting current page in layout component
I found the answer in the archives. It's the componentResources which a method to return the pagename. Thanks anyway, Markus On Sat, Jul 26, 2008 at 9:08 PM, Shing Hing Man <[EMAIL PROTECTED]> wrote: > Have you tried the adding the following to your layout component java class ? > > @InjectContainer > private BasePage conatinerPage; > > (assuming all your pages java class are a subclass of BasePage.) > > Shing > > > > Home page : http://www.lombok.demon.co.uk/ > > > > --- On Sun, 27/7/08, Markus Joschko <[EMAIL PROTECTED]> wrote: > >> From: Markus Joschko <[EMAIL PROTECTED]> >> Subject: [T5] getting current page in layout component >> To: "Tapestry users" >> Date: Sunday, 27 July, 2008, 1:54 AM >> Hi all, >> is there a way to get the page that is rendered by the >> layout >> component from within the layout component? >> >> I have a menu in my layout component where I want to >> highlight the >> item that corresponds to the current page. >> I know that I can pass a parameter to the layout component >> but I'm >> somehow lazy and want to avoid to include this for every >> page, >> as the information must already be stored somewhere. >> >> Thanks, >> Markus >> >> - >> To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> For additional commands, e-mail: >> [EMAIL PROTECTED] > > > __ > Not happy with your email address?. > Get the one you really want - millions of new email addresses available now > at Yahoo! http://uk.docs.yahoo.com/ymail/new.html > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] getting current page in layout component
Have you tried the adding the following to your layout component java class ? @InjectContainer private BasePage conatinerPage; (assuming all your pages java class are a subclass of BasePage.) Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 27/7/08, Markus Joschko <[EMAIL PROTECTED]> wrote: > From: Markus Joschko <[EMAIL PROTECTED]> > Subject: [T5] getting current page in layout component > To: "Tapestry users" > Date: Sunday, 27 July, 2008, 1:54 AM > Hi all, > is there a way to get the page that is rendered by the > layout > component from within the layout component? > > I have a menu in my layout component where I want to > highlight the > item that corresponds to the current page. > I know that I can pass a parameter to the layout component > but I'm > somehow lazy and want to avoid to include this for every > page, > as the information must already be stored somewhere. > > Thanks, > Markus > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] getting current page in layout component
Hi all, is there a way to get the page that is rendered by the layout component from within the layout component? I have a menu in my layout component where I want to highlight the item that corresponds to the current page. I know that I can pass a parameter to the layout component but I'm somehow lazy and want to avoid to include this for every page, as the information must already be stored somewhere. Thanks, Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]