Processing of repeater row values in flowscript

2005-12-13 Thread Derek Hohls
I need to be able to do some pre- and post- processing of values that will be contained in repeater rows in a CForm. The form defn will look something like: Title Name Name

Re: Question about serializers

2005-12-13 Thread Jason Johnston
Fawzib Rojas wrote: I asked a few days ago about creating a PDF on a background thread (Subject:Create PDF on background) but didn't got an answer I could use. Our users requests the PDF and it cannot be batched. Sometimes it takes a few minutes to be created. What I want to do is something lik

How to do multi-row updates in cocoon?

2005-12-13 Thread Daniel Hertz
Hi all! Given a set of checkbox values that are submitted through an html form, what's the best way to loop through the submitted values to update more than one row in a table? Imagine a table called 'message_table': mid | message | status +-+--- 1 | Text1 | H 2 | Te

RE: Question about serializers

2005-12-13 Thread Ard Schrijvers
Hello Fawzib, what you are suggesting/trying seems quite impossible to me? But, I am just wondering, why would take it so long for the pdf's to be generated? I suppose you are generating a pdf from several xml docs and serialize it to pdf? Well, do the xml docs change every minute? Why can't yo

Question about serializers

2005-12-13 Thread Fawzib Rojas
I asked a few days ago about creating a PDF on a background thread (Subject:Create PDF on background) but didn't got an answer I could use. Our users requests the PDF and it cannot be batched. Sometimes it takes a few minutes to be created. What I want to do is something like this:

Re: server startup

2005-12-13 Thread Freek Segers
Yes, it does work in Jetty. However, I noticed that when you replace a JAR file, things don't always reload correctly. Although the change is noticed, some files in it appear corrupted until you restart Jetty. I specifically have this problem with XSL files that are stored in an JAR. Free

Re: Textarea field problem with cforms/flow

2005-12-13 Thread Freek Segers
Hi, I've noticed this behaviour in one of my stylesheets when I was trying to output elements on separate lines. I added and to the output and saw that the was translated as a newline but the appeared literally in the resulting output. When a browser submits form data it submits n

RE: Textarea field problem with cforms/flow

2005-12-13 Thread Ard Schrijvers
No, What you are describing, is that you have a textarea in which you edit some text and save it in a database. The next time you edit the same textarea field, it already contains the text you saved before. When you save again, it doubles your enters, right? This is solved, by making sure, that

Re: server startup

2005-12-13 Thread Mark Lundquist
On Dec 13, 2005, at 11:07 AM, Adam Constabaris wrote: In general, it works with Tomcat if you start it with JPDA enabled (on unix : $TOMCAT_HOME/bin/startup.sh jpda start) and connect a remote session from Eclipse. Thanks... this should work with Jetty as well then, right? —ml— ---

Re: server startup

2005-12-13 Thread Adam Constabaris
Mark Lundquist wrote: On Dec 13, 2005, at 4:18 AM, Nouguier Olivier wrote: Even if you coding java stuff. Eclipse IDE support hot class reloading. You just have to run tomcat/cocoon inside eclipse, and it's done. Does this work with remote debugging in Eclipse, or do you actually have to

Re: How to configure the location of external services in the sitemap

2005-12-13 Thread Ross Gardler
Fred Vos wrote: At work we are working on a Cocoon application that uses http requests in generators. The base URLs in these requests differ for each instance of our application. We don't want people to edit the sitemap to change URLs of these external services, everytime the sitemap changes. Dur

Re: server startup

2005-12-13 Thread Mark Lundquist
On Dec 13, 2005, at 4:18 AM, Nouguier Olivier wrote: Even if you coding java stuff. Eclipse IDE support hot class reloading. You just have to run tomcat/cocoon inside eclipse, and it's done. Does this work with remote debugging in Eclipse, or do you actually have to have Eclipse start the

Re: CForm/Js Problem with 2.1.8

2005-12-13 Thread Antonio Gallardo
Make sure you are using the right xml-apis.jar. Best Regards, Antonio Gallardo. Merico Raffaele wrote: Dear community I have installed cocoon-2.1.8 under tomcat-5.5.9 and I got the following error: java.lang.IllegalArgumentException: Unknown type of result: class javax.xml.transform.dom.DOM

Re: Multiple forms per page

2005-12-13 Thread werner
I don't think this is a browser problem. Does your form template contain the state widget?     I don't know it the state-widget is really obligatory, but there is at least a _javascript_ error if it does not exist. Werner Am Dienstag, den 13.12.2005, 16:24 +0100 schrieb Alessandro Vincel

Re: server startup

2005-12-13 Thread Nouguier Olivier
Hi all, Even if you coding java stuff. Eclipse IDE support hot class reloading. You just have to run tomcat/cocoon inside eclipse, and it's done. The only limitation is linked to hot class reloading, classes will be hot reloaded *ONLY* if theirs "interfaces" remains unchanged. Hot class reloading

Re: Cocoon Bricks - Where do library files go?

2005-12-13 Thread Bertrand Delacretaz
Le 13 déc. 05, à 12:24, David Legg a écrit : ...I also found myself enabling some Cocoon blocks I didn't actually need just so the core library I did want was in the classpath (Lucene for example)... I wouldn't do that - just grab the original jar and copy to your lib subdir, it will make it

Search with Lucene

2005-12-13 Thread Dan Nicolici
This is my first encounter with Lucene. I am trying to integrate it with Cocoon. From what I read so far I prefer the approach with LuceneIndexTransformer. Here is where I need some assistance. >From what I understand, the transformer creates the index from .xml files with proper Lucene ann

Re: Increasing Cocoon Portal speed at stat-up

2005-12-13 Thread Angelo Immediata
Hi. My site is a two user site; anonymous or logged user can't i create a "cachedLayout" for both of them (for example for the user with userName anonymous and password anonymous and another with username root password root) so that i can load only one time the layout and use always them wit

Re: Multiple forms per page

2005-12-13 Thread ian . d . stewart
Sounds like you're running into a variance between the IE and Firefox object models. For best performance, I would recommend restricting your javascript to the DOM standard. You can find the object model for MSIE here: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/refer

Re: Multiple forms per page

2005-12-13 Thread Alessandro Vincelli
I have a problem in cocoon 2.1.8 with a tab form... in Explorer no problem in Firefox this error: Error: document.getElementById(state) has no properties Source File: ... /js/forms-lib.js Line: 180 in forms-libs.js function forms_showTab(tabgroup, idx, length, state) { // Change state va

CForm/Js Problem with 2.1.8

2005-12-13 Thread Merico Raffaele
Dear community I have installed cocoon-2.1.8 under tomcat-5.5.9 and I got the following error: java.lang.IllegalArgumentException: Unknown type of result: class javax.xml.transform.dom.DOMResult Cocoon stacktrace[hide] Error calling flowscript function showForm resource://org/apache/cocoon/forms

Re: War File Not Created During Build

2005-12-13 Thread ian . d . stewart
I knew it had to be something simple like that! Thanx Joerg It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078

RE: Textarea field problem with cforms/flow

2005-12-13 Thread Derek Hohls
AS Thanks for this... but I am not sure what to do with it? Do you suggest I have an extra XSLT post-processing the form? If so, how and where would I configure it? If not, what else should I be doing? Thanks! Derek >>> [EMAIL PROTECTED] 2005/12/13 03:12 PM >>> Experienced the same stupid beh

Re: Cocoon shutdown listener?

2005-12-13 Thread Nouguier Olivier
Should look at jakarta-tomcat component for LifeCycleListener. As my connection towards http://tomcat.apache.org is temporaly down I cannot be more "précis" | sharp ;} On Wed, 2005-12-07 at 10:20 +, Antony Grinyer wrote: > Hi, > > Is there anything in cocoon that can be used to invoke a Java

RE: Textarea field problem with cforms/flow

2005-12-13 Thread Ard Schrijvers
Experienced the same stupid behavior of textarea in combination with CFORMS. Quick and dirty solution: If you don't want to spend much time on it, this solution works, if you do want to spend time, plz let me know if you find a decent solution AS > > > I have data from a databa

Re: server startup

2005-12-13 Thread Nouguier Olivier
Hi all, Even if you coding java stuff. Eclipse IDE support hot class reloading. You just have to run tomcat/cocoon inside eclipse, and it's done. The only limitation is linked to hot class reloading, classes will be hot reloaded *ONLY* if theirs "interfaces" remains unchanged. Hot class reloading

Re: Increasing Cocoon Portal speed at stat-up

2005-12-13 Thread Angelo Immediata
Hi. My site is a two user site; anonymous or logged user can't i create a "cachedLayout" for both of them (for example for the user with userName anonymous and password anonymous and another with username root password root) so that i can load only one time the layout and use always them wit

Re: How to configure the location of external services in the sitemap

2005-12-13 Thread Geert Josten
Here is a simple alternative: Use input modules to insert the application specific base urls. Something like: You have several default input modules at your disposal, for reading properties files, xml, etc. You can define them locally in your sitemap by the way.. Regards, Geert Fred Vos wr

How to configure the location of external services in the sitemap

2005-12-13 Thread Fred Vos
Hello, At work we are working on a Cocoon application that uses http requests in generators. The base URLs in these requests differ for each instance of our application. We don't want people to edit the sitemap to change URLs of these external services, everytime the sitemap changes. During develo

Re: Running a shell script from Cocoon

2005-12-13 Thread Peter Flynn
On Mon, 2005-12-12 at 11:37, Jorg Heymans wrote: > Peter Flynn wrote: > > On Sun, 2005-12-11 at 11:03, Jorg Heymans wrote: > >> i'm sure you could use Runtime.exec() just about anyware you like to > >> call your shellscript. If you need the output of the shell script then > >> i'ld put this call

Re: Cocoon Bricks - Where do library files go?

2005-12-13 Thread David Legg
Bertrand Delacretaz wrote: > ...Also what if the release of Cocoon I'm using has an old version of a > jar file and my project absolutely requires the latest version. Should > anything I put into the project lib directory override the Cocoon > release version?... As is, it doesn't, I think yo

Textarea field problem with cforms/flow

2005-12-13 Thread Derek Hohls
I have data from a database that I display in a CForm and allow a user to update. The text is displayed in the textarea of a form; when there is a long string, the text simply wraps and all is fine. However, each time a CR is entered from the keyboard then, after the data gets saved to the data

Re: CForms - different views of the same widget

2005-12-13 Thread Derek Hohls
Cocoon Version 2.1.5 (but I could upgrade to 2.1.8 as this is for a new project). >>> [EMAIL PROTECTED] 2005/11/11 11:55 PM >>> Derek Hohls wrote: > Christoph > > If you look back at this thread, the idea is to have this in the > form definition file i.e. > > > >var this

Re: Re: "xspAttr cannot be resolved" in Cocoon 2.1.8

2005-12-13 Thread Nouguier Olivier
Hi all, Patch in CVS/SVN, found on cocoon-dev list: http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=113273736320287&w=2 HIH On Wed, 2005-12-07 at 19:35 +0100, Markus Vaterlaus wrote: > Hello there > > I get the same error: > > > > org.apache.cocoon.components.language

RE: Using the directory generator

2005-12-13 Thread Ard Schrijvers
> > On 12.12.2005 17:22, [EMAIL PROTECTED] wrote: > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > >xmlns:sql="http://apache.org/cocoon/SQL/2.0"; > >xmlns:dir="http://apache.org/cocoon/directory/2.0.";> > > Don't know if it is only a typo in the mail, but the namespace > de