tree 1 « PrimeFaces « JSF Q&A





1. How to create a dynamic tree?    stackoverflow.com

I´m having some trouble implementing a dynamic tree structure using the primefaces tree implementation. In the showcase provided by primeface, the structure of the code is like below. This is however ...

2. Primefaces tree does not display on the page    stackoverflow.com

I'm using primefaces 1.1jar jsf 1.2 Richfaces 3.3.3 tomcat 7.11 i have created xhtml page to display tree but on page it shows blank. Thanks for your replies. Xhtml:

<body>
   <h:form>
      <p:commandButton ...

3. PrimeFaces 3.0 - JavaScript error on PPR of     stackoverflow.com

This question is mainly directed at the PrimeFaces dev team but maybe someone else knows a workaround. I can't upload screenshots on the PrimeFaces support forums but I can link to ...

4. JSF Primefaces DataTable - problems populating DataTable based on selections in a Tree    stackoverflow.com

I'm having a problem using a DataTable from primefaces. I have a Tree of searches, and when the user clicks on one of those searches a searchresult is displayed in a ...

5. Tree component in 3.0 version    forum.primefaces.org

Old tree sucks, no doubt. Adding lines per configuration would be a nice feature in the new tree. They are helpful for orientation if the tree is too large and you ...

6. Tree Rendering Upon Page Reload    forum.primefaces.org

17 May 2011, 17:21 by hillobro Tree Rendering Upon Page Reload Hi All, I'm using a snapshot release of primefaces version 3.0.M2. If you reload a page that has a dynamic ...

7. Problem to expand tree node programmatically    forum.primefaces.org

Hi, I need to a tree full or first level nodes expanded when it's display initially. I tried to use TreeNode.setExpanded(true). It doesn't work. I found an issue 1122 "Static Tree: ...

8. Dynamic tree problem    forum.primefaces.org

...

9. expand tree (3.0) on nodeClick    forum.primefaces.org

Hi all I need to expand the tree node by clicking on label (not only on arrow icon) I'm trying to override this function Code: PrimeFaces.widget.Tree.prototype.bindEvents=function(){ ...





10. P:Tree with duplicated entries    forum.primefaces.org

Hi friends, I have been having a problem using p:tree component. The TreeNodes is rendering with duplicated entries. Output : Contagem :0 Contagem :2 Thanks in advance for any help. Here ...

11. Tree component issues    forum.primefaces.org

22 May 2009, 18:00 by elciok Tree component issues I had some problem using the tree component, and I had to do some workarounds to be able to use it in ...

12. Using inside of generates error    forum.primefaces.org

Hello to all, I'm pretty much a newbie as jsf and primefaces, so I apologize if this is an often asked / often answered question. I'm trying to tie an event ...

13. Tree - make it dynamic?    forum.primefaces.org

Hello every1, im kinda new but i try hard I want to create a dyanmic tree that loads the nodes from a database. Does this work based on lists? Is it ...

14. Javascript error in p:tree    forum.primefaces.org

15. Upgrade tree component    forum.primefaces.org

The current application is using primefaces 2.1 tree componenet and have customized some of the js and class files to suit our needs. We want to upgrade to Primefaces 2.2. Is ...

16. Dynamic tree problem    forum.primefaces.org





17. 3.0 M2+ Tree limitations    forum.primefaces.org

21 Jun 2011, 16:16 by jp_2011 3.0 M2+ Tree limitations Hello community, hopefully this information is useful for people wishing to use the new Tree component. When implementing this component, I've ...

18. Tree without backing bean?    forum.primefaces.org

23. PF 3.0 - JS error on PPR of - steps to reproduce    forum.primefaces.org

Created a question on Stack Overflow so I could upload screenshots:http://stackoverflow.com/questions/6943249/primefaces-3-0-javascript-error-on-ppr-of-ptree I have been encountering JavaScript errors when using the PrimeFaces 3.0 component. I have put together a very simple ...

