rerendered rich:tree is displayed with previous tree structure (node expansion and node selection)
===

I have a rich:tree inside of s:div tag. A <h:selectOneMenu> change action causes the tree to be rebuilt by the backend bean. After the tree is rebuilt the s:div is rerendered. 

My problem is that even if the new tree is displayed with the correct nodes the new tree is expanded to the previous trees node level (when possible). Also, if a treenode was selected in the previous tree and the new tree has a node at that same level then that node is selected.

What I would like is for the tree to be collapsed with no node selection at all. I.E. no history of previous tree.

Here is my tree in the xhtml:

    				<s:div id="treeDiv">
					<rich:tree id="workBasedMetaTree" 
							switchType="ajax" 
							value="#{inDelivery.workBasedTreeNode}"
							var="item" 
							nodeSelectListener="#{inDelivery.processWorkBasedNodeSelection}"
							selectionType="ajax"
							ajaxSingle="true"
							ajaxSubmitSelection="true" 
							toggleType="ajax"							
							selectedClass="selectedTreeNode"
							rendered="#{inDelivery.displayWorkbasedTree}"
							reRender="recordTypeAndAreaInfoDiv"
							>

							<rich:treeNode>
								<h:outputText value="#{item.name}" />
								<h:outputText 
									rendered="#{not empty item.recordArea}" />
							</rich:treeNode>
					</rich:tree>
				</s:div>

And here is the code that triggers the change:

    						<s:div id="archiveStructureDiv">
							<s:decorate id="archiveStructureDecorator" template="/layout/edit.xhtml" rendered="#{not empty inDelivery.combinedArchiveStructureList}">
								<ui:define name="label">Arkivstruktur:</ui:define>
								<h:selectOneMenu value="#{inDelivery.archiveStructureSelectedId}">
									<s:selectItems value="#{inDelivery.combinedArchiveStructureList}" var="_archiveStructure" label="#{_archiveStructure.name}" itemValue="#{_archiveStructure.id}"
										noSelectionLabel="Välj..." />
									<a:support event="onchange" reRender="treeDiv,recordTypeAndAreaInfoDiv,a_informationClassificationDiv" action="#{inDelivery.archiveStructureChoiceAction(true)}" ajaxSingle="true" />
								</h:selectOneMenu>
							</s:decorate>
						</s:div>

There does not appear to be any problems with the content of the tree. The new tree is displaying the correct node structure.

Thankful for any help!