question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tree: NodeSelectEvent has no TreeNode when dynamic="true"

See original GitHub issue

1) 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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
selvait90commented, Sep 17, 2019

@melloware It works like a charm. You made my day. thank you so much for quick response.

1reaction
selvait90commented, Sep 17, 2019

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 .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found