index.jhtml
This is the root index page uses the RootCategories targeter to get all the
root categories. In the TargetingForEach it then sets up a link to each category
passing in the category id, the current navCount and the push action
(because we are drilling down)
<HTML>
<BODY>
<H1>Index Page</H1>
<droplet bean="/atg/targeting/TargetingForEach">
<param name="targeter"
value="bean:/atg/registry/RepositoryTargeters/ProductCatalog/RootCategories">
<oparam name="output">
<p>
<JAVA>
/*
ATTENTION: Here we set up the navCount and navAction parameters
which will indicate to the next page how it should update its
CatalogNavHistory collector. In particular, to set the navCount,
we query the CatalogNavHistory component, asking it for a number
that identifies its current state.
*/
</JAVA>
<a href="CategoryPage.jhtml">
<valueof param="element.displayName"></valueof>
<param name="itemId" value="param:element.repositoryId">
<param name="navCount" value="bean:/atg/commerce/catalog/CatalogNavHistory.navCount">
<param name="navAction" value="push">
</a>
</oparam>
</droplet>
</BODY>
</HTML>
|