myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Long Tran <lt...@xbiosystems.com>
Subject Tomahawk Tree2 Javascript problem.
Date Sun, 19 Nov 2006 02:30:09 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
All,<br>
<br>
I've created a TreeModel and successfully rendered it on the browser,
however, when I click on the expand/collapse button, it's not working.<br>
<br>
Apparently, in the HTML page generated, javascript function
"treeNavClick" was not generated, is there any tag/attribute i need to
add to the Tree2 component?<br>
<br>
Hers is my Jsp:<br>
<br>
<font face="Courier New, Courier, monospace">&lt;f:view&gt;<br>
&lt;t:tree2 id="myTree" showNav="true"
rendered="#{LovBackingBean.lovTree!=null}" <br>
showRootNode="false" var="node" value="#{LovBackingBean.lovTree}"<br>
varNodeToggler="t"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;f:facet name="rootNode"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h:panelGroup&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h:outputText
value="#{node.description}"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/h:panelGroup&gt;<br>
&nbsp;&nbsp; &lt;/f:facet&gt;<br>
&nbsp;&nbsp; &lt;f:facet name="topNode"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h:panelGroup&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h:outputText
value="#{node.description}"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/h:panelGroup&gt;<br>
&nbsp;&nbsp; &lt;/f:facet&gt;<br>
&nbsp;&nbsp; &lt;f:facet name="childNode"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h:panelGroup&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h:outputText
value="#{node.description}"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/h:panelGroup&gt;<br>
&nbsp;&nbsp; &lt;/f:facet&gt;<br>
&lt;/t:tree2&gt;<br>
&lt;/f:view&gt;</font><br>
</body>
</html>

Mime
View raw message