Re: application-context loading order

2008-03-17 Thread Patrick Heiden
Hello! snip/ I meant: if you want to achieve always the same result as by using cocoon.getComponent() and you need an access to WebApplicationContext directly then go with our own version of WebAppContextUtils that is aware of context switching. Anyway, using cocoon.getComponent() is

Re: Multipage form sample broken

2008-03-17 Thread rossputin
Thanks Grzegorz, I have created the issue. Regards Ross Grzegorz Kossakowski-2 wrote: rossputin pisze: Hi, while poking around on 'http://cocoon.zones.apache.org/demos/trunk/samples/', I also noticed the multipage form sample is broken. It looks like it is probably the Ajax

Re: upload widget

2008-03-17 Thread Peter Sparkes
Thanks Grzegorz, Unfortunately I can't get it to work, code is: function upload() { var form = new Form(forms/upload_model.xml); var k = form.showForm(upload-display-pipeline.jx); k.invalidate(); var widget = form.getChild(upload); var uploadedContent = handleUpload(form);

Re: C2.2: undecoded URI params

2008-03-17 Thread Rainer Pruy
Hi Grek, after a bit further investigation the topic might decompose to two problems: 1. The request (emulation) used while executing the redirectTo call from flowscript does not really provide encoded vs. decoded values for the relevant input modules. (the emulation is obviously quite terse,

Re: Problem Posting with CInclude (please help!)

2008-03-17 Thread Insight 49, LLC
Thorsten Scherler wrote: On Tue, 2008-03-11 at 09:04 +0100, Bertrand Delacretaz wrote: Hi, On Tue, Mar 11, 2008 at 1:47 AM, Insight 49, LLC [EMAIL PROTECTED] wrote: ... I'm trying to post an xml fragment to a REST web service via cinclude, but get the following error Did

Re: Problem Posting with CInclude (please help!)

2008-03-17 Thread Thorsten Scherler
On Mon, 2008-03-17 at 06:01 -0500, Insight 49, LLC wrote: Thorsten Scherler wrote: On Tue, 2008-03-11 at 09:04 +0100, Bertrand Delacretaz wrote: Hi, On Tue, Mar 11, 2008 at 1:47 AM, Insight 49, LLC [EMAIL PROTECTED] wrote: ... I'm trying to post an xml fragment

Re: C2.2: undecoded URI params

2008-03-17 Thread Grzegorz Kossakowski
Rainer Pruy pisze: Hi Grek, after a bit further investigation the topic might decompose to two problems: 1. The request (emulation) used while executing the redirectTo call from flowscript does not really provide encoded vs. decoded values for the relevant input modules. (the emulation is

Re: upload widget

2008-03-17 Thread Grzegorz Kossakowski
Peter Sparkes pisze: Thanks Grzegorz, Unfortunately I can't get it to work, code is: function upload() { var form = new Form(forms/upload_model.xml); var k = form.showForm(upload-display-pipeline.jx); k.invalidate(); var widget = form.getChild(upload); var uploadedContent =

Re: upload widget

2008-03-17 Thread Felix Knecht
Peter Sparkes schrieb: Thanks Grzegorz, Unfortunately I can't get it to work, code is: function upload() { var form = new Form(forms/upload_model.xml); var k = form.showForm(upload-display-pipeline.jx); k.invalidate(); var widget = form.getChild(upload); var uploadedContent

Accesing url params in flow using servlet: protocol Cocoon 2.2

2008-03-17 Thread dkropotova
Dear all, I'm a bit confused what's the difference between servlet and cocoon protocols in Cocoon 2.2. I have a pipeline that takes a request - the first step in that pipeline is an aggregated generator, where one of the map:part calls internal pipeline (map:part

Re: Accesing url params in flow using servlet: protocol Cocoon 2.2

2008-03-17 Thread Rainer Pruy
Hello, please keep in mind, that using map:part will cause a new (sub) request. This (sub) request does not inherit any parameters from current request. If you want access to your current (external) request parameter q, you must pass it with your src= URL e.g in your case map:part

Re: Javaflow - major memory issue

2008-03-17 Thread Grzegorz Kossakowski
Hello Footh, footh pisze: I've been trying to track down a memory problem with my Cocoon application for a long time now. After a period of time, maybe a week or two, the application would die with an OutOfMemory error. I've tried increasing the VM memory for the servlet container (using

Re: Javaflow - major memory issue

2008-03-17 Thread Antonio Gallardo
Hi, Could it be this https://issues.apache.org/jira/browse/COCOON-2109 ? Best Regards, Antonio Gallardo. Torsten Curdt escribió: I would have a look into the continuation management infrastructure in cocoon and then start digging from there. I am wondering if limiting and expiring the

Modifying web.xml / loading a class when application starts

2008-03-17 Thread shai200
Hello, The following POM goal: mvn cocoon:rcl Implies that web.xml, applicationContext.xml, and the rest of the stuff in webapp/WEB-INF is automatically generated by maven... But how do I edit/modify them? Do I do it through the POM or is there some kind of way to tell maven to use my own

Re: Modifying web.xml / loading a class when application starts

2008-03-17 Thread Grzegorz Kossakowski
shai200 pisze: Hello, Hello The following POM goal: mvn cocoon:rcl Implies that web.xml, applicationContext.xml, and the rest of the stuff in webapp/WEB-INF is automatically generated by maven... But how do I edit/modify them? Do I do it through the POM or is there some kind of way to tell

How to inject the result of an action into a generator

2008-03-17 Thread shai200
Is this even possible? From the first glance at the Cocoon Core 2.2 documentation (http://cocoon.apache.org/2.2/core-modules/core/2.2/1270_1_1.html), it is unclear whether a String result of an Action (or perhaps a value passed through the Map and Action returns) can be used to inject as the XML

Re: Is there an url wildcard selector (equivalent)

2008-03-17 Thread Mark Lundquist
On Mar 17, 2008, at 5:17 PM, Mark Lundquist wrote: You might find this interesting: http://thread.gmane.org/gmane.text.xml.cocoon.devel/68380/focus=68408 whoops, I meant just this: http://thread.gmane.org/gmane.text.xml.cocoon.devel/68380 :-)

Re: Is there an url wildcard selector (equivalent)

2008-03-17 Thread Mark Lundquist
Hi Rainer, On Feb 21, 2008, at 5:49 AM, Rainer Pruy wrote: Hi, probably a question with a simple answer. However, I just failed up to now in getting at it. wildcard *matcher* is one of the most used components with cocoon, I'd reckon. But what to do, when one needs to handle X/c/**

Re: How to aggregate stream from ExceptionGenerator

2008-03-17 Thread Mark Lundquist
On Mar 10, 2008, at 11:19 PM, [EMAIL PROTECTED] wrote: Yes, you can aggregate error messages. Just move the content generation with map:part src=cocoon:/content/ to another pipeline map:match pattern=content with its own error-handling. Error-handling can happen at different levels. I

Re: Javaflow - major memory issue

2008-03-17 Thread footh
Thanks for all the replies. I did some more digging into the profiling data. It turns out that the ContinuationsManagerImpl is at the top of the object path of the byte arrays where org.apache.cocoon.environment.util.BufferedOutputStream is the actual parent of the arrays. Looking down the

Re: Javaflow - major memory issue

2008-03-17 Thread Antonio Gallardo
Hi footh, Testing the patch is a good start. Would you provide tomcat version and the parameters you use to start it? How do you configure cocoon.xconf, in special the values for: store-janitor logger=core.store.janitor/? Best Regards, Antonio Gallardo. footh escribió: Thanks for all the

Re: Javaflow - major memory issue

2008-03-17 Thread footh
Ok, I'll give the patch a shot. I'm using Tomcat version 5.5.26. Concerning the store-janitor values, I haven't changed them from the default. In fact, as I stated in my first post, the problem occurs even on the sample javaflow calculator application (relative url:

Re: Javaflow - major memory issue

2008-03-17 Thread Joerg Heinicke
On 17.03.2008 20:50, footh wrote: Thanks for all the replies. I did some more digging into the profiling data. It turns out that the ContinuationsManagerImpl is at the top of the object path of the byte arrays where org.apache.cocoon.environment.util.BufferedOutputStream is the actual parent

Re: C2.2: undecoded URI params

2008-03-17 Thread Joerg Heinicke
On 16.03.2008 15:59, Rainer Pruy wrote: I'trying to get some request parameters to their final destination (a local generator) however I always end up with decoded ones. The whole topic starts out from a js function handling a form and at some point is calling (showing the effective

Re: How to inject the result of an action into a generator

2008-03-17 Thread Joerg Heinicke
On 17.03.2008 19:48, shai200 wrote: From the first glance at the Cocoon Core 2.2 documentation (http://cocoon.apache.org/2.2/core-modules/core/2.2/1270_1_1.html), it is unclear whether a String result of an Action (or perhaps a value passed through the Map and Action returns) can be used to

Re: upload widget

2008-03-17 Thread Joerg Heinicke
On 17.03.2008 10:26, Felix Knecht wrote: part.copyToFile(new.pdf) ; I don't think that 'part' implements a the function 'copyToFile' (at least I haven't found it). It is, but not really in a useful way: public void copyToFile(String filename) throws IOException {

Re: upload widget

2008-03-17 Thread Joerg Heinicke
On 17.03.2008 23:18, Joerg Heinicke wrote: part.copyToFile(new.pdf) ; I don't think that 'part' implements a the function 'copyToFile' (at least I haven't found it). It is, but not really in a useful way: public void copyToFile(String filename) throws IOException {