tree 2 « IceFaces « JSF Q&A





3. Problem by using ice:tree module    icefaces.org

4. Application Scoped Tree Data    icefaces.org

I am trying to build a tree of about 60,000 nodes. I would like to share this content in the application scope for a couple reasons: 1) To cut down on resource utilization. 2) To globaly manage changes to the tree. I envision having a thread poll the database to find changes in the tree and update the tree data accordingly. ...

5. ice:Tree Selected Node should have diffrent visibility than unselected nodes    icefaces.org

Hi , I have implemented ice:tree in my project and its working fine. Now i have a requirement that the selected node should be of different colour or effect other than unselected nodes of the tree. I have seen the forum and i found that there was a solution but it was not rendering the tree. Can someone please help me? ...

6. A tree table in ICEfaces    icefaces.org

7. tree without leafs    icefaces.org

We need a tree that consists of nodes only (no leafs). When the user clicks on a node's name, a list of assigned items should appear (in seperate component). Unfortuntely the tree component doesn't render the nodes when no leafs are attached to it. How to change this behaviour? Nodes should be rendered even if no leafs are attached to it. ...

9. tree component    icefaces.org





10. Programmatic Tree Component    icefaces.org

11. dynamic tree    icefaces.org

12. I use tree component like this    icefaces.org

to make a lazy loading tree I extends IceUserObject class and implement it's isLeaf(), isExpanded() method ,isLeaf is used to judge is the node has child node , isExpanded() method is to load the children nodes of the node has bean clicked . And i found that when i click the "+" seems only isExpanded() method is executed,but my actionListner method ...

13. Problem with tree children    icefaces.org

14. Tree component with multiple selection    icefaces.org

Hello Yevgen, Yes, that's entirely possible with our Tree component. You can include any other component in the tree nodes, and the selection functionality of those components will depend on themselves, not on the tree. You might want to take a look at the dynamic tree example in the Component Showcase demo, which allows you to add input components to the ...

15. components inside tree preventing partial update    icefaces.org

I did a search for relevant fixes to this problem, on the web and in this forum. I found none, if I overlooked something, simply point me in the right direction. My problem is the following: I have a tree made up of treenodes of the form: Code:

16. Programmatically expand Tree nodes    icefaces.org





18. tree    icefaces.org

Is there a way to get a reference to the tree node being clicked? I looked at the tutorial on how to respond to node selection, but it doesn't return a reference to the node itself. It only updates information based on the component that was clicked. I wanna be able to modify the node once its clicked. Is that possible? ...

19. Decision Tree Text    icefaces.org

20. Tree node right click problem    icefaces.org

Hi friends, plz send the code after seeing the below discussion Hi friends, I want to display a pop up on right click on tree node using liferay icefaces, ie when i right click on node it displays popup with options add,delete, etc etc,. Kindly help me with source code if any. Regards Ashok Are you suggesting that you are using ...

22. Dynamic include without using tree component    icefaces.org

Dear, I want to build a website that its layout similar with component-showcase, except the navigation tree. I do not use tree, just commandLinks or commandButtons. Anyone could recommend where do I have to start? I've seen the navigation backing code, but couldn't understand. The PageContentBean extend IceUserObject class which i think isn't needed in my site because i didn't use ...

23. Tree node Rename functionality    icefaces.org

24. Tree component acts strange after logout and following login    icefaces.org

Hello, I have a tree navigation in my app. After I logout (session.invalidate()) and login again, the tree component keeps it state. e.q. The tree node icon that was selected before log out keeps being selected.When I add a new node the data adds in database but not in the tree. If I restart server, everything works perfect. Any ideas? Thanks ...

25. tree dynamic nodes sorting    icefaces.org

26. Error using a tree.    icefaces.org

