Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Lazy" loading tree nodes with custom TreeModel

791757Oct 28 2011 — edited Jun 28 2012
Hello --

I have a RichTreeTable that uses a custom TreeModel that is built recursively from the result of a connect-by query. This method works fine for smaller data sets, but there are some that have several thousand nodes. What I would like to be able to do is have only the first two levels of the tree populate, and then dynamically populate the child nodes when the user selects them. For example if you had a tree that was based on countries, I'd only want the "country" and "states" to load initially. If the user selected a "state" only then would the "cities" load and so on.

Is there a way to direct the framework to fetch in this manner, or do I need to redesign the way my tree is constructed.

Any help is appreciated.


JDeveloper 11.1.2.1.0
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2012
Added on Oct 28 2011
4 comments
716 views