Board index JavaServer Faces General Listener attributes in p:treeNode

Listener attributes in p:treeNode

Components, Ajax Framework, Utilities and More.

Posts: 16
Location: Brazil

I would like to know if maybe in your next releases of PF you have in mind to add the possibility of declaring the attributes nodeSelectListener, nodeExpandListener, nodeCollapseListener in the p:treeNode component. Because as their names say they are more node listeners than p:tree ones and since the p:treeNode give us the chance to have so many type of nodes with different content in them, sometimes we also need to handle these events differently based on the type of node.

Thanks a lot.

PrimeFaces 2.0.0
JSF 2.0.2
Tomcat 6

Posts: 17240
Location: Cybertron

Hi Josel,

Thanks for the feedback, I'll consider this. Probably it's a good idea to keep the global listeners on p:tree and treeNode specific listeners on treeNode.

Posts: 39
Hi Prime,

This is a very common use case to control the behaviour of an event based on P:treenode. This will allow the treenode to be more flexible and versatile.


Posts: 17240
Location: Cybertron

I agree, thanks for your feedback, we'll discuss this for sure.

Return to General