Re: T5 How reach Sub components informations

2007-06-28 Thread Francois Armand

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 How reach Sub components informations

2007-06-28 Thread David Avenante

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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]