Re: Java strings vs. Javascript strings

2007-08-27 Thread Jason Johnston
Tobia Conforto wrote: Jason Johnston wrote: Rhino also makes the JavaScript methods available to Java strings if the java.lang.String class doesn't already define them. For example: js> javaString.match(/a.*/) Thanks, that clears part of the confusion to me. It also explains why sometimes

Re: [Portal] JSR-168 portlet problem with Tomcat 6 and 5.5

2007-08-27 Thread Joerg Heinicke
On 27.08.2007 8:46 Uhr, [EMAIL PROTECTED] wrote: In common/lib there are pluto-1.0.1.jar, portals-bridges-commen-1.0.jar und portlet-api-1.0.jar. These jars are not in cocoon/WEB-INF/lib. But it seems exactly to be such an issue though. In line 66 of PortletServlet [1] the instance of portle

Re: Dojo and Cocoon Ajax libraries don't load when in use with Chiba XForms filter

2007-08-27 Thread Josh2007
I finally found the solution. It was not a big deal actually. I just modified Chiba default stylesheet html4.xsl. Instead of loading Dojo resource from Chiba, I load Dojo resource from Cocoon by switching from:   to:   Josh Josh2007 wrote: > > Hi all, > > I've set up my Cocoon se

Dojo and Cocoon Ajax libraries don't load when in use with Chiba XForms filter

2007-08-27 Thread Josh2007
Hi all, I've set up my Cocoon servlet with Chiba-web XForms as a filter and I'm using Ajax block to perform asynchronous requests. Everything works fine as long as I don't mix in the same document Ajax features from Cocoon and XForms (from Chiba). If I do so, Dojo and Cocoon Ajax libraries imple

Re: Java strings vs. Javascript strings

2007-08-27 Thread Tobia Conforto
Jason Johnston wrote: > Rhino also makes the JavaScript methods available to Java strings if > the java.lang.String class doesn't already define them. For example: > >js> javaString.match(/a.*/) Thanks, that clears part of the confusion to me. It also explains why sometimes I could get away w

Re: [Cocoon 2.2] Why use a shielding repository ?

2007-08-27 Thread Reinhard Poetz
Olivier Billard wrote: Hi all, The Cocoon Maven plug-in can be configured given a "useShieldingRepository" configuration parameter. The effect is that all JARs / classes are moved from WEB-INF/lib and WEB-INF/classes respectively to WEB-INF/shielded/lib and WEB-INF/shielded/classes. The Coc

Re: Java strings vs. Javascript strings

2007-08-27 Thread Jason Johnston
Tobia Conforto wrote: Hello Am I the only Cocoon user who is extremely annoyed by the fact that Java strings are not Javascript strings are not Java strings? ... Can't Rhino, or whatever piece of software is bridging Javascript to Java, do the Right Thing and present every string as a Javasc

[Portal] JSR-168 portlet problem with Tomcat 6 and 5.5

2007-08-27 Thread aschilling
Hello, we have a problem using JSR-168 portlets with Tomcat 5.5.15 and 6.0. We get a ClassCast Exception (somewhere in Pluto it seems) when displaying the portlet. We have no problems running it in Tomcat 5.0.28 though. In common/lib there are pluto-1.0.1.jar, portals-bridges-commen-1.0.jar und

Re: http headers

2007-08-27 Thread Grzegorz Kossakowski
franco pace pisze: > Thanks Grzegorz, > that email hits all the right notes. Feel free to comment on this e-mail. > So what I need is cocoon 2.2 - Is > there an availability timeline for Version 2.2? The RC1 has been prepared more than month ago but has not been released (long story, you can f

Re: http headers

2007-08-27 Thread franco pace
Thanks Grzegorz, that email hits all the right notes. So what I need is cocoon 2.2 - Is there an availability timeline for Version 2.2? Thanks again, Franco Grzegorz Kossakowski wrote: franco pace pisze: Hi Grzegorz, I have been using cocoon for quite a while developing REST ish web serv

[Cocoon 2.2] Why use a shielding repository ?

2007-08-27 Thread Olivier Billard
Hi all, The Cocoon Maven plug-in can be configured given a "useShieldingRepository" configuration parameter. The effect is that all JARs / classes are moved from WEB-INF/lib and WEB-INF/classes respectively to WEB-INF/shielded/lib and WEB-INF/shielded/classes. The Cocoon documentation [1] does

Java strings vs. Javascript strings

2007-08-27 Thread Tobia Conforto
Hello Am I the only Cocoon user who is extremely annoyed by the fact that Java strings are not Javascript strings are not Java strings? Depending on the context, in your Flowscript you have to use either: str.startsWith("...") str.length() str.codePointAt(n) and the rest

Re: http headers

2007-08-27 Thread Grzegorz Kossakowski
franco pace pisze: > Hi Grzegorz, > > I have been using cocoon for quite a while developing REST ish web > services. REST is now gaining > great momentum. Yes, even in Cocoon community, see this[1] e-mail. There has been some work in Cocoon that made 2.2 version much REST-friendly than 2.1. >

Re: http headers

2007-08-27 Thread franco pace
Hi Grzegorz, I have been using cocoon for quite a while developing REST ish web services. REST is now gaining great momentum. REST relies heavily on HTTP protocol and in particular in returning specific http status codes under certain conditions. For example, say I have a pipeline that exposes

Re: http headers

2007-08-27 Thread Grzegorz Kossakowski
franco pace pisze: > Thanks Nico, > The transformer is just what I require for the headers. But I don't see > how it can be used to set the http response status code (200, 500 etc). > Also I am using cocoon version 2.1.10. This transformer is not included > in the std distribution. Are there any ot

java.lang.IllegalStateException: Pipeline has already been processed for this request

2007-08-27 Thread Michael Roth
Hi, I've a Problem with Flowscript and Continuitation. I use Cocoon 2.1.10 and Tomcat 5.5.23 ! sitemap: Flowscript: cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js"); function report() { var formname = cocoon.parameters["formname"]; var form

Re: http headers

2007-08-27 Thread franco pace
Thanks Nico, The transformer is just what I require for the headers. But I don't see how it can be used to set the http response status code (200, 500 etc). Also I am using cocoon version 2.1.10. This transformer is not included in the std distribution. Are there any other little pieces of coco

RE: http headers

2007-08-27 Thread Nico Verwer
Franco Pace writes: How about setting the http response code from an action or transformer? The reason I ask is that I would like to use cocoon as a REST server framework. This is also possible, see http://wiki.apache.org/cocoon/ResponseHeaderT

Re: http headers

2007-08-27 Thread franco pace
Hi Again, How about setting the http response code from an action or transformer? The reason I ask is that I would like to use cocoon as a REST server framework. Thanks again, Franco Thomas Markus wrote: sure, use org.apache.cocoon.acting.HttpHeaderAction franco pace schrieb: Hello, Is it