I'm trying to build a heirarchical tree using RichFaces 3.3.3. The data that the tree will be built from varies greatly. It could be a large tree or it could be small; therefore, I want to go fetch the children when a node is expanded using ajax. I do not want to have to load all of the data when building the tree for the first time. When the user expands a node, I want to hit the database and bring back it's children at runtime
I have looked on the richfaces site, and have found nothing similar to what I'm trying to accompish. The examples I found are loading the entire tree up front.
Can anyone point me in the right direction? Sample code would be great. Thanks in advance.