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" <users@tapestry.apache.org> > 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]