You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by David Avenante <d....@gmail.com> on 2007/06/28 18:29:00 UTC

T5 How reach Sub components informations

Hi,

I try to create a component with embedded sub component.

How can I access in my root component to the informations about my sub
components ?


Thanks

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


Re: T5 How reach Sub components informations

Posted by David Avenante <d....@gmail.com>.
Merci Francois j'ai bien lu cette partie de la documentation mais mon
probleme est que je voudrais "decouvrir" ces composants donc je ne
connais pas leurs id ni leur type.

En fait je recherche a savoir si il existe une facon de lister les
sous composants suivant leur type (Class) et pour chacun  connaitre
leur Id.

Merci pour ton aide ;)


On 6/28/07, Francois Armand <fa...@linagora.com> wrote:
> David Avenante wrote:
> > Hi,
> >
> > I try to create a component with embedded sub component.
> >
> > How can I access in my root component to the informations about my sub
> > components ?
> You can access sub component trough ComponentResources
> 8<------------------------
> @Inject
> private ComponentResources resources;
> ....
> resources.getEmbeddedComponent(embeddedId)
> 8<------------------------
>
> Take a look at
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/inject.html and
> http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResources.html
> for more details.
>
> Francois
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: T5 How reach Sub components informations

Posted by Francois Armand <fa...@linagora.com>.
David Avenante wrote:
> Hi,
>
> I try to create a component with embedded sub component.
>
> How can I access in my root component to the informations about my sub
> components ?
You can access sub component trough ComponentResources
8<------------------------
@Inject
private ComponentResources resources;
....
resources.getEmbeddedComponent(embeddedId)
8<------------------------

Take a look at 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/inject.html and 
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResources.html 
for more details.

Francois



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