Hi,
here is a small exemple of a TreeSelectionListener how get from the event the userObject of the node how was selectionned.
He will work if you have build your tree with DefaultMutableTreeNode.
Hope it will help.
public class MyTreeSelectionListener implements net.sourceforge.myfaces.custom.tree.event.TreeSelectionListener{
public void valueChanged(net.sourceforge.myfaces.custom.tree.event.TreeSelectionEvent event) {
Object o = ((net.sourceforge.myfaces.custom.tree.DefaultMutableTreeNode)event.getNewSelectionPath().getLastPathComponent()).getUserObject();
}
}
Le 17 nov. 04, � 14:53, Tran Danh Thang a �crit :
Does anyone have example about using treeSelectionListener tag in JSF?--
Please send it to me. Thanks a lot
Nicolas Arni-Bloch
Groupe MATIS-Bd, Centre Universitaire d'Informatique
24 rue General-Dufour
CH-1205 Gen�ve
eMail : [EMAIL PROTECTED]
phone : +41 22 379 76 80
fax : +41 22 379 77 80

