Re: Adding dependencies

2012-11-13 Thread Felix Meschberger
Hi, Am 14.11.2012 um 05:30 schrieb Martin Phee: > Does it matter what run level? What are the run levels? You mean the OSGi start levels ? As a developer you should not care for them and leave them as a mechanism for system administrators to fine-tune systems. Regards Felix > > > On Tue,

Re: Adding dependencies

2012-11-13 Thread Felix Meschberger
Hi, Am 14.11.2012 um 03:56 schrieb Wayne Lund: > Why would you say sling is more elegant? I had the same issue a few years ago > and found it helpful to have the two. I thought sling's specialty was as a > RESTful API OVER JCR It started as RESTful API *over JCR* and still the primary target i

Re: Adding dependencies

2012-11-13 Thread Martin Phee
Does it matter what run level? What are the run levels? On Tue, Nov 13, 2012 at 5:12 PM, Felix Meschberger wrote: > Hi, > > Am 13.11.2012 um 23:35 schrieb Martin Phee: > > > New to sling. > > > > I'm trying a spring MVC sample and it needs a number of dependencies > > installed into sling. Wha

Re: Adding dependencies

2012-11-13 Thread Wayne Lund
Why would you say sling is more elegant? I had the same issue a few years ago and found it helpful to have the two. I thought sling's specialty was as a RESTful API OVER JCR whereas spring mvc and now spring data allow me to have RESTful APIs over the rest of the app. I know that's a little simp

Re: Adding dependencies

2012-11-13 Thread Marty Phee
I'm not sure either, but everyone knows spring and it makes change easier... :-) Thank you for the input. I'll give it a try tomorrow. On Nov 13, 2012, at 5:12 PM, Felix Meschberger wrote: > Hi, > > Am 13.11.2012 um 23:35 schrieb Martin Phee: > >> New to sling. >> >> I'm trying a spring M

Re: Resource output capture/modification

2012-11-13 Thread David G.
Ian, Correct - I want to trap the output of a sling:include. If i have a resource that sling:includes 5 other resources, I want to be able to "hook in" and have access to what each sling:include wrote to the response, and modify it if needed. Conceptually I'm imagining something like a Sling Fi

Re: Adding dependencies

2012-11-13 Thread Felix Meschberger
Hi, Am 14.11.2012 um 00:43 schrieb Sarwar Bhuiyan: > Felix, > > With Spring MVC, instead of the SlingMainServlet dispatching requests based > on sling resourceType, abs path, it would be attaching controllers based on > mappings which could be paths or regex patterns and of course it'd tie into

Re: Adding dependencies

2012-11-13 Thread Sarwar Bhuiyan
Felix, With Spring MVC, instead of the SlingMainServlet dispatching requests based on sling resourceType, abs path, it would be attaching controllers based on mappings which could be paths or regex patterns and of course it'd tie into the spring way of doing things like form data binding, validati

Re: Resource output capture/modification

2012-11-13 Thread Ian Boston
On 14 November 2012 09:35, David G. wrote: > Is there any mechanism in Sling that would let me inspect/modify the > output a resource after it has been fully evaluated against its > renderer? Similar to the sling rewriter pipeline but a hook that > occurs after each resource include? If by output

Re: Sling, rendering and multicore architectures

2012-11-13 Thread Ian Boston
Hi, If you intend to service more users than you have cores, then I am not certain that making rendering of a single page operate concurrently is going to help, since as soon as you have a few users using the system, Sling will be using all available cores to concurrently serve requests. A typical

Re: Sling, rendering and multicore architectures

2012-11-13 Thread Sarwar Bhuiyan
Hi Olaf, Maybe not necessarily for the rendering part itself but I was wondering if there's some sort of pre-processing/loading of data that could be done using the quartz jobs and storing that somewhere. Then during rendering you don't have to do so much processing before rendering. Just grab t

Re: Adding dependencies

2012-11-13 Thread Felix Meschberger
Hi, Am 13.11.2012 um 23:35 schrieb Martin Phee: > New to sling. > > I'm trying a spring MVC sample and it needs a number of dependencies > installed into sling. What the best way to add them all? Can I create a > custom build of sling with these in it already? Yes, sure. Just add the respecti

Resource output capture/modification

2012-11-13 Thread David G.
Is there any mechanism in Sling that would let me inspect/modify the output a resource after it has been fully evaluated against its renderer? Similar to the sling rewriter pipeline but a hook that occurs after each resource include? Likewise, is there any other documentation on the Sling rewriter

Sling, rendering and multicore architectures

2012-11-13 Thread Olaf Otto
Hi all, I would like to gather a few ideas concerning a granular, perhaps even generic approach to better using multicore architectures in Sling. First, some context: Basically, I am facing a scenario where we are running a rather sophisticated web application (lot's of dynamic stuff, closed

Re: accented text submitted via sling post servlet changed

2012-11-13 Thread Robert A. Decker
Thanks. That fixed it. Rob On Nov 13, 2012, at 5:40 PM, Phillpotts, James wrote: > You need to send the _charset_=UTF-8 parameter for Sling to decode request > parameters using UTF-8. > > Cheers, > James > > -Original Message- > From: Robert A. Decker [mailto:dec...@robdecker.com] > S

RE: accented text submitted via sling post servlet changed

2012-11-13 Thread Phillpotts, James
You need to send the _charset_=UTF-8 parameter for Sling to decode request parameters using UTF-8. Cheers, James -Original Message- From: Robert A. Decker [mailto:dec...@robdecker.com] Sent: 13 November 2012 16:38 To: users@sling.apache.org Subject: accented text submitted via sling post

accented text submitted via sling post servlet changed

2012-11-13 Thread Robert A. Decker
Hi, I'm submitting text to the sling post servlet via a post - just creating a node. I'm doing this from a Ruby on Rails controller. The text is 'abogado es tiburón' When I look at the ActionDispatch Request coming out of RoR, it looks like: "text=Abogado+es+tibur%C3%B3n.&lang=es&type=Type1&tar

Re: Multi-tenancy support in Sling - SLING-2656

2012-11-13 Thread Dominique Jaeggi
On Mon, Nov 12, 2012 at 11:48 AM, Bertrand Delacretaz wrote: > That's probably useful, but calling this multi-tenancy support is > misleading IMO - as Julian's message shows, people would usually > expect much more from that, and it doesn't look like we're able to > provide that with Sling current

Re: Multi-tenancy support in Sling - SLING-2656

2012-11-13 Thread Bertrand Delacretaz
On Mon, Nov 12, 2012 at 10:55 AM, Felix Meschberger wrote: > ...The current idea is just: > > * A ResourceResolver representing a user (just like JCR Session does) can be > adapted to a Tenant to which the user "belongs". > * A Resource can be adapted to a Tenant under the assumption that the >