This content has been marked as final. Show 6 replies
USer, please tell your jdev version!
The tree has a property disclosedRowKeys which holds all expanded (disclosed) rows (nodes). If your node is in the list you know it's expanded.
You can also use hte org.apache.myfaces.trinidad.event.RowDisclosureEvent to put some info in the node to make it easier to find out it's status.
I am not sure if your question is about finding the node state (expanded or collapsed) or to display different icons based on the node state.
if it is later, check out the skinning demo : http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/treeTable.jspx
You need to override af|treeTable::collapsed-icon and af|treeTable::expanded-icon keys.
Thanks Umesh for the reply.
The implementation works well with non-recursive tree.
My Tree Table is a recursive tree.
When I try to implement the functionality, the problem I am facing is as follows:
Only the top level node is refreshed to display the new image. whereas the the child nodes do not get refreshed.
When i provide with a sysout in the managed bean, the child nodes, transient attribute displays updated value .
Could you please provide help regarding dis ?