maganti lava

Greenhorn
+ Follow
since Jul 05, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by maganti lava

I think there is no use of javascript. You can directly send the value via f:param. with the help of the <h:commandLink>.
Ex: <h:commandLink action="#{backing.updateBannerImage}" id="programLink3">
<f:param name="toolId" id="toolId" value="2222"/ >
</h:commandLink>


If you write like this, you can get the value in the backing bean thourgh request parameter.
11 years ago
JSF
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"><h:outputLabel value="Transaction is not Enter." style="display:none" class="Requ" id="transErrMsg"/></td></tr>
<tr><td colspan="3">
<h:outputLink id="tCodeLnk" style="display:block" value="#" onclick="fieldsDisplay()">Select by T-Code.</h:outputLink></td></tr>
<tr><td><h:outputLabel 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">
<h:outputLink id="treeDispLnk" value="#" onclick="onTreeLinkDispField()">Browse Tree Menu.</h:outputLink>
</td></tr>
<tr><td colspan="3">
<h:outputLabel 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}">
<h:outputText value="#{node.description}" styleClass="nodeFolder"/>
<h:outputText 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"/>
<h:outputText 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/>
</h:outputLabel>
</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 clientTree:org.apache.myfaces.tree.NAV_COMMAND' is null or not an object.
11 years ago
JSF