Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Select listener not getting called

 
Shane Humes
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot seem to get my tree to call my select listener method. I have tried several different ways to get my listener method called, but none have been successful. The code snippets of what I have tried are below:

<h:form>
<rich:tree switchType="client" value="#{mappingBean.nodes}" var="node" nodeSelectListener="#{stateAdvisor.processSelection}" >
</rich:tree>
</h:form>

or

<h:form>
<rich:tree switchType="client" value="#{mappingBean.nodes}" var="node">
<rich:nodeSelectListener type="beans.listener.NodeSelectedListenerBean" />
</rich:tree>
</h:form>

or

<h:form>
<rich:tree switchType="client" value="#{mappingBean.nodes}" var="node" adviseNodeSelected="#{stateAdvisor.processSelection}">
</rich:tree>
</h:form>

or

<h:form>
<rich:tree switchType="client" value="#{mappingBean.nodes}" var="node" stateAdvisor="#{MyTreeStateAdvisor}">
</rich:tree>
</h:form>

Am I missing something?

Thanks in advance for your help.

Shane
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic