[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: access component from mixin
From: Inge Solvoll <inge.tapestry () gmail ! com>
Date: 2009-03-31 21:38:27
Message-ID: 7b14dd060903311438ibfd84e7jc328b2626b29fb2b () mail ! gmail ! com
[Download RAW message or body]
I think this is the "standard" way of getting the clientId of the mixin's
container:
@InjectContainer
private ClientElement container;
On Tue, Mar 31, 2009 at 10:24 PM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> Em Tue, 31 Mar 2009 17:21:07 -0300, Fernando Padilla <fern@alum.mit.edu>
> escreveu:
>
> What is the best way to get the component a mixin i applied to, from
>> within the mixin?
>>
>> I want to access the clientId of the component that the mixin has been
>> tied to. How would I do that?
>>
>
> I guess it is by using @InjectComponent:
>
> @InjectComponent
> private YourComponent component;
>
> component.getClientId();
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic