Empecher le back sur du cforms

2006-03-06 Thread philguillard
Bonsoir, Dans certains cas je veux qu'il soit impossible de revenir sur un formulaire avec la touche back du navigateur apres submit (disons apres le dernier sendPage ou redirect de mon flow. Ma 1ere idee est d'invalider la continuation, je me retrouve donc avec l'exception qui correspond,

Re: Empecher le back sur du cforms

2006-03-06 Thread Sylvain Wallez
philguillard wrote: Bonsoir, Dans certains cas je veux qu'il soit impossible de revenir sur un formulaire avec la touche back du navigateur apres submit (disons apres le dernier sendPage ou redirect de mon flow. Ma 1ere idee est d'invalider la continuation, je me retrouve donc avec

parameters in aggregation

2006-03-06 Thread Yufeng Li
Hi, I am new to Cocoon and am using 2.1.8. I have set up an aggregation pipeline. Before the aggregation is enabled, an action needs to be invoked, which will generate a map. My question is how to let other pipelines (map:part) access this map. I tried {../name} in the part's pipeline. But,

RE: namespaces in root element of xsp generated page

2006-03-06 Thread Pelssers, Robby, VF-NL
Title: Message root xsp:attribute name="xmlns:foo"xsp:exprthis.contentHandler.startPrefixMapping(myprefix,myuri);/xsp:expr/xsp:attribute /root I don't know for sure if you can use xsp:attribute on the root tag...I guess so. But for this to work, the attribute name has to be fixed and the

Re: Migrating Cocoon site for static presentation

2006-03-06 Thread Warrell . Harries
That is interesting but the Cocoon CLI offers much, much more; especially if you already have a Cocoon Sitemap. It takes a bit of getting your head around but, in short, the Cocoon CLI recurses through the site triggering all the pipelines and saving the output. This article was very useful for

Problems with encodeURL transformer

2006-03-06 Thread Mark Schrijver
Hello all, I have the following entry in my sitemap, in the transformer section: map:transformer name=encodeURL src=org.apache.cocoon.transformation.EncodeURLTransformer !-- default configuration, explicitly defined -- include-name.*/@href|.*/@action|frame/@src/include-name

Flow and hibernate sessions

2006-03-06 Thread Mark H
What is the best way to handle hibernate sessions in flow? At the moment Im using a servlet filter to close sessions after each request but this makes it awkward when dealing with objects that span a number of requests but are within one flow function (Im using flowscript). I could have

Re: Existing XSP not found by Cocoon (only on Linux)

2006-03-06 Thread Jakob Fix
Antonio, On 3/4/06, Antonio Gallardo [EMAIL PROTECTED] wrote: Jakob Fix wrote: Well, it's been quite a number of months that I didn't have time to look at this problem, but I just wanted to let the mailing list know that I've just solved this problem, and that it had nothing to do with the

Re: Migrating Cocoon site for static presentation

2006-03-06 Thread Fady Albashiti
J.D. Williams wrote: Wow. I had not even heard of this one. I will check it out. Joe Bertrand Delacretaz wrote: Le 3 mars 06 à 18:35, J.D. Williams a écrit : ...However, a need has arisen to generate static Web sites for this content for delivery via a Web server; i.e., not Tomcat or

RE: Problems with encodeURL transformer

2006-03-06 Thread Mark Schrijver
Ok, I've been trying some things and I found that my setup does work, just not with my page. It seems that the encodeUrl transformer only works when I put the s href= directly in the body tag, while I have them in a divtable I included my code to demonstrate: portal.xsl: ?xml version=1.0

Re: Migrating Cocoon site for static presentation

2006-03-06 Thread J.D. Williams
Actually, considering my background (not a Java programmer; moderately proficient in XML/XSL) and the state of documentation for all the tools available, Forrest is looking like the best solution for me. So far, I have been able to generate the documentation, seed a new site and generate

Re: Migrating Cocoon site for static presentation

