[ 
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.

Reply via email to