Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Launchpad
    • Labels:
      None
    • Environment:
      osx

      Description

      a jcr explorer based on jquery. goals: minimum install and dependencies

      1. explorer.js
        2 kB
        Renaud Richardet
      2. explorer.zip
        54 kB
        Felix Meschberger
      3. explorer-20090613.zip
        54 kB
        Bertrand Delacretaz
      4. Picture 2.png
        60 kB
        Renaud Richardet
      5. sling.zip
        42 kB
        Renaud Richardet

        Activity

        Gavin made changes -
        Workflow re-open possible,doc-test-required [ 12789794 ] no-reopen-closed,doc-test-required [ 12792210 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12767725 ] re-open possible,doc-test-required [ 12789794 ]
        Gavin made changes -
        Workflow Copy of no-reopen-closed,doc-test-required [ 12764915 ] no-reopen-closed,doc-test-required [ 12767725 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12476231 ] Copy of no-reopen-closed,doc-test-required [ 12764915 ]
        Hide
        Santosh Shanmukh added a comment -

        Thank you Justin

        Show
        Santosh Shanmukh added a comment - Thank you Justin
        Hide
        Justin Edelson added a comment -

        Santosh - it's generally better not to comment on Closed issues.

        The issue you are talking about seems to be SLING-2019. Since Explorer 1.0.4 hasn't been released, you'll have to build it from trunk.

        Show
        Justin Edelson added a comment - Santosh - it's generally better not to comment on Closed issues. The issue you are talking about seems to be SLING-2019 . Since Explorer 1.0.4 hasn't been released, you'll have to build it from trunk.
        Hide
        Santosh Shanmukh added a comment -

        Hi, If I should be raising this in a different forum or mailing list please point me there, and I will do so. This has to do with the sling provided jquery explorer now bundled with the latest sling version.

        I downloaded and deployed sling launchpad 6 in apache tomcat 6.0.32 (OS: windows xp). My sling URL is http://localhost:8080/sling-launchpad-6/

        I am able to successfully create content with the curl command:
        curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=Foo Bar" http://localhost:8080/sling-launchpad-6/content/foonode
        and view it via http://localhost:8080/sling-launchpad-6/content/foonode.json or foonode.html

        However when I navigate to explorer URL http://localhost:8080/sling-launchpad-6/.explorer.html as per the sling documentation, while I get the basic interface, I also get a "HTTP Status 404 - /.explorer.item.html" error.

        I am however able to manually navigate to http://localhost:8080/sling-launchpad-6/.explorer.item.html it displays the a set of resource links.
        These are the links displayed, although clicking on them does not do anything. They are HREFed to "#"
        jcr:system
        rep:policy
        var
        apps
        index.html
        signup.html
        sling-logo.png
        sling-test
        sling.css
        content
        libs
        system

        Also, the URL http://localhost:8080/sling-launchpad-6/content/.explorer.item.html displays foonode which was the content I create via the curl command.

        And yet, I am not able to navigate to this using the explorer.

        Either I have missed something in the configuration or setup or I am not using the explorer correctly, but I cant figure out what! Please help.

        Thanks
        Santosh

        Show
        Santosh Shanmukh added a comment - Hi, If I should be raising this in a different forum or mailing list please point me there, and I will do so. This has to do with the sling provided jquery explorer now bundled with the latest sling version. I downloaded and deployed sling launchpad 6 in apache tomcat 6.0.32 (OS: windows xp). My sling URL is http://localhost:8080/sling-launchpad-6/ I am able to successfully create content with the curl command: curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=Foo Bar" http://localhost:8080/sling-launchpad-6/content/foonode and view it via http://localhost:8080/sling-launchpad-6/content/foonode.json or foonode.html However when I navigate to explorer URL http://localhost:8080/sling-launchpad-6/.explorer.html as per the sling documentation, while I get the basic interface, I also get a "HTTP Status 404 - /.explorer.item.html" error. I am however able to manually navigate to http://localhost:8080/sling-launchpad-6/.explorer.item.html it displays the a set of resource links. These are the links displayed, although clicking on them does not do anything. They are HREFed to "#" jcr:system rep:policy var apps index.html signup.html sling-logo.png sling-test sling.css content libs system Also, the URL http://localhost:8080/sling-launchpad-6/content/.explorer.item.html displays foonode which was the content I create via the curl command. And yet, I am not able to navigate to this using the explorer. Either I have missed something in the configuration or setup or I am not using the explorer correctly, but I cant figure out what! Please help. Thanks Santosh
        Felix Meschberger made changes -
        Workflow jira [ 12465025 ] no-reopen-closed,doc-test-required [ 12476231 ]
        Renaud Richardet made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Renaud Richardet added a comment -

        thanks Bertrand

        Show
        Renaud Richardet added a comment - thanks Bertrand
        Bertrand Delacretaz made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Bertrand Delacretaz added a comment -

        I have (finally) committed this in revisions 803819 and 803820.

        Added Apache license headers everywhere.

        Added a login link and a note that the explorer is still experimental, on its front page.

        Added a "Running the Explorer" section to README.txt

        Thanks for this contribution!

        Show
        Bertrand Delacretaz added a comment - I have (finally) committed this in revisions 803819 and 803820. Added Apache license headers everywhere. Added a login link and a note that the explorer is still experimental, on its front page. Added a "Running the Explorer" section to README.txt Thanks for this contribution!
        Hide
        Renaud Richardet added a comment -

        i don't think so. if you implement it, could you provide a patch / a zip?

        Show
        Renaud Richardet added a comment - i don't think so. if you implement it, could you provide a patch / a zip?
        Hide
        Markus Pallo added a comment -

        cool work, thanks.

        is there a special reason why its not implemented for handling sling running on different context than "/" ?

        Show
        Markus Pallo added a comment - cool work, thanks. is there a special reason why its not implemented for handling sling running on different context than "/" ?
        Renaud Richardet made changes -
        Attachment explorer.js [ 12410628 ]
        Hide
        Renaud Richardet added a comment -

        I just cleaned up the javascript file a bit (there was some irrelevant code & logging stuff).

        Show
        Renaud Richardet added a comment - I just cleaned up the javascript file a bit (there was some irrelevant code & logging stuff).
        Bertrand Delacretaz made changes -
        Attachment explorer-20090613.zip [ 12410550 ]
        Hide
        Bertrand Delacretaz added a comment -

        (this time with the correct file

        Here's a slightly modified patch, added names to the entry fields for adding properties and nodes, and tweaked layout a bit.

        I think this is ready to commit, maybe not perfect but usable.

        Next step - plugins to define specific editors based on node types/property names/etc?

        Show
        Bertrand Delacretaz added a comment - (this time with the correct file Here's a slightly modified patch, added names to the entry fields for adding properties and nodes, and tweaked layout a bit. I think this is ready to commit, maybe not perfect but usable. Next step - plugins to define specific editors based on node types/property names/etc?
        Bertrand Delacretaz made changes -
        Attachment explorer.zip [ 12410549 ]
        Bertrand Delacretaz made changes -
        Comment [ Here's a slightly modified patch, added names to the entry fields for adding properties and nodes, and tweaked layout a bit.

        I think this is ready to commit, maybe not perfect but usable. Next step - plugins to define specific editors based on node types/property names/etc? ]
        Bertrand Delacretaz made changes -
        Attachment explorer.zip [ 12410549 ]
        Hide
        Renaud Richardet added a comment -

        Sounds good!

        What is left to be done to have it "fully" integrated?

        Maybe someone with design skills could make it a bit nicer (CSS)...

        Show
        Renaud Richardet added a comment - Sounds good! What is left to be done to have it "fully" integrated? Maybe someone with design skills could make it a bit nicer (CSS)...
        Felix Meschberger made changes -
        Attachment explorer.zip [ 12410110 ]
        Hide
        Felix Meschberger added a comment -

        Attaching a slight modification:

        • Created a maven project providing the scripts as bundle resources
        • Small fixes to the JQuery scripts (mostly CSS class handling)
        • Refactored server side scripts to use Resource API and to not
          render some elements if access is not allowed

        To use this, simply deploy the bundle and access any location with the explorer selector, e.g.

        http://localhost:8888/.explorer.html

        Show
        Felix Meschberger added a comment - Attaching a slight modification: Created a maven project providing the scripts as bundle resources Small fixes to the JQuery scripts (mostly CSS class handling) Refactored server side scripts to use Resource API and to not render some elements if access is not allowed To use this, simply deploy the bundle and access any location with the explorer selector, e.g. http://localhost:8888/.explorer.html
        Hide
        Felix Meschberger added a comment - - edited

        This looks very light-weight and probably nicely embeddable.

        I could imagine the following:

        • Enhance the scripts to use the Resource tree API to list the resources instead of just the JCR items
        • Use [Persistable]ValueMap to display the properties
          (if adaptable to PersistableValueMap the resource is editable, if only mappable to ValueMap or Map, the resource is readonly)
        • Add some glue to make it a Web Console plugin

        Thus we could create an "Resource Explorer" bundle, which contains the scripts as bundle-resources for direct use plus contains the Web Console plugin for embedding the explorer in the Web Console.

        WDYT ?

        Show
        Felix Meschberger added a comment - - edited This looks very light-weight and probably nicely embeddable. I could imagine the following: Enhance the scripts to use the Resource tree API to list the resources instead of just the JCR items Use [Persistable] ValueMap to display the properties (if adaptable to PersistableValueMap the resource is editable, if only mappable to ValueMap or Map, the resource is readonly) Add some glue to make it a Web Console plugin Thus we could create an "Resource Explorer" bundle, which contains the scripts as bundle-resources for direct use plus contains the Web Console plugin for embedding the explorer in the Web Console. WDYT ?
        Renaud Richardet made changes -
        Attachment Picture 2.png [ 12409772 ]
        Hide
        Renaud Richardet added a comment -

        snapshot

        Show
        Renaud Richardet added a comment - snapshot
        Renaud Richardet made changes -
        Field Original Value New Value
        Attachment sling.zip [ 12409770 ]
        Hide
        Renaud Richardet added a comment -

        files to be copied to /app/sling

        Show
        Renaud Richardet added a comment - files to be copied to /app/sling
        Renaud Richardet created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Renaud Richardet
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development