Hi, On Fri, Jan 9, 2015 at 11:51 AM, connuser1 connuser1 <[email protected]> wrote: > ...I have set the RESOURCE_TYPE of my resource to > 'sling/servlet/default'...
Setting a custom resource type is much better - the default servlets will still be used if you don't supply more specific ones, and you can later refine renderings without changes to your resource provider. > ...I am facing is that the DefaultGetServlet expects a > 'selector' to choose the correct rendering servlet..., I don't think so, that works correctly without selectors with the planets resource provider. After starting with "mvn clean launchpad:run" in sling/launchpad/testing I see this: $ curl http://localhost:8888/planets.tidy.2.json { "sling:resourceType": "sling/test-services/planet", "saturn": { "distance": 10759, "name": "Saturn" }, ... "earth": { "distance": 149600, "name": "Earth", "comment": "Resources can have different sets of properties", "moon": { "distance": 384, "name": "Moon" } } } And, with just an extension, no selector: $ curl http://localhost:8888/planets/earth.json {"distance":149600,"name":"Earth","comment":"Resources can have different sets of properties"} Isn't that what you want? If yes I suggest comparing what you do with our trivial planets ResourceProvider. -Bertrand
