RE: Using replace in Flowscript

2014-02-18 Thread Robby Pelssers
Peter, are you refering to the html document object? In that case you're barking up the wrong tree... flowscript is server side javascript. But if you e.g. want to import java classes you can use the following syntax: On 25/01/11 08:17, Robby Pelssers wrote: > imp

RE: how to obtain selected values in a multi-value dropdown

2013-10-15 Thread Robby Pelssers
= new java.util.ArrayList(); for(var i=0; i<value.length; i++) { collection.add(value[i]); } Thanks again for your help. Paul On 10/14/2013 3:53 AM, Robby Pelssers wrote: > >From the looks of it a org.apache.cocoon.forms.event.Value

RE: how to obtain selected values in a multi-value dropdown

2013-10-14 Thread Robby Pelssers
>From the looks of it a org.apache.cocoon.forms.event.ValueChangedEvent has >this interface Method Summary Object getNewValue() Object getOldValue() why don't you just try var newvalues = event.getNewValue(); I'm assuming now that this is an array in the multiselect case. If that doesn't

RE: Remove XML declaration and html DOCTYPE

2013-08-22 Thread Robby Pelssers
I vaguely remember a similar issue and using inside sitemap did not seem to work. However, If i would declare the serializer in my spring application context instead of in my sitemap, and there set the property "omit-xml-declaration to yes it would work. Please give that a try. Cheers, Rob

RE: XSLT import/include errors

2013-06-21 Thread Robby Pelssers
That is possible but the how-to part depends on the Saxon version you are using. You will need to dive into how to write extension functions for that particular implementation. I used it a number of times with Saxon 8.7 http://robbypelssers.blogspot.nl/2012/10/creating-unix-timestamp-with-xslt

RE: Dom Transformer

2013-03-15 Thread Robby Pelssers
So we all agree on a SAX transformer :) From: gelo1234 [mailto:gelo1...@gmail.com] Sent: Friday, March 15, 2013 8:19 PM To: users@cocoon.apache.org Subject: Re: Dom Transformer Seems reasonable. Although its a bit awkward idea. Simplicity is the key ;) Greetings, -Greg 2013/3/15 Jos Snellings

RE: Dom Transformer

