You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/08/28 14:19:44 UTC

[jira] Updated: (SLING-328) access to node props in esp

     [ https://issues.apache.org/jira/browse/SLING-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-328:
------------------------------------

          Component/s:     (was: Scripting)
                       Scripting JavaScript (Rhino)
    Affects Version/s: Scripting JavaScript 2.0.2

> access to node props in esp
> ---------------------------
>
>                 Key: SLING-328
>                 URL: https://issues.apache.org/jira/browse/SLING-328
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting JavaScript (Rhino)
>    Affects Versions: Scripting JavaScript 2.0.2
>            Reporter: Michael Marth
>
> My .esp looks like
> for (var i in currentNode.getNodes()) {
>             if(currentNode.getNodes()[i].getProperty("approved").getString() == "true") {
> ...
> Bertrand tells me that in the second line this should work as well:
> if(currentNode.getNodes()[i].approved (...)
> It does not give an exception but the property is undefined.

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