You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "David Nuescheler (JIRA)" <ji...@apache.org> on 2008/02/18 13:06:34 UTC
[jira] Commented: (SLING-81) Add write-support to Javascript API
for JCR
[ https://issues.apache.org/jira/browse/SLING-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569868#action_12569868 ]
David Nuescheler commented on SLING-81:
---------------------------------------
sounds great.
i think it would be cool if that same mechanism works in ujax (or i should say: "could work in ujax") which seems to be the case...
> Add write-support to Javascript API for JCR
> -------------------------------------------
>
> Key: SLING-81
> URL: https://issues.apache.org/jira/browse/SLING-81
> Project: Sling
> Issue Type: Sub-task
> Components: microsling
> Reporter: Lars Trieloff
>
> The current Javascript API is good at reading data from the repository, but has not yet a working implementation of assignments like
> node.mimetype = "text/plain" a.k.a node["mimetype"] = "text/plain"
> node["members"] = ["bertrand", "lars"];
> node["childnode"] = {"mimetype": "text/plain", "text": "bla bla bla"}
> The first example should call node.setProperty("mimetype", "text/plain");
> The second example should call node.setProperty("members", new String[] {"bertrand", "lars"});
> The third example should either set the properties of the child node "childnode" or of the node referenced in a property called "childnode".
> This should also allow for nesting of properties,
> node["childnode"] = {"mimetype": "text/plain", "text": "bla bla bla", "childnode: {"mimetype" : "text/plain" }}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.