RE: Tutorial

2005-09-16 Thread olivier . maghe
Bonjour, moi j'utilise COCOON DEVELOPPER'S HANDBOOK de Lajos Moczar et Jeremy Aston, comme beaucoup d'autres j'imagine car je pense que les publications à ce propos sont rares. Pour la seconde partie de ta question, il serait intéressant pour toi d'étudier un peu MySQL, et pour cela la doc est

E-CRUD Design Pattern

2005-09-16 Thread Jean-Christophe Kermagoret
Bonjour, Pour ceux que cela intéresse, je viens de mettre en ligne un peu de code et de documentation concernant le modèle de conception E-CRUD, sur le wiki de cocoon. C'est disponible sur la page d'accueil du wiki de Cocoon : * http://wiki.apache.org/cocoon/, ou directement là : *

Re: E-CRUD Design Pattern

2005-09-16 Thread gael
ou directement là : * http://wiki.apache.org/cocoon/DesignPattern/Overview BlueXML rules :) - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:[EMAIL PROTECTED] Autres commandes :

Re: E-CRUD Design Pattern

2005-09-16 Thread gael
BlueXML rules :) flamenon c'est ruby on rails qui rules ;)/flame extincteurPfff... Python, Zope and Plone rulez the universe/extincteur - Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous

Re: E-CRUD Design Pattern

2005-09-16 Thread Sylvain Wallez
[EMAIL PROTECTED] wrote: BlueXML rules :) flamenon c'est ruby on rails qui rules ;)/flame extincteurPfff... Python, Zope and Plone rulez the universe/extincteur Allez, allez les enfants. Rien ne vaut ce bon vieux C ou l'encore plus vieux Lisp :-P Ceci dit, pas mal

Re: E-CRUD Design Pattern

2005-09-16 Thread gael
Ceci dit, pas mal BlueXML. Générer les forms et tout le tralala, ça fait gagner du temps. flameMais que BlueXML soit en GPL va empêcher beaucoup de monde de s'y intéresser autant qu'il le mérite.../flame rhaaaremplissage de ton réservoir de bagnolle à la nitro, sautage à pieds joins sur ton

Re: How to move a class in scratchpad to a block

2005-09-16 Thread Jorg Heymans
Oliver Powell wrote: I believe this class belongs in the next release because: - we have used it successfully in production for several months, under high load sounds like a killer argument to me :-) - it provides critical (for us) cache functionality not provided by

Re: How to move a class in scratchpad to a block

2005-09-16 Thread Jorg Heymans
Jorg Heymans wrote: I'll ask on dev@ , and if nobody objects i'll move it out of the scratchpad. I just had a look at the latest 2.1.x , it is there already so this component will become part of the next release. Regards Jorg

Re: Cocoon portal upload

2005-09-16 Thread Carsten Ziegeler
Hi, can you please provide a diff to the current version so I can review your changes? Thanks Carsten Angelo Immediata wrote: Hi all. I have seen that upload in Cocoon portal does not work. I have modified the CopletTransformer class in order that it works. Now for me it works. I attach

E-CRUD Design Pattern

2005-09-16 Thread Jean-Christophe Kermagoret
Hello, For those who are interested, I uploaded a few documentation in the wiki about the E-CRUD Design Pattern. It is available from the Wiki Cocoon Frontpage in : * http://wiki.apache.org/cocoon/, or directly in : * http://wiki.apache.org/cocoon/DesignPattern/Overview There might be some

Re: E-CRUD Design Pattern

2005-09-16 Thread Thomas Lutz
Jean-Christophe Kermagoret wrote: There might be some interesting code and documentation (I hope :-) Great work ! Your discussion is welcome, and, I will say more, awaited with great enthousiasm :-) I didn't have too much time to have a closer look at it yet, but :-), one remark to the

AW: AW: AW: Antwort: Saving the Outputstream

