Re: How to get container inside self written component

2015-02-19 Thread Lance Java
> Its working now as long my form components not rendered in loops or grids Hmm... I'd call that broken ;)

Re: How to get container inside self written component

2015-02-17 Thread Thiago H de Paula Figueiredo
On Tue, 17 Feb 2015 17:01:15 -0200, Erich Gormann wrote: Hi all, Hi! thanks for your precious hints. For this time @InjectContainer is sufficient for my needs. Its all about self written input field components, which render behavior is controlled by user permissions determining if a us

Re: How to get container inside self written component

2015-02-17 Thread Erich Gormann
Thiago H de Paula Figueiredo Datum:13.02.2015 21:03 (GMT+01:00) An: Tapestry users Betreff: Re: How to get container inside self written component On Fri, 13 Feb 2015 17:26:25 -0200, Erich Gormann wrote: Hi Thiago, Hi! I see what you mean, but I did not want to manipulate the containerco

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

2015-02-17 Thread Thiago H de Paula Figueiredo
On Mon, 16 Feb 2015 18:43:18 -0200, Erich Gormann wrote: OK, I'm not experienced in the InjectContainer annotation, but it seems that one have to write it on each embedded component? Yes. I have to figure out. The original intention was that the component's container must not be menti

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 won't

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

2015-02-16 Thread Chris Mylonas
even not in an annotation. Von Samsung Mobile gesendet Ursprüngliche Nachricht Von: Thiago H de Paula Figueiredo Datum:13.02.2015 21:03 (GMT+01:00) An: Tapestry users Betreff: Re: How to get container inside self written component On Fri, 13 Feb 2015 17:26:25 -0200, Erich Gorm

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

2015-02-16 Thread Erich Gormann
e gesendet Ursprüngliche Nachricht Von: Thiago H de Paula Figueiredo Datum:13.02.2015 21:03 (GMT+01:00) An: Tapestry users Betreff: Re: How to get container inside self written component On Fri, 13 Feb 2015 17:26:25 -0200, Erich Gormann   wrote: > Hi Thiago, Hi! >

Re: How to get container inside self written component

2015-02-13 Thread Thiago H de Paula Figueiredo
On Fri, 13 Feb 2015 17:26:25 -0200, Erich Gormann wrote: Hi Thiago, Hi! I see what you mean, but I did not want to manipulate the container component, but only wanted to look up if a certain (self written) annotation is present on it and then let the embedded component to do certain

Re: How to get container inside self written component

2015-02-13 Thread Thiago H de Paula Figueiredo
One last comment: you mentioned self-written component. For Tapestry, there's absolutely no distinction at all at the components provided out-of-the-box and the components you write. All components, regardless of origin, are treated and work the same. -- Thiago H. de Paula Figueiredo Tapest

Re: How to get container inside self written component

2015-02-13 Thread Erich Gormann
Hi Thiago, I see what you mean, but I did not want to manipulate the container component, but only wanted to look up if a certain (self written) annotation is present on it and then let the embedded component to do certain things. According to my opinion that would be a nice way to get infor

Re: How to get container inside self written component

2015-02-13 Thread Thiago H de Paula Figueiredo
On Fri, 13 Feb 2015 17:01:06 -0200, Erich Gormann wrote: Hello Daniel, I wanted to avoid an additional parameter, because there are already some parameters and if there would another way to manage it, this would be better. You're much better off with another parameter then accessing th

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 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 ch

Re: How to get container inside self written component

2015-02-13 Thread Erich Gormann
rs Betreff: How to get container inside self written component Hi all, seems to be a simple task, but I did not manage it right now. I'm working with a self written component. Inside the code of this component I want to retrieve information about the outer component (container), my component is

AW: How to get container inside self written component

2015-02-13 Thread Poggenpohl, Daniel
treff: How to get container inside self written component Hi all, seems to be a simple task, but I did not manage it right now. I'm working with a self written component. Inside the code of this component I want to retrieve information about the outer component (container), my component is curr

How to get container inside self written component

2015-02-13 Thread Erich Gormann
Hi all, seems to be a simple task, but I did not manage it right now. I'm working with a self written component. Inside the code of this component I want to retrieve information about the outer component (container), my component is currently used in. I tried the service ComponentSource, but