I tried using Environment and it works..but i have a doubt A and B both are defined as component in my page...
code snippet is like : page.java -------- @Component private A a; @Component private B b; void beforeRender() { envoronment.push(A.class,a); } void afterRender() { environment.pop(A.class); } so does this ensure that when component B is called and i try to peek A from environment...A would already have been initialized and executed, so that i get valid ID ? nille hammer wrote: > > Hi Cid, > > I have just been to the toilett and have thought about your question. > Maybe you could nest component B in component A directly rather than in > the page? Example follows: > > in page.tml > ... > <t:a .../> > ... > > in a.tml > ... > <render the stuff from a> > <t:b parameter="valueFromA"> > ... > > Would that be an option? > > Regards, nillehammer > > == > http://www.winfonet.eu > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/access-component-variable-tp24240467p24269099.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org