Re: CForms binding usage

2005-03-07 Thread Marc Portier
well, for completeness you would also need the actual binding file (add-new-MyBean-form-binding.xml) AND some sitemap snaippets to hook it all up (triggering the flowscript and declaring your form-pipeline) but I assume you got that so it looks like you found your way around docs/samples hope it

Re: Images in Cocoon 2.1.6

2005-03-07 Thread Alfred Nathaniel
On Mon, 2005-03-07 at 18:23, fadi qutaishat wrote: > > The XML file is like: > ... > > logo.gif You have to remove the spaces before and after logo.gif, or ... > The XSL file is like: > ... > > ... or use here . HTH, Alfred. -

Re: Images in Cocoon 2.1.6

2005-03-07 Thread Irv Salisbury
On Mon, 7 Mar 2005 12:46:23 -0500, Daniel McOrmond <[EMAIL PROTECTED]> wrote: > Is the issue that your generated HTML contains the wrong file name for > the image? Or, are the file names correct, but the images won't load? > > If the second is the case, remember that the web browser makes > sepera

Re: problem deploying ImageReader: produce no image

2005-03-07 Thread es
Also the CVS head has the same problem. Peter Gerstbach wrote: Hi, well, thats strange. But I assume that this is not a problem of the ImageReader. Maybe this is similiar to an already resolved bug in cocoonGallery. See: http://sourceforge.net/tracker/index.php?func=detail&aid=1084272&group_id=10

RE: Validation fail error message

2005-03-07 Thread Ben Pope
Greg Wrote: > Hello all, > > I have an ongoing struggle with validation of cocoon (v2.1) > forms. I can now validate (most of) my widgets, however, when > validation fails the form is re-displayed with little > exclaimation marks beside the offending fields! This, > however, is insufficient.

Re: CForms binding usage

2005-03-07 Thread Dustin Jenkins
Marc, Thanks very much for the response. What I'm looking for is an alternative to manually calling the setters (and getters for populating the form object) of my business object for each Form field value. Imagine Hibernate for Form Object to Business Object relationships. I don't want th

Re: CForms binding usage

2005-03-07 Thread Marc Portier
Dustin, you should look at binding files as purely an alternative way to describe the set of load and save actions that need to happen between the internal cforms-widget-tree-model and your own business-entity model in the samples you will see how one can easily 1. interprete these binding files

Re: Validation fail error message

2005-03-07 Thread Scott Yeadon
You can use a combination of fd:hint (see http://cocoon.apache.org/2.1/userdocs/forms/widget_field.html) and fd:failmessage (see http://cocoon.apache.org/2.1/userdocs/forms/validation.html for example). If you want to have a messages area on your form you can use an fd:messages or fd:output wi

Re: CForms binding usage

2005-03-07 Thread beatejung
hi dustin, just check the samples in CForms Block Samples, especially XML Binding and Bean Binding .. they help a lot at the beginning with cforms :-) beate Am Montag, 7. MÃrz 2005 21:32 schrieb Dustin Jenkins: > I just read that it's its own file, sorry for not reading completely > first. So I

Re: CForms binding usage

2005-03-07 Thread Dustin Jenkins
I just read that it's its own file, sorry for not reading completely first. So I guess my real question is how does one reference it? Is it through the sitemap? Thanks again, Dustin Dustin Jenkins wrote: The documentation on the Cocoon site about Form Binding is loose (http://cocoon.apache.o

CForms binding usage

