-
1. Re: Tree nodeSelectListener
dustismo Apr 23, 2007 6:34 PM (in response to dustismo)ack, ok, I found the problem, was missing:
ajaxSubmitSelection="true"
One more question, I'd like a node selection to result in a page reload. How can I accomplish?
thanks,
Dustin -
2. Re: Tree nodeSelectListener
.:lexx:. Apr 24, 2007 3:03 AM (in response to dustismo)I solved this problem for myself by changing switchType to "server"
-
3. Re: Tree nodeSelectListener
dustismo Apr 24, 2007 12:12 PM (in response to dustismo)Thanks for the response. Unfortunately switching to 'server' switch type is not possible. I need to have the open close events be ajax and the select be 'server'. Can I assume that this isn't possible? I don't even see any javascript hooks that I can use to reload the page (onselected is called before the ajax post returns). Is there a workaround that anyone can think of?
thanks,
Dustin -
4. Re: Tree nodeSelectListener
nbelaevski Apr 24, 2007 12:51 PM (in response to dustismo)Hello!
You can disable ajax submits for node selection by setting ajaxSubmitSelection="false". Then use onselected to submit() the form. -
5. Re: Tree nodeSelectListener
dustismo Apr 24, 2007 1:36 PM (in response to dustismo)Thanks!
<h:form id="watchGroupTree"> <rich:tree value="#{watchGroupNav.tree.root}" var="item" nodeFace="#{item.type}" switchType="ajax" styleClass="nav-tree" nodeSelectListener="#{watchGroupNav.onSelect}" ajaxSubmitSelection="false" onselected="document.forms['watchGroupTree'].submit();" >
-
6. Re: Tree nodeSelectListener
kirancsagi Jun 11, 2007 7:45 PM (in response to dustismo)How do you get to know the value or id of the node selected in the nodeSelectListener........
any help is appreciated.
Thanks