Authentification : Auth-fw et MySQL

2005-10-24 Thread lint
Bonjour Je débute tout juste avec Cocoon et j'aimerais effectuer une authentification par rapport a une base SQL, j'ai donc modifié le code de l'exemple auth-fw pour consulter ma base SQL à la place du fichier xml fourni. Le driver MySQL est bien installé et la connection est ouverte lors du

Question existentielle sur CForms, les dates et i18n

2005-10-24 Thread Aurélien DEHAY
Bonjour à tous. Une question, forcément existentielle donc, histoire de faire les choses le plus proprement possible. J'ai un formulaire, dans lequel l'utilisateur rentre une date. J'aimerai que cette date soit stockée de la même manière quelque soit la locale de l'utilisateur, pour ensuite

Question existentielle sur CForms, les dates et i18n

2005-10-24 Thread Aurélien DEHAY
Bonjour à tous. Une question, forcément existentielle donc, histoire de faire les choses le plus proprement possible. J'ai un formulaire, dans lequel l'utilisateur rentre une date. J'aimerai que cette date soit stockée de la même manière quelque soit la locale de l'utilisateur, pour ensuite

Re: Question existentielle sur CForms, les dates et i18n

2005-10-24 Thread Sylvain Wallez
Aurélien DEHAY wrote: Bonjour à tous. Une question, forcément existentielle donc, histoire de faire les choses le plus proprement possible. J'ai un formulaire, dans lequel l'utilisateur rentre une date. J'aimerai que cette date soit stockée de la même manière quelque soit la locale de

Re: Question existentielle sur CForms, les dates et i18n

2005-10-24 Thread Jean-Christophe Kermagoret
Bonjour, Dans le fd, tu déclares ce que tu veux voir au niveau de ton client, c'est à dire le browser : fd:field id=dtstart fd:datatype base=date fd:convertor fd:patterns fd:patterndd/MM/ HH:mm:ss/fd:pattern /fd:patterns /fd:convertor

Re: Question existentielle sur CForms, les dates et i18n

2005-10-24 Thread Aurélien DEHAY
Ok. Un tour dans le source du transo forms, et on voit qu'il faut passer le {locale} du act type=locale pour récupérer la locale, je me doutais bien qu'il me manquait quelque chose!! Ça marche impéccable, merci Sylvain Jean-Christophe. -- Aurélien

RE: Re: request parameters in sitemap

2005-10-24 Thread Derek Hohls
Maybe you need the results as XML; look at: http://code.google.com/gsa_apis/xml_reference.html [EMAIL PROTECTED] 2005/10/23 05:03 PM Don't you have to tidy this request in order to serialize this as xml? I would be surprised if it just works like this...AS Wouter Roosendaal wrote: Hi,I

RE: How to send parameters to a URL via http?

2005-10-24 Thread Ard Schrijvers
I don't think Brian is much helped with this, because what he wants is something like: map:match pattern=bla/bla map:aggregate elementyi map:part element=ext src=fetchExtURI-incl-currentParameters/ map:part element=somemorexml src=yi2/

Re: VelocityGenerator: error when sending string containing ampersand

2005-10-24 Thread Andreas Deininger
2005/10/23, Joerg Heinicke [EMAIL PROTECTED]: This seems to be a bug with the Velocity Generator as the sent value is not escaped, i.e. remains and does not get converted to amp; in the resulting XML. You might file a bug report for it. I would like to, however I encounter the following

Forms problem with XALAN 2_7_0

2005-10-24 Thread Andrew Le Quesne
Hello, I have recently tried upgrading a cocoon web app to use XALAN 2.7.0 by copying the new serializer.jar, xalan.jar, xercesImpl.jar and xml-apis.jar into the WEB-INF Lib folder and removing (copying to an archive folder) the old jars. The web app loads ok in Jetty but when I click on a page

Re: How to send parameters to a URL via http?

