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.
Thanks Timo for the quick reply.
My jdev version is : 220.127.116.11.0
I am new to ADF, it would be of great help if you could please elaborate on the suggestion you provided.
It would be of great help, if you could provide with the EL expression example.
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 for the reply Arun. But I want to find out the whether the node is expanded or collapsed. Based on the earlier mentioned result, I want to display different images . The image is no related to the table tree icon.
Check this, a working example though not fully completed.
But it will give you an idea about the implementation. Run against HR db(xe).
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 ?