wood burning stoves 2.0*
The moose likes JSF and the fly likes Select listener not getting called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Select listener not getting called" Watch "Select listener not getting called" New topic
Author

Select listener not getting called

Shane Humes
Greenhorn

Joined: Nov 10, 2011
Posts: 1
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
 
GeeCON Prague 2014
 
subject: Select listener not getting called