But my problem is parent does not have any knowledge of the child. Child is either contained in the body somewhere or in an override block
e.g Parent <t:container> <t:body> </t:container> Later in use <t:parent> <t:someChild/> </t:parent> so, parameters is not an option regards Taha On Mon, Apr 11, 2011 at 9:04 PM, Christian Köberl < [email protected]> wrote: > You could use parameters - Tapestry keeps them always in sync: > > public class Parent > { > // here Parent's state is bound to Child's state > @Component(parameters = "state=state") > private Child child; > > @Property > private String state; > } > > public class Child > { > @Parameter > private String state; > } > > see also http://tapestry.apache.org/component-parameters.html > > -- > Chris > > -- > View this message in context: > http://tapestry-users.832.n2.nabble.com/Components-communication-with-nested-components-tp6261431p6261909.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