2005-03-07 Thread Dustin Jenkins
The documentation on the Cocoon site about Form Binding is loose (http://cocoon.apache.org/2.1/userdocs/forms/binding.html). Can anyone tell me if the tags are supposed to go in the Form Template file or does it have its own file seperate to the template and definition files? And if it does

Re: Copying files with a transformer?

2005-03-07 Thread Geert Josten
Hi Rogier, Thanks for answering my question. To what extend do you consider it an anti-pattern? There are a lot transformers that do the same kind of thing. SQL transformer, SOAP transformer, LDAP transformer and even SourceWritingTransformer can be considered to be having side effects. So I don'

Re: cocoon caching

2005-03-07 Thread Janvier Majirus
Thank Bertrand, i will keep in mind your remark about cross-posting to both users and dev lists. regards.   MajirusBertrand Delacretaz <[EMAIL PROTECTED]> wrote: Le 7 mars 05, à 18:24, Janvier Majirus a écrit :> ...how can i configure cocoon for accessing updated data> after every request?...The ea

Re: cocoon caching

2005-03-07 Thread Janvier Majirus
Hi all, My pipeline which query database is: map:match> Re: cocoon caching
Le 7 mars 05, à 18:24, Janvier Majirus a écrit : ...how can i configure cocoon for accessing updated data after every request?... The easiest might be to disable caching on the relevant pipelines, by adding type="noncaching" to your . Note that cross-posting to both user and dev lists is not welc

Using DefaultServiceSelector

I'm trying to use the Selector functionality to select a particular component based on a hint. (I use cocoon 2.1.6, Tomcat 5.5.4.) I'm having trouble as I attempt to use org.apache.avalon.framework.service.DefaultServiceSelector When I attempt to get this Selector, I get a class of type "$Proxy1

Re: problem deploying ImageReader: produce no image

Hi, well, thats strange. But I assume that this is not a problem of the ImageReader. Maybe this is similiar to an already resolved bug in cocoonGallery. See: http://sourceforge.net/tracker/index.php?func=detail&aid=1084272&group_id=103593&atid=635288 The patch is only in cvs. So check out the cur

Re: problem deploying ImageReader: produce no image

Hi, well, thats strange. But I assuem that this is not a problem of the ImageReader. Maybe this is similiar to an already resolved bug in cocoonGallery. See: http://sourceforge.net/tracker/index.php?func=detail&aid=1084272&group_id=103593&atid=635288 The patch is only in cvs. So check out the

ClassCastException when running welcome report using Cocoon 2.1.6 on Sun Java Application Server 8 Update 1

Hello. We are exploring replacing the current reporting framework in a web application with the Cocoon 2.1.6. Part of our mandate is to ensure that we can run on a variety of J2EE platforms, including Tomcat, SAP WebAS, Bea WebLogic, Sun Java Application Server, and others. I have been able t

problem deploying ImageReader: produce no image

Dear all, I'm trying ImageReader class for scaling down images. I'm using the example that comes with http://cocoongallery.sourceforge.net and it runs fine locally. However, when I deploy it on the public server, it reply with a 0 lenght image file. You can check it by your self here http://equo

Re: cocoon caching

Ok. So are you using the XMLDBTransformer? Or the XMLDBGenerator? Send along one of your database accessing pipelines and everybody can take a look at it. -Daniel On Mon, 7 Mar 2005 18:35:38 +0100 (CET), Janvier Majirus <[EMAIL PROTECTED]> wrote: > I'm accessing information in database via a li

Re: Images in Cocoon 2.1.6

Is the issue that your generated HTML contains the wrong file name for the image? Or, are the file names correct, but the images won't load? If the second is the case, remember that the web browser makes seperate requests for the images. So, make sure you have a pipeline for serving up the images.

Re: compiling cocoon on windows with jdk1.5

Hi Mike, I know there are some issues when compiling Cocoon with Java 1.5. You can search the archives to see how others have resolved them, or just use 1.4.2. Hope this helps. -Daniel On Mon, 7 Mar 2005 18:27:47 +0100, Michel Erard <[EMAIL PROTECTED]> wrote: > Hello, > > I'was trying to compi

Re: cocoon caching

I'm accessing information in database via a link with an url like: http://tomcat_home/cocoon/security/db/csysec/medical where security is a subdirectory of cocoon with a subsitemap. My database is curently Xindice Native XML Database. regards Janvier --- Daniel McOrmond <[EMAIL PROTECTED]> a éc

Re: cocoon caching

Hi Janvier, Could provide some more details about how you're accessing information in your database? Then perhaps someone might have some insight. -Daniel On Mon, 7 Mar 2005 18:24:15 +0100 (CET), Janvier Majirus <[EMAIL PROTECTED]> wrote: > Hi all! > I used cocoon2 for my web application. My ap

compiling cocoon on windows with jdk1.5

Hello, I'was trying to compile cocoon on a windows machine with java 1.5 installed. After some seconds there was an error: DocumentWrapper.java:48: org.apache.cocoon.xml.dom.DocumentWrapper is not abstract and does not override abstract method normalizeDocument() in org.w3c.dom.Document

cocoon caching

Hi all! I used cocoon2 for my web application. My app query a document under database via cocoon. But, cocoon does not at some moment return updated data; it return the last ones. and then i need to restart cocoon which run under tomcat to access updated data. My questions are: how can i configure

Images in Cocoon 2.1.6

Hi, I am trying to view some images in Cocoon but it does not work. When I try the files (XML and XSL) outside the Cocoon environment it work fine (i.e. the image is displayed on the browser)     The XML file is like:     logo.gif     The XSL file is like:       x

Re: writing PDF file to filesystem

Put the act in a match that somehow takes two parameters (request or other). One to denote the source, the other to denote the target. Use the same strategy as before to 'xinclude' the result of the acts, except that you don't do a writefiles transform afterwards... If this is described too shor

Re: Limit on file size for download of tar.gz

Tnx Did you see what Harald wrote about the memory ? On 07 Mar 2005, at 09:38, Bruno Dumon wrote: On Sun, 2005-03-06 at 17:57 +0100, Yves Vindevogel wrote: Hi, I've put some tar.gz files online under a Cocoon directory. Files are rather large (> 20 meg). When I request one, my browser (Firefox on M

Re: Limit on file size for download of tar.gz

Have you tried Bruno's solution too ? (with non-caching pipeline) On 07 Mar 2005, at 10:14, Harald Meyer wrote: Bruno Dumon wrote: On Sun, 2005-03-06 at 17:57 +0100, Yves Vindevogel wrote: Hi, I've put some tar.gz files online under a Cocoon directory. Files are rather large (> 20 meg). When I req

Re: Limit on file size for download of tar.gz

It is download On 07 Mar 2005, at 05:08, Antonio Gallardo wrote: Hi: Please check in web.xml (line 229) where is defined the upload-max-size. Set it as needed. Best Regards, Antonio Gallardo On Dom, 6 de Marzo de 2005, 10:57, Yves Vindevogel dijo: Hi, I've put some tar.gz files online under a Coc

Re: writing PDF file to filesystem

Sylvain Wallez wrote: You can also use the copy-source action which handles sources as binary streams. And architecturally speaking, it's a bit less ugly than the source-transformer :-) Sylvain Wow, thanks for this tidbit. I had not run across this action. Somebody should put this in the doc

too-quick session timeout in SessionTransformer

Dear Cocoon folks, I've been having trouble with the Session logicsheet, in that the values I write to the session time out very quickly -- seems like usually less than 30 seconds. Here is the code I'm using: The documentation at http://cocoon.apache.org/2.1/userdocs/xsp/sessi

Validation fail error message

Hello all, I have an ongoing struggle with validation of cocoon (v2.1) forms. I can now validate (most of) my widgets, however, when validation fails the form is re-displayed with little exclaimation marks beside the offending fields! This, however, is insufficient. Is there a way to provide a pop

Cocoon aggregation samples: Connection Refused Error

Hello, I'm a newbie Cocoon user, I've made my first contact with this technology through Apache Lenya, after having several problems implementing some stuff I needed in a webpage I decided to start from the begining and study a little of Cocoon's framework. I've made a new instalation of Cocoon

Re: AW: Cocoon 2.1.6 on Tomcat 4.1.31

Dear Jf. Thanks for your answer, but as I mentioned, my tomcat binds to port, instead of 8080. So, I guess that does not make difference. I'm getting access to cocoon installed. But after that it raises exception says: org.apache.avalon.framework.configuration.ConfigurationException: cannot

AW: Cocoon 2.1.6 on Tomcat 4.1.31

Hello Arsen, As Adam depicted you should do this step: > Deploy the WAR file as you would any other webapp (into webapp folder into > tomcat folder hierarchy), Cocoon will be accessible > at: http://localhost:8080/cocoon You should type http://localhost:8080/cocoon into your favourite browser an

RE: Cocoon 2.1.6 on Tomcat 4.1.31

I did everything as you explained except I built cocoon using "./build.sh war", I guess that's correct, coz cocoon.sh does not allow "war" parameter. Eveyrthing seems to be OK, except once I run http://localhost:/cocoon I got that exception: full exception chain stacktrace org.apache.avalon.f

wml doctype

is it compulsory to have the doctype and xml version for a wmlpage? WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> if i try toignore the above declaration in the wml page and validate the wml in awml validator there is no error. However an error occurs if i includethe above lines in the

Re: Encoding Problem: File Upload and UTF-8

It should work the same for both normal and multipart forms, without use of the SetCharacterEncodingAction. You do need the fix though I pointed to in a previous mail, since that one is not yet in Cocoon 2.1.6 IIRC. Got it ;-) Should've tried that first. It just works. Thanks a lot! Stefan. ---

