cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject [C2] Recusive Sitemap Calling
Date Tue, 20 Feb 2001 20:51:55 GMT
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

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");

You also have direct access to all SitemapComponents.  This makes
aggregation easier as you no longer are forced to go through the

To get a generator, use Roles.GENERATORS and select the one by name.
To get a transformer, you do the same thing.

View raw message