Tree Ajax select event only fires with selection Node, why?

UI Components for JSF
Post Reply
djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

29 Feb 2012, 03:00

I have a Tree where the child's of a node are loaded if that node is selected. (Reduce remote database hits.)

Code: Select all

<p:ajax event="select" listener="{bean.listener}"/>
Fires only if I also add a selected TreeNode Object to my bean.
But what if I don't need that Node at all. (If Tree is just presenting data)

Is it by design? Since it is not mentioned in the documentation.

(Did not tested it with datatable but I assume its the same)


For that case something like an uninitialized icon/flag would be cool.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests