cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: [C2] Recusive Sitemap Calling
Date Fri, 23 Feb 2001 08:25:28 GMT
> Berin Loritsch [mailto:bloritsch@apache.org] wrote:
> I have added some code that makes recursive sitemap calling possible.
> It consists of two phases:
> 
> 1) All serverpages are directly accessible via the Roles.SERVERPAGES
>    ComponentSelector.
> 
> 2) When the ProgramGenerator creates the Root Sitemap, it places the
>    sitemap via it's NormalizedName as well as the alias "sitemap".
> 
> In order to get a request for the sitemap, you do this:
> ----------------------------------------------------------------
> ComponentSelector serverpages = (ComponentSelector)
> manager.lookup(Roles.SERVERPAGES);
> 
> Sitemap sitemap = (Sitemap) serverpages.lookup("sitemap");
> 
> sitemap.process(....);
> -----------------------------------------------------------------
Again, great work Berin. Now my problems with this are solved (a little bit egoistic - i know).

> You also have direct access to all SitemapComponents.  This makes
> aggregation easier as you no longer are forced to go through the
> sitemap.
> 
> To get a generator, use Roles.GENERATORS and select the one by name.
> To get a transformer, you do the same thing.
Great, that would have been the next thing to do....

Carsten


Mime
View raw message