You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Sandro Boehme <sa...@gmx.de> on 2014/09/29 18:47:48 UTC

[PROPOSAL] Sling JCRBrowser contribution to Apache Sling

Hello,

at the adaptTo() conference I had the impression that the Apache Sling 
community might be interested in the contribution of the Sling 
JCRBrowser [1,2] to Apache Sling.
The Sling JCRBrowser is an editor for Sling resources that is build on 
top of the Apache Sling API.
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 
contribution I would change the namespace to Apache Sling. I would also 
take the opportunity to rename the Sling JCRBrowser to Sedi the Sling 
Editor. This changes would take place at GitHub prior submitting the 
code to a Jira issue.
In case the contribution is accepted I will continue to work on the tool 
at GitHub and send SVN patches as Jira tickets to Sling.
Of course I would be proud to directly develop for it as a Sling 
committer if the Sling community decides that this is appropriate.
As I said in my talk [3] I might add some commercial add ons to the 
Sling JCRBrowser / Sedi later on to be downloaded separately. This is 
why it is important to be able to point users to such a website from 
Sling. But judging from other Apache projects [4] I assume this is 
probably not a problem.
I'm looking forward to your feedback!

[1] - https://github.com/sandroboehme/jcrbrowser
[2] - http://www.jcrbrowser.org/sling/website/
[3] - 
http://adapt.to/content/dam/adaptto/production/presentations/2014/adaptTo2014-The-Sling-JCRBrowser-Sandro-Boehme.pdf/_jcr_content/renditions/original.media_file.download_attachment.file/adaptTo2014-The-Sling-JCRBrowser-Sandro-Boehme.pdf
[4] - https://www.google.de/search?q=site%3Aapache.org+commercial

Best,

Sandro

Re: [PROPOSAL] Sling JCRBrowser contribution to Apache Sling

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Wed, Oct 1, 2014 at 2:44 PM, Carsten Ziegeler <cz...@apache.org> wrote:
> ...I think this would also mean that we drop the other attempts....

Agreed - none of them have evolved recently, so if Sandro is willing
to maintain an explorer that's a big plus.

-Bertrand

Re: [PROPOSAL] Sling JCRBrowser contribution to Apache Sling

Posted by Sandro Boehme <sa...@gmx.de>.
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 <sa...@gmx.de>:
>
>> 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
>>
>
>
>


Re: [PROPOSAL] Sling JCRBrowser contribution to Apache Sling

Posted by Carsten Ziegeler <cz...@apache.org>.
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 <sa...@gmx.de>:

> 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
>



-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [PROPOSAL] Sling JCRBrowser contribution to Apache Sling

Posted by Sandro Boehme <sa...@gmx.de>.
> 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