Re: Adding dependencies

2012-11-16 Thread Alexander Klimetschek
On 14.11.2012, at 19:06, Dan Klco dan.k...@sixdimensions.com wrote:

 create a framework in Sling allow defining resource based servlets via 
 annotating methods

That would break Sling's RESTful mantra addresses resources, not scripts. 
Servlets are scripts and do not define resources - this is done through the 
resource API as the first step in request handling, before the servlet is 
selected based on the resource type.

 and add support serializing responses

What do you think is missing here?

 and loading parameters from the request.

Same question here. You can have a service or helper that you use from within 
your servlets to read parameters the way you want. To generalize, you could 
have an abstract base servlet that does that for you.

In general, it's not a good idea when web frameworks try to completely abstract 
away the protocol (HTTP  REST-style).

Cheers,
Alex



Disabled default Property Printing behavior in the Sling GET Servlet

2012-11-16 Thread David G.
Is there a way to prevent making a GET for the full path to a property
to NOT return the property's value:

 HTTP GET /content/site/page/jcr:content/page-property  == this is
the page property value

I want it to return nothing -- i would be find being able to control
this on a per-resourcetype basis as well.

I did not see this an a option on the Sling GET Servlet. Is it
configured someplace else perhaps?

Thanks!