Tree2 in Tomahawk and JSF Tiles Implementation
hi All,
right now i mfacing one problem. which arise due to tiles implementation in JSF with Tree2 component of Tomahawk. i had created one tree menu using Tree2.
its working fine, but i was not able to highlight selected child node of tree menu as i m using tiles implementation so all pages gets reloaded on every click on jsp. thus color of that selected node becomes as it is.
please note that i m using myfaces implementation.
what i have written is as below:
***********************************************************************************
<t:tree2 id="wrapTree" value="#{frontPage.catTree}" var="node" clientSideToggle="true"
showRootNode="false" varNodeToggler="t">
<f:facet name="parent-one">
<h:panelGrid id="parentOne" columns="1" cellpadding="0" cellspacing="0" border="0">
<h:commandLink styleClass="textorg" immediate="true" action="#{categoryListBean.showCategoryDetail}">
<h:outputText escape="false" value="#{node.description} "/>
<f:param name="categoreId" value="#{node.identifier}"/>
</h:commandLink>
</h:panelGrid>
</f:facet>
<f:facet name="top-parent">
<h:panelGrid id="topParent" columns="1" cellpadding="2" cellspacing="0" border="0" align="left">
<h:commandLink styleClass="txtbold" immediate="true" action="#{categoryListBean.showCategoryDetail}">
<h:outputText escape="false" value="#{node.description} "/>
<f:param name="categoreId" value="#{node.identifier}"/>
</h:commandLink>
</h:panelGrid>
</f:facet>
<f:facet name="child">
<h:panelGroup id="Child">
<h:commandLink styleClass="#{t.nodeSelected ? 'headerRedText':'txt1'}" actionListener="#{t.setNodeSelected}" immediate="true">
<h:outputText value="#{node.description}"/>
<f:param name="categoreId" value="#{node.identifier}"/>
</h:commandLink>
</h:panelGroup>
</f:facet>
</t:tree2>
***********************************************************************************
please help me if u have solution of this problem.
thank you.