2013-03-15 Thread Robby Pelssers
Exactly… I don’t have the full picture here but if you provide a small input file and expected output file we might come up with an easier solution. I still am not seeing why XSLT can’t get the job done but I hope your input will make this obvious. Robby From: gelo1234 [mailto:gelo1...@gmail

RE: sitemap parameter in C3 (was Re: A generator with sitemap parameter in C3)

2013-02-19 Thread Robby Pelssers
I agree on the fact that it's confusing to say the least when programming against the Java API. And any simplifications on this aspect are welcome. Robby -Original Message- From: Thorsten Scherler [mailto:scher...@gmail.com] Sent: Tuesday, February 19, 2013 11:45 AM To: users@cocoon.apa

RE: from Cforms to Wicket

2013-02-18 Thread Robby Pelssers
The only thing I wonder about is... Cocoon and neither XSLT2.0 support html5 serialization for all I know. So does someone using Cocoon already generate HTML5 content with Cocoon and how did you accomplish this. Cheers, Robby -Original Message- From: Mika M Lehtonen [mailto:m...@digik

RE: Error pattern in block

2013-02-17 Thread Robby Pelssers
Oh… I know where that error comes from. That means it can’t find a certificate needed to access that URL. You will need to install a certificate for the particular JDK running your app. Keystore default password: changeit Example of how to install a certificate on windows: keytool -import -ali

RE: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-22 Thread Robby Pelssers
see how you consume your movie webservice within a cocoon 2.2 pipeline. Do you call the webservice within a sitemap using a custom generator? Or via flow script? Matthias Von: Robby Pelssers mailto:robby.pelss...@nxp.com>> An: "users@cocoon

RE: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Robby Pelssers
Not sure if that was addressed to me. I did blog about how to use Spring-ws in the past. It’s not really cocoon related but you might as well consume or provide a webservice with Cocoon. It might be a bit outdated already but I guess it won’t hurt you to go over it quickly: http://robbypelsse

RE: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Robby Pelssers
You can add dependencies on the necessary spring modules. We actually consume webservices from within our Cocoon2.2 application. I’m not sure exactly which of the below dependencies are needed anymore but I will just list the ones we are using: UTF-8 2.5.1 1.5.10

RE: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Robby Pelssers
encode BEFORE sending and decode AFTER retrieving those strings. Encode with encodeURIComponent, decode with decodeURIComponent (if Javascript). Greetings, Greg On 14/01/2013 14:22, Robby Pelssers wrote: You will probably need to encode the characters if you make an ajax call… var somevalu

RE: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Robby Pelssers
You will probably need to encode the characters if you make an ajax call… var somevalue = encodeURIComponent(“this is a value to be encoded”); Robby From: Peter Sparkes [mailto:pe...@didm.co.uk] Sent: Monday, January 14, 2013 3:18 PM To: Cocoon users Subject: Multipage CForm using Ajax

RE: Sitemap: Error calling continuation

2013-01-11 Thread Robby Pelssers
with the continuation. The right points in both sitemaps (cocoon and dcEditor(my folder)) are: (dcEditor) (cocoon) . Maybe this information can help Dimitra. On 01/11/2013 02:54 PM, Robby Pelssers wrote: I think you’re not using Cocoon2.2 so there might be some

RE: Sitemap: Error calling continuation

2013-01-11 Thread Robby Pelssers
} From: Dimitra Nefeli [mailto:dimnefel...@gmail.com] Sent: Friday, January 11, 2013 1:42 PM To: users@cocoon.apache.org Subject: Re: Sitemap: Error calling continuation On 01/11/2013 02:06 PM, Robby Pelssers wrote: Can you perhaps show the flowscript involved and the relevant sitemap sni

RE: Sitemap: Error calling continuation

2013-01-11 Thread Robby Pelssers
Can you perhaps show the flowscript involved and the relevant sitemap snippets? Robby -Original Message- From: Dimitra Nefeli [mailto:dimnefel...@gmail.com] Sent: Friday, January 11, 2013 11:43 AM To: users@cocoon.apache.org Subject: Sitemap: Error calling continuation Hi, I am trying t

RE: Flowscript - Move file to another directory

2013-01-01 Thread Robby Pelssers
http://stackoverflow.com/questions/4645242/how-to-move-file-from-one-location-to-another-location-in-java The easiest is to use apache commons IO. But you can also use the rename strategy but you will need to take care of a few things in that case. Robby -Original Message- From: Peter

RE: Flowscript - delete file

2012-12-29 Thread Robby Pelssers
Hi Peter, I did not test the script I wrote actually and I can tell you why the script runs into an error. .delete() is also a javascript method on an object. It will delete a property by the name you specify. As you clearly want to call the delete method on the file you need to use the work

RE: Flowscript - delete file

2012-12-27 Thread Robby Pelssers
importClass(Packages.java.io.File); importClass(Packages.java.io.FileNotFoundException); function deleteFile() { var filePath = cocoon.parameters["file"]; var file = new File(filePath); try { if (!file.exists()) { throw new FileNotFoundException(filePath); }

RE: Delete, move or rename files

2012-12-23 Thread Robby Pelssers
. Peter On 22/12/2012 15:47, Robby Pelssers wrote: Not sure how you envisualize that? Of course that is possible. Any application can access the filesystem it is installed on. So you easily write code that will do any of the below operations. But I guess your question is if Cocoon does this

RE: Delete, move or rename files

2012-12-22 Thread Robby Pelssers
Not sure how you envisualize that? Of course that is possible. Any application can access the filesystem it is installed on. So you easily write code that will do any of the below operations. But I guess your question is if Cocoon does this magically for you? No. It might have components li

RE: Error message for xslt

2012-12-13 Thread Robby Pelssers
et in the XSLT ?? On Thu, Dec 13, 2012 at 10:59 AM, Robby Pelssers wrote: > Caused by: java.lang.NullPointerException > > Are you setting all parameters used by the XSLT? Can you verify you do? > > Robby > > -Original Message- > From: Mansour Al Akeel [mailto:mans

RE: Error message for xslt

2012-12-13 Thread Robby Pelssers
Caused by: java.lang.NullPointerException Are you setting all parameters used by the XSLT? Can you verify you do? Robby -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Thursday, December 13, 2012 4:57 PM To: users Subject: Error message for xslt I am

RE: Path selector - Cocoon 2.2.

2012-12-13 Thread Robby Pelssers
All you need is a correct matcher: -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Wednesday, December 12, 2012 9:42 PM To: users Subject: Path selector - Cocoon 2.2. Hello all, I am looking to select a path for a directory depending on la

zip-archive generator (reverse of zip-archive serializer)

2012-12-07 Thread Robby Pelssers
Hi guys, Not sure if we have a zip-archive generator already http://cocoon.apache.org/2.1/userdocs/ziparchive-serializer.html but it would be very cool to have one. Let me explain the use case: Now a lot of options - write results to disk - just serialize result - zip t

RE: using both Xalan and Saxon with C3

2012-12-07 Thread Robby Pelssers
C3 Ok, I see what you mean now. Just out of curiosity, why would anyone need to use more than one xslt processor in one application ?? Thank you. On Thu, Dec 6, 2012 at 2:50 AM, Robby Pelssers wrote: > You missed the point Mansour... I meant simultaneously in 1 pipeline. > > But thx

RE: using both Xalan and Saxon with C3

2012-12-05 Thread Robby Pelssers
: Re: using both Xalan and Saxon with C3 If I am not wrong, you can always change the implementation for the xslt processor in the final WAR file by setting: META-INF/services/javax.xml.transform.TransformerFactory This is simple and clean. On Wed, Dec 5, 2012 at 5:21 AM, Robby Pelssers wrote

RE: using both Xalan and Saxon with C3

2012-12-05 Thread Robby Pelssers
by -Original Message- From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Tuesday, December 04, 2012 2:21 PM To: d...@cocoon.apache.org; users@cocoon.apache.org Subject: using both Xalan and Saxon with C3 Hi guys, Just wondering how I would configure a C3 project so I could

using both Xalan and Saxon with C3

2012-12-04 Thread Robby Pelssers
Hi guys, Just wondering how I would configure a C3 project so I could use both Xalan and Saxon from my sitemap and java I currently took the approach to just create a file META-INF/services/javax.xml.transform.TransformerFactory With following content: net.sf.saxon.TransformerFactoryImpl But

RE: Download Zip for processed contents

2012-11-30 Thread Robby Pelssers
eel [mailto:mansour.alak...@gmail.com] Sent: Friday, November 30, 2012 1:23 PM To: users@cocoon.apache.org Subject: Re: Download Zip for processed contents Robby, thank you. Can you please explain or give me a hint of what would the output of : look like ?? On Fri, Nov 30, 2012 at 4:01 AM, Robby Pelsser

RE: CForms

2012-11-30 Thread Robby Pelssers
Did you already debug what you received back on the server side? I’m interesting what value the form posts to the server. http://cocoon.apache.org/2.1/apidocs/index.html?overview-summary.html I would put a breakpoint on setValue

RE: Download Zip for processed contents

2012-11-30 Thread Robby Pelssers
Of course there is Mansour. You first need to define a pipeline that will dynamically generate the below zip:archive document. If that is based on processing files from some directory you could potentially first use the directory generator to list the files in XML directory representation. But

keep running into issue while commiting [the specified baseline is not the latest baseline]

2012-11-28 Thread Robby Pelssers
http://www.apache.org/dev/version-control.html#latest-baseline I tried several times to commit the patch for [COCOON3-114] but with no success so far. Anyone experiencing similar issues? Robby - To unsubscribe, e-mail: users

RE: XInclude in sitemap.xmap

2012-11-20 Thread Robby Pelssers
n you apply another transformation immediately after the xinclude you may get this error. Please try to do apply any transformation, and let me know if you are able to regenerate the issue. On Tue, Nov 20, 2012 at 3:31 AM, Robby Pelssers wrote: > Hi Mansour, > > You again leave out the

RE: XInclude in sitemap.xmap

2012-11-20 Thread Robby Pelssers
uldn't cause this. Any way it's working now. Thank you. On Thu, Nov 15, 2012 at 3:40 AM, Robby Pelssers wrote: > First I downloaded the result of invoking this unmodified pipeline. > > > > > >

RE: JXTemplate question

2012-11-16 Thread Robby Pelssers
What is the actual value of inneritem? A tag? And yes... using XSLT this would have been a breeze ;-) But maybe you use the wrong xpath expression? I'm not sure what the binding returns. Suppose your current xpath looks like /root/tagname Give following a try /root/tagname/text() /root/tag

RE: XInclude in sitemap.xmap

2012-11-15 Thread Robby Pelssers
> Robby, thank you for taking care of this issue. > > > > On Wed, Nov 14, 2012 at 12:11 PM, Robby Pelssers > wrote: >> I'm closing in on finding the issue but not sure if I can

RE: XInclude in sitemap.xmap

2012-11-15 Thread Robby Pelssers
nsour Al Akeel wrote: > Robby, thank you for taking care of this issue. > > > > On Wed, Nov 14, 2012 at 12:11 PM, Robby Pelssers > wrote: >> I'm closing in on finding the issue but not sure if I can fix it this week. >>

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
ot;http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";> Robby -Original Message- From: Robby Pelssers [mailto:robby.pelss...@nx

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
/schema/beans/spring-beans-2.5.xsd";> Robby -Original Message- From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Wednesday, November 14, 2012 5:18 PM To: users@cocoon.apache.org Subject: RE: XInclude in sitemap.xmap I did a little test myself and

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
ecution for /article/example.xml took 195.35498 ms. The variables are matching the correct document, and it's served correctly, but without xincludes being processed. On Wed, Nov 14, 2012 at 6:54 AM, Robby Pelssers wrote: > I think you will need to paste the complete sitemap to get

RE: Trouble with disable-output-escaping

2012-11-14 Thread Robby Pelssers
Robby, On 11/13/12 1:41 PM, Robby Pelssers wrote: > Allright... > > You should reminder this tip. It will only work if you do this in the > very last transformer right before calling the serializer. Okay, since I have a number of transform operations, I'll have to do some fancy

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
is highly appreciated. Thank you. On Tue, Nov 13, 2012 at 10:43 AM, Francesco Chicchiriccò wrote: > On 13/11/2012 16:33, Robby Pelssers wrote: >> Ok.. >> >> I fixed the issue: >> >> >> >> >> >>

RE: Trouble with disable-output-escaping

2012-11-13 Thread Robby Pelssers
Allright... You should reminder this tip. It will only work if you do this in the very last transformer right before calling the serializer. You owe me a beer ;-) Robby -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, November 13, 2012

RE: XInclude in sitemap.xmap

2012-11-13 Thread Robby Pelssers
Ok.. I fixed the issue: Works now. I committed the fix to Cocoon3 trunk. Robby -Original Message- From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Tuesday, November 13, 2012 2:49 PM To

RE: XInclude in sitemap.xmap

2012-11-13 Thread Robby Pelssers
.. etc.). Or just use the read only collections. Here's an example http://javarevisited.blogspot.ca/2012/07/create-read-only-list-map-set-example-java.html This may solve potential problems with other invocations. On Tue, Nov 13, 2012 at 8:54 AM, Robby Pelssers wrote: > I made a little c

RE: XInclude in sitemap.xmap

2012-11-13 Thread Robby Pelssers
tested. Robby -----Original Message- From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Tuesday, November 13, 2012 2:49 PM To: users@cocoon.apache.org Subject: RE: XInclude in sitemap.xmap Ok... I found the problem. Inside org.apache.cocoon.sitemap.node.AbstractSitemapNode the baseU

RE: XInclude in sitemap.xmap

2012-11-13 Thread Robby Pelssers
, final String type, final Invocation invocation) { // set the baseUrl PROBLEMATIC PART invocationParams.put("baseUrl", invocation.resolve("")); } But before starting making changes... this might need careful attention. Robby -Original Mess

RE: XInclude in sitemap.xmap

2012-11-13 Thread Robby Pelssers
I'm debugging your issue and so far I'm pretty bedazzled about what the hell is going on: Map baseUrl=file:/C:/workspaces/apache/cocoon/cocoon3/trunk/cocoon-sample/./src/main/resources/COB-INF/ cacheKey=aggr

RE: Is cocoon dead ?

2012-11-11 Thread Robby Pelssers
Hi Bart, I'd say we've learned people are reluctant to change.. even developers. But to be honest.. it was C2.2 forcing me to learn maven and I've been using it ever since for all new projects. Same holds true for Spring actually. And where I could understand the drop back then, maven or Sprin

RE: accessing a spring bean methods from sitemap

2012-11-11 Thread Robby Pelssers
Hi Mansour, I do know how to access spring beans from C2.2 flowscript if that is of any help. Some sample code: function getTicket() { var authenticator = cocoon.getComponent("name_of_spring_bean"); //this is how you can get hold of a spring bean } But the main question is .. what are you

RE: Unable to transform to docbook

2012-11-08 Thread Robby Pelssers
today. On Thu, Nov 8, 2012 at 4:11 AM, Robby Pelssers wrote: > Hi Mansour, > > I just wrote a little unit test which has no issues with includes. I did not > commit the test but I suggest you try tackling your issue in small steps like > below and continue f

RE: Unable to transform to docbook

2012-11-08 Thread Robby Pelssers
vegetables.xslt** http://www.w3.org/1999/XSL/Transform"; version="1.0"> ****** -Original Message- From: Robby Pelssers [ma

RE: Unable to transform to docbook

2012-11-08 Thread Robby Pelssers
5, 2012 at 7:23 PM, Mansour Al Akeel wrote: > Sure I will. I will organize a project that is easy to play with. > > I will send it directly to your email (I think the list doesn't allow > attachment). > > > On Mon, Nov 5, 2012 at 6:21 PM, Robby Pelssers wrote: >>

RE: Unable to transform to docbook

2012-11-05 Thread Robby Pelssers
r Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Monday, November 05, 2012 6:59 PM To: users@cocoon.apache.org Subject: Re: Unable to transform to docbook On Mon, Nov 5, 2012 at 7:51 AM, Robby Pelssers wrote: > Hi Mansour, > > First of all I assume you don't have the same match patterns in the s

RE: Cocoon 3.0-alpha sitemap properties

2012-11-05 Thread Robby Pelssers
ies base.path=/home/mansour/ Thank you for your time. On Mon, Nov 5, 2012 at 2:58 AM, Robby Pelssers wrote: > Sorry... > > I will rephrase this ;-) > > In your property you used 'documenation' --> typo > > Robby > > -Original Message- >

RE: Unable to transform to docbook

2012-11-05 Thread Robby Pelssers
lared xsl parameters. Kind regards, Robby Pelssers -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Sunday, November 04, 2012 11:14 PM To: users Subject: Unable to transform to docbook I have worked with C2.1 and 2.2 before. I am trying to play with C3

RE: Cocoon 3.0-alpha sitemap properties

2012-11-04 Thread Robby Pelssers
Sorry... I will rephrase this ;-) In your property you used 'documenation' --> typo Robby -Original Message- From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Monday, November 05, 2012 8:54 AM To: users@cocoon.apache.org Subject: RE: Cocoon 3.0-alpha sitem

RE: Cocoon 3.0-alpha sitemap properties

2012-11-04 Thread Robby Pelssers
=/home/mansour/docs/documentation (value of property you defined) =/home/mansour/docs/documentation (correct path i assume) -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Saturday, November 03, 2012 10:10 PM To: users@cocoon.apache.org Subject: Cocoon

cocoon.processPipelineTo gotcha

2012-10-17 Thread Robby Pelssers
Hi guys, Should anyone ever do crazy stuff in flowscript... be aware of the following http://robbypelssers.blogspot.nl/2012/10/cocoon-flowscript-gotcha.html Cheers, Robby

RE: beginner q: possible to set extension .xsl as type='xslt' by default?

2012-10-16 Thread Robby Pelssers
Just for your reference. Are you using XSLT2.0? If so you will need to configure Saxon as processor. Default Xalan is used. http://robbypelssers.blogspot.nl/2010/08/using-saxon-instead-of-xalan-with.html And the best way to get started is indeed using a very simple setup. It will also help u

RE: beginner q: possible to set extension .xsl as type='xslt' by default?

2012-10-16 Thread Robby Pelssers
This is however not a C2.2. specific issue. Let me explain how C2.2 works. Assume you have the following structure COB-INF -data - input.xml -xslt -transform1.xsl -trans

transformer does not always need a generator

2012-10-12 Thread Robby Pelssers
Hi guys, Just wanted to point out a small mistake in the pipeline concept. It seems like a pipeline should not always (have to admit most of the times it does) start with a generator. I accidentally ran into this . An XSLT can load data by itself using document() and collection function.I

RE: database connections used up by script?

2012-10-12 Thread Robby Pelssers
Javier is right. We have the same issue sometimes when too many clients connect to our XMLDB. So it might be worthwhile investigating how many apps are connecting to your postgress DB. Do they all properly close the connection? It's not a Cocoon issue for sure. Robby From: Javier Puerto

RE: two scripts to handle flowscript in one sitemap

2012-10-05 Thread Robby Pelssers
Not sure what you mean.. For all I know you can just store all your flowscripts in the flow folder and cocoon will load all of them on startup. So all functions should be available from your sitemap.. even when split into multiple files. So let's say you have File1: --- Function func1

RE: [C3] Sting template, passing argument to method

2012-10-05 Thread Robby Pelssers
Lol... you beat me to giving the solution. It's indeed dead simple. And Franscesco is right about ST only supporting javabeans style access. I had a similar issue in the past passing javascript objects from flowscript to jxtemplate generator. So I ended up extending the native JS Object with

RE: 2.1 Cocoon Forms Formatting Date in Flow

2012-09-24 Thread Robby Pelssers
Hi Peter, Are you sending the mail from flowscript? I think the formatting is only used for the form itself but you will still receive a regular Date object on the server side. So you probably need to format it on the server side using plain java. importClass(Packages.java.text.SimpleDateFor

RE: more encoding problems

2012-09-20 Thread Robby Pelssers
On Thu, 20 Sep 2012 10:03:46 +0200, Robby Pelssers wrote: > The one that does not work has following encoding in > > http-equiv="Content-Type"> > > Robby > > -Original Message- > From: m...@digikartta.net [mailto:m...@digikartta.net] > Sent: Thu

RE: more encoding problems

2012-09-20 Thread Robby Pelssers
The one that does not work has following encoding in Robby -Original Message- From: m...@digikartta.net [mailto:m...@digikartta.net] Sent: Thursday, September 20, 2012 9:23 AM To: users@cocoon.apache.org Subject: more encoding problems Hi, C2.11, I moved my app from one server to

RE: web app directory

2012-09-14 Thread Robby Pelssers
But reading your mail twice... Are you actually uploading files inside the exploded war folder??? Not so nice in my opinion. Not sure if that is wise. Or am I misinterpreting your use case? Why not store/ upload the files in a configurable location? Robby -Original Message- From: Pau

RE: web app directory

2012-09-14 Thread Robby Pelssers
You might want to play with javax.servlet.getRealPath() but I read some comments that it might return null if the war is not exploded. http://docs.oracle.com/javaee/6/api/index.html?javax/servlet/package-summary.html -Original Message- From: Paul Joseph [mailto:pjos...@gmail.com] Sent:

RE: encoding issue

2012-08-31 Thread Robby Pelssers
and the #{$document} in the jx-template has lost scands - mika - On Fri, 31 Aug 2012 09:19:04 +0200, Robby Pelssers wrote: > Hi Mika,

RE: encoding issue

2012-08-31 Thread Robby Pelssers
Hi Mika, Some questions: - are you having problems submitting forms where the data is not received server side as UTF-8? - what application container are you using? Tomcat, Jetty, ... Robby -Original Message- From: m...@digikartta.net [mailto:m...@digikartta.net] Sent: Wednesday, Augu

RE: encoding issue

2012-08-31 Thread Robby Pelssers
Hi Mika, Some questions: - are you having problems submitting forms where the data is not received server side as UTF-8? - what application container are you using? Tomcat, Jetty, ... Robby -Original Message- From: m...@digikartta.net [mailto:m...@digikartta.net] Sent: Wednesday, Augu

RE: Re: back button results in a blank

2012-08-22 Thread Robby Pelssers
out that I am indeed using Flowscript (Cocoon 2.11). I did read that "back button" issues are confined to IE and FF but not to Chrome. I have not confirmed that. I should do my homework and install the full Flowscript example set that comes with Cocoon and try it with those. brgds Paul

RE: back button results in a blank

2012-08-22 Thread Robby Pelssers
Well, I am assuming Paul is using flowscript (continuations) and they 'should' solve the back button problem for all I know. But let's first find out which version of cocoon he's using and if he is indeed using flowscript. @Paul, Could you perhaps setup a minimalistic test case and share it so

RE: How to build cocoon 2.2 from source for debugging

2012-07-10 Thread Robby Pelssers
You can also change the problematic pom’s to point to the correct parent pom.xml org.apache.cocoon cocoon 10-SNAPSHOT --> this is currently 6-SNAPSHOT ../parent @Francesco, can you confirm this? I guess we should fix this in trunk in that case. Robby [ERROR] The build

RE: issue with form encoding C2.2

2012-06-06 Thread Robby Pelssers
erEncoding, formEncoding); return env; } From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Wednesday, June 06, 2012 1:10 PM To: d...@cocoon.apache.org; users@cocoon.apache.org Subject: issue with form encoding C2.2 Hi all, Just wanted to have a short discus

