This content has been marked as final.
Show 3 replies
-
1. Re: get selected node from tree?
tkalactomo Jul 17, 2007 7:48 AM (in response to michi_h)Hi!
This is the method that is called every time when node is expanded/collapsed
in your bean.
public void onExpand(NodeExpandedEvent event) {
UITree tree = (UITree) event.getComponent();
//you have the expanded/collapsed node(tree)
}
and in your jsp you need to set:
<r:tree
changeExpandListener="#{someBean.onExpand}"/> -
2. Re: get selected node from tree?
supernovasoftware.com Jul 17, 2007 11:07 AM (in response to michi_h)I have been trying to do something similar with datascroller, but can get no advice.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=113577
Any ideas? -
3. Re: get selected node from tree?
tkalactomo Jul 18, 2007 4:08 AM (in response to michi_h)I didn't test this but maybe it will work.
You can set the binding=#{dataScroller},
which is in your bean injected and outjected:@In(required=true,create=true) @Out(required=true) private org.richfaces.component.UIDatascroller dataScroller;
and then trying to call the dataScroller.getPageIndex() from your
processAction method.