Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@643359 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Hermanns
2008-04-01 11:01:22 +00:00
parent 3475f27cb0
commit 92db102c07
@@ -21,7 +21,7 @@
*/
-->
<div dojoType="struts:StrutsTreeNode" title="${stack.findValue(parameters.nodeTitleProperty)}" id="${stack.findValue(parameters.nodeIdProperty)}">
<#list stack.findValue(parameters.childCollectionProperty.toString()) as child>
<#list stack.findValue(parameters.childCollectionProperty.toString())! as child>
${stack.push(child)}
<#include "/${parameters.templateDir}/ajax/treenode-include.ftl" />
<#assign oldNode = stack.pop() /> <#-- pop the node off of the stack, but don't show it -->