You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/04/29 13:39:56 UTC

[jira] Closed: (SLING-282) missing node functions in node wrapper

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

Bertrand Delacretaz closed SLING-282.
-------------------------------------

    Resolution: Fixed

Works, closing

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