--- Brian Thompson <[EMAIL PROTECTED]> wrote:
> [... <s:tree.../> issues]

<s:tree theme="ajax" 
  rootNode="%{rootNode}" 
  childCollectionProperty="children" 
  nodeIdProperty="id" 
  nodeTitleProperty="name" 
  treeSelectedTopic="treeSelected"
  toggle="explode"
  toggleDuration="0"
  cssClass="bptree"
  id="bptree">
</s:tree>

In my case, rootNode is a Hibernate POJO that has a
<set name="children".../> mapping element with each
element being the same type as the rootNode.

So the pseudo-class for rootNode is:

public class MyPojo {
    // <s:tree.../> nodeIdProperty attribute
    @property Long id;
    
    // <s:tree.../> nodeTitleProperty attribute
    @property String name;
    
    // <s:tree.../> childCollectionProperty attribute
    @property Set<MyPojo> children;
}

Does that help?

d.



 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to