I believe that Comp1 has a map that contains Comp2 and Comp3. And if you ask, it will give you the map. And then if necessary, you can request the same of Comp2 and Comp3, etc.
What I wanted was a method that has walked the tree. regards, Mark -----Original Message----- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Tue 9/20/2005 2:56 PM To: Tapestry users Subject: RE: getting the enclosed components Well, if you have following: <span jwcid="@Comp1"> <span jwcid="@Comp2" /> <span jwcid="@Comp3" /> </span> is there any way from Comp1 to get Comp2 and Comp3? They arent actually contained within Comp1 but just enclosed by it. I know you can do getComponents() but that gets you a Map of the components within Comp1, not those that it encloses. On Tue, 2005-09-20 at 13:53 -0600, Mark Stang wrote: > I asked a similar question earlier, I think. Each page contains components > and you can request a component by name or get a list of components. > However, what if a component on a page "contains" other components. Will the > list contain all components and their children or just the components of the > page. Someone wrote back, that only the child components of the page would > be returned. Then you have to take that list and query each of them for > their children all the way down to the bottom of the tree. > > So, my question is what does the page know about its grandchildren? > > Dan is that your question? > > thanks, > > Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
