Re: [jira] Commented: (SLING-249) Allow mapping nodes to internetdomains

2008-02-15 Thread eric . marts
An interesting use case is microsites. How can I have a set of templates for one domain and another set templates for another. It seems like that should be included in the request processing design. Taking the domain name into account in the request processing may facilate different content

[jira] Commented: (SLING-245) After reinstalling sling core, server shutdown hangs

2008-02-15 Thread Tobias Bocanegra (JIRA)
[ https://issues.apache.org/jira/browse/SLING-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569466#action_12569466 ] Tobias Bocanegra commented on SLING-245: yes. > After reinstalling sling core, serv

Re: [jira] Closed: (SLING-231) ujax post servlet should respect several date formats for @TypeHint="Date"

2008-02-15 Thread Tobias Bocanegra
thanks for fixing this. i think we should hard-code it to Locale.US for now and see if there is a problem with this. regards, toby On 2/14/08, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Hi all, > > Am Dienstag, den 12.02.2008, 12:53 -0800 schrieb Tobias Bocanegra > (JIRA): > > [ > > https://i

Re: [PROPOSAL] ResourceResolverProvider interface

2008-02-15 Thread Tobias Bocanegra
-1 using thread local is very dangerous and can cause memory leaks i strongly recommend to reconsider this approach. whenever i encountered the problem that i need a resource resolver but did't had the request handy - it was a flaw in my architecture of my classes. regards, toby On 2/14/08, Feli

[jira] Commented: (SLING-249) Allow mapping nodes to internet domains

2008-02-15 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569441#action_12569441 ] Bertrand Delacretaz commented on SLING-249: --- Can't you use mod_proxy for that, or

Re: [PROPOSAL]: Add Resource.listChildren() method

2008-02-15 Thread Philipp Koch
> (2) I would really like to table the sling API discussions for a while > and let us all gather some experience with what we have before we > we start modifying the API. From my personal perspective the > constant change in the sling API is the biggest problem for the > few early adopters we

[jira] Updated: (SLING-250) JSON serialization of repository root does not include child nodes

2008-02-15 Thread Lars Trieloff (JIRA)
[ https://issues.apache.org/jira/browse/SLING-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Trieloff updated SLING-250: Attachment: 250-fix.patch The attached patch adds special parsing for paths starting with /. > JSON

[jira] Updated: (SLING-250) JSON serialization of repository root does not include child nodes

2008-02-15 Thread Lars Trieloff (JIRA)
[ https://issues.apache.org/jira/browse/SLING-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Trieloff updated SLING-250: Attachment: 250-test.patch I've extended the patch to include an actual suffix. Here the results are

[jira] Updated: (SLING-250) JSON serialization of repository root does not include child nodes

2008-02-15 Thread Lars Trieloff (JIRA)
[ https://issues.apache.org/jira/browse/SLING-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Trieloff updated SLING-250: Attachment: 250-test.patch The following patch extends the test cases to demonstrate the root proble

Re: various questions regarding alternative scripting engines

2008-02-15 Thread Michael Marth
Hi Felix, when I use var node = resource.adaptTo(Packages.javax.jcr.Node) I get an exception "Cannot find function adaptTo". (I guess this is a temporary problem. Or does it work for you?) > Which is probably an error as it introduces an API in JavaScript which > is not paralelled by the other

Re: help, my content model looks un-Slingable

2008-02-15 Thread Jukka Zitting
Hi, On Fri, Feb 15, 2008 at 5:19 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Am Freitag, den 15.02.2008, 15:47 +0100 schrieb Michael Marth: > > Maybe it would be helpful if we had some additional script resolution based > > on URLs or paths. In my example I could map a script to nt:resou

Re: various questions regarding alternative scripting engines

2008-02-15 Thread David Nuescheler
hi guys, > var node = resource.adaptTo(Packages.javax.jcr.Node) i personally think this sucks since it is going to be a cryptic part in the beginning of all my esp scripts... in my view this really should be hidden. the point of using scripting is to hide all the unnecessary detail of whats goi

[jira] Created: (SLING-250) JSON serialization of repository root does not include child nodes

2008-02-15 Thread Lars Trieloff (JIRA)
JSON serialization of repository root does not include child nodes -- Key: SLING-250 URL: https://issues.apache.org/jira/browse/SLING-250 Project: Sling Issue Type: Bug

Re: [PROPOSAL]: Add Resource.listChildren() method

2008-02-15 Thread Alexander Klimetschek
Am 15.02.2008 um 16:27 schrieb David Nuescheler: I think we should even think of Resources that do not even have the concept of a hierarchy No, the hierarchy of resources drives the mapping of URLs to resources. Therefore sling depends on that, and IMHO it should be part of the resource'

Re: various questions regarding alternative scripting engines

2008-02-15 Thread Felix Meschberger
Hi, Am Freitag, den 15.02.2008, 11:43 +0100 schrieb Michael Marth: > Hi Felix, > > > > > > But if I try to access something like $resource.node (which I would have > > > expected) Velocity does not recognize the expression. How do I get to > > the > > > node? Do I have the wrong syntax? I looked

[jira] Commented: (SLING-249) Allow mapping nodes to internet domains

2008-02-15 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569289#action_12569289 ] Felix Meschberger commented on SLING-249: - and when implementing we should not

Re: Content mapping based on domain

2008-02-15 Thread Felix Meschberger
Cool. Thanks and a nice weekend to you, too. Regards Felix Am Freitag, den 15.02.2008, 16:28 +0100 schrieb Vidar Ramdal: > > Am Freitag, den 15.02.2008, 15:52 +0100 schrieb Vidar Ramdal: > > > OK, last question before I call it a weekend: > > > > > > I'd like to host multiple sites (internet d

[jira] Closed: (SLING-248) esps not executed quite correctly

2008-02-15 Thread Michael Marth (JIRA)
[ https://issues.apache.org/jira/browse/SLING-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Marth closed SLING-248. --- yup, this works. thanks. > esps not executed quite correctly > - > >

Re: Content mapping based on domain

2008-02-15 Thread Vidar Ramdal
> Am Freitag, den 15.02.2008, 15:52 +0100 schrieb Vidar Ramdal: > > OK, last question before I call it a weekend: > > > > I'd like to host multiple sites (internet domains) on a single Sling > > app. How can I map a domain to a JCR node? > > > > Example: > > www.domain1.com maps to /content/

[jira] Created: (SLING-249) Allow mapping nodes to internet domains

2008-02-15 Thread Vidar S. Ramdal (JIRA)
Allow mapping nodes to internet domains --- Key: SLING-249 URL: https://issues.apache.org/jira/browse/SLING-249 Project: Sling Issue Type: New Feature Reporter: Vidar S. Ramdal Sling should s

Re: [PROPOSAL]: Add Resource.listChildren() method

2008-02-15 Thread David Nuescheler
Hi guys, I agree with Lars. on top of that I would like to mention the following things: (1) I feel like with a getChildren() method we slowly see parts of the Node interface sneak in through the back door. I think it is fairly public that I am not a big fan of the abstraction from Node but now

Re: help, my content model looks un-Slingable

2008-02-15 Thread Felix Meschberger
Hi Michael, Am Freitag, den 15.02.2008, 15:47 +0100 schrieb Michael Marth: > Hi Felix, > > thanks a lot - I'll give it a try. Cool. > > Maybe it would be helpful if we had some additional script resolution based > on URLs or paths. In my example I could map a script to nt:resource if the > res

Re: Content mapping based on domain

2008-02-15 Thread Felix Meschberger
Hi Vidal, Am Freitag, den 15.02.2008, 15:52 +0100 schrieb Vidar Ramdal: > OK, last question before I call it a weekend: > > I'd like to host multiple sites (internet domains) on a single Sling > app. How can I map a domain to a JCR node? > > Example: > www.domain1.com maps to /content/domain1.co

[jira] Resolved: (SLING-248) esps not executed quite correctly

2008-02-15 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger resolved SLING-248. - Resolution: Invalid You should use the compact expression notation "${...}" instead of "<%

[jira] Updated: (SLING-248) esps not executed quite correctly

2008-02-15 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger updated SLING-248: Component/s: (was: Launchpad) Scripting Fix Version/s: 2.0.0 >

[jira] Assigned: (SLING-248) esps not executed quite correctly

2008-02-15 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger reassigned SLING-248: --- Assignee: Felix Meschberger > esps not executed quite correctly >

Content mapping based on domain

2008-02-15 Thread Vidar Ramdal
OK, last question before I call it a weekend: I'd like to host multiple sites (internet domains) on a single Sling app. How can I map a domain to a JCR node? Example: www.domain1.com maps to /content/domain1.com www.domain2.com maps to /content/domain2.com An option would be to redirect the brow

Re: Servlet resolution broken?

2008-02-15 Thread Felix Meschberger
Hi Vidal, Am Freitag, den 15.02.2008, 15:39 +0100 schrieb Vidar Ramdal: > On 2/15/08, Felix Meschberger <[EMAIL PROTECTED]> wrote: > > Hi Vidal, > > > > The sling.servlet.resourceTypes annotation is required, otherwise the > > servlet is just ignored. That is, in your first example, where you ju

Re: help, my content model looks un-Slingable

2008-02-15 Thread Michael Marth
Hi Felix, thanks a lot - I'll give it a try. Maybe it would be helpful if we had some additional script resolution based on URLs or paths. In my example I could map a script to nt:resource if the resource is below /content/mails or so. Such a mechanism could really be helpful for users that have

Re: Servlet resolution broken?

2008-02-15 Thread Vidar Ramdal
On 2/15/08, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Hi Vidal, > > The sling.servlet.resourceTypes annotation is required, otherwise the > servlet is just ignored. That is, in your first example, where you just > define the sling.servlet.extensions, Sling does not know to which > resource

Re: Servlet resolution broken?

2008-02-15 Thread Felix Meschberger
Hi Vidal, The sling.servlet.resourceTypes annotation is required, otherwise the servlet is just ignored. That is, in your first example, where you just define the sling.servlet.extensions, Sling does not know to which resource type the servlet applies and cannot handle it. @scr.property name="s

Re: help, my content model looks un-Slingable

2008-02-15 Thread Felix Meschberger
Hi Michael, I just updated the jcr/resource module to create a sling:Resource mixin node type, which defines a sling:resourceType property as a String. You may attach this mixin node type to your mail node and set resource type accordingly. This gives you the full flexibility to render your mail s

[jira] Created: (SLING-248) esps not executed quite correctly

2008-02-15 Thread Michael Marth (JIRA)
esps not executed quite correctly - Key: SLING-248 URL: https://issues.apache.org/jira/browse/SLING-248 Project: Sling Issue Type: Bug Components: Launchpad Environment: windows xp, java 5

Re: [PROPOSAL]: Add Resource.listChildren() method

2008-02-15 Thread Lars Trieloff
Hi Carsten, I have to disagree. Treating all languages the same will result in an API that does not match the concepts of most languages supported. Different programming languages have different concepts and if possible, we should support these concepts. This does not interfere with implementing

Servlet resolution broken?

2008-02-15 Thread Vidar Ramdal
I'm trying to register a servlet to handle requests with a ".menu" extension: * @scr.property * name="sling.servlet.extensions" * value="menu" Then I post some content: curl -F"sling:resourceType=foo/bar" -F"title=some title" http://admin:[EMAIL PROTECTED]:/content/mynode If I now visit

help, my content model looks un-Slingable

2008-02-15 Thread Michael Marth
Hi, I have an existing content model and want to build a sling app on top. The model is Jukka Zitting's mail model he coded for James (see [1]). One mail is stored as: nt:file |-jcr:content (unstructured) |- from (string) |- to (string) |- jcr:data (binary) ... In order to display a mail v

Re: various questions regarding alternative scripting engines

2008-02-15 Thread Michael Marth
Hi Felix, > > > But if I try to access something like $resource.node (which I would have > > expected) Velocity does not recognize the expression. How do I get to > the > > node? Do I have the wrong syntax? I looked at the src of JcrNodeResource > and > > expected to be able to use something like

[jira] Commented: (SLING-154) Allow access to Node and Property Methods on ScriptableNode and ScriptableProperty

2008-02-15 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569219#action_12569219 ] Felix Meschberger commented on SLING-154: - > add all methods This is actually the i

[jira] Reopened: (SLING-154) Allow access to Node and Property Methods on ScriptableNode and ScriptableProperty

2008-02-15 Thread David Nuescheler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Nuescheler reopened SLING-154: add all methods of the Node interface to ScriptableNode > Allow access to Node and Property Met

[jira] Commented: (SLING-154) Allow access to Node and Property Methods on ScriptableNode and ScriptableProperty

2008-02-15 Thread David Nuescheler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569217#action_12569217 ] David Nuescheler commented on SLING-154: I was recently looking for the "addNode()"

[jira] Created: (SLING-247) Provide Scripting variables as request attributes for JSP

2008-02-15 Thread Felix Meschberger (JIRA)
Provide Scripting variables as request attributes for JSP - Key: SLING-247 URL: https://issues.apache.org/jira/browse/SLING-247 Project: Sling Issue Type: Improvement Componen