24. primefaces tree dnd problem    forum.primefaces.org

25. Problems with p:tree and p:ajax    forum.primefaces.org

Hi, I upgraded from PF2.2.1 to PF3.0.M2 and it seems to me that using p:ajax for tree event listeners is not working properly,i.e. the events are processed but when I set ...

26. Build tree with a function    forum.primefaces.org

09 Aug 2011, 15:44 by dhamoh Build tree with a function How to build buid a recursive Tree. from Please help with logic. instead of hardcoding like "Node 0" have to ...

27. Tree fails with more then 10 nodes    forum.primefaces.org

with more than 10 nodes that have children fail with NumberFormatException on expand. This seems to be caused by doing rowKey.substring(2) thus inserting an empty string at path[0] when the ...

28. Tree example does not work with me    forum.primefaces.org

My tree.xhtml example source code Code:

29. Command link causes problem on tree    forum.primefaces.org

Hello We are using a p:commandlink inside a treenode, on the first load there is no problem, but when the tree is updated or the page reloaded the tree disappear. 1. ...

30. dynamic p:tree not expanding    forum.primefaces.org

Hi, At http://www.primefaces.org/showcase-labs/ui/treeAjax.jsf there is a tree sample which is dynamic. Can you explain how it is dynamic? It seems static to me. I need to create a tree which loads ...

31. [SOLVED] Tree cannot be used dynamically    forum.primefaces.org

The UI component org.primefaces.component.tree.Tree lacks a valueExpression based setter for the "selection" attribute. This prevents to map the selection of a node to a managed bean. Here is an example ...

32. Datatable of tree node    forum.primefaces.org

Hello! I need to make thing like explorer in windows, tree in left side and datatable in right. How can i show list of treenodes in datatable? I try this: ...

33. p:tree toggleCheckbox behavior    forum.primefaces.org

17 Sep 2011, 07:57 by dar1 p:tree toggleCheckbox behavior I have been using the PrimeFaces tree, and recently upgraded to PrimeFaces 3.0.M2. Previously, there was an attribute that could be set ...

34. p:tree - unselect    forum.primefaces.org

21 Sep 2011, 12:31 by Matrium p:tree - unselect hi, I use p:tree as some sort of "navigation-menu" and i have 2 questsion about the new tree implementation: a) it seems ...

35. Probem with update by tree    forum.primefaces.org

03 Mar 2010, 10:24 by Roamer_KDN Probem with update by tree I've try use primefaces tree. I've found a problem: after update all symbols in Russian (UTF-8) transformed to ????????? and ...

36. Tree component    forum.primefaces.org

Hi, I am using tree component in 2.2.1. I wonder if I can expand nodes dynamically. For example, I have cities. I will add towns of Istanbul to the tree only ...

37. Tree Problem    forum.primefaces.org

There is a small problem when rendering a tree node with no children. The node label is rendered below the icon. The problem can be illustrated with the Icons example in ...

38. No luck at all with     forum.primefaces.org

12 Oct 2011, 21:07 by eford No luck at all with Is there something missing from the Primefaces 3.0 Showcase Demos that is necessary to make the Tree demo work? ...

39. Problems using tree component of primefaces    forum.primefaces.org

05 Jun 2009, 08:34 by tatun78 Problems using tree component of primefaces Hi, I am having some problems with the tree component in primefaces. I am using Java Content Repository(JCR)'s repository ...

40. p:tree reset problem    forum.primefaces.org

20 Oct 2011, 07:12 by kalyaniswathi p:tree reset problem I used to use Primefaces 2.2 , in which when i tried to reset the tree using a method it worked fine. ...

41. Tree component cannot be displayed in expanded mode -v3.0.M4    forum.primefaces.org

Hi, Looks like the attribute "expanded" for p:tree component is removed in 3.0.M4 Is there any alternative to display a tree in expanded mode by default ?... Thanks, Eshwar

