Re: [ cocoon3 ] map parameters

2011-11-07 Thread Andre Juffer
OK! This had an effect. Now the creatorId is NOT anymore null. I firstly had just the "void setup(..)" method changed. No effect. Then I also included the "void setConfiguration(..)" method and the combination did it. I am not sure what exactly is differently now. I guess the parameters.addA

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Francesco Chicchiriccò
On 07/11/2011 13:55, Andre Juffer wrote: [...] @Override public void setup(Map parameters) { super.setup(parameters); this.parameters = parameters; } Try instead (as in StringTemplateGenerator, for instance): @Override public void setup(final Map parameters) {

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Andre Juffer
On 11/07/2011 02:21 PM, Robby Pelssers wrote: Hi Andre, Are you sure these @Path annotations are correct? In your sitemap you specify the pattern "create/image/creator/*" Hi Robby, I think you are looking at the wrong email. The code you are referring to is from a different email posted las

RE: [ cocoon3 ] map parameters

2011-11-07 Thread Robby Pelssers
Hi Andre, Are you sure these @Path annotations are correct? In your sitemap you specify the pattern "create/image/creator/*" In your component I see following annotations @Path("/image") public class ImageResource @POST @Path("/creator/{id}") @Consumes(MediaType.MULTIPART_FORM_DA

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Andre Juffer
On 11/07/2011 02:03 PM, Francesco Chicchiriccò wrote: Il 07/11/2011 12:48, Andre Juffer ha scritto: On 11/07/2011 01:43 PM, Francesco Chicchiriccò wrote: On 07/11/2011 12:35, Andre Juffer wrote: What happens if you use one of standard generators - like the XML generator in the first example? I

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Francesco Chicchiriccò
Il 07/11/2011 12:48, Andre Juffer ha scritto: On 11/07/2011 01:43 PM, Francesco Chicchiriccò wrote: On 07/11/2011 12:35, Andre Juffer wrote: What happens if you use one of standard generators - like the XML generator in the first example? I mean: You should now get an exception for somethin

RE: [ cocoon3 ] map parameters

2011-11-07 Thread Robby Pelssers
At least this tells you that the default file generator receives the parameter correctly as default the filegenerator will look for the file starting with COB-INF as root folder. Robby -Original Message- From: Andre Juffer [mailto:ajuf...@cc.oulu.fi] Sent: Monday, November 07, 2011 12:

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Andre Juffer
On 11/07/2011 01:43 PM, Francesco Chicchiriccò wrote: On 07/11/2011 12:35, Andre Juffer wrote: What happens if you use one of standard generators - like the XML generator in the first example? I mean: You should now get an exception for something missing: is it "sax-pipeline/3276800.xml" or

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Francesco Chicchiriccò
On 07/11/2011 12:35, Andre Juffer wrote: Hi Francesco, yes, that's right, I saw that file. It is the one I was referring to, as a matter of fact. Line 188 is I have similar lines in my pipeline. The difference is that I now have: ... Thus, I am trying to pass a parameter to the G

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Andre Juffer
Hi Francesco, yes, that's right, I saw that file. It is the one I was referring to, as a matter of fact. Line 188 is I have similar lines in my pipeline. The difference is that I now have: ... Thus, I am trying to pass a parameter to the Generator. When checking the paramet

Re: [ cocoon3 ] map parameters

2011-11-07 Thread Francesco Chicchiriccò
On 07/11/2011 11:57, Andre Juffer wrote: Hi, I have the following pipeline in a sitemap of some block. This pipeline is called by other blocks, that have components in place to upload images. They subsequently connect to the image block to store it in an image database. The pipeline uses a

RE: [ cocoon3 ] map parameters

2011-11-07 Thread Robby Pelssers
Have you tried: Robby -Original Message- From: Andre Juffer [mailto:ajuf...@cc.oulu.fi] Sent: Monday, November 07, 2011 11:57 AM To: Cocoon Users Subject: [ cocoon3 ] map parameters Hi, I have the following pipeline in a sitemap of some block. This pipeline is called by other blocks

[ cocoon3 ] map parameters

2011-11-07 Thread Andre Juffer
Hi, I have the following pipeline in a sitemap of some block. This pipeline is called by other blocks, that have components in place to upload images. They subsequently connect to the image block to store it in an image database. The pipeline uses a self made Generator, that requires two par