Hi,

Similarly, editing such POJOs. The current app uses a JavaScript app to 
navigate the tree
and read/write objects. Sling adds a lot more functionality to the basic 
servlet container so
I'm wondering what client-side frameworks take advantage of this...

Backbone.js comes to mind but I also haven't used it myself
(infrastructure guy here ;-)

I had some interesting discussions with Sandro Boehme about this at
adaptTo, where he mentioned the Sling Content Editor that he recently
contributed could serve as a basis for simple extensible CRUD
operations. I've long thought that using the Sling resourceType
mechanism to select or generate editing models would be nice, so maybe
that's an appropriate extension to that editor.

I second that the Sling Resource Editor (aka/former Sling Content Editor) takes advantage of the Sling Get- and POSTServlet for the CRUD functionality. It uses the JSTree library for rendering and manipulating the node tree. If you have a similar need you may want to have a look at that library as well. If it's possible we could even collaborate on the Sling Resource Editor to read/write the tree.

To extend to what Bertrand wrote:
I would like to use the Sling resource type (or the node type) as a domain/class marker to enhance / change a nodes possible actions, styles and property pages. E.g. if you have a node with a node type of "sling:folder" it could have a specific style and not a generic 'add node' icon but an 'add folder' icon instead and a property page where you can drop a list of files. But first I need to finish the generic actions for the Resource Editor before I can work on a domain/class specific API. :-)

Best,

Sandro

Reply via email to