2006-03-06 Thread Tim Williams
On 3/6/06, J.D. Williams [EMAIL PROTECTED] wrote: Actually, considering my background (not a Java programmer; moderately proficient in XML/XSL) and the state of documentation for all the tools available, Forrest is looking like the best solution for me. So far, I have been able to generate

Cocoon forms binding and XML namespaces

2006-03-06 Thread Peter Klotz
Hi, we are using Cocoon 2.1.8 and have a form for creating a new object. That means there is no data loaded into the form but only saved from the form to a XML document. The binding using a binding file uses XML namespaces, which seems to be the only difference to some of the samples, where one

Re: Flow and hibernate sessions

2006-03-06 Thread Simone Gianni
Hi Mark, we had the same problem with Hibernate. I solved it with a "flow" wrapper. This wrapper wraps the flow interpreter of your choice (tested with javaflow a lot, simple tests with _javascript_, but should not give big problems), opens a new session when the flow is first accessed

Re: Migrating Cocoon site for static presentation

2006-03-06 Thread J.D. Williams
No offense, but from a user's perspective they are still two very different ways of going about it. btw, you mention Cocoon CLI as another option; it's how forrest site is implemented. --tim - To unsubscribe, e-mail:

Aggregate error

2006-03-06 Thread blt mc
Hi:We are currently using Cocoon 2.1.7 and are having problems with our aggregate code. The message we get is:Internal Server ErrorMessage: No pipeline matched request: Directory_Generator Description: org.apache.cocoon.ProcessingException: Failed to execute pipeline.:

Re: Aggregate error

2006-03-06 Thread Jason Johnston
Hi: We are currently using Cocoon 2.1.7 and are having problems with our aggregate code. The message we get is: Internal Server Error Message: No pipeline matched request: Directory_Generator [snip] map:pipelines !--START: Directory Generator-- map:pipeline internal-only=true

Re: Cocoon forms binding and XML namespaces

2006-03-06 Thread Suzan Foster
Hi Peter, To get namespaces to bind in 2.1.8 i found you need to set namespace-prefixes to true for the xml-parser in your cocoon.xconf file. 2.1.8 also has some bugs in the repeater binding which prevents the propagation of namespaces in the binding file. See :

Scratchpad and Castor

2006-03-06 Thread Kamal Bhatt
Hi I was looking into the Castor and integration with cocoon and was pleased to find that there is a way of doing it. Unfortunately, I cannot seem to find the documentation for it or any of the source code and all references to the scratchpad (what is that anyway) do not seem to exist. My

Re: Need help w/ entity resolution

2006-03-06 Thread Mark Lundquist
I'm using Saxon, but I made a little test in a default Cocoon build and I can see that it happens using Xalan as well. The actual FileNotFound exception is thrown out of Xerces. For the catalog to work when in the top level stylesheet but be broken in an imported stylesheet, there must

XSP errors

2006-03-06 Thread Kamal Bhatt
Hi What is the best practice for handling exceptions in an xsp? Is there a way of passing errors to the log? Thanks. -- Kamal Bhatt Tourism Technology Pty Ltd T: +61 (02) 9956 7300 F: +61 (02) 9956 7411 Level 10, 1 Pacific Highway, North Sydney, NSW 2060 http://www.tt.com.au --

RE: namespaces in root element of xsp generated page

2006-03-06 Thread Simon Stanlake
Title: Message I don't think the attribute method will work, since when it goes through the pipeline it will not fire a startPrefixMapping() call. I ended up sticking a simple transformer in my pipeline that would add in the namespace declaration to the root element. However it would make

Re: Error when adding in Javascript for form validation

2006-03-06 Thread Antonio Gallardo
Derek Hohls wrote: Antonio I do not understand - I thought Javascript validation was pretty much a standard and tested part of CForms for a while now... are you saying it *never* worked in 2.1.5?! Nope. Sorry for my previous mail. It works in 2.1.5. I though the problem was 2 javascript

Cannot find group

2006-03-06 Thread Kamal Bhatt
Hi I would like to create an action on a repeater that copies some of the values of a row into a group of other fields (the fields having similar sort of values). This action should take place when an action on a row is selected. Here are the relevant parts of the code : --- !--