Hi,

I have 2 questions about the tree.jsp example in MyFaces. I appreciate if anyone can help me out.
* In the tree.jsp example, it has java code in the beginning, where is the best place for me to move them? I think it is better not to have java code in my jsp page.
<%
if (pageContext.getAttribute("treeModel", PageContext.SESSION_SCOPE) == null) {
2. how can I build the tree dynamically? In this example, the tree model is built up front (in the init code). Is there a way to built the tree model so that everytime user expand a tree branch, it populate the sub-tree?


Thank you.

Sam



Reply via email to