Re: script include

2008-07-28 Thread Felix Meschberger
Hi Janandith, Just adding what has not been answered by Tobias. janandith jayawardena schrieb: Hi, taking the given layout + myapp + A + A.jsp + content.jsp + B - sling:resourceSuperType = A + B.jsp ... and in the replaceSuffix option: can I upload a .txt file and

Re: script include

2008-07-28 Thread Felix Meschberger
Hi, Tobias Bocanegra schrieb: ... - yes, replaceSelector alters the set of selectors. But this is the name of the game and how it works. If you would want to continue including without selectors you just replace them again... this does not work, since i don't know what they were before

Re: script include

2008-07-28 Thread Bertrand Delacretaz
On Fri, Jul 25, 2008 at 10:10 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i think it would be sufficient if i could set a temporary selector that takes precedence from the real ones during script resolution of this include. in a way that a request...getSelectors() in the included request

Re: script include

2008-07-28 Thread Felix Meschberger
Hi, Bertrand Delacretaz schrieb: On Fri, Jul 25, 2008 at 10:10 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i think it would be sufficient if i could set a temporary selector that takes precedence from the real ones during script resolution of this include. in a way that a

Re: script include

2008-07-28 Thread Bertrand Delacretaz
On Fri, Jul 25, 2008 at 2:25 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i'm looking for a way to include a jsp script from within another but respecting the resource type hierarchy Just to make sure we're all on the same page: including the *source code* of a JSP script within another

Re: script include

