Hi Matthias,

Matthias Wessendorf-4 wrote:
> 
> public vod nodeSelected(org.apache.myfaces.trinidad.event.SelectionEvent
> event);
> 
> is this not working?
> 
I think this is not working, my method is not called. Here my example:

<tr:tree id="personTree" value="#{treeBean2.treeModel}" var="node"
                disclosedRowKeys="#{treeBean2.disclosedRowKeys}"
                selectedRowKeys="#{treeBean2.selectedRowKeys}"
                selectionListener="#{treeBean2.nodeSelectedEvent}">
        <f:facet name="nodeStamp">
                <tr:commandNavigationItem id="personNode" text="#{node.name}"
                        actionListener="#{treeBean2.nodeSelected}" 
partialSubmit="true">
                </tr:commandNavigationItem>
        </f:facet>
</tr:tree>

  public void nodeSelected(ActionEvent e)
  {
    this.currentPerson = (Person) treeModel.getRowData();
    selectedRowKeys.clear();
    selectedRowKeys.add();
  }
  
  public void nodeSelectedEvent(SelectionEvent event)
  {
    System.out.println("---------------> node selected.");
  }

best regards
Daniel
-- 
View this message in context: 
http://www.nabble.com/-Trinidad--signature-of-method-for-selectionListener-on-a-tree-tp14950886p14995033.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to