access to node props in esp
---------------------------

                 Key: SLING-328
                 URL: https://issues.apache.org/jira/browse/SLING-328
             Project: Sling
          Issue Type: Bug
            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