issue with form encoding C2.2

2012-06-06 Thread Robby Pelssers
Hi all, Just wanted to have a short discussion on an issue that I wasted quite some hours on. Let me first explain that I configured my cocoon block with following two properties as per http://cocoon.apache.org/2.2/1366_1_1.html : org.apache.cocoon.containerencoding=UTF-8 org.apache.cocoon.for

RE: ok/cancel prompt followed by submit?

2012-05-30 Thread Robby Pelssers
Check this example: http://www.shiningstar.net/articles/articles/javascript/confirmsubmit.asp -Original Message- From: Paul Joseph [mailto:pjos...@gmail.com] Sent: Wednesday, May 30, 2012 4:28 PM To: users@cocoon.apache.org Subject: ok/cancel prompt followed by submit? Hi there, I was

RE: Sitemap: path matching

2012-05-24 Thread Robby Pelssers
That won't solve Jos's issue I'm afraid. From the docs it states: 'If set to true the values of a request parameter is available using a variable in the xslt with the name of the parameter.' Jos doesn’t know which parameters will be passed upfront. This is merely a shortcut that prevents you fr

RE: Sitemap: path matching

2012-05-24 Thread Robby Pelssers
But as a little side note: If all files in these folders were treated uniformely.. let's say with a map:read You could just as well do From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Thursday, May 24, 2012 4:48 PM To: users@cocoon.apache.org Subject: RE: Sitemap: path mat

