-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3730404
By: nobody
Hey!
I need to read an array out of my request and generate a zk1 tree.
<treerow>
<treecell label="${each}" forEach="${cats}"/>
</treerow>
that doesn't work, because it just repeats the line with the treecell tag. How can i gerate elements with more than one line?
are there other loop types? like:
for (condition) {
<treerow>
<treecell label="${var}/>
</treerow>
}
thx
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3730431
By: henrichen
Use the zk "virtual" tag.
<zk forEach="${cats}">
<treerow>
<treecell label="${each}/>
</treerow>
</zk>
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3730603
By: nobody
That doesn't work!
I get the exception:
com.potix.zk.ui.UiException: The zk element cannot be used other than as the root
my code:
<tree id="pages" width="150px" rows="15" style="border-color: white">
<treechildren>
<zk forEach="${requestScope.categories}">
<treeitem>
<treerow>
<treecell label="${each}"/>
</treerow>
</treeitem>
</zk>
</treechildren>
</tree>
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3730746
By: henrichen
Please try with the lastest Nightly version.
/henri
<tree model="@load(cats)">
<template name="model" var="treenode">
<treeitem> <treerow>
<treecell label="@bind(treenode)">
<treeitem>
</template>
</tree>
do let me know if it works.
Asked: 2006-05-15 08:44:07 +0800
Seen: 206 times
Last updated: Mar 15 '13