[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-10-15 Thread marius.oancea
I used rich:tree with lazy loading and so on. Finally i decided to not store 
the tree of objects in the session but only the nodes (rich TreeNodes). The 
application behaves very well until now.

Thanx again Christian, good example here together with wiki example.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095336#4095336

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095336
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-09-27 Thread dustismo
I save the tree state in the session as its accessed on every page.  My node 
objects are fairly light and I remove the nodes in closed folders (so the 
memory is freed) so I'm not that concerned about it being a scaling issue. If a 
user had tens of thousands of nodes viewable at the same time the page would be 
unusable slow to load.

-Dustin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089383#4089383

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089383
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-09-27 Thread marius.oancea
dustismo, where do you save the tree state in your application?

If i save in session i'm wondering about scalability issues.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089174#4089174

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089174
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-09-26 Thread dustismo
I have an extremely similar situation in my app.  I have a large tree structure 
that is displayed on every page.  The tree can have arbitrary numbers of nodes 
so lazy loading is must.  

I needed to be able to do drag-n-drop to move nodes and folders.  I first tried 
icefaces but had to give up because of their drag and drop support was pitiful 
(it had no way to add javascript hooks for things like confirm dialogs --i.e. 
'are you sure you want to move this node?').  Then I tried Richfaces, god was 
that a nightmare.  Their tree datastructure is truly bazaar and I found the 
performance to be horrendous.  I basically wasted 4 months on icefaces and 
richfaces (though it's possible that their implementations have gotten better 
in recent versions).

Then I tried ext.js and just passed my treenodes via json from a servlet.  This 
solution has been perfect.  Tree response is very fast, and I can control the 
drag and drop operations any way I want (plus their dnd implementation is 
designed to handle many many nodes).

my 2 cents..

dustin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088970#4088970

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088970
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-09-26 Thread marius.oancea
Thanx, The example looks very similar with tree/tree2 from myfaces. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088893#4088893

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088893
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-09-26 Thread [EMAIL PROTECTED]
http://fisheye.jboss.com/browse/~raw,r=1.1/JBoss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/nestedset/package.html

http://fisheye.jboss.com/browse/JBoss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/nestedset


  | public TreeNode getTree() {
  | if (directoryTree == null) {
  | directoryTree = new WikiTreeNodeAdapter(getInstance(), 
getNodeDAO().getComparatorDisplayPosition(), 2l);
  | directoryTree.loadChildren();
  | }
  | }
  | 


  | 
  | 
  | 
  | #{directoryHome.instance.name}:
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
(#{nodeWrapper.level})
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
(#{nodeWrapper.level})
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
(#{nodeWrapper.level})
  | 
  | 
  | 
  | 
  | 

This is high performance read-mostly tree framework with dynamic pre-fetch size 
for on-demand loading of an arbitrary depth of childrens-children (in a single, 
very efficient, SQL query).

The UI part is not used right now but you should be able to figure out how it 
fits together if you look at the source and spend maybe 3 days on it. 

Don't even start thinking about whatever magic Javascript buttons from whatever 
broken JSF library you click on before you sort out the basics. I am still 
looking for help implementing moving of tree nodes.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=404#404

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=404
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-09-26 Thread marius.oancea
Anyone tried ICEFaces tree? 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088873#4088873

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088873
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: left tree - explorer like application

2007-09-25 Thread schmod54
I tried making a windows-explorer tree using a richfaces:tree...  At first I 
tried storing my tree state in conversation context, but then I had bugs 
because the richfaces tree would not always pass the correct conversation 
context when clicking on nodes.  So then I stored my tree state in the 
session... but then I got LazyInitializationExceptions.  So then I tried using 
the unseamly approach of using a session-scoped entityManager.  But then I had 
various of other bugs with the tree, and it was really slow... so then I got 
rid of it and decided to display my tree structure using regular html links.  
No bugs, and much faster.  This was with richfaces 3.0.1 though... I saw that 
they made improvements in 3.1.0 (like recursiveTreeNodeAdapter) but my 
experience with with the 3.0.1 was so buggy and slow I don't want to try it 
again.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088388#4088388

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user