RE: Sitemap: path matching

2012-05-24 Thread Robby Pelssers
line matcher cannot know how many segments there will be. Cheers, Jos On Thu, May 24, 2012 at 4:38 PM, Robby Pelssers mailto:robby.pelss...@nxp.com>> wrote: Can you give a few possible examples of the pattern that you're trying to match? Ps. Maybe a bit nasty as solution but let&#x

RE: Sitemap: path matching

2012-05-24 Thread Robby Pelssers
Can you give a few possible examples of the pattern that you're trying to match? Ps. Maybe a bit nasty as solution but let's say you want to handle multiple productId's Pattern="generateProduct/*" Example generateProduct/[P1, P2, P3] You just pass '[P1,P2,P3]' to your generator as a single

Bug in servlet service framework C2.2??

2012-05-15 Thread Robby Pelssers
Hi all, As an important side note. I've run into a serious limitation a few times already. Let me explain shortly what I try to do. I want to e.g. generate an XML representation of CSV data from an XQuery generator. I borrowed the schema from the CSV generator and dropped some attributes wh

how to pass parameters to a service transformer

2012-05-15 Thread Robby Pelssers
Hi all, I've got a question regarding the service transformer. How do I pass any parameters to the service? The demo from get-started page is not clear on this topic. Robby

