Hi,
I have some problems with tree2, using the nightly build from 20050812.
(1) Bug in JavaScript code:
I am trying two browsers, Mozilla and Konqueror, which both report the same
error in the following function (line 13 in tree.js):
function treeNavClick(spanId, navImageId, image1, image2, nodeImgId,
expandImg, collapseImg, cookieName, nodeId) {
[...]
if (navImage.src.indexOf(image1)>=0) navImage.src = image2; else
[...]
}
The error is that navImage has no properties, i.e. navImage = null, so the
line given cannot be evaluated. Is this a bug in tree2 or is it my fault?
(2) State saving on the server side does not work with my example. If I use it
(i.e. if I set clientSideToggle="false"), the tree is displayed, but when I
click the node it is not expanded -- in fact, nothing seems to happen. This
seems to be my fault since it works in the myfaces example. What did I miss?
(My example works, if I set clientSideToggle="true", leaving everything else
unchanged.)
(3) This is not really a question concerning tree2, but specific to my
example. I ask it nevertheless -- maybe someone would like to give me help.
Consider the following very simple page which contains only a tree:
<body style="background-color:#D8D6C7">
<f:view>
<h:outputText value="GAS Application" />
<h:form>
<t:tree2 value="#{gasTreeBacker.treeData}"
id="client-tree"
var="node" varNodeToggler="t"
clientSideToggle="true">
[...]
</t:tree2>
</h:form>
</f:view>
</body>
My problem concerns the background colour. If I display this page with
Konqueror, the whole page has the background colour I set in the body tag.
This is the expected behaviour. However, if I display this page with Mozilla,
only a rectangle around the tree has this colour. The rest of the page (about
90%) is white. What do I have to do, so that Mozilla uses the background
colour for the whole page?
Thanks in advance for any help,
Andreas Schenk