New to ice faces. Went through the Tree component tutorial. Here is the code for the managed bean: import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; import com.icesoft.faces.component.tree.IceUserObject; public class Admin { private DefaultTreeModel adminTreeModel; private DefaultMutableTreeNode adminRootNode, usersNode, reportsNode, globalSettingsNode; public Admin() { adminRootNode = new DefaultMutableTreeNode(); IceUserObject adminRootObject = new IceUserObject(adminRootNode); adminRootObject.setText("Administration"); adminRootObject.setExpanded(true); adminRootNode.setUserObject(adminRootObject); adminTreeModel = new DefaultTreeModel(adminRootNode); // add users node. usersNode ...

28. Holes in the tree    icefaces.org

I'm using ice:tree component and I have broken vertical lines connecting tree nodes. That's probably because I use 20*20 images instead of default 19*19 or because the default font size in browser is bigger than expected. Anyway, is it possible to replace only tree icons and line images of the tree component keeping the rest XP style untouched? Is it possible ...

30. Help: tree table with nest child table layout    icefaces.org

I have to design a UI like a tree table with nested child table, shown as attache file. Anyone can tell me some approches for it. I use icefaces and facelets, and I spend some time on icefaces treetable, one approch I think maybe I have to write a new render for treetable ,but it not simple. Wish your answer ,thanks ...

31. Problem with a tree on a popup    icefaces.org

32. help with ice:tree    icefaces.org

33. Problem with Tree - selected leaf node "falls down"    icefaces.org

Hello, I'm using a tree in a draggable panel. When selecting leaf nodes sporadically the leaf node "falls down", it gets displayed somewhere further down in the panel - not belonging to the tree anymore. This is sinde 1.7 - with 1.6.2 it worked fine. Has anybody observed the same problem ? I also experienced that some times a node has ...

39. How to add a line break in ice:tree ?    icefaces.org

Hi there, I have a question regarding the ice:tree tag. We implemented our navigation use the ice: tree. The ice:tree is places on the left side of our web site and the navigation division has a max-width: set. Our problem is, if the value of a child leave is too long, it simply breaks the max-width and the overlaps the main ...

41. Component Tree    icefaces.org

I have 2 pages login.jspx and principal.jspx in principal.jspx have a "ice:tree", but when i interact with it, then console apresents the following mistake: _________________________________________________________ java.lang.ClassCastException: org.apache.html.dom.HTMLTableSectionElementImpl at com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.a(Unknown Source) at com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.encodeBegin(Unknown Source) at com.icesoft.faces.renderkit.dom_html_basic.LinkRenderer.encodeBegin(Unknown Source) at com.icesoft.faces.component.ext.renderkit.LinkRenderer.encodeBegin(Unknown Source) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(Unknown Source) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(Unknown Source) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(Unknown Source) at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(Unknown Source) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319) at com.icesoft.faces.component.custom.b.c(Unknown Source) at com.icesoft.faces.component.custom.borderlayout.LayoutRenderer.a(Unknown Source) ...

42. ICEfaces tree freezes up!!!    icefaces.org

45. [Tree component] Icons move when expanding a node    icefaces.org

Hi, i have a problem with the tree component. When a node is expanded, the icon of the treenode moves left a bit. This can look very ugly if you work yourself through a tree. It seems that the component showcase got the same issue. I added some pictures to show the issue and you can test it yourself at the ...

46. Problem adding child to a node tree that is a leaf    icefaces.org

Hello everyone, I have tree component that is dynamically changed by the user, the problem i have is that when a node is currently a leaf, and i need to add a child to it, doesnt refresh it, it does it in the bean but dont refresh it in the view, i tried first removing this node from his parent then ...

47. Does tree-component support TreeExpansionListener?    icefaces.org

The IceUserObject defines the public method setExpanded(boolean isExpanded). This method is called by the ICEfaces Tree when the plus/minus has been clicked for the node's user object. If you want to override this method with your own UserObject that extends the IceUserObject, you can find out that way. Alternatively, you can define a NavigationEventType against the Tree component. When the plus/minus ...

48. Doubt regarding IceFace Tree...    icefaces.org

Is ICEFace Tree component AJAX enabled? What i meant was, Will it be possible to reload the content of the tree with out refreshing the whole page? I mean when I expand one node, it should not refresh the whole page, but only the tree. If not, what is the maximum provided feature? Thanks n Regards, Ranjith.M

49. Icons not aligned in tree component    icefaces.org

50. Question about tree    icefaces.org

51. Tree Problem; Collapse-Expand Nodes    icefaces.org

53. Tree expand/collapse programatically    icefaces.org

55. Problem: Creating several trees    icefaces.org

Hi. I don't know how to face the next problem: I have a page with several links. Each of this links go to the same page which show a tree. This tree is read from a xml file. In each link I have an actionListener which inform the file where to read the tree.. The first time is ok but later ...

56. slow performance from ice:tree component    icefaces.org

Hi, I have a tree component in my application that is suffering from performance issues. The tree performs acceptably when a node is expanded that has less than around 50 nodes. When i try and load more than around 100 child nodes it can take more than 10 seconds to expand the tree and show the children. I am using hibernate ...