Using <p:ajax> inside of <p:tree> generates error
Posted: 02 Jun 2011, 23:11
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 to select/deselect tree node. The code is available in the 3.0 labs showcase here: http://www.primefaces.org/showcase-labs ... Events.jsf.
I am attempting to recreate this, but the page fails to load with the following error:
Unless i'm having a massive RTFM fail ( which is possible ), I don't see how this is different from the code listed on the showcase ( which is missing a closing " >" ). Can anyone help me out? I tried running this via a simple js and a hidden button, but its not giving me the full functionality I need.
Thanks in advance
Running:
Java: 1.6
GlassFish 3.1
Maven
Primefaces 3.0
I am attempting to recreate this, but the page fails to load with the following error:
The code is as follows:/app/emailClient.xhtml @66,122 <p:ajax> Parent not an instance of ClientBehaviorHolder: org.primefaces.component.tree.Tree@44b717
Code: Select all
<p:tree value="#{emailCriteriaTreeBean.root}" var="node" id="checkboxTree" dynamic ="true" cache="false"
selectionMode="checkbox" selection="#{emailCriteriaTreeBean.selectedNodes}" >
<p:ajax event="select" update="selection" listener="#{emailCriteriaTreeBean.onNodeSelect}" />
<p:ajax event="unselect" update="selection" listener="#{emailCriteriaTreeBean.onNodeDeselect}" />
<p:treeNode >
<h:outputText value="#{node}" />
</p:treeNode>
</p:tree>
Thanks in advance
Running:
Java: 1.6
GlassFish 3.1
Maven
Primefaces 3.0