Re: AW: How to get container inside self written component

2015-02-16 Thread Lance Java
In my opinion, @InjectContainer is a bit fragile. I think you're much better off using the Environment or a component parameter. Let's consider a future case where you want to render the child component in a loop (or maybe an 'if' component). In this case the parent will be the loop/if and it

AW: How to get container inside self written component

2015-02-13 Thread Poggenpohl, Daniel
Hello, why don't you try @InjectContainer? Or give the necessary information via parameters to the inner component? Regards, Daniel Poggenpohl Von: Erich Gormann [e.gorm...@gormann.de] Gesendet: Freitag, 13. Februar 2015 18:51 An: Tapestry users Betreff:

Re: AW: How to get container inside self written component

2015-02-13 Thread Thiago H de Paula Figueiredo
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