On Fri, 13 Feb 2015 16:44:52 -0200, Poggenpohl, Daniel <daniel.poggenp...@isst.fraunhofer.de> wrote:

Hello,
why don't you try @InjectContainer? Or give the necessary information via parameters to the inner component?

Yep, an @InjectContainer private Object parentComponent; field will give you the parent component. You can change the field type and name, of course. :)

I agree 200% with Daniel: you should avoid manipulating the parent component directly as much as possible, as you're coupling one component to another, making the inner one just working when used inside a given other component.

You can pass information through parameters (recommended) or the Environment service (when parameters aren't enough).

Cheers!

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to