[
https://issues.apache.org/jira/browse/SLING-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573260#action_12573260
]
Bertrand Delacretaz commented on SLING-282:
-------------------------------------------
> I am not sure if (or how much of) currentNode is implemented in the version I
> work with
currentNode points to the same object as the former Resource.node, so its
behavior is exactly the same
> missing node functions in node wrapper
> --------------------------------------
>
> Key: SLING-282
> URL: https://issues.apache.org/jira/browse/SLING-282
> Project: Sling
> Issue Type: Bug
> Components: Launchpad
> Reporter: Michael Marth
> Assignee: Bertrand Delacretaz
>
> (this is on Launchpad revision 629151 running on top of crx)
> got an esp template that looks like:
> <h1><%= resource.node %>: <%= resource.node.getName() %></h1>
>
> <%
> var child = resource.node.getNode("2008-02")
> if (child.getProperty("sling:resourceType") == "emailListMonth") {
> %>yay<%
> }
> %>
> .getName() and .getNode("...") works OK, but .getProperty throws an exception:
> TypeError: getProperty is not a function
> same for .getNodes()
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.