Re: Using the output of a pipeline to call another pipeline?

2005-09-30 Thread Jonas Lundberg
Thank's for the replies, Both using an action, and using a flowscript seem promising, but also problematic. For the flowscript solution to work, I need to read the xQuery result from a cocoon pipeline. Unfortunately, cocoon.processPipelineTo() does not work as in this example: readImage() {

RE: onChange event handler not working in cocoon-2.1.7

2005-09-30 Thread vijayaraghavan.subramaniam
Hi, I'm getting error if we use V3 API in my code? That's why i tried using V2 API, b'cos found something in Cocoon-2.1.7 Samples I'm getting the following error while accessing widget value/setting onChange.. The undefined value has no properties. wid.number1.value = 1; // error while

Re: Using the output of a pipeline to call another pipeline?

2005-09-30 Thread Derek Hohls
(Just on the side here - sorry to disrupt the thread - I would echo the support for more detailed info - tutorial + sets of examples would be *really* good - for creating Actions using Javascript - this would open up an area of Cocoon for us non-Java gurus - Thanks...) [EMAIL PROTECTED]

Re: Cocoon and PDF/X

2005-09-30 Thread Upayavira
[EMAIL PROTECTED] wrote: Hello, Cocoon world! Currently I am deciding wether to use Cocoon or the PDFLib to poduce PDF documentes over a web application. A very important question for me is the following: Can I produce PDF/X compatible files or is there another way to get CMYK colour schemes in

Re: Using the output of a pipeline to call another pipeline?

2005-09-30 Thread Christoph Hermann
Derek Hohls schrieb: Hello, Thank's for the replies, Both using an action, and using a flowscript seem promising, but also problematic. For the flowscript solution to work, I need to read the xQuery result from a cocoon pipeline. Unfortunately, cocoon.processPipelineTo() does not work as

Make SQLTransformer stop on error

2005-09-30 Thread Benjamin Boksa
Hi, is it possible to stop the SQLTransformer when an error occurs while processing more than one query in a single transformation? I have the following case: [...] queryINSERT INTO foo (key) VALUES (1)/query [...] queryINSERT INTO bar (key) VALUES (1)/query [...] (foo and bar have a 1:n

RE: Using the output of a pipeline to call another pipeline?

2005-09-30 Thread Chris Marasti-Georg
Christoph's solution is probably the easiest one, but here's an example of a simple action I wrote to simply call a URL and put the response in the returned map. Just compile it (need the cocoon jars on the classpath), jar it up, and stick it in the web-inf/lib folder. If anyone notices anything

Re: zip and jar source

2005-09-30 Thread Michael Wechner
Geert Josten wrote: I was uncertain that it is in the 'main' block, so looked things up. And you know what? You can find ZipSource and ZipSourceFactory in scratchpad block (2.1.6 at least). :-P you are right, indeed. I put them into Lenya directly and it compiles very fine and now it

Checking all keys are translated - done before ?

2005-09-30 Thread Messing, Elad
Hello all I was wondering if anyone ever produced some code that : 1. Checks that all translation files consists the same keys (everything is translated between every language). 2. Checks that all the keys scattered around the cocoon files appear in the translation files .

Re: Cocoon and PDF/X

2005-09-30 Thread Dominic . Mainz
Zitat von Upayavira [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Hello, Cocoon world! Currently I am deciding wether to use Cocoon or the PDFLib to poduce PDF documentes over a web application. A very important question for me is the following: Can I produce PDF/X compatible files or is

Re: Cocoon and PDF/X

2005-09-30 Thread Upayavira
[EMAIL PROTECTED] wrote: Zitat von Upayavira [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Hello, Cocoon world! Currently I am deciding wether to use Cocoon or the PDFLib to poduce PDF documentes over a web application. A very important question for me is the following: Can I produce PDF/X

handle-errors losing HTTP Session?

2005-09-30 Thread Dustin N. Jenkins
Whenever I throw a custom RuntimeException and catch it using the handle-errors tag, it loses the HTTP session information (i.e. I can't use the ${cocoon.session.XXX} in any of my following XML files). Is there any way to preserve it? Thanks, Dustin -- Dustin N. Jenkins Application

Re: handle-errors losing HTTP Session?

2005-09-30 Thread Dustin N. Jenkins
Quick addendum to this. My handle-error portion calls a resource at the end which formats the page with my application's left menu and banner menu so I just need to fill the conent pane in with relevant information. The first XSL the resource comes across is the exception.xsl, which

Re: Using the output of a pipeline to call another pipeline?

2005-09-30 Thread Jonas Lundberg
Thanks! The flowscript now works perfectly! (I still have to check the Action.) The final flowscript code was as follows (Just in case anyone else wants to read this later...) function getResource() { var input = Packages.java.lang.String(cocoon.parameters[input]); var output = new

(SOLVED) handle-errors losing HTTP Session?

2005-09-30 Thread Dustin N. Jenkins
I wasted twenty-six hours trying to get this straightened out, so here's the solution so nobody else will have to. Instead of using ${cocoon.session.blah}, I had to change it to ${session.getAttribute('blah')}. For some reason the cocoon.session context is lost. Is this a bug? I tried the

Re: (SOLVED) handle-errors losing HTTP Session?

2005-09-30 Thread Joerg Heinicke
On 30.09.2005 23:18, Dustin N. Jenkins wrote: I wasted twenty-six hours trying to get this straightened out, so here's the solution so nobody else will have to. Instead of using ${cocoon.session.blah}, I had to change it to ${session.getAttribute('blah')}. For some reason the cocoon.session

Re: (SOLVED) handle-errors losing HTTP Session?

2005-09-30 Thread Dustin N. Jenkins
Really? I thought that was just for developers of Cocoon, I didn't know if anybody could subscribe to it. Thanks Joerg Heinicke wrote: On 30.09.2005 23:18, Dustin N. Jenkins wrote: I wasted twenty-six hours trying to get this straightened out, so here's the solution so nobody else will

Re: (SOLVED) handle-errors losing HTTP Session?

2005-09-30 Thread Joerg Heinicke
On 30.09.2005 23:48, Dustin N. Jenkins wrote: Really? I thought that was just for developers of Cocoon, I didn't know if anybody could subscribe to it. Thanks Yes, really :) Anybody can subscribe to the dev list and follow the development of Cocoon. What you described below seems to be a

explicitly invalidating session causes error with JavaFlow

2005-09-30 Thread footh
I am using Tomcat Realms for authorization. I implement a logout by simply calling the invalidate() method of a session. This worked fine when my app was all JSP. However, now when I do that within JavaFlow, I get an internal server error. Here are the details: