You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Al Sutton (JIRA)" <ji...@apache.org> on 2008/01/31 10:46:05 UTC

[jira] Created: (WW-2465) Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null

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

                 Key: WW-2465
                 URL: https://issues.apache.org/struts/browse/WW-2465
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Dojo Tags
    Affects Versions: 2.1.1
            Reporter: Al Sutton
         Attachments: dojo_dynamic_tree_null_children_fix.patch

If the property specified in the childProperty for an s:tree returned a null the following freemarker error occurs;

Expression stack.findValue(parameters.childCollectionProperty.toString()) is 
undefined on line 24, column 8 in template/ajax/treenode-include.ftl.
The problematic instruction:
----------
==> list stack.findValue(parameters.childCollectionProperty.toString()) as child [on line 24, column 1 in template/ajax/treenode-include.ftl]
 in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
 in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
 in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 124, column 5 in template/ajax/tree.ftl]
----------

The attached patch fixes this problem by using a empty list as the default if a null is returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WW-2465) Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null

Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Hermanns reassigned WW-2465:
-----------------------------------

    Assignee: Rainer Hermanns

> Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2465
>                 URL: https://issues.apache.org/struts/browse/WW-2465
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.1
>            Reporter: Al Sutton
>            Assignee: Rainer Hermanns
>             Fix For: 2.1.1
>
>         Attachments: dojo_dynamic_tree_null_children_fix.patch
>
>
> If the property specified in the childProperty for an s:tree returned a null the following freemarker error occurs;
> Expression stack.findValue(parameters.childCollectionProperty.toString()) is 
> undefined on line 24, column 8 in template/ajax/treenode-include.ftl.
> The problematic instruction:
> ----------
> ==> list stack.findValue(parameters.childCollectionProperty.toString()) as child [on line 24, column 1 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 124, column 5 in template/ajax/tree.ftl]
> ----------
> The attached patch fixes this problem by using a empty list as the default if a null is returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2465) Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null

Posted by "Al Sutton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Al Sutton updated WW-2465:
--------------------------

    Attachment: dojo_dynamic_tree_null_children_fix.patch

> Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2465
>                 URL: https://issues.apache.org/struts/browse/WW-2465
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.1
>            Reporter: Al Sutton
>         Attachments: dojo_dynamic_tree_null_children_fix.patch
>
>
> If the property specified in the childProperty for an s:tree returned a null the following freemarker error occurs;
> Expression stack.findValue(parameters.childCollectionProperty.toString()) is 
> undefined on line 24, column 8 in template/ajax/treenode-include.ftl.
> The problematic instruction:
> ----------
> ==> list stack.findValue(parameters.childCollectionProperty.toString()) as child [on line 24, column 1 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 124, column 5 in template/ajax/tree.ftl]
> ----------
> The attached patch fixes this problem by using a empty list as the default if a null is returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WW-2465) Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null

Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Hermanns closed WW-2465.
-------------------------------

    Resolution: Fixed

fixed in SVN trunk

> Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2465
>                 URL: https://issues.apache.org/struts/browse/WW-2465
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.1
>            Reporter: Al Sutton
>            Assignee: Rainer Hermanns
>             Fix For: 2.1.1
>
>         Attachments: dojo_dynamic_tree_null_children_fix.patch
>
>
> If the property specified in the childProperty for an s:tree returned a null the following freemarker error occurs;
> Expression stack.findValue(parameters.childCollectionProperty.toString()) is 
> undefined on line 24, column 8 in template/ajax/treenode-include.ftl.
> The problematic instruction:
> ----------
> ==> list stack.findValue(parameters.childCollectionProperty.toString()) as child [on line 24, column 1 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 124, column 5 in template/ajax/tree.ftl]
> ----------
> The attached patch fixes this problem by using a empty list as the default if a null is returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2465) Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null

Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Hermanns updated WW-2465:
--------------------------------

    Fix Version/s: 2.1.1

> Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null
> ---------------------------------------------------------------------------------------------
>
>                 Key: WW-2465
>                 URL: https://issues.apache.org/struts/browse/WW-2465
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.1
>            Reporter: Al Sutton
>            Assignee: Rainer Hermanns
>             Fix For: 2.1.1
>
>         Attachments: dojo_dynamic_tree_null_children_fix.patch
>
>
> If the property specified in the childProperty for an s:tree returned a null the following freemarker error occurs;
> Expression stack.findValue(parameters.childCollectionProperty.toString()) is 
> undefined on line 24, column 8 in template/ajax/treenode-include.ftl.
> The problematic instruction:
> ----------
> ==> list stack.findValue(parameters.childCollectionProperty.toString()) as child [on line 24, column 1 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 26, column 5 in template/ajax/treenode-include.ftl]
>  in include "/${parameters.templateDir}/ajax/treenode-include.ftl" [on line 124, column 5 in template/ajax/tree.ftl]
> ----------
> The attached patch fixes this problem by using a empty list as the default if a null is returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.