Just for clarification some of my requirements:
- Session scoped "leftTreeBean" (because conversation is too short)
- "leftTreebean" provides a getRoot method that creates a new TreeNodeimpl and
makes db query to populate first level of the tree. Tree nodes are a custom class
ClazzTreeNode.
ClazzTreeNode is not a seam component. Just a java object. Its "getChildren"
makes a database call to a dao to find out the children of a specific node.
I would like to push the code to findChildrens, findFirstLevel and so on into another
classes (DAO) to be able to reuse them.
Note:
During working with the application tree can be modified.
| Tree is huge (about 2.5 million nodes) so it cannot be loaded in memory.
| I expect DAO-s to be stateless session beans
|
| I use richfaces with ajax switch type.
|
| Any critics to this design ?
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092447#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...