I am really beginning to like JSF and MyFaces in particular.  I feel some more real-world examples would go a long way toward helping the learning curve for new users such as myself.

For example, I do not see any documentation or a useful example of how to actually use the tree component. 

How do I attach an action to clicking on a tree node?  I would like to implement something like a URL such as '/ProductDetail.jsp?ProdID=1001' to load the product detail page when I click on the 'Product #1001' node in the tree.  I assume I could somehow use:
<h:commandLink id="prodlink" action="">
<h:outputText value="#{msg.prodName}"/>
</h:commandLink>

but how to integrate this with the tree component?
If my action="", how do I append the parameter '1001'?  And how do I use the parameter info in the Product.jsp page?

Thanks for any help,

John Parker

Reply via email to