[ https://issues.apache.org/jira/browse/SLING-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated SLING-81: ---------------------------------- Component/s: (was: microsling) Post Servlets > 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: Post 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. - You can reply to this email to add a comment to the issue online.