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/03/25 12:19:25 UTC
[jira] Commented: (SLING-290) cannot access binary propery in
script
[ https://issues.apache.org/jira/browse/SLING-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581875#action_12581875 ]
Felix Meschberger commented on SLING-290:
-----------------------------------------
This is expected as the nt:file has no jcr:data property. nt:file has an jcr:content child node, which in turn has an jcr:data property.
But: Problem is that the ScriptableNode.get(String) method does not support the full range of property types. Fixing this by using
the JcrResourceUtil.toJavaObject method which supports all types properly.
> cannot access binary propery in script
> --------------------------------------
>
> Key: SLING-290
> URL: https://issues.apache.org/jira/browse/SLING-290
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Michael Marth
> Assignee: Felix Meschberger
>
> (this is on Launchpad revision 629151 running on top of crx)
> trying to access a binary property in an esp does not work (I try to access the jcr:data property of an nt:file)
> this:
> currentNode["jcr:data"]
> gives "false".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.