-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
I think I have found a bug in the tree component.
If I declare the component within a zul file like this:
<tree model="${treemodel}" treeitemRenderer="${treeRenderer}">
"treemodel" and "treeRenderer" are declared ahead of the tree component within a <zscript> tag
The tree should be renderer on loading of the zul file with my "treeRenderer", but it is renderer with the default TreeitemRenderer.
As soon as I open the Treeitem, all following Treeitems are renderer correctly with my "treeRenderer".
If necessary I can provide a small example.
I cannot figure out your problem.
Do you mean, the first level nodes are rendered by default renderer, and other level nodes are rendered by your custom renderer?
Yes.
The first level node is not renderer with my custom renderer. As soon as I open the tree my custom renderer is used. Also if I asign the same model through clicking a button, my custom renderer is used.
There is only a problem, if the page is loaded and the tree is initalized, and the first level nodes are rendered. It seems to ignore the assigned renderer and uses the default one.
mfg Michael
I have found a solution to this problem.
<tree id="testt" model="${treemodel}" treeitemRenderer="${treeRenderer}"/>
<tree id="testt" treeitemRenderer="${treeRenderer}"> </tree> <zscript><![CDATA[ testt.setModel(treemodel); ]]></zscript>
mm...
Use ZUL tag did have sequence issue when assigning attribute in some components.
I did not have sample to run your code.
However, could you help us with following code to see if this work or not.
<tree id="testt" treeitemRenderer="${treeRenderer}" model="${treemodel}"/>
Hmm, Maybe we should post it to been a bug ,
check here, http://sourceforge.net/tracker/index.php?func=detail&aid=2124391&group_id=152762&atid=785191
Asked: 2008-09-16 10:22:08 +0800
Seen: 349 times
Last updated: Sep 23 '08