myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bala Ayalur <ar_balakrish...@yahoo.com>
Subject Help required with Tomahawk Tree2 component
Date Thu, 12 Jul 2007 08:56:07 GMT

Hi,
   We use the MyFaces Tomahawk Tree2 component to display a client side tree
for navigation. The tree is static and is built during load of the page. The
web page is divided into two frames. The tree is on the left frame and on
click of the links in the tree the corresponding screen is shown on the
right frame. The tree works well. However we are facing a interesting
problem. After some period of use and idle time, when we click on the links
on the tree, the entire tree is displayed on the right frame. The tree on
the left frame is not functional any more while the tree on the right frame
is functional. There is no fixed pattern of occurence and it occurs at
varying frequencies on different machines. Is this problem related to client
side cookies that are used by Tree2. Please help me on fixing this issue or
finding a work around. The jsf code is attached below. Any pointers will be
very helpful. We are using MyFaces 1.1.4 with tomahawk 1.1.3.

<h:form>
    <t:tree2 id="clientTree" value="#{treeBacker.treeData}" var="node"
	varNodeToggler="t" showRootNode="true" clientSideToggle="true" >
	<f:facet name="main">
             	<h:panelGroup style="white-space:nowrap;">	
		<f:facet name="expand">
	             	<t:graphicImage value="../images/globus-0.gif"						
rendered="true" border="0" />
		</f:facet>
		<f:facet name="collapse">
			<t:graphicImage value="../images/globus-0.gif"
			rendered="true" border="0" />
		</f:facet>
	             <h:outputText value="#{node.description}"
style="white-space:nowrap;"      
                          styleClass="treeClass" />
		</h:panelGroup>
	</f:facet>
	<f:facet name="node">
	<h:panelGroup style="white-space:nowrap;" >
	     <f:facet name="expand">
		<t:graphicImage value="../images/yellow-folder-open.png"
		rendered="#{t.nodeExpanded}" border="0" />
	     </f:facet>
	     <f:facet name="collapse">
		<t:graphicImage value="../images/yellow-folder-closed.png"
		rendered="#{!t.nodeExpanded}" border="0" />
	     </f:facet>
	    <h:outputText value="#{node.description}"
style="padding:10px;white-space:nowrap;" 
                  styleClass="treeClass" />
	</h:panelGroup>	
	</f:facet>
	<f:facet name="simpleScreen">
	    <h:panelGroup>        
                        <h:commandLink immediate="true" styleClass="# 
                                    {t.nodeSelected ?
'documentSelected':'document'}"				  	   
action="#{simpleScreenHandler.handleMenuEvent}"
	                 target="content_frame" style="white-space:nowrap;"
styleClass="treeClass">
	                 <t:graphicImage value="../images/globus.gif" border="0" />
		   <h:outputText value="#{node.description}" style="padding:10px;white-
                               space:nowrap;" 	/>
		   <f:param name="ScreenName" value="#{node.identifier}" />
		</h:commandLink>
	        </h:panelGroup>
 	</f:facet>
	<f:facet name="crudScreen">
                  <h:panelGroup>
		<h:commandLink immediate="true" styleClass="#
                              {t.nodeSelected ?
'documentSelected':'document'}"				
		     action="#{ilaScreenHandler.handleMenuEvent}"	
		     target="content_frame" style="white-space:nowrap;"
styleClass="treeClass">
		     <t:graphicImage value="../images/globus.gif" border="0" />
		    <h:outputText value="#{node.description}" style="padding:10px;white-
                                space:nowrap;"	/>
	  	    <f:param name="ScreenName" value="#{node.identifier}" />
		</h:commandLink>
	        </h:panelGroup>
	</f:facet>		
        </t:tree2>
</h:form>

   Thanks & Regards,
   Bala
-- 
View this message in context: http://www.nabble.com/Help-required-with-Tomahawk-Tree2-component-tf4066841.html#a11556033
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message