42. tree - unselection / reselection possible?    forum.primefaces.org

11 Nov 2011, 10:42 by Matrium tree - unselection / reselection possible? hi, i am using M4 at the moment and have a question about p:tree: Is there any way to ...

43. Calling javascript from tree component    forum.primefaces.org

Hi, Its me again. I would like to call a javascript from tag to refresh the right frame whenever I click a node on the tree. Is there any option? ...

44. tree expanded    forum.primefaces.org

I'm testing out M4 and setting expanded to true does not render the node expanded like the documentation says it should. Also I notice that when reloading the page, the entire ...

45. tree propagateSelectionUp problem    forum.primefaces.org

12 Mar 2010, 15:24 by iwan41 tree propagateSelectionUp problem Hello I have code as fallows: index.xhtml Code: ...

46. Tree Propagate Selection Doesn't Work with dynamic tree    forum.primefaces.org

HI all, I created a tree with selection mode checkbox. The selection propagation down doesn't work when the tree is dynamic (dynamic="true",cache="false"). After the load of the children only the father ...

47. Switching Tree Selection Mode doesn't clear selection    forum.primefaces.org

30 Nov 2011, 16:15 by francesco.strazzullo Switching Tree Selection Mode doesn't clear selection Hi all, I have a tree with selectionMode changed dinamically by clicking a commandButton (single --> checkbox ---> ...

48.  component set selection from bean.    forum.primefaces.org

49. Ajax unselect not working in p:tree    forum.primefaces.org

