do you need to control the notetypes of the intermediate nodes or just for the newly created? in the later case, i suggest just to pass the jcr:primaryType as property and the processor should pick that up as node type for the new node.
eg: POST /foo/bar/* ./jcr:primaryType = "myNodeType" ./tite = "Some Tittle" WDYT ? regards, toby On 2/6/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > jcr:primary type is the value that needs to be passed to the addNode method > when a new node is created. > > I named the request parameter sling:primaryType as to not collide with the > automagic node.setProperty("jcr:primaryType", "mytype") which will fail as > primary type is a protected property. > Sent via BlackBerry by AT&T > > -----Original Message----- > From: "David Nuescheler" <[EMAIL PROTECTED]> > > Date: Tue, 5 Feb 2008 09:39:08 > To:sling-dev@incubator.apache.org > Subject: Re: Need to have the ability to add primary content type to PUT in > UjaxPostServlet > > > hi eric, > > what do you mean by sling:primaryType? are you referring to jcr:primaryType? > > regards, > david > > On 2/5/08, Marts, Eric <[EMAIL PROTECTED]> wrote: > > I updated class to handle sling:primaryType request parameter. Need to get > > into main branch. > > > > addNode(node, type); > > > > Eric > > > > -- -----------------------------------------< [EMAIL PROTECTED] >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---