2005-10-24 Thread Geert Josten
Not the nicest solution, but you could do this with a cinclude.. -write a cinclude template in jx or just plain xml -generate that using jx of file -use a transform insert the request parameters xml (isn't that possible in the jx template as well?) -cinclude transform -voila.. Maybe someone

Re: VelocityGenerator: error when sending string containing ampersand

2005-10-24 Thread Christoph Hermann
Andreas Deininger schrieb: Hello, This seems to be a bug with the Velocity Generator as the sent value is not escaped, i.e. remains and does not get converted to amp; in the resulting XML. You might file a bug report for it. I would like to, however I encounter the following message:

RE: How to send parameters to a URL via http?

2005-10-24 Thread Chris Marasti-Georg
Word of caution - if the request is a post, the queryString will be empty. If anyone knows a way around that one, please post - I have forms that I'd really like to post but are a get for now, because I don't know what params will be present! Chris Marasti-Georg -Original Message-

Re: Accessing authentication-contex wthout actually protecting a pipeline?

2005-10-24 Thread Jean-Baptiste Quenot
* Armaz Mellati: Know that map:act type=auth-protect wont protect any pipeline for your guest users. Of course, you're right, the name « auth-protect » is misleading because in fact it does not protect anything. It just ensures that the user is logged, automatically (if a

Re: Cocoon 2.1.8 - namespaced xml binding failing.

2005-10-24 Thread Jean-Baptiste Quenot
* Suzan Foster: After looking at the JXPath code I have to come to the conclusion that it doesn't try to normalize the prefixes. OK, so binding seems to be based on namespace prefix, rather than namespace URI. If you think this is a bug, you might want to file a bug report at ASF

loop thru woody repeaters

2005-10-24 Thread Gunter D'Hondt
Hi, I want to loop thru a woody repeater it's instances in plain old java code; doing a form.getWidget(repeatername) doesn't give me much methods to do that I think? So: a repeater with widgets id and name; data: id name 1 abc 2 def and using java flow I want to set the data to: id name 1

Re: How to send parameters to a URL via http?

2005-10-24 Thread Brian Burridge
I don't think I was as clear as I should have been. I don't have any aggregating to do. I want to include the parameters in the call to an external URL, which will return XML. But once that external XML comes back, it is the only xml I need in the pipeline. I don't need to append the request

Re: How to send parameters to a URL via http?

2005-10-24 Thread Upayavira
Brian Burridge wrote: I don't think I was as clear as I should have been. I don't have any aggregating to do. I want to include the parameters in the call to an external URL, which will return XML. But once that external XML comes back, it is the only xml I need in the pipeline. I

RE: How to send parameters to a URL via http?

2005-10-24 Thread Chris Marasti-Georg
As I said, if you are using the GET method (or just having a standard a href=""/a kind of link), queryString will work, eg: map:generateuri="http://www.myserver.com/some/search.html{session-context:request/querystring}"/ However, if you try to use the same method with a posted form, the

RE: How to send parameters to a URL via http?

2005-10-24 Thread Ard Schrijvers
You could do it easily with flow-script: map:match pattern=foo map:aggregate element=someparts map:part element=ext src=cocoon:/getthistroughflow/ /map:aggrate /map:match map:match pattern=getthistroughflow map:call function=post2requestUri/ /map:match in

RE: How to send parameters to a URL via http?

2005-10-24 Thread Chris Marasti-Georg
I am actually passing the string as a parameter to an action... I could probably implement a use-request-parameters parameter ala the transform param, but I prefered to pass them in already attached to the external url Chris Marasti-Georg -Original Message- From: Ard Schrijvers

Re: How to send parameters to a URL via http?

2005-10-24 Thread Brian Burridge
Problem is, I want to send all requests to this url, with any and all request params. I won't know what they are in advance to hard code them in the sitemap. Is there a way to get the xml from the RequestGenerator and send that as a param? map:generate src=""

Re: VelocityGenerator: error when sending string containing ampersand

2005-10-24 Thread Ralph Goers
Andreas Deininger wrote: 2005/10/23, Joerg Heinicke [EMAIL PROTECTED]: This seems to be a bug with the Velocity Generator as the sent value is not escaped, i.e. remains and does not get converted to amp; in the resulting XML. You might file a bug report for it. I would like to,

RE: How to send parameters to a URL via http?

2005-10-24 Thread Boisvert, Éric
If the parameters are passed through GET method, you can use map:generate src=""/ This will append all parameter received by the pipeline. -Message d'origine-De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]De la part de Brian BurridgeEnvoyé: 24 octobre, 2005 11:06À:

Re: VelocityGenerator: error when sending string containing ampersand

2005-10-24 Thread Bertrand Delacretaz
Le 24 oct. 05, à 11:19, Andreas Deininger a écrit : ... Sorry, entering bugs into product Cocoon 2 has been disabled. Any special reason for that (upcoming release of version 2.1.8??).. Yes, the issues are being moved Jira, stay tuned... -Bertrand

RE: How to send parameters to a URL via http?

2005-10-24 Thread Chris Marasti-Georg
queryString includes the leading ? - you only need "http://somesite.org/getpage{request:queryString}" Chris Marasti-Georg From: "Boisvert, Éric" [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 12:26 PMTo: users@cocoon.apache.orgSubject: RE: How to send parameters to

Re: How to send parameters to a URL via http?

2005-10-24 Thread Brian Burridge
I've added your code and I keep getting an error: org.apache.cocoon.ProcessingException: Generator already set. Cannot set generator 'file' at [unknown location] Any idea why? BrianOn 10/24/05, Ard Schrijvers [EMAIL PROTECTED] wrote: You could do it easily with flow-script:map:match

Re: Increasing Cocoon Portal speed at stat-up

2005-10-24 Thread Carsten Ziegeler
Ralph Goers wrote: Carsten actually mentioned something like this to me at the GetTogether. I suspect that this is due to using castor to convert your layout into objects. This happens each time a user logs in. With such a large site I could imagine that that could be a problem. This

Java and JavaScript in Cocoon app

2005-10-24 Thread Oleg Konovalov
Hi, I am trying to enhance somebody's Cocoon 2.0.4 application (tons of XSL and XML, Java and a bit of Javascript). On my page there is a bunch of checkboxes (defined in XSL), and based on which of them user selects, it supposed to dynamically build SQL stament (in Stored Procedure with flags

Re: loop thru woody repeaters

2005-10-24 Thread Bruno Dumon
On Mon, 2005-10-24 at 14:46 +0100, Gunter D'Hondt wrote: Hi, I want to loop thru a woody repeater it's instances in plain old java code; doing a form.getWidget(repeatername) doesn't give me much methods to do that I think? you need to cast it to a repeater: Repeater repeater =

[HEADS-UP] Testers wanted for the upcoming Cocoon 2.1.8

2005-10-24 Thread Sylvain Wallez
Dear Cocoon users and developers, We plan to release Cocoon version 2.1.8 at the end of this week, and we need the whole Cocoon community to help us ensuring it is rock-solid as we expect it to be. Please download the latest Cocoon: - checkout the SVN repository (preferred method): svn co

Re: Java and JavaScript in Cocoon app

2005-10-24 Thread Oleg Konovalov
it builds [in Javascript] an array of checkboxes checked called valueArray, which is not used now). Correction: actually, it seems that there is an attempt in the existing code to pass Javascript array to Java: onsubmit=if(this.inclusions)excludes.value=getCheckedValues(inclusions,true);return

Re: Java and JavaScript in Cocoon app

2005-10-24 Thread Jason Johnston
What are you using on the server-side to process the request and build the SQL? Sitemap actions? I'm assuming it's not Flowscript or JavaFlow since you're using such an old version of Cocoon. I don't think the JavaScript you describe is going to be of much use to you; IIUC the JS you're talking

Re: Java and JavaScript in Cocoon app

2005-10-24 Thread Oleg Konovalov
Jason, Yes, I am using sitemap actions which execute Java code. I do have some experience with JSP servlets (but much more of Applets, that's why I thought of LiveConnect). So let me tell what I understood from your advice: - since the name=inclusions for all my checkboxes (but each has a

callback for continuation timeout?

2005-10-24 Thread Mark Lundquist
Hi, I have some processing invoked from flow that's not OK to just abandon if the user abandons their session. In particular, this processing logic reserves some resources in the database. In the case of success, the resources will remain permanently associated with a persistent object,