RE: Iterate multiple request parameters in a map pipeline..?

2007-05-21 Thread Jasha Joachimsthal
Yes, sure, Within your map:generate or map:transform: map:parameter name=paramName value={request-param:paramName}/ Regards, Jasha Joachimsthal Hippo Oosteinde 11 1017 WT Amsterdam The Netherlands +31 (0)20 5224466 www.hippo.nl -Original Message- From: ypomonh [mailto:[EMAIL

Re: Image in a CForm radio list

2007-05-21 Thread Niels van Kampenhout
Hi, J.D. Williams wrote: I would like to use an image as the label for an item in a CForm selection list that is styled as radio buttons. None of the examples in the docs I have seen maps exactly to this. I have succeeded in getting an image to appear in a form, but not in place of a label in

Re: Iterate multiple request parameters in a map pipeline..?

2007-05-21 Thread ypomonh
Thanks Jasha but unfortunately that works fine as long as you know what parameters to expect. If you don't (eg. a dynamically generated form) you can't reference them by name. In flowscript you have getParameterNames() from where you can iterate them. I need something similar in the

Re: Iterate multiple request parameters in a map pipeline..?

2007-05-21 Thread Jeroen Reijn
Perhaps you use an aggregate and include a part that uses the request generator? Just my 2 cents... Jeroen ypomonh wrote: Thanks Jasha but unfortunately that works fine as long as you know what parameters to expect. If you don't (eg. a dynamically generated form) you can't reference them by

RE: Iterate multiple request parameters in a map pipeline..?

2007-05-21 Thread Jasha Joachimsthal
If you don't know which parameters you can expect, how will you handle them? Jasha Joachimsthal Hippo Oosteinde 11 1017 WT Amsterdam The Netherlands +31 (0)20 5224466 www.hippo.nl -Original Message- From: ypomonh [mailto:[EMAIL PROTECTED] Sent: maandag 21 mei 2007 14:23 To:

To use Cocoon or not: Pls Suggest

2007-05-21 Thread Aseem Monga
We have to develop a batch process application for generating some part of webiste content statically before hand, that can be served to the Users directly. This requires a multi step processing of the Source input content, which is in XML format, confining to a DTD. The Fact that it

Re: Pass the content of a pipeline to a flow

2007-05-21 Thread ypomonh
Hi Johannes! As far as I understand since processPipelineTo() can only output to a java.io.OutputStream, I can only use it to serialize something on the disk. Is it possible to handle this stream inside my flowscript? I am not fluent in java but I think that there is nothing I can really do

Re: Pass the content of a pipeline to a flow

2007-05-21 Thread Jeroen Reijn
Hi ypomonh, I guess you can use the NullOutputStream for that: cocoon.processPipelineTo(factorial, {}, new org.apache.cocoon.util.NullOutputStream()); Kind regards, Jeroen Reijn ypomonh wrote: Hi Johannes! As far as I understand since processPipelineTo() can only output to a

Re: Pass the content of a pipeline to a flow

2007-05-21 Thread Joerg Heinicke
ypomonh ypomonh at freemail.gr writes: As far as I understand since processPipelineTo() can only output to a java.io.OutputStream, I can only use it to serialize something on the disk. Is it possible to handle this stream inside my flowscript? I am not fluent in java but I think that

Re: To use Cocoon or not: Pls Suggest

2007-05-21 Thread Derek Hohls
Aseem In general, Cocoon can handle the type of application you are looking at. Two issues: Can we have a pipeline with just a generator, which depends on output of another pipeline. - no and yes. A pipeline must always have a serializer - the results must go somewhere - even if its a

Re: Iterate multiple request parameters in a map pipeline..?

2007-05-21 Thread ypomonh
Jasha Joachimsthal wrote: If you don't know which parameters you can expect, how will you handle them? It is trivial for a web app to not know exactly what parameters to expect. As I learned from the mailing list a couple of days ago, for flowscript you can do something similar to: var map

[HELP]Failed to execute pipeline.

2007-05-21 Thread Kimberly Wells
Description:org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException

Re: Iterate multiple request parameters in a map pipeline..?

2007-05-21 Thread Grzegorz Kossakowski
ypomonh pisze: Jasha Joachimsthal wrote: If you don't know which parameters you can expect, how will you handle them? It is trivial for a web app to not know exactly what parameters to expect. As I learned from the mailing list a couple of days ago, for flowscript you can do something

Re: CForms/Flowscript and Hibernate long sessions

2007-05-21 Thread Fabrizio Sitzia
Hello Johannes, Beware, as this post is a rather lengthy one :-) Hi Fabrizio, it seems that you alread have a very elaborate solution. I do not understand some points completely yet, so let me ask some further questions: Therefore I ran various stress-tests using the 'ab' tool ('apache

Re: problem after running cocoon on tomcat

2007-05-21 Thread Joerg Heinicke
On 21.05.2007 14:09, Vaduvoiu Tiberiu wrote: Ok, so far I worked on my application using only cocoon, my trunk folder with all my files were/still are in C:/mysite/trunk in cocoon in the mount table I had a mount uri-prefix=mysite/ src=file://C:/mysite/trunk//, everything worked ok. Now I am

Re: [HELP]Failed to execute pipeline.

2007-05-21 Thread Joerg Heinicke
On 21.05.2007 06:25, Kimberly Wells wrote: Description:org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException Hmm, sorry, but nobody can help you with this description of the problem. It's just impossible to guess ... Joerg

Re: problem installing cocoon

2007-05-21 Thread Joerg Heinicke
Can it be that your main problems are solved? When I view that site there is no longer an initialization problem, but only the samples sitemap can't be found. Joerg On 18.05.2007 10:46, Varga Zsombor wrote: Hi All! I have a problem with installing cocoon. First I've installed cocoon to my

Re: Cocoon cache not shared between Host aliases

2007-05-21 Thread Joerg Heinicke
On 18.05.2007 13:14, Jerome Benezech wrote: The tomcat virtual host is configured with an alias: host name=www.mydomain.com ... Aliasmydomain.com/Alias /host My problem is that cocoon seems wo maintain 2 cache: 1 with URL www.mydomain.com and 1 with URL mydomain.com. I noticed that when

Re: Sitemap patterns dead?

2007-05-21 Thread Lally Singh
On 5/19/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Lally Singh pisze: Hey all, here's a thinker for you. I have two sitemap entries, both based off the example block. One, an empty pattern, displays the 1 line of text I want. The second gives me an error 500: snip/ Just tested it

Re: Sitemap patterns dead?

2007-05-21 Thread Grzegorz Kossakowski
Lally Singh pisze: On 5/19/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: Thanks for all the help you've been giving me, but I've given up. It was my pleasure all the time to give a help. Being a Cocoon developer it's always sad moment to hear that kind of news but I understand you.

sql Transformer missing sql namespace

2007-05-21 Thread Christoph Klocker
Hi, I am using the sql transformer. I have the problem that the resulting xml is missing the xmlns:sql declaration. I call it this way map:match pattern=userUris map:generate src=sql/userUri.xml / map:transform type=sql

Re: sql Transformer missing sql namespace

2007-05-21 Thread Joerg Heinicke
On 21.05.2007 21:56, Christoph Klocker wrote: I am using the sql transformer. I have the problem that the resulting xml is missing the xmlns:sql declaration. Sorry, but this makes me laughing :) I only know the effect that the namespace declaration is coming out twice. Can you try it

Re: sql Transformer missing sql namespace

2007-05-21 Thread Christoph Klocker
Hi, thats what i did, forgot to comment it out in my previous posting. so, this leads to the same result, no sql namespace declaration. map:match pattern=userUris map:generate src=sql/userUri.xml / map:transform type=sql

Re: sql Transformer missing sql namespace

2007-05-21 Thread Christoph Klocker
Hi, that was the problem, indeed I used Firefox. I checked the source. The namespace declaration is included. thanks, On Monday 21 May 2007 22:25:20 Jasha Joachimsthal wrote: Hi, which application do you use to view the result? Firefox leaves away the namespace declaration often unless you

Re: Iterate multiple request parameters in a map pipeline..?

2007-05-21 Thread Andrew Franz
Aggregate: 1. a request document from the RequestGenerator 2. a representation of the schema of the dynamically-generated form see http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/generation/RequestGenerator.html The same applies to populating the dynamically-generated form with

Re: ServiceSelector: it's possible to get an Enumeration?

2007-05-21 Thread Joerg Heinicke
On 17.05.2007 17:47, [EMAIL PROTECTED] wrote: selector is really an instance of WrapperServiceSelector. Inside the object there is an ExtendedComponentSelector where a HashTable has an entry for each datasource deined in cocoon.xconf. But I do not find any way to get the keys out. Neither