This content has been marked as final.
Show 2 replies
-
1. Re: rich:tree node selection problem
user1234 Jul 7, 2009 9:25 AM (in response to iimirela)In UI do like this...
<rich:tree switchType="ajax" ajaxSubmitSelection="true"
toggleOnClick="true"
nodeSelectListener="#{Bean.processTreeNodeImplSelection}"
.... >
why you are using onselected="return false" ? is it for any specific purpose? if not then can remove this.
In manage bean write method like this..
public void rocessTreeNodeImplSelection(NodeSelectedEvent event) {
try {
UITree tree = (UITree) event.getComponent();
if(tree!=null){
if(tree.getTreeNode()!=null){
nodeTitle = (String) tree.getRowData();
}
}
}catch(Exception ex){
}
} -
2. Re: rich:tree node selection problem
iimirela Jul 7, 2009 9:29 AM (in response to iimirela)Thank you very much. ajaxSubmitSelection="true" did it.
Ioana.