RE: cocoon migrate from 2.1 to 2.2 or 3 (was Re: Forms and maps)

2012-04-20 Thread Robby Pelssers
Hi Thorsten, This line kind of triggered me to reply: "you can even use even generic app generator to create native android, etc. apps without writing a single line of code" Are you aware of people having done so or were you involved yourself? If so... you don't happen to have some guidelines

RE: Forms and maps

2012-04-18 Thread Robby Pelssers
Although I don't think this mailing list is the appropriate list to discuss these kinds of issues I will post my final word on this. Just like we all use Java (at least the ones working with Cocoon) most of us should be fair to admit that Java's progress is heavily been slowed down by trying to

RE: Forms and maps

2012-04-18 Thread Robby Pelssers
Well, I also have a pretty strong opinion about the remark you make now. Let's first make the distinction between - innovators (people who are always trying to improve the way of working themselves --> E.g. Reinhard Poetz who started C3) - early adapters (people who see clear benefits i

RE: Forms and maps

2012-04-18 Thread Robby Pelssers
y agree with Robby's opinion. The trend is to use HTML5 on > the client side in case of Web apps. > > Greetings, > Greg > 18-04-2012 10:27, "Robby Pelssers" napisał(a): > Just my 2 cents on this topic... > > Cocoon forms was at the time in my eyes a