2008-07-28 Thread David Nuescheler
On Mon, Jul 28, 2008 at 9:42 AM, Bertrand Delacretaz [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 2:25 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i'm looking for a way to include a jsp script from within another but respecting the resource type hierarchy Just to make sure we're

Re: script include

2008-07-28 Thread Tobias Bocanegra
On 7/28/08, David Nuescheler [EMAIL PROTECTED] wrote: On Mon, Jul 28, 2008 at 9:42 AM, Bertrand Delacretaz [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 2:25 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i'm looking for a way to include a jsp script from within another but

Re: script include

2008-07-28 Thread Tobias Bocanegra
On 7/28/08, Felix Meschberger [EMAIL PROTECTED] wrote: Hi, Bertrand Delacretaz schrieb: On Fri, Jul 25, 2008 at 10:10 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i think it would be sufficient if i could set a temporary selector that takes precedence from the real ones

[jira] Updated: (SLING-572) example application

2008-07-28 Thread Michael Marth (JIRA)
[ https://issues.apache.org/jira/browse/SLING-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Marth updated SLING-572: Attachment: notes.xml the content in sys view format with appropriate rights (granted for

[jira] Created: (SLING-585) Add scriptSelector to the sling:include tag

2008-07-28 Thread Tobias Bocanegra (JIRA)
Add scriptSelector to the sling:include tag - Key: SLING-585 URL: https://issues.apache.org/jira/browse/SLING-585 Project: Sling Issue Type: New Feature Components: Scripting JSP

Re: How can i add 3rd party OSGi modules to sling.

2008-07-28 Thread Michael Marth
Hi Janandith, here's a tutorial on deploying OSGi bundles in Sling: http://dev.day.com/microsling/content/blogs/main/slingosgi.html http://dev.day.com/microsling/content/blogs/main/slingosgimaven.html Cheers Michael On Wed, Jul 16, 2008 at 5:33 AM, janandith jayawardena [EMAIL PROTECTED]wrote:

Re: script include

2008-07-28 Thread Felix Meschberger
Hi, Tobias Bocanegra schrieb: On 7/28/08, David Nuescheler [EMAIL PROTECTED] wrote: On Mon, Jul 28, 2008 at 9:42 AM, Bertrand Delacretaz [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 2:25 PM, Tobias Bocanegra [EMAIL PROTECTED] wrote: ...i'm looking for a way to include a jsp script

[jira] Created: (SLING-586) Respect resource type hierarchy in static @include directive.

2008-07-28 Thread Tobias Bocanegra (JIRA)
Respect resource type hierarchy in static @include directive. - Key: SLING-586 URL: https://issues.apache.org/jira/browse/SLING-586 Project: Sling Issue Type: New Feature

[RT] JcrBundlesManager

2008-07-28 Thread Bertrand Delacretaz
Hi, Here's a tentative spec for a service that allows OSGi bundles to be loaded by simply copying them, and their configurations, into the Sling JCR repository. I'm planning to work on this this week, based on the existing jcrinstall prototype. The goal is to allow application-level bundles

[jira] Created: (SLING-587) JcrBundlesManager

2008-07-28 Thread Bertrand Delacretaz (JIRA)
JcrBundlesManager - Key: SLING-587 URL: https://issues.apache.org/jira/browse/SLING-587 Project: Sling Issue Type: Improvement Components: OSGi Reporter: Bertrand Delacretaz See

Sling Managment console or Felix Managment console?

2008-07-28 Thread Gilles Scokart
Sling comes with a very nice managment console. What is the dependency between this console and the rest of Sling? Is this console a pure Felix management console coupled only with the embeded Felix, or is it more coupled with Sling than it apears to be at a first glance? -- Gilles Scokart

Re: [RT] JcrBundlesManager

2008-07-28 Thread Bertrand Delacretaz
On Mon, Jul 28, 2008 at 2:30 PM, Bertrand Delacretaz [EMAIL PROTECTED] wrote: ...Comments are welcome, of course!.. An additional nice-to-have would be to expose in the repository the .class files of bundles that are were loaded in the OSGi framework by other mechanisms, for example to activate

Re: Sling Managment console or Felix Managment console?

2008-07-28 Thread Felix Meschberger
Hi Gilles, Gilles Scokart schrieb: Sling comes with a very nice managment console. What is the dependency between this console and the rest of Sling? Is this console a pure Felix management console coupled only with the embeded Felix, or is it more coupled with Sling than it apears to be at a

Creating content with the PostServlet having a nodename containing a dot in root directory is impossible

2008-07-28 Thread Lars Trieloff
Hi, I would like to create an nt:file node in the root directory of my repository using the PostServlet, but as far as my investigation goes, it is impossible if I want this nt:file node to have a typical file name such as test.css as the node name, because the SlingPost servlet will strip out

Re: [RT] JcrBundlesManager

2008-07-28 Thread Carsten Ziegeler
There is already an OSGi specification - the deployment admin specification - which allows you to package a set of bundles together with configuration. Without going into details, I think it already covers most of your stuff ootb. In combination with the jcrinstall I think you get everything

Re: [RT] JcrBundlesManager

2008-07-28 Thread Bertrand Delacretaz
On Mon, Jul 28, 2008 at 7:33 PM, Carsten Ziegeler [EMAIL PROTECTED] wrote: ... There is already an OSGi specification - the deployment admin specification - which allows you to package a set of bundles together with configuration. Without going into details, I think it already covers most of

Basic Sling authentication question

2008-07-28 Thread Rory Douglas
Related to my previous post about node creation best practice, I have a question about authentication. When I create basic HTML forms that post to the SlingPostServlet, node creation is denied because I'm logged in as anonymous. I tried first visiting /system/sling/login logging in as

Re: Node creation form best practice

2008-07-28 Thread Tobias Bocanegra
hi, On 7/28/08, Rory Douglas [EMAIL PROTECTED] wrote: I have registered a couple of custom nodetypes with corresponding rendering scripts html.jsp in the appropriate folder. Now I'd like to include a few simple forms to create that node type (re-using as much existing functionality as

Re: Node creation form best practice

2008-07-28 Thread Rory Douglas
Thanks Toby I guess my question is even simpler then - where do you store those forms? I've tried uploading .HTML forms to the repository: curl -X PUT -d @createNewWidget.html http://admin:[EMAIL PROTECTED]:/forms/widgets/createNewWidget.html When I request that path

Re: Node creation form best practice

2008-07-28 Thread Lars Trieloff
Hi Rory, try setting the jcr:mimeType property of the /forms/widgets/ createNewWidget.html/jcr:content node to text/html. This should do the trick. If you want to have a JSP that just executes, try to create a dummy content node with a sling:resourceType that points to your JSP file.

Re: Node creation form best practice

2008-07-28 Thread Bertrand Delacretaz
On Mon, Jul 28, 2008 at 10:16 PM, Rory Douglas [EMAIL PROTECTED] wrote: ...curl -X PUT -d @createNewWidget.html http://admin:[EMAIL PROTECTED]:/forms/widgets/createNewWidget.html When I request that path (/forms/widgets/createNewWidget.html), my browser tries to download me the source

[jira] Updated: (SLING-588) Sling ignores specified node path when creating content

2008-07-28 Thread Lars Trieloff (JIRA)
[ https://issues.apache.org/jira/browse/SLING-588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Trieloff updated SLING-588: Attachment: SLING-588.patch This patch fixes the issue for me. Sling ignores specified node path

[jira] Created: (SLING-588) Sling ignores specified node path when creating content

2008-07-28 Thread Lars Trieloff (JIRA)
Sling ignores specified node path when creating content --- Key: SLING-588 URL: https://issues.apache.org/jira/browse/SLING-588 Project: Sling Issue Type: Bug Reporter: Lars

Re: Basic Sling authentication question

2008-07-28 Thread Rory Douglas
I still can't get a form post to SlingPostServlet to create any content due to AccessDeniedException. I've tried adding the sudo form parameter set to admin, but that doesn't help either. Any idea what I might be missing? Rory Douglas wrote: Related to my previous post about node creation