voyent
Tree node expanded event  XML
Forum Index -> Components
Author Message
aberrant80

Joined: 20/Jul/2006 00:00:00
Messages: 34
Offline


I've searched the forums for a way to handle a node expand/collapse event for a tree several months before and I found that it wasn't supported yet, but will be.

I'm searching again now and I can't seem to find anything that mentions it in the TLD docs or JIRA. Can anyone confirm that it is currently impossible to detect a tree node expanded event? I need it for optimisation of a large tree so that nodes are only created on demand.

I suppose I can use commandLinks to detect node selection, but is there a way to detect that the "+" or "-" icon has been clicked as well?

Is there a current estimate on which version this is slated for? We'd need to decide whether to put it off or to use some other components as a workaround. Thanks.
mmeraj


Joined: 21/Aug/2007 00:00:00
Messages: 16
Offline


Hi aberrant80,

you can try this.
........
<ice:tree id="tree" styleClass="menutreenodeexpandableimg"
value="#{menuBackingBean.model}"
var="item"
hideRootNode="false"
hideNavigation="false"
binding="#{menuBackingBean.treeComponent}"
imageDir="./xmlhttp/css/xp/css-images/" actionListener="#{menuBackingBean.menuEvent}">
...............



public void menuEvent(ActionEvent event)
{
System.out.println("menuEvent "+event.getSource());


}
[Email]
aberrant80

Joined: 20/Jul/2006 00:00:00
Messages: 34
Offline


Thanks, but would that work if a user clicks on the "+" and "-" (the expand/collapse) icon instead of the actual node?
ednei.alves

Joined: 29/Feb/2008 00:00:00
Messages: 1
Offline


yes it will i made the test! but you still need the commandlinks for fire actions when a node is clicked :)
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team