• Post Reply Bookmark Topic Watch Topic
  • New Topic

Related to tree2 of tomahak  RSS feed

 
maganti lava
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
we are facing the problem related to tree2. Can any one know the solution of atleast one for the following problems.
Problem 1: we are using tree2 tag of tomahawk. we have the 17,500 records in the mysql. Using this records we are trying to create the tree. Here we are running the backing bean method successfully, but getting the heap space error.
Note: we are getting the tree currectly. when we are retreaving the 5,500(approximatly) records from the Database(Mysql).

<h:form id="foo">

<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<!-- Logo Area Begin -->
<td><img src="../images/header.JPG" width="500" alt="" height="60" /></td>
<td><img src="../images/funHeader.JPG" alt="" height="60" width="510"/></td>
<!-- Logo Area End -->
</tr>
</table>
<table align="center" border="0">
<tr><td colspan="3"><hutputLabel value="Transaction is not Enter." style="display:none" class="Requ" id="transErrMsg"/></td></tr>
<tr><td colspan="3">
<hutputLink id="tCodeLnk" style="display:block" value="#" onclick="fieldsDisplay()">Select by T-Code.</hutputLink></td></tr>
<tr><td><hutputLabel id="tCodeLbl" style="display:none;" value="Transaction:"/></td><td>
<h:inputText name="tCode" id="tCode" style="display:none;" size="35" maxlength="40" styleClass="INPUT" value="#{ticketBean.ticket.transaction}"/></td><td><h:commandButton id="searchTranVal" onclick="return searchBtnClk();" style="display:none;" name="searchTranVal" value="search" action="#{ticketBean.searchTCode}" class="Button75"/>
<h:inputHidden value="#{ticketBean.ticket.functionFieldsDisp}" id="displayCheckVal"/>
</td></tr>
<tr><td></td><td colspan="2">
<h:selectOneMenu style="display:none" id="funValue" value="#{ticketBean.ticket.functionVal}" onchange="setFunValue(this)"><!--binding="#{ticketBean.ticketView.release}"-->
<f:selectItems id="funValues" value="#{ticketBean.ticket.functionValList}"/>
</h:selectOneMenu>
</td></tr>
<tr><td colspan="3" align="center">
(OR)
</td></tr>
<tr><td colspan="3">
<hutputLink id="treeDispLnk" value="#" onclick="onTreeLinkDispField()">Browse Tree Menu.</hutputLink>
</td></tr>
<tr><td colspan="3">
<hutputLabel id="treeDisp" style="display:none">
<t:tree2 id="clientTree" value="#{treeBacker.treeData}" var="node" varNodeToggler="t" clientSideToggle="true">
<f:facet name="person">
<h:panelGroup>
<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:panelGroup>
</f:facet>
<f:facet name="foo-folder">
<h:panelGroup>
<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:commandLink immediate="true" onmousedown="folderMethod(this.id)" id="folderLink" styleClass="#{t.nodeSelected ? 'documentSelected':'document'}" actionListener="#{treeBacker.getvalue}">
<hutputText value="#{node.description}" styleClass="nodeFolder"/>
<hutputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
<h:inputHidden id="folderHiddenVal" value="#{node.description}"/>
<h:inputHidden id="folderIdentifier" value="#{node.identifier}"/>
</h:commandLink>
</h:panelGroup>
</f:facet>
<f:facet name="document">
<h:panelGroup>
<h:commandLink immediate="true" onmousedown="documentMethod(this.id)" id="documentLink" styleClass="#{t.nodeSelected ? 'documentSelected':'document'}" actionListener="#{treeBacker.getvalue}">
<t:graphicImage value="/images/document.png" border="0"/>
<hutputText id="documentDesc" value="#{node.description}"/>
<h:inputHidden id="hiddenVal" value="#{node.description}"/>
<h:inputHidden id="hiddenDocIdentfier" value="#{node.identifier}"/>
</h:commandLink>
</h:panelGroup>
</f:facet>
</t:tree2>
<h:inputHidden id="idString" value=""/>
<br/>
</hutputLabel>
</td></tr><tr>
<td colspan="3" align="center">
<h:commandButton class="Button75" action="#" onclick="javascript:window.close()" value="Close"/>
</td>
</tr></table>
</h:form>

Problem 2: In the tree2 we set the clientSideToggle="false". After setting it. we are getting the root node only and if i try to click on the +. it is showing script error clientTreerg.apache.myfaces.tree.NAV_COMMAND' is null or not an object.
 
Sergio Gazzini
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you try to increase heap space for JVM?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!