I was using the following type of dijit.tree as my menu in an xPages application. it worked perfectly in 8.5.1 (on both server and client), but in 8.5.2, while the correct links produce the correct xPages, the selected link no longer remains highlighted. The whole tree appears to refresh and the highlight goes back to the very top of the tree.
Can you please tell me how I can get the selected link to stay highlighted in 8.5.2 (on both server and client)?
Here is the code:
<div class="leftframecontent">
<!-- begin markup tree -->
<div dojoType="dojo.data.ItemFileReadStore"
jsId="navStore" url="nav.json" urlPreventCache="true">
</div>
<div dojoType="dijit.tree.ForestStoreModel"
jsId="navModel" store="navStore"
query="{type:'cat'}" rootId="navRoot"
rootLabel="OSCAR" childrenAttrs="children">
</div>
<div dojoType="dijit.Tree" id="mytree"
model="navModel" openOnClick="true" showRoot="false" jsId="navTree">
<script type="dojo/method" event="onClick" args="item">
<!-- item id is the xsp page name -->
var pageName = navStore.getValue(item, "id");
<!-- navigate to xsp page -->
window.location.href = pageName + getSessionParm();
</script>
<script type="dojo/method" event="onOpen" args="item">
<!-- get current xpage name (this should match a node in the tree) -->
var currentPage = getCurrentXPage();
<!-- focus the node that matches the current page -->
var node = navTree._itemNodesMap[currentPage];
if (node) {
navTree.focusNode(node);
}
</script>
</div>
<!-- end tree -->