RE: Forms and maps

2012-04-18 Thread Robby Pelssers
Just my 2 cents on this topic... Cocoon forms was at the time in my eyes a pretty awesome solution to build highly dynamic forms with support for continuations. But as we all know this puts considerable strain on the server side. Gradually we started seeing a tendency towards AJAX (XmlHttpRequ

using proxy from flowscript in Cocoon2.2

2012-04-16 Thread Robby Pelssers
Hi all, I have a use case where I need to post data to an Alfresco service which returns JSON response. Currently I just posted the page and showed the JSON data but ideally I want to stay on the same page and make an XMLhttpRequest from the client side. As this is crossdomain I need to setup

RE: Cocoon2.2 maven jetty plugin issue

2012-04-11 Thread Robby Pelssers
In reply to my own question. We don't see consistent behaviour. Some blocks startup properly so this might be caused by another issue. It's too bad from the stacktrace I don't get any insight into the issue ;-( Robby From: Robby Pelssers [mailto:robby.pelss...@nxp.com]

Cocoon2.2 maven jetty plugin issue

2012-04-11 Thread Robby Pelssers
Hi guys, I have been facing an issue related to the maven jetty plugin which is used to start a single C2.2 block. Just for the record I have to mention that this has always worked in the past. I have a strong suspicion that this is somehow related to our upgrade to Maven 3. Did anybody els

RE: Problem in designing pipelines

2012-03-23 Thread Robby Pelssers
2012 à 16:04, Robby Pelssers a écrit : You should not use map:read but map:generate when you want to do further processing. From: Patricia Déchandol [mailto:pdechan...@ajlsm

RE: Problem in designing pipelines

2012-03-23 Thread Robby Pelssers
You should not use map:read but map:generate when you want to do further processing. From: Patricia Déchandol [mailto:pdechan...@ajlsm.com] Sent: Friday, March 23, 2012 3:31

RE: [C3] Working with archetypes [Was Re: parent of parent artifact?]

2012-03-22 Thread Robby Pelssers
In the root of your project folder you will see a rcl.properties file looking sth like this: #com.nxp.spider2.shared.service%classes-dir=./target/classes Just comment it out and this will tell the reloading classloader to reload files from the target/classes folder. Robby From: Lars Huttar [m

RE: [C3] Working with archetypes [Was Re: parent of parent artifact?]

2012-03-22 Thread Robby Pelssers
Unless you changed the spring application context that is auto-generated using the cocoon block archetype you should use: http://localhost:/mysite/test.html Robby From: Lars Huttar [mailto:lars_hut...@sil.org] Sent: Thursday, March 22, 2012 4:55 PM To: users@cocoon.apache.org Cc: Francesco

  1   2   3   4   5   6   >