JSON tree

2010-09-17 Thread Federico Paparoni
Hi all, In Apache Sling it's possible to have the resource in a JSON format, but is it possible to have a JSON tree ? For example if I have a node with children, can I have the rappresentation of these structure as a JSON tree using Apache Sling? Cheers, -- Federico Paparoni Blog -- http://fpa

Re: JSON tree

2010-09-17 Thread Felix Meschberger
Hi, yes you can. By indicating the depth of the tree you want to get back as a selector: /content.json --- returns just the properties of /content /content.2.json -- returns /content plus two levels down /content.infinity.json -- returns complete /content tree Beware of the "infinity",

RE: Velocity scripting support - release?

2010-09-17 Thread Mike Müller
Hi Sorry for the wait... I will do a first release, I hope I can do it next week. From my point of view SLING-1708 isn't that important and can be included later as well (2.0.2). best regards mike > Shouldn't SLING-1708 be implemented first? Not knowing much about > Velocity, it doesn't look t

Re: POST file to upload and set jcr:mixinTypes?

2010-09-17 Thread sam lee
Thanks.. But it does not add jcr:mixinTypes. I deleted the nt:file node and retried a few times since I found a bug report saying that setting jcr:mixinTypes only works for node creation, not modification.. I'm gonna create a servlet that handles file upload :P On Thu, Sep 16, 2010 at 2:48 PM, J

Re: JSON tree

2010-09-17 Thread Simon Gaeremynck
Keep in mind that if you have a very big tree you might run into a 300 status code. The body will contain a JSON object of possible requests you can do. I _think_ it's limited to 200 items by default, but it can be configured trough the Felix admin console. Regards, Simon On 17 September 2010 10