This content has been marked as final.
Show 3 replies
-
1. Re: Can't Get Tree to ReRender
maksimkaszynski Oct 4, 2007 10:48 AM (in response to andrewbarton)Maybe, treePanel is not visible from treeNode?
Tree is NamingContainer, BTW -
2. Re: Can't Get Tree to ReRender
andrewbarton Oct 4, 2007 2:22 PM (in response to andrewbarton)Maksim, assuming I have understood your comment, then you are suggesting I try the following:
<a4j:form ajaxSubmit="false" id="treeForm" reRender="theCategoryTree"> <a4j:log/> <rich:dragIndicator id="indicator" /> <a4j:outputPanel id="treePanel"> <rich:tree id="theCategoryTree" style="width:300px" nodeSelectListener="#{categoryTreeEditView.processSelection}" reRender="theCategoryTree" ajaxSubmitSelection="true" switchType="ajax" value="#{categoryTreeEditView.tree}" adviseNodeOpened="#{categoryTreeEditView.isNodeExpanded}" var="category" binding="#{categoryTreeEditView.categoryTreeBinding}"> <rich:treeNode dragIndicator=":indicator" dragType="node" ajaxSubmitSelection="true" dragValue="#{category}" dropValue="#{category}" acceptedTypes="node" dropListener="#{categoryTreeEditView.processDrop}" reRender="theCategoryTree"> <h:outputText value="#{category.name}" /> </rich:treeNode> </rich:tree> </a4j:outputPanel> </a4j:form>
Unfortunately, this makes no difference in the functionality. I have also tried using the following reRender values: 'treeForm', 'treeForm:treePanel','treeForm:treePanel:theCategoryTree'. None of these result in any change accept the last - 'treeForm:treePanel:theCategoryTree'. This reRender value makes the tree go blank until I refresh the page. Perhaps this is progress of sorts.
Am I specifying the reRender values correctly? -
3. Re: Can't Get Tree to ReRender
lectrix Feb 29, 2008 6:01 AM (in response to andrewbarton)hello andrewbarton,
did you manage to rerender the tree?
i am getting a strange javascript error after successfully rerendering the tree component when i click on a node:
"component has no properties" in event.js.jsf
do you have a working example of rerendering a tree ondrop?
thanks
br
stefan.