[ https://issues.apache.org/jira/browse/SLING-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz resolved SLING-81. -------------------------------------- Resolution: Won't Fix As we haven't touched this for a while, closing won't fix. We'll reopen if needed. > 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: Servlets > 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. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira