On Fri, 07 Dec 2012 10:51:44 -0200, captain_rhino
wrote:
Embedded components
It's a little weird to talk in Tapestry about embedded components because
all components can be used inside another component and pages are 99% the
same as components.
How can I pass the Text field component
Hi,
first remove the id parameter from the @Component annotation; this is
only needed if the field name in the java class is different from the
t:id attribute in the template.
second because you already defined your component in the template you
don't have to declare it in your java class; so you
You can cast a component to type org.apache.tapestry.runtime.Component
(this interface is added to component classes at runtime). You can
than access the component's ComponentResources, including embedded
components.
This is not advised; it is possible (in much the way you can use
reflection to