You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Toby Hobson <to...@btinternet.com> on 2008/05/16 16:15:57 UTC
Making a property available to nested components
Hi
I am looking to achieve something similar to the way in which JSP custom tags work - I would like to make a property of a component available to nested components/markup e.g.
TestPage.tml:
<t:container value="container">
hello ${container.user.name}
</t:container>
Container {
@Property
User user;
@PageAttached()
void attach() {
... load and process "user"
}
}
But i can't find a way to do this. I know it can be done because the loop component works like this.
Does anyone have any ideas?
Thanks
Toby