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: importClass

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

2013-10-15 Thread Robby Pelssers
++) { collection.add(value[i]); } /javascript /fd:on-value-changed 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.ValueChangedEvent has this interface Method Summary Object getNewValue

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 map:parameter name=omit-xml-declaration value=yes/ 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

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

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

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:

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

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

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

2013-01-22 Thread Robby Pelssers
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 robby.pelss...@nxp.commailto:robby.pelss...@nxp.com An: users@cocoon.apache.orgmailto:users

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: properties

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:

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: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Robby Pelssers
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 somevalue = encodeURIComponent(“this is a value to be encoded”); Robby From: Peter Sparkes [mailto:pe...@didm.co.uk] Sent

RE: Sitemap: Error calling continuation

2013-01-11 Thread Robby Pelssers
...@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 snippets? Robby -Original Message- From

RE: Sitemap: Error calling continuation

2013-01-11 Thread Robby Pelssers
}/ /map:match. 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 differences of course… And so far I have a hunch which you should try out. var viewData = { title : form.getChild(title).getValue

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

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

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

RE: Path selector - Cocoon 2.2.

2012-12-13 Thread Robby Pelssers
All you need is a correct matcher: !-- {1}: language: e.g. English | french {2}: folder: e.g. dir_1 | dir_2 -- map:match pattern=repo/*/*.xml map:generate src=file:///c:/repo/{1}/{2}.xml/ map:serialize type=xml/ /map:match -Original Message- From: Mansour Al Akeel

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

RE: Error message for xslt

2012-12-13 Thread Robby Pelssers
, December 13, 2012 5:27 PM To: users@cocoon.apache.org Subject: Re: Error message for xslt I will check again, however for the future, how can I tell if a parameter is missing or not set in the XSLT ?? On Thu, Dec 13, 2012 at 10:59 AM, Robby Pelssers robby.pelss...@nxp.com wrote: Caused

RE: using both Xalan and Saxon with C3

2012-12-07 Thread Robby Pelssers
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 robby.pelss...@nxp.com wrote: You missed the point Mansour... I meant simultaneously in 1 pipeline. But thx

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: !-- {1}: a URI pointing to a zip containing XML documents -- map:match pattern=processzip/**

RE: using both Xalan and Saxon with C3

2012-12-05 Thread Robby Pelssers
... Robby -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

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

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
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

RE: CForms br /

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

RE: Download Zip for processed contents

2012-11-30 Thread Robby Pelssers
of : map:transform src=filelist2ZipArchive.xslt/ look like ?? On Fri, Nov 30, 2012 at 4:01 AM, Robby Pelssers robby.pelss...@nxp.com wrote: 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

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:

RE: XInclude in sitemap.xmap

2012-11-20 Thread Robby Pelssers
Everything works fine. This is strange because having an xmlns:xi shouldn't cause this. Any way it's working now. Thank you. On Thu, Nov 15, 2012 at 3:40 AM, Robby Pelssers robby.pelss...@nxp.com wrote: First I downloaded the result of invoking this unmodified pipeline. map:match equals

RE: XInclude in sitemap.xmap

2012-11-20 Thread Robby Pelssers
are able to regenerate the issue. On Tue, Nov 20, 2012 at 3:31 AM, Robby Pelssers robby.pelss...@nxp.com wrote: Hi Mansour, You again leave out the important bit that failed. I still am not sure why your test failed. If you look in the cocoon-sample/COB-INF/aggregation/xinclude.xml you

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()

RE: XInclude in sitemap.xmap

2012-11-15 Thread Robby Pelssers
of this issue. On Wed, Nov 14, 2012 at 12:11 PM, Robby Pelssers robby.pelss...@nxp.com wrote: I'm closing in on finding the issue but not sure if I can fix it this week. Test 1: Use {global:propertyName} in @src of a generator works fine

RE: XInclude in sitemap.xmap

2012-11-15 Thread Robby Pelssers
, Nov 14, 2012 at 12:11 PM, Robby Pelssers robby.pelss...@nxp.com wrote: I'm closing in on finding the issue but not sure if I can fix it this week. Test 1: Use {global:propertyName} in @src of a generator works fine

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
, Francesco Chicchiriccò ilgro...@apache.org wrote: On 13/11/2012 16:33, Robby Pelssers wrote: Ok.. I fixed the issue: map:match equals=aggregation/xinclude-transformer map:generate src=aggregation/xinclude.xml / map:transform type=xinclude map:parameter name

RE: Trouble with disable-output-escaping

2012-11-14 Thread Robby Pelssers
, 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 footwork. Would this work

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
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 robby.pelss...@nxp.com wrote: I think you will need to paste the complete sitemap to get more

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
name=expression-language:jexl class=org.apache.cocoon.sitemap.expression.JexlLanguageInterpreter / bean name=expression-language:global class=org.apache.cocoon.sitemap.expression.SettingsInterpreter / /beans Robby -Original Message- From: Robby Pelssers [mailto:robby.pelss...@nxp.com

RE: XInclude in sitemap.xmap

2012-11-14 Thread Robby Pelssers
for evaluating @value of a map:parameter. If anyone can fix this today.. be my guest. Otherwise I will take another look this week (latest this weekend). Robby -Original Message- From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Wednesday, November 14, 2012 5:38 PM To: users

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:match equals=aggregation/xinclude-transformer map:generate src=aggregation/xinclude.xml / map:transform type=xinclude map:parameter name=cacheKey value={map:0}/

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 Message- From: Robby

RE: XInclude in sitemap.xmap

2012-11-13 Thread Robby Pelssers
- 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 baseUrl is overridden, although

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 robby.pelss...@nxp.com wrote: I

RE: XInclude in sitemap.xmap

2012-11-13 Thread Robby Pelssers
// map:parameter name=test value=hello world/ /map:transform map:serialize type=xml / /map:match 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

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,

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: 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

RE: Unable to transform to docbook

2012-11-08 Thread Robby Pelssers
mansour.alak...@gmail.com 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 robby.pelss...@nxp.com wrote: You know what... It might

RE: Unable to transform to docbook

2012-11-08 Thread Robby Pelssers
the list doesn't allow attachment). On Mon, Nov 5, 2012 at 6:21 PM, Robby Pelssers robby.pelss...@nxp.com wrote: You know what... It might be a problem with the includes but to be honest I would have expected another exception in that case. Is there any way you can share the sources

RE: Unable to transform to docbook

2012-11-08 Thread Robby Pelssers
. On Thu, Nov 8, 2012 at 4:11 AM, Robby Pelssers robby.pelss...@nxp.com 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 from there. Robby

RE: Cocoon 3.0-alpha sitemap properties

2012-11-05 Thread Robby Pelssers
. The property is specified in META-INF/cocoon/properties/dev/app.properties base.path=/home/mansour/ Thank you for your time. On Mon, Nov 5, 2012 at 2:58 AM, Robby Pelssers robby.pelss...@nxp.com wrote: Sorry... I will rephrase this ;-) In your property you used 'documenation' -- typo

RE: Unable to transform to docbook

2012-11-05 Thread Robby Pelssers
[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 robby.pelss...@nxp.com wrote: Hi Mansour, First of all I assume you don't have the same match patterns in the same

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:

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 sitemap properties

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
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

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

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

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.

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

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

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.

RE: more encoding problems

2012-09-20 Thread Robby Pelssers
The one that does not work has following encoding in head meta content=text/html; charset=ISO-8859-1 http-equiv=Content-Type 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:

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]

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:

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,

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,

RE: encoding issue

2012-08-31 Thread Robby Pelssers
type=html/ /map:otherwise /map:select /map:match and the #{$document} in the jx-template has lost scands - mika - On Fri, 31 Aug 2012 09:19:04 +0200, Robby Pelssers robby.pelss...@nxp.com wrote: Hi Mika, Some questions: - are you having problems submitting forms where

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

RE: Re: back button results in a blank

2012-08-22 Thread Robby Pelssers
(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 On 8/22/2012 4:57 AM, Robby Pelssers wrote: Well

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 parent groupIdorg.apache.cocoon/groupId artifactIdcocoon/artifactId version10-SNAPSHOT/version -- this is currently 6-SNAPSHOT relativePath../parent/relativePath /parent @Francesco, can you

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

RE: issue with form encoding C2.2

2012-06-06 Thread Robby Pelssers
, 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 discussion on an issue

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

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

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 Map:match pattern= matchbypath/** map:read src={1}/ From: Robby Pelssers [mailto:robby.pelss...@nxp.com] Sent: Thursday, May 24, 2012 4:48 PM To: users

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

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. map:match pattern=custom-transformation-service/* map:generate src=service-consumer:/ map:transform

Bug in servlet service framework C2.2??

2012-05-15 Thread Robby Pelssers
this into a CSV file. ?xml version=1.0 encoding=UTF-8? !-- Author: Robby Pelssers This stylesheet transforms a CSV xml file into CSV -- xsl:stylesheet version=2.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2005/xpath-functions

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
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

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

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

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

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] Sent: Wednesday

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. map:match pattern=*/tree-expo-content map:generate src=cocoon://{1}/tree-expo-get-children/ map:transform src=exist/xsl/expotree2html.xsl/

RE: Problem in designing pipelines

2012-03-23 Thread Robby Pelssers
:04, Robby Pelssers a écrit : You should not use map:read but map:generate when you want to do further processing. map:match pattern=*/tree-expo-content map:generate src=cocoon://{1}/tree-expo-get-children/ map:transform src

RE: Problem with query in Cocoon

2012-03-22 Thread Robby Pelssers
You might give this a try: xquery version 1.0; (: $Id: get-children-rubriques.xq 12373 2008-10-15 14:41:34Z pdechandol $ :) (: XQuery qui retourne la collection de notices Bmgexporub liée à une notice parent :) let $rubriques :=

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

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

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

2012-03-21 Thread Robby Pelssers
Hi Lars, Can you explain what is the difference between mysite and mywebapp? Just checking because I'm not sure if mysite is a cocoon block in this case. I can tell you sth about our current setup. First of all our projects are situated in the same folder so any project referencing the parent

RE: Problem with Cocoon Forms continuation in Google Chrome

2012-03-21 Thread Robby Pelssers
suppose something in the server configuration provocate it. :-(( Le 13 mars 2012 à 12:56, Robby Pelssers a écrit : Of course it can. But to get an answer to that question I advise you to check the known bugs list of chrome itself. Did you already inspect the generated (x)html using chrome

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

2012-03-21 Thread Robby Pelssers
willing to check how you could accomplish this using C3. Would be a nice exercise for myself as well. Robby From: Lars Huttar [mailto:lars_hut...@sil.org] Sent: Wednesday, March 21, 2012 9:05 PM To: users@cocoon.apache.org Cc: Robby Pelssers Subject: Re: [C3] Working with archetypes [Was Re: parent

RE: pipeline in flowscript

2012-03-14 Thread Robby Pelssers
Hi Mika, I can reassure you that this is possible. Most use cases have a static form definition and you can bind data from your database to the widgets declared in this form definition. Hack, you can even use repeaters to get some dynamic behavior or even create form definitions on the fly

RE: pipeline in flowscript

2012-03-14 Thread Robby Pelssers
(forms/registration2.xml); does work map:match pattern=registration.mika map:generate src=forms/registration2.xml/ map:serialize/ /map:match - mika - 14.3.2012 20:39, Robby Pelssers kirjoitti: Hi Mika, I can reassure you that this is possible. Most use cases have a static form

RE: pipeline in flowscript

2012-03-14 Thread Robby Pelssers
14.3.2012 21:35, Robby Pelssers kirjoitti: Try var form = new Form(cocoon://registration.mika); Cheers, Robby From: Mika M Lehtonen [mailto:m...@digikartta.net] Sent: Wednesday, March 14, 2012 8:33 PM To: users@cocoon.apache.orgmailto:users@cocoon.apache.org Subject: Re: pipeline in flowscript Hi

  1   2   3   4   5   6   >