Not yet... There's an open issue for this. It requires upgrading the post servlet bundle to depend upon JCR 2 and I'd rather get a release out before upgrading the dependency.
In this particular case, I wonder if using nt:unstructured for the jcr:content node will cause problems with Jackrabbit. Could you use nt:resource and add mixins to allow additional properties or child nodes? Or add mixins to the nt:file node? I guess it depends upon what you are trying to accomplish. Justin On Thu, Sep 2, 2010 at 6:02 PM, John Crawford <[email protected]> wrote: > Is it possible to re-type a node once it has been created? Basically, I > have file uploading working properly, however, I need the jcr:content node > to be of type nt:unstructure, but its being set as nt:resource. I sent a > subsequent request to change the type, but it's not responding to it. > Respectfully, > John > > On Thu, Sep 2, 2010 at 3:05 PM, John Crawford <[email protected]> wrote: >> >> Excellent. Thank you guys. >> >> On Thu, Sep 2, 2010 at 12:15 PM, Justin Edelson <[email protected]> >> wrote: >>> >>> Not quite - JSON gets posted as a form parameter. See >>> >>> http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html#ManipulatingContent-TheSlingPostServlet%2528servlets.post%2529-ImportingContentStructures >>> >>> You can also do something like this: >>> >>> <form method="POST" action="/content/page/first" >>> enctype="multipart/form-data"> >>> <input type="text" name="title" /> >>> <input type="text" name="text" /> >>> <input type="text" name="sub/text" /> >>> <input type="text" name="sub/sub1/text" /> >>> <input type="Submit" /> >>> </form> >>> >>> i.e. just put slashes in the form parameter names and child nodes will >>> be created as needed. >>> >>> Justin >>> >>> On 9/2/10 1:12 PM, Ian Boston wrote: >>> > IIRC you can post a Json file in the body of the post and it becomes >>> > the node tree. >>> > Ian >>> > >>> > On 2 Sep 2010, at 17:42, John Crawford wrote: >>> > >>> >> Greetings, >>> >> >>> >> I was curious if anyone knows of a way to create an entire branch from >>> >> a >>> >> single POST request to the SlingPostServlet? By entire branch, I mean >>> >> maybe >>> >> two or three subnodes. >>> >> >>> >> Respectfully, >>> >> John >>> > >>> >> > >
