[jira] Updated: (SLING-68) Compile fails for sling-sample due to missing dependencies

2007-10-18 Thread Lars Trieloff (JIRA)
[ https://issues.apache.org/jira/browse/SLING-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Trieloff updated SLING-68: --- Attachment: sling-sample-logging-dependency.patch This patch adds the sling-log bundle as a compile tim

[jira] Created: (SLING-68) Compile fails for sling-sample due to missing dependencies

2007-10-18 Thread Lars Trieloff (JIRA)
Compile fails for sling-sample due to missing dependencies -- Key: SLING-68 URL: https://issues.apache.org/jira/browse/SLING-68 Project: Sling Issue Type: Bug Environment: Mac

Re: microsling user feedback

2007-10-18 Thread Tobias Bocanegra
> conceptual stuff: > > - I was wondering how I can have several templates for one content type. I > could work around this issue in my very simple case, but how can I have e.g. > an edit template and a view template for a blog entry (depending on some > request parameter or so)? you would add a '

[jira] Resolved: (SLING-55) microsling: add ServiceLocator?

2007-10-18 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-55?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz resolved SLING-55. -- Resolution: Fixed Fixed in revisions 586028 and 586029, the ServiceLocator is currently u

microsling user feedback

2007-10-18 Thread Michael Marth
Hi, Bertrand has asked me to give some user feedback on microsling on this list. I have been playing with microsling for just one day now and did not have a look at (full) sling, yet, but from my very limited understanding so far the issues I found should apply to sling as well. First of all, I v

Re: ResourceResolver and Resource

2007-10-18 Thread Bertrand Delacretaz
On 10/18/07, Felix Meschberger <[EMAIL PROTECTED]> wrote: > ...Well, thinking along these lines: Why do we need a Resource and > ResourceResolver in the first place then ? ... Technically, as we're limiting ourselves to JCR content, we don't really need a Resource, you're right. But currentl

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Bertrand Delacretaz
On 10/18/07, Tobias Bocanegra <[EMAIL PROTECTED]> wrote: > ...what about a: > > interface ResolvedResource extends Resource { >public String getResolutionPath(); > } Even simpler, we weren't really using Resource.getURI until now, so I simply changed its comment, and will use it instead:

Re: [jira] Updated: (SLING-67) Provide extensible default Servlets

2007-10-18 Thread Felix Meschberger
Am Donnerstag, den 18.10.2007, 16:26 +0200 schrieb Bertrand Delacretaz: > On 10/18/07, Felix Meschberger (JIRA) <[EMAIL PROTECTED]> wrote: > > > ...Attachment: SLING-67.patch > > Proposed SlingGetServlet and GenericSlingServlet... > > I like the idea, and the patch looks good to me, with a few >

[jira] Updated: (SLING-60) SlingRequestPathInfo values must depend on path used by ResourceResolver

2007-10-18 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz updated SLING-60: - Summary: SlingRequestPathInfo values must depend on path used by ResourceResolver (was: UR

Re: ResourceResolver and Resource

2007-10-18 Thread Felix Meschberger
Am Donnerstag, den 18.10.2007, 16:36 +0200 schrieb Bertrand Delacretaz: > On 10/18/07, Felix Meschberger <[EMAIL PROTECTED]> wrote: > > > ...// return the main content of the current request > > Content getContent(); > > // return a content address by path > > Conte

Re: ResourceResolver and Resource

2007-10-18 Thread Bertrand Delacretaz
On 10/18/07, Felix Meschberger <[EMAIL PROTECTED]> wrote: > ...// return the main content of the current request > Content getContent(); > // return a content address by path > Content getContent(String path) throws SlingException; > // list the children of

Re: [jira] Updated: (SLING-67) Provide extensible default Servlets

2007-10-18 Thread Bertrand Delacretaz
On 10/18/07, Felix Meschberger (JIRA) <[EMAIL PROTECTED]> wrote: > ...Attachment: SLING-67.patch > Proposed SlingGetServlet and GenericSlingServlet... I like the idea, and the patch looks good to me, with a few (hmmm...say "some" ;-) suggestions: 1) I think we should rename the "etc" package to

Re: ResourceResolver and Resource

2007-10-18 Thread Carsten Ziegeler
Felix Meschberger schrieb: > Hi all, > > The current Component API contains the following methods in the > SlingRequest interface: > > // return the main content of the current request > Content getContent(); > // return a content address by path > Content getConte

ResourceResolver and Resource

2007-10-18 Thread Felix Meschberger
Hi all, The current Component API contains the following methods in the SlingRequest interface: // return the main content of the current request Content getContent(); // return a content address by path Content getContent(String path) throws SlingException;

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Bertrand Delacretaz
On 10/18/07, Felix Meschberger <[EMAIL PROTECTED]> wrote: > ...we could also drop the SlingRequestPathInfoParser as the (default) > ResourceResolver would by backtracking the path be able to keep track of > the path parts and create a SlingRequestPathInfo object as a byproduct I don't like th

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Bertrand Delacretaz
On 10/18/07, Tobias Bocanegra <[EMAIL PROTECTED]> wrote: > > The resolver would set the Resource and SlingRequestPathInfo on the > > context immediately. ... > ...this limits the 'resource resolution' to only work with a sling > request context I agree with Toby, and also the void reso

Re: [RT] Template Handling

2007-10-18 Thread Carsten Ziegeler
Tobias Bocanegra wrote: > > hi, once again this is display logic. the 'main' component script > knows that it needs to display > a header and a footer, so basically you do a: > > > > then the footer component will check if it actually has content, and > if not, it fetches it from the parent pag

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Felix Meschberger
Am Donnerstag, den 18.10.2007, 14:39 +0200 schrieb Tobias Bocanegra: > > > this limits the 'resource resolution' to only work with a sling > > > request context. what if i want to resolve a resourse without context > > > ? e.g. when i want to check if a respective resource exists? > > > i would hav

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Tobias Bocanegra
> > this limits the 'resource resolution' to only work with a sling > > request context. what if i want to resolve a resourse without context > > ? e.g. when i want to check if a respective resource exists? > > i would have to create a fake request context ? > > Well, you always have the SlingReque

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Felix Meschberger
Am Donnerstag, den 18.10.2007, 13:56 +0200 schrieb Tobias Bocanegra: > > public interface ResourceResolver { > > void resolveResource(SlingRequestContext context) throws > > SlingException; > > } > > > > The resolver would set the Resource and SlingRequestPathInfo on the > > context immediately.

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Tobias Bocanegra
> public interface ResourceResolver { > void resolveResource(SlingRequestContext context) throws > SlingException; > } > > The resolver would set the Resource and SlingRequestPathInfo on the > context immediately. And I think, the SlingRequestContext probably needs > a "backlink" to the request i

Re: microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Felix Meschberger
How about this: public interface ResourceResolver { void resolveResource(SlingRequestContext context) throws SlingException; } The resolver would set the Resource and SlingRequestPathInfo on the context immediately. And I think, the SlingRequestContext probably needs a "backlink" to the request

[jira] Updated: (SLING-67) Provide extensible default Servlets

2007-10-18 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-67?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger updated SLING-67: --- Attachment: SLING-67.patch Proposed SlingGetServlet and GenericSlingServlet > Provide extensib

Re: [RT] Template Handling

2007-10-18 Thread Tobias Bocanegra
On 10/18/07, Carsten Ziegeler <[EMAIL PROTECTED]> wrote: > Hi, I have thought a little bit more about template handling and I came > to the conclusion that we could add support for it to the heart of > Sling. (For now, I'm refering to the "old" sling - current trunk, we can > adapt this to the new

[jira] Created: (SLING-67) Provide extensible default Servlets

2007-10-18 Thread Felix Meschberger (JIRA)
Provide extensible default Servlets --- Key: SLING-67 URL: https://issues.apache.org/jira/browse/SLING-67 Project: Sling Issue Type: New Feature Components: microsling Reporter: Felix Mes

microsling: ResourceResolver interface and SLING-60

2007-10-18 Thread Bertrand Delacretaz
Hi, I'm starting work on SLING-60, and I think I'll add this new interface to the microsling.api package: public interface ResourceResolver { Result resolveResource(HttpServletRequest req) throws Exception; public static class Result { ... public Resource getResource(); // Indi

[jira] Assigned: (SLING-60) URI path split is content dependent

2007-10-18 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz reassigned SLING-60: Assignee: Bertrand Delacretaz > URI path split is content dependent > ---

[jira] Closed: (SLING-61) Rendering of references within the repository

2007-10-18 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed SLING-61. - Resolution: Fixed Ok, after some better use cases discussions (see sling dev list), we are all hap

Re: [jira] Reopened: (SLING-61) Rendering of references within the repository

2007-10-18 Thread Carsten Ziegeler
Tobias Bocanegra wrote: >>> ...So, you have a node storing all documents as sub nodes. Now, you want to >>> make a view on these documents containing just a bunch of them. With the >>> references, you create a "view node" containing several reference nodes >>> and are done >> The header/footer

[RT] Template Handling

2007-10-18 Thread Carsten Ziegeler
Hi, I have thought a little bit more about template handling and I came to the conclusion that we could add support for it to the heart of Sling. (For now, I'm refering to the "old" sling - current trunk, we can adapt this to the new stuff later on). Ok, let's start with an example. Assume you hav

Re: [jira] Reopened: (SLING-61) Rendering of references within the repository

2007-10-18 Thread Tobias Bocanegra
> > ...So, you have a node storing all documents as sub nodes. Now, you want to > > make a view on these documents containing just a bunch of them. With the > > references, you create a "view node" containing several reference nodes > > and are done > The header/footer example was a bit scary t

Re: To Filter or not to Filter

2007-10-18 Thread Tobias Bocanegra
ok. thanks for the clarification. in this case, i would avoid the auth filter as well. regards, toby On 10/17/07, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Am Mittwoch, den 17.10.2007, 16:49 +0200 schrieb Tobias Bocanegra: > > i disagree...eg. when running in a appserver that does authenticat

Re: [jira] Commented: (SLING-64) Refactor Servlets and Script resolution

2007-10-18 Thread Torgeir Veimo
On 18 Oct 2007, at 07:59, Carsten Ziegeler wrote: Sorry for trying hard to be a pita :) but again, can we please let all these discussions take place in the mailing list? I think it's easy to first discuss a topic in the mailing list and then create a jira which either sums up the discussion

Re: [jira] Commented: (SLING-64) Refactor Servlets and Script resolution

2007-10-18 Thread Bertrand Delacretaz
On 10/18/07, Carsten Ziegeler <[EMAIL PROTECTED]> wrote: > ..Sorry for trying hard to be a pita :) but again, can we please let all > these discussions take place in the mailing list?... You're right, sorry about that. We should discuss things here, and move to Jira once we reach consensus. -Bert

Re: [jira] Commented: (SLING-64) Refactor Servlets and Script resolution

2007-10-18 Thread Carsten Ziegeler
Sorry for trying hard to be a pita :) but again, can we please let all these discussions take place in the mailing list? I think it's easy to first discuss a topic in the mailing list and then create a jira which either sums up the discussion or references the mailing list archives. Carsten Felix