Hi Filip

That's a typo.  The Layout class name should read 'Layout' and not
'InnerLayout' but the relevant code is the same.

> A potential solution would be to use ComponentResources#getPage to get 
> your page in a getter and just use that in your layout.

Unfortunately, that won't work.  CompontResources#getPage returns
(org.apache.tapestry5.runtime.)Component, which doesn't expose the page's
properties. (See Howard's post at:
http://www.nabble.com/Re%3A--T5--Expansions---calling-page-methods-via-componentResources-p19006392.html)

I'm a bit confused by the terminology. I can't seem to find the docs on
@InjectContainer, but I assumed it injected the 'parent' of the component,
because the page is the root of the component tree.  Now now it seems that
it injects the contents of the layout?

There must be a way to do this...

Richard
-- 
View this message in context: 
http://www.nabble.com/-T5--Injecting-page-into-nested-layouts-tp19028771p19034207.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to