I want to display a list of products in a loop something like

<t:commandNavigation id="productsButtonLink2" action="products"
value="Products">
                
<c:forEach var="product" items="#{productsBean.products}" varStatus="status">
     <t:commandNavigation id="#{product.name}#{status.count}"
action="#{productsBean.navigate}" value="#{product.label}"/>
</c:forEach>
</t:commandNavigation>

However this is the first page and I don't know how to get the values
in the productsBean from the database.  However this only needs to be
application scope and loaded once when the application is loaded.  How
do I go about this?
Do I need to use shale to do this?  I was thinking of using the Shale
View Controller but wanted to make sure there wasn't another easy way.

Also this is the first page so there arn't any previouse pages.

Is there any tricks to have shale cohabitate with facelets?


Also is there an easy way to pass to the action which product it is
when you click on the link?


Thanks for any help you can provide.
Shawn

Reply via email to