Re: Encoding Problem: File Upload and UTF-8

On Mon, 2005-03-07 at 12:33 +0100, stefan pickschneider wrote: > Hey Bruno, > > >>I am not sure if the above patch fixes the problem I mentioned. > >> > >>The patch replaces > >> this.defaultFormEncoding); > >>by > >> this.containerEncoding); > >> > >>In our configuration the > >>defaultFormEn

Re: Encoding Problem: File Upload and UTF-8

Hey Bruno, I am not sure if the above patch fixes the problem I mentioned. The patch replaces this.defaultFormEncoding); by this.containerEncoding); In our configuration the defaultFormEncoding == containerEncoding == "UTF-8" - so the patch doesn't seem to have a influence on our problem :-( t

Re: Localization

Thank you all for your comments. The idea below looks great too. At this moment my site is very small so i will use, the langselect construct. Cheers all, Chris Linden H van der (MI) wrote: Hi Chris, I'm doing similar things. Some things I've done (note: check syntax, I'm doing this from the top of

Action throws UnsupportedClassVersionError

Hi, i copy/pasted the hello-world example from the documentation into my cocoon site. I corrected the values for my database. When i include it in the block i get an empty page (guess cause the action returns an exception) and on the console is: java.lang.UnsupportedClassVersionError: test/HelloWo

Re: Encoding Problem: File Upload and UTF-8

On Mon, 2005-03-07 at 11:02 +0100, stefan pickschneider wrote: > > This problem is already fixed, though in a different way: > > > > http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/CocoonServlet.java?rev=106200&r1=55730&r2=106200 > > Hey Bruno, >

Re: Encoding Problem: File Upload and UTF-8

This problem is already fixed, though in a different way: http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/CocoonServlet.java?rev=106200&r1=55730&r2=106200 Hey Bruno, thanks for your reply. I am not sure if the above patch fixes the problem I mention

Re: Limit on file size for download of tar.gz

Bruno Dumon wrote: On Sun, 2005-03-06 at 17:57 +0100, Yves Vindevogel wrote: Hi, I've put some tar.gz files online under a Cocoon directory. Files are rather large (> 20 meg). When I request one, my browser (Firefox on Mac, but also others) ask me what to do, I say "save" and it starts but

Re: Limit on file size for download of tar.gz

On Sun, 2005-03-06 at 17:57 +0100, Yves Vindevogel wrote: > Hi, > > I've put some tar.gz files online under a Cocoon directory. > Files are rather large (> 20 meg). > > When I request one, my browser (Firefox on Mac, but also others) ask me > what to do, I say "save" and it starts but it cr

Re: Encoding Problem: File Upload and UTF-8

On Sun, 2005-03-06 at 20:46 +0100, stefan pickschneider wrote: > Bertrand Delacretaz wrote: > > Le 5 mars 05, à 15:17, stefan pickschneider a écrit : > > > >> ..we have a problem with the encoding, cforms and file uploads. > > > > > > Did you look at http://wiki.apache.org/cocoon/RequestParamete