I set the issue as invalid, you need to press metakey, same behavior you can find in OS filesystems. Generally in PrimeFaces, things are unselected when metakey(ctrl for win, cmd for ...

50. p:tree - selected multiple when selection="single"    forum.primefaces.org

08 Dec 2011, 21:41 by holek p:tree - selected multiple when selection="single" Hi, I have a problem with p:tree component with context menu, when I add child node from context menu ...

51. p:tree multiple selection    forum.primefaces.org

52. An issue with tree compoent's nodes' number    forum.primefaces.org

I find an issue with the tree component in PrimeFaces 0.9.0 snapshot :the onNodeSelect() function only can work for the first 10 nodes on the first level.That's mean if the nodes' ...

53. setSelection doesn't work on p:tree    forum.primefaces.org

Hi all, I have encountered a bug in tree selection. Consider the example below: Page: Code: ...

54. Ajax enhancement for tree (and likely others)    forum.primefaces.org

18 Mar 2010, 20:55 by frobean Re: Ajax enhancement for tree (and likely others) Sure. I have the following tree: Code:

55. Tree loosing their parent if collapsed    forum.primefaces.org

Hello there, When you expand a branch of a tree, then select the branch and call any back bean method, the selected TreeNode you receive has lost its parent attribut (always ...

56. Tree enhancement : deleting branch in the controller bean    forum.primefaces.org

31 Mar 2010, 09:42 by Oleg Re: Tree enhancement : deleting branch in the controller bean The other feature I didn't find is a possibility to set a TreeNode as disabled ...

57. How to find a tree node per JavaScript?    forum.primefaces.org

58. tree selection- readonly    forum.primefaces.org

Hi, Question on : Is it possible to disable selection for certain rows (in other words conditionally make p:treenode selection checkbox readonly)? Thanks in advance

59. FileUpload and Tree regression    forum.primefaces.org

>> << jmcollin92 Posts: 145 Joined: 05 Nov 2009, 22:32 05 Apr 2010, 17:27 by jmcollin92 FileUpload and Tree regression Hello, Since today's update of PF-2.0.1-SNAPSHOT, I've noticed a regression in ...

60. p:tree blinking on partial update    forum.primefaces.org

12 Apr 2010, 17:29 by Sargash p:tree blinking on partial update Hi. There is confusing blinking on partial update p:tree component. And action with partial update feels more heavy-weightly than action ...

61. ExpandAll and CollapseAll related to nodes of a tree    forum.primefaces.org

Suppose I add or delete any node at any level in a tree , after successfull addition or deletion the tree always gets collapsed. Actually when the page is getting refreshed ...

62. p:tree dynamic="true" error    forum.primefaces.org

24 Apr 2010, 22:27 by can p:tree dynamic="true" error Selamlar, primefaces 2.0.1 kullanyorum. showcase de verilen ajax eventl rnei sorunsuz altrabiliyorum fakat benim yazdmda ise browsern bana verdii garip bir hata ...

63. clickable nodes in tree    forum.primefaces.org

...

64. How do i make nodes in tree clickable?    forum.primefaces.org

65. Tree and Datatable    forum.primefaces.org

06 May 2010, 17:55 by sdguna Tree and Datatable Hello, I have tree setup. When I select a node the onNodeSelect is activated and it executes the onNodeSelectListener method. In this ...

66. problem with tree    forum.primefaces.org

hi for all . my code is : root = new TreeNode("Root", null); treeValue tv=new treeValue(u.getId(),u.getName()); TreeNode aux=new TreeNode(tv,root); treeValue :this class created from me. public void onNodeSelect(NodeSelectEvent event) { System.out.println("type= ...

67. Tree doesn't work with 2.0.2    forum.primefaces.org

Hello Cagatay, My tree doesn't work more after update to PrimeFaces 2.0.2. No expand, no select more. I have figured out I need selection="single" (was not nessesary with 2.0.1), but PrimeFacesPhaseListener ...

68. tree in PrimeFaces 2.0.2 not work ?    forum.primefaces.org

My tree doesn't work more after update to PrimeFaces 2.0.2. nodeSelectListener does not work ????!!!!!!!!!!!!!!!!!!!?????????????!!!! it can work in PrimeFaces 2.0.1

69. Tree not displayed??    forum.primefaces.org

I use Primefaces 2.0.2. I don't get it... I copied the example, but the tree is not been showed! When I look at the Page Source of the browser, the Tree_container ...

70. Tree: how to render another component on selection?    forum.primefaces.org

Hi, I am using the tree component and depending on the selected node my p:contextMenu looks different. How can I re-render the context menu? I noticed the "onselectComplete" attribute but I ...

71.  - how to get data attached to a tree node?    forum.primefaces.org

73. how to use prime faces tree    forum.primefaces.org

hello every body . i am tryieng to create a simple basic Tree using prime faces but i cant find enough information in the documentation or even in the component showcase ...

74. [SOLVED]No name on tree nodes    forum.primefaces.org

Hello, I've just updated to primefaces 1.1 RC and now my tree looks like this: This didn't happen with primefaces 1.0.2 The code: Code: public class TreeBean implements Serializable ...

75. document Tree    forum.primefaces.org

27 Jun 2010, 22:29 by anas1234 document Tree hi i have created a prime faces tree ... the tree nodes i create are like this this.rootNode = new TreeNode("root", null); TreeNode ...

76. p:tree update is called before selection    forum.primefaces.org

77. Default Expanded p:tree    forum.primefaces.org

Hi Optimus, Looks like the attribute "expanded" is removed in 3.0.M4 Is there any alternative to display a tree in expanded mode by default.. Thanks, Eshwar

78. p:tree in primefaces 2.1    forum.primefaces.org

java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.valueOf(Unknown Source) at org.primefaces.component.tree.TreeRenderer.encodePartially(TreeRenderer.java:106) at org.primefaces.component.tree.Tree.encodePartially(Tree.java:336) at org.primefaces.application.PrimeFacesPhaseListener$2.invokeContextCallback(PrimeFacesPhaseListener.java:262) ...

79. Incompatibility and Primefaces?    forum.primefaces.org

Hi everybody! I am so glad of using the new primefaces version, It is absolutely stylish, however, some kind of incompatibility is happening in my rich:tree, It is not working anymore ...

80. Problem with ' (apostrophe) in the tree component    forum.primefaces.org

81. Tree    forum.primefaces.org

82. Selection in multiple trees not working    forum.primefaces.org

...

85. IllegalArgumentException with tree component on new pages    forum.primefaces.org

>> << tonico Posts: 51 Joined: 22 Aug 2010, 00:15 05 Sep 2010, 17:29 by tonico IllegalArgumentException with tree component on new pages [*]Environment: JSF2 / Primefaces 2.1 - Glassfish 3.1 ...

86. Ajax Tree    forum.primefaces.org

I've been using Primefaces version 0.8.3, and just upgraded to 0.9.2. The ajax tree component on the old version had a much better behaviour when the user clicked on a label ...

87. p:tree process parametr    forum.primefaces.org

Not sure if there is a TODO list for the tree enhancement. We used the tree control in ExtJS which has very relevant UI capabilities eg 1) Abillity to do inplace ...

88. Tree how to remove a node    forum.primefaces.org

Is there a way to dinamically remove a node? I can't find any sample. The TreeNode interface doesn't have any remove method. Thanks

89. Ajax problem: with a     forum.primefaces.org

>> << gjegadesh Posts: 27 Joined: 05 May 2010, 22:17 21 Sep 2010, 19:15 by gjegadesh Ajax problem: with a Hi All, I am using PrimeFaces V2.1 and I ...

90. Maintaining Tree Node Selection    forum.primefaces.org

Hi, I am working with primefaces trees, it is working perfectly for me but there seems to be a problem it forgets its selected node if page is refreshed or post ...

91. problems with the example p:tree    forum.primefaces.org

23 Sep 2010, 17:27 by desperatedusch problems with the example p:tree hi, i'm new at using primefaces and in need of a tree component so i tried the showcase example. after ...

92. fileupload get incomplete literal/length tree    forum.primefaces.org

>> << qilicn Posts: 2 Joined: 26 Sep 2010, 05:26 26 Sep 2010, 06:58 by qilicn fileupload get incomplete literal/length tree when I test the fileupload Component use tomcat6 ,either 2.1 ...

93. how can i use "p:tree" with link    forum.primefaces.org

94. remove tree node    forum.primefaces.org

How do you remove a node from a p:tree? The use case is a node expand listener that refreshes the children by removing them all and then reloading them.

95. Limit on number of nodes for p:tree?    forum.primefaces.org

Hi, Is there a limit to the number of nodes you can load with p:tree? I get the javascript error "Expect '}'" in IE8 when the number of nodes exceeds 132. ...

96. how to use p:tree to show a hierarchical process steps?    forum.primefaces.org

Hi, i am thinking about using p:tree to show a hierarchical process steps: +step1 | |--step1.1 | |--step1.2 | +step2 |--step2.1 ... when i chick one diffent treenode , it can ...

97. Root tree node display    forum.primefaces.org

Hi, is it possible to display the root tree node in a tree? I've noticed in the examples, as well as in my tests, that the root node is not displayed. ...

98. Tree node underline    forum.primefaces.org

Hi, In PrimeFaces 2.3, we'll introduce the new and greater tree component that fixes current tree limitations and add features like dragdrop, we'll definitely consider your tip. Welcome to PrimeFaces!

99. node population in tree dynamic="true"    forum.primefaces.org

15 Nov 2010, 18:34 by xRinox node population in tree dynamic="true" Hi again, I've learned a lot from my last post, now I've almost completed my nice side dynamic menu. Just ...

100. Dynamic tree (expand & select)    forum.primefaces.org

19 Nov 2010, 20:37 by frankSNA Dynamic tree (expand & select) I'm new in this forum, so I say hello and thanks to everybody. Two weeks ago I migrated from woodstock ...