Alexander Klimetschek wrote:
The existing json rendering provided by Sling is tied to JCR items
anyway, it's not generically implemented based on Resources and
ValueMaps. So that you have to do it yourself is actually expected.
Implementation is greatly simplified because of the JSONWriter
Andreas Kollegger wrote:
I'd like to expose data stored in an external database as resource
nodes in Sling.
Like Andreas, I'm exposing database tables as a virtual resource tree
in Sling. I'm using Dojo's JsonRestStore as a front-end for this
resource tree and have successfully set up
On Wed, Jul 29, 2009 at 9:02 PM, Paul Mietz Eglip...@obscure.com wrote:
Like Andreas, I'm exposing database tables as a virtual resource tree in
Sling. I'm using Dojo's JsonRestStore as a front-end for this resource tree
and have successfully set up ResourceProvider implementations for each
Thanks for your quick reply, Alex!
Alexander Klimetschek writes:
But anyway my gut feeling tells me that you should not make the
Resource depending on request parameters or HTTP headers. These
should rather define how the resource should be rendered. In your
case the resource would most
On Wed, Jul 29, 2009 at 10:20 PM, Paul Mietz
Eglipaul.e...@fullpower.com wrote:
Interesting idea! My initial implementation fetches the data from the table
in the custom ResourceResolver and place it in a table-specific Resource
implementation instance, but it sounds like you're suggesting