Hi all,
for the application I'm working on I need a tree component which is more configurable/capable than the current Struts2 s:tree component.

Basically I want to use it like this:
<t:tree rootNode="%{rootNode}" typeProperty="type" childCollectionPropert="children">
   <t:treeNode type="group">
      <s:property value="%{name}" />
   </t:treeNode>

   <t:treeNode type="item">
      <s:a><s:property value="%{name}" /></s:a>
   </t:treeNode>
</t:tree>

Depending on the type of the current node one of the two childNodes should be rendered in the tree structure.
This is similair to the MyFaces tree2 component.

I looked at the implementation of several struts2 components/tags, started to write my own tag, etc. Btw, writing struts2 tags is really hard, imho. Almost no documentation in the code, no tutorials and books about it.

I don't know how to render the content of the chosen contained treeNodes on demand. I just see a way to repeatedly render the whole body of the tree.
How would you write such a component? How could I solve this?

Thanks a lot for any hints!
Joachim


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

Reply via email to