Hi Carsten,

I'm really glad that there is interest in the Sling JCRBrowser!

If I understand your question correctly you ask if there are bigger
changes needed or just a few adjustments for changing the name 'Sling
JCRBrowser'. The changes would include name in the POM, the package of
the two Java classes, the name of one class and the folder names of
scripts and resources.

If you question was how the JCRBrowser is basically working:
As you know, the JCRBrowser consists of the tree at the left and the
properties at the right.

For the tree on the left the JSTree library is used. It wants a URL to a JSON that contains the data for the child nodes. This URL points to a
Sling resource with a 'jcrbrowser.nodes' selector and a 'json'
extension. This way the JSPs [1] render the JSON for the resource that is consumed by the JSTree library.
A lesson learned for me was, that it is ok to use a JSP for rendering
JSON if it is small. But for bigger and more complex ones I would work
with plain Java classes for example.
For the deletion and renaming of nodes I use jQuery Ajax calls to the Sling POST servlet.

The properties list on the right is rendered [2] using JSTL and the
currentNode variable of Sling.
The html.jsp is registered for the 'jcrbrowser' selector relatively to
the default servlet. And for not getting overruled by servlets
registered by paths and by other resources that are using the
'jcrbrowser' selector I use a ResourceDecorator [3].

I personally don't need to have the other attempts dropped. But I
understand that you might want to clean up.

[1] -
https://github.com/sandroboehme/jcrbrowser/tree/master/jcrbrowser/src/main/resources/SLING-INF/libs/sling/servlet/default/jcrbrowser
[2] -
https://github.com/sandroboehme/jcrbrowser/blob/master/jcrbrowser/src/main/resources/SLING-INF/libs/sling/servlet/default/jcrbrowser/html.jsp:176
[3] -
https://github.com/sandroboehme/jcrbrowser/blob/master/jcrbrowser/src/main/java/org/sboehme/jcrbrowser/JCRBrowserSelectorResourceDecorator.java

Best,

Sandro
Am 01.10.14 14:44, schrieb Carsten Ziegeler:
Hi Sandro,

thanks for your contribution, really appreciated. We had several attempts
to get a nice resource based browser in Sling but so far, it seems all of
them failed more or less. In the end usually due to lack of
resources/interest. I understand that in your case this would be different
which looks promising to me.

Now, obviously as stated by you, the name would need to be changed. I
haven't look into the implementation yet, so I can't tell whether that
would need to be changed or adjusted. Maybe you can briefly summarize how
it works today?

I think this would also mean that we drop the other attempts.

Regards
Carsten

2014-09-29 22:40 GMT+02:00 Sandro Boehme <[email protected]>:

I will work on that in any case in the months to come according to
the roadmap I pointed out in my talk [3]. If there is interest in the

  To put that right: I will not only work on that in the months to come
but I will maintain it in the long run. It's just that I can put more
work in it in the next months.
I'm curious about your feedback.

Best,

Sandro





Reply via email to