2005-09-16 Thread news
Holger, so far I wrote the following code. Works pretty fine except that I get an empty file on the servers harddrive :( Do you have any Idea what I m doing wrong? Thanks ! Regards, Jan code: package swl.test.cocoon.serialization; import java.io.FileOutputStream;import

Re: AW: AW: AW: Antwort: Saving the Outputstream

2005-09-16 Thread Upayavira
Can't you just use the SourceWritingTransformer in your pipeline, and set the serializer that it should use? Should be possible without any java coding. Upayavira [EMAIL PROTECTED] wrote: Holger, so far I wrote the following code. Works pretty fine except that I get an empty file on the

Re: E-CRUD Design Pattern

2005-09-16 Thread Jean-Christophe Kermagoret
Thomas, Thanks for your feedback I say there is a mix, but there is not. It's a mistake (shame on me). The only ft tag I use is a submit widget. I start from the principle that the template must reflect the structure (so the binding) of the data the user is editing (or searching). So I

Re: E-CRUD Design Pattern

2005-09-16 Thread Marc Salvetti
Thanks for the great work christophe, it's a really interesting solution. As many, i done something myself as an exercise that you may use. I designed a very small webapp with a few basic and probably reusable features like gui for user/group managment and gui for catalogues/messages managment,

Antwort: AW: AW: AW: Antwort: Saving the Outputstream

2005-09-16 Thread holger . willenborg
Jan, first I think you must override the serializer's setOutputStream() method to initialize your stream rather than simply replacing output with your stream. I think this method will be called automatically from within Cocoon, and if you do it like you did, maybe the output element will be

Re: Request to move IncludeTransformer into next release

2005-09-16 Thread Jeroen Reijn
Yes that would be nice. The same goes for us. We have been using it in production for several months! Jeroen Oliver Powell wrote: We use the org.apache.cocoon.transformation.IncludeTransformer class from the scratchpad block in Cocoon 2.1.6. We've just looked closely at 2.1.7 and discovered

Re: E-CRUD Design Pattern

2005-09-16 Thread Thomas Lutz
Jean-Christophe Kermagoret wrote: some snips / I start from the principle that the template must reflect the structure (so the binding) of the data the user is editing (or searching). some snips / This is ok for the basic CRUD stuff I think. The framework I am working on now is not the

Re: Re: AW: AW: AW: Antwort: Saving the Outputstream

2005-09-16 Thread holger . willenborg
Thanks, but I couldn't figure out how the SourceWritingTransformer might work. What about the copy-source action ( http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/CopySourceAction.html ) ? Found that here: http://www.mail-archive.com/users@cocoon.apache.org/msg24664.html

Re: E-CRUD Design Pattern

2005-09-16 Thread Marc Salvetti
Jean-Christophe Kermagoret a écrit : Yes,it's a great idea. thanks :) Have you got an overview about your project's technical implementation (architecture, ...) ? Where may I download it to have a look ? i'll send you a personal mail with ftp accout PS: do you work with Franck Touch

AW: Antwort: AW: AW: AW: Antwort: Saving the Outputstream

2005-09-16 Thread news
Holger, no its not working. I m still getting an empty file + no outputfile to the client. :( I checked the FOPSerializers sources and founf out that it might be a bit more difficult: /** * Create the FOP driver * Set the codeOutputStream/code where the XML should be serialized. */

AW: AW: AW: AW: AW: AW: Antwort: Saving the Outputstream

2005-09-16 Thread holger . willenborg
Hm, perhaps the better choice is public void setOutputStream(OutputStream out) throws IOException { this.output = new MyOutputStream(out, c:/temp/myout.pdf); super.setOutputStream(this.output); } This passes the modified output stream to the FOPSerializer. Regards

Re: Cocoon portal upload

2005-09-16 Thread Angelo Immediata
Hi. This is the only thing i have modified: if ( enctype== null || application/x-www-form-urlencoded.equals(enctype) || multipart/form-data.equals(enctype)) { I have added || multipart/form-data.equals(enctype) in the if at line 291 of CopletTransformer.java -- Initial Header

Serializability of session using the auth fw

2005-09-16 Thread Michael Wirz
Hello again cocoon users, I am using the authentication framework. It works fine -- but recently I found some messages in the logs which made me think. Auth fw stores an XML (user id or the like) in an Authentication Context. After having logged in cocoon tells about

Re: Serializability of session using the auth fw

2005-09-16 Thread Carsten Ziegeler
Michael Wirz wrote: Hello again cocoon users, I am using the authentication framework. It works fine -- but recently I found some messages in the logs which made me think. Auth fw stores an XML (user id or the like) in an Authentication Context. After having logged in cocoon tells about

Re: Cocoon portal upload

2005-09-16 Thread Carsten Ziegeler
Ah, ok thanks. This has been added to the transformer recently, so if you're using latest from SVN it already has this additional check. It will be released with 2.1.8. Carsten Angelo Immediata wrote: Hi. This is the only thing i have modified: if ( enctype== null ||

Re: Serializability of session using the auth fw

2005-09-16 Thread Michael Wirz
Thanks, Carsten, for pointing this out. I wanted to use auth fw in a clustered tomcat environment (in future) and thus I have to look at the session serializability. Well, it seems I have to dig into CoWarp. Hope to get the points as fast as it has been with the auth fw. Since I am now on 2.1.5.1

AW: AW: AW: AW: Antwort: Saving the Outputstream

2005-09-16 Thread news
I ll give it a try! Do you have an example? Regards, Jan -Ursprüngliche Nachricht- Von: Upayavira [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. September 2005 11:49 An: users@cocoon.apache.org Betreff: Re: AW: AW: AW: Antwort: Saving the Outputstream Can't you just use the

sourcewriting transformer

2005-09-16 Thread Andres Taborda
Hello list, Some user know how can write with sourcewriting transformer. I want write the follow line: !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd; the result is an error not permit !DOCTYPE pagesource:write

Re: Serializability of session using the auth fw

2005-09-16 Thread Michael Wirz
Thank you very much for this hint! This is just a flowscript concern, right? Until now our design does not use any flowscript (since we handle these thing sin out own java code using xsps -- it seems oldfashioned but in that particular case especially meaningful) Jorg, did you ever enter into

AW: AW: AW: AW: Antwort: Saving the Outputstream - Solved

2005-09-16 Thread news
Hello Again, It is possible to save the outputstream. But in a different way I thought. I found: http://wiki.apache.org/cocoon/SavingFilesToFileSystem Thanks Holger Upayavira Regards, Jan -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag,

Re: Serializability of session using the auth fw

2005-09-16 Thread Jorg Heymans
Michael Wirz wrote: Thank you very much for this hint! This is just a flowscript concern, right? yes. Jorg, did you ever enter into the Big Clustering Adventure? It seems that if, you had a hell lot of fun.. well i used pound [1] once to loadbalance a few jetty instances running cocoon

Re: pipeline executing and actions

2005-09-16 Thread Jonas Lundberg
Maybe I did not understand your problem... but if you want to do something after map:serialize, then you can do that in a different pipeline. Like this: Use a wrapper, to call the pipeline with your primary generator. map:match pattern={1}.whatever map:generate src=""> map:act type=foo /

Re: Serializability of session using the auth fw

2005-09-16 Thread Michael Wirz
Carsten Ziegeler wrote: Michael Wirz wrote: Hello again cocoon users, I am using the authentication framework. It works fine -- but recently I found some messages in the logs which made me think. Auth fw stores an XML (user id or the like) in an Authentication Context. After having logged in

Re: Serializability of session using the auth fw

2005-09-16 Thread Ralph Goers
Michael Wirz wrote: Is 2.1.8 released yet? cocoon.apach.org lets me download 2.1.7 only. Is there a working example for CoWarp auth? I'd really like to dig into it -- to prevent myself from writing my own easy actions modifying the session attributes in a very straightforward way (i.e. setting

Re: Serializability of session using the auth fw

2005-09-16 Thread Michael Wirz
Ralph Goers wrote: Michael Wirz wrote: Is 2.1.8 released yet? cocoon.apach.org lets me download 2.1.7 only. Is there a working example for CoWarp auth? I'd really like to dig into it -- to prevent myself from writing my own easy actions modifying the session attributes in a very

Crazy stale content problem

2005-09-16 Thread Mark Lundquist
Hi, I've got a project running Cocoon-2.1.6, and I'm having this weird problem... There'a pipeline that looks like this: match pattern=home:source aggregate element=page part element=source src=content/home.page/source.xml / part element=feature

Re: Serializability of session using the auth fw

2005-09-16 Thread Ralph Goers
Michael Wirz wrote: Snapshots look like they are working. I'll downloada a recent one then. How stable is such a snapshot? (Stupid question, i know). I just care about productivity -- since I cannot yet contribute to cocoon core, but just want to use cocoon for developing applications. What

Re: Serializability of session using the auth fw

2005-09-16 Thread Bertrand Delacretaz
Le 16 sept. 05, à 17:41, Ralph Goers a écrit : ...No, 2.1.8 has not been released. You will need to either check out the latest from the subversion repository or get a snapshot (are they working yet?)... Yes, snapshots from our subversion repositories are back, to find them follow the

[CForms] building dynamic selection list with javaflow

2005-09-16 Thread footh
I've read the doc about how to create dynamic selection list data in formscript a la this: var data = new Object(); data.cityList = new Array(2); data.cityList[0] = {value:AL, label:Alabama}; data.cityList[1] = {value:AK, label:Alaska}; form.showForm(flow/myform.form, data); ...and I'm

Re: [CForms] building dynamic selection list with javaflow

2005-09-16 Thread Jason Johnston
I've read the doc about how to create dynamic selection list data in formscript a la this: var data = new Object(); data.cityList = new Array(2); data.cityList[0] = {value:AL, label:Alabama}; data.cityList[1] = {value:AK, label:Alaska}; form.showForm(flow/myform.form, data); ...and I'm

Re: [CForms] building dynamic selection list with javaflow

2005-09-16 Thread footh
Thanks, that did the trick. --- Jason Johnston [EMAIL PROTECTED] wrote: I've read the doc about how to create dynamic selection list data in formscript a la this: var data = new Object(); data.cityList = new Array(2); data.cityList[0] = {value:AL, label:Alabama}; data.cityList[1]

stress testing a cocoon based application

2005-09-16 Thread Carlos M. S. Bento Nogueira
I'm trying to make some stress testing on my cocoon application running on Tomcat but i come across the following problem. I have a Cform with the following behaviour: -when i introduce a number on a field it fetches some values from the database and fills other empty form fields.Then my url