Tree: NodeSelectEvent has no TreeNode when dynamic="true"
See original GitHub issue1) Environment
- PrimeFaces version: 7.0
- Application server + version: Wildfly 13
- Affected browsers: IE, Firefox, Chrome
2) Expected behavior
The NodeSelectEvent contains the selected TreeNode regardlessly if the dynamic attribute is true
or false
.
This was the behaviour up until 6.2.
3) Actual behavior
Since 7.0 the selected TreeNode is only contained if the dynamic attribute is false
4) Steps to reproduce
Checkout the repository https://github.com/theobisproject/primefaces-test on the tree-null-node
branch. Switch the dynamic attribute on and off. A Nullpointer is thrown when dynamic="true"
is set.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6 (4 by maintainers)
Top Results From Across the Web
p:tree node select event listener method is not invoked
Note: the tree is inside another PrimeFaces layout unit. But when I run this, the onNodeSelect() method is not called at all. How...
Read more >Primefaces Tree, TreeNode, TreeTable Example Tutorial
Tree component has associated with a TreeNode instance called root. ... var="node" dynamic="true"> <p:treeNode expandedIcon="ui-icon ...
Read more >dynamic tree and nodeselectlistener problem - JBoss.org
Anybody has problem with dynamic tree and nodeselectlistener? It seems that the processSelection never been fired.
Read more >dynamic tree with propagateSelectionDown="false" not working
I have another problem when the selected node is in the first branch of the tree, the TreeNode[] selection contains the selected node, ......
Read more >tree 1 « PrimeFaces « JSF Q&A - Java2s.com
There is a small problem when rendering a tree node with no children. The node label is rendered below the icon. The problem...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@melloware It works like a charm. You made my day. thank you so much for quick response.
I stuck with the same scenario, what is the release date of version 7.1 which has this fix. Is there any other workaround to handle this problem/use fix until launch of version 7.1 .