On Thu, 27 Nov 2014 12:40:47 -0200, Eugen <eugens...@gmail.com> wrote:
Hello,
Hi!
is there any way in Tapestry 5.4 to list all components embedded in a
page or component (defined in template file)?
The goal is to implement an annotation, @UpdateParentZone, that would
search for the first Zone in the parent components and add the found zone
to AjaxResponseRenderer to be updated after annotated function executed.
I think you got it backwards: you don't need to know the list of embedded
components: you need the list of parent components, going up until you
arrive at a Zone. For that, you can get the ComponentResources and use its
getContainer() method.
If you want the immediate (not recursive) embedded components of a given
page or component, use its ComponentResources and its
getComponentModel().getEmbeddedComponentIds() for the ids and
getEmbeddedComponent(String id) for the component instance.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org