Re: Location of cforms stylesheets
On 5/26/05, Reinhard Poetz [EMAIL PROTECTED] wrote: Ugo Cei wrote: Il giorno 26/mag/05, alle 10:43, angeloimm ha scritto: Hi; first of all thanks for your answer. But if i exclude the samples blocks. how can i use cforms and portal blocks? Must i confogure anything or by escluding these blocks ant will build all in the right way? I thought you wanted to run *your* Cocoon application, not the samples, right? By excluding samples, you get a clean slate upon which you can build anything. The only thing you might want to reuse from samples are the CForms stylesheets, probably, but you can copy those to your app. Don't know about the portal. Should we move the stylesheets - forms-advanced-field-styling.xsl - forms-calendar-styling.xsl - forms-field-styling.xsl - forms-htmlarea-styling.xsl - forms-page-styling.xsl into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? WDOT? this will help me a lot if not into the JAR a common place will be helpfull too --stavros -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de -- Stavros KounisOsmosis networks consulting http://tools.osmosis.gr/blog http://www.osmosis.gr
Re: Location of cforms stylesheets
On Jue, 26 de Mayo de 2005, 5:07, Reinhard Poetz dijo: Ugo Cei wrote: Il giorno 26/mag/05, alle 10:43, angeloimm ha scritto: Hi; first of all thanks for your answer. But if i exclude the samples blocks. how can i use cforms and portal blocks? Must i confogure anything or by escluding these blocks ant will build all in the right way? I thought you wanted to run *your* Cocoon application, not the samples, right? By excluding samples, you get a clean slate upon which you can build anything. The only thing you might want to reuse from samples are the CForms stylesheets, probably, but you can copy those to your app. Don't know about the portal. Should we move the stylesheets - forms-advanced-field-styling.xsl - forms-calendar-styling.xsl - forms-field-styling.xsl - forms-htmlarea-styling.xsl - forms-page-styling.xsl into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? WDOT? I think some people don't use them as they are in cocoon. Best Regards, Antonio Gallardo.
Re: Location of cforms stylesheets
Antonio Gallardo wrote: On Jue, 26 de Mayo de 2005, 5:07, Reinhard Poetz dijo: Ugo Cei wrote: Il giorno 26/mag/05, alle 10:43, angeloimm ha scritto: Hi; first of all thanks for your answer. But if i exclude the samples blocks. how can i use cforms and portal blocks? Must i confogure anything or by escluding these blocks ant will build all in the right way? I thought you wanted to run *your* Cocoon application, not the samples, right? By excluding samples, you get a clean slate upon which you can build anything. The only thing you might want to reuse from samples are the CForms stylesheets, probably, but you can copy those to your app. Don't know about the portal. Should we move the stylesheets - forms-advanced-field-styling.xsl - forms-calendar-styling.xsl - forms-field-styling.xsl - forms-htmlarea-styling.xsl - forms-page-styling.xsl into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? WDOT? I think some people don't use them as they are in cocoon. sorry, I don't understand this. Do you mean that some people complelty rewrite the stylesheets? -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Re: Location of cforms stylesheets
On Jue, 26 de Mayo de 2005, 5:21, Reinhard Poetz dijo: Antonio Gallardo wrote: On Jue, 26 de Mayo de 2005, 5:07, Reinhard Poetz dijo: Ugo Cei wrote: Il giorno 26/mag/05, alle 10:43, angeloimm ha scritto: Hi; first of all thanks for your answer. But if i exclude the samples blocks. how can i use cforms and portal blocks? Must i confogure anything or by escluding these blocks ant will build all in the right way? I thought you wanted to run *your* Cocoon application, not the samples, right? By excluding samples, you get a clean slate upon which you can build anything. The only thing you might want to reuse from samples are the CForms stylesheets, probably, but you can copy those to your app. Don't know about the portal. Should we move the stylesheets - forms-advanced-field-styling.xsl - forms-calendar-styling.xsl - forms-field-styling.xsl - forms-htmlarea-styling.xsl - forms-page-styling.xsl into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? WDOT? I think some people don't use them as they are in cocoon. sorry, I don't understand this. Do you mean that some people complelty rewrite the stylesheets? Yep. Maybe not a full rewrite, but changes some things to meet some criteria. Best Regards, Antonio Gallardo
Re: Location of cforms stylesheets
Reinhard Poetz wrote: Should we move the stylesheets - forms-advanced-field-styling.xsl - forms-calendar-styling.xsl - forms-field-styling.xsl - forms-htmlarea-styling.xsl - forms-page-styling.xsl into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? While you're at it, why not move all default CForms resources as well like suggested here [1] ? Back then, the thread seemed to have reached a consensus that this was a good idea. Jorg [1] http://article.gmane.org/gmane.text.xml.cocoon.devel/44373
Re: Location of cforms stylesheets
Antonio Gallardo wrote: On Jue, 26 de Mayo de 2005, 5:21, Reinhard Poetz dijo: Antonio Gallardo wrote: I think some people don't use them as they are in cocoon. sorry, I don't understand this. Do you mean that some people complelty rewrite the stylesheets? Yep. Maybe not a full rewrite, but changes some things to meet some criteria. Isn't this the idea? You use xsl:include (e.g. xsl:include href=jar://org/apache/cocoon/forms/resources/stylesheets/forms-page-styling.xsl) in your stylesheet and override all xsl:template rules with project specific content. ATM the relative include is a major PITA in my opinion because every Cocoon update forces me to copy the stylesheets and too often I forget ... -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Re: Location of cforms stylesheets
Jorg Heymans wrote: Reinhard Poetz wrote: Should we move the stylesheets - forms-advanced-field-styling.xsl - forms-calendar-styling.xsl - forms-field-styling.xsl - forms-htmlarea-styling.xsl - forms-page-styling.xsl into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? While you're at it, why not move all default CForms resources as well like suggested here [1] ? Back then, the thread seemed to have reached a consensus that this was a good idea. Which resources are you missing in the JAR? IIRC I moved all of them. Did I forget anything? -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Re: Location of cforms stylesheets
Il giorno 26/mag/05, alle 12:21, Reinhard Poetz ha scritto: sorry, I don't understand this. Do you mean that some people complelty rewrite the stylesheets? They probably modify them (like me). If you have them in the jar, it becomes more difficult and you risk confusion over what files are actually used when you have a locally modified copy. In short, I don't think it's a good idea, but then again I would prefer some better way to customize those. I don't know how, though. Ugo -- Ugo Cei Tech Blog: http://agylen.com/ Source.zone: http://sourcezone.info/ Wine Food Blog: http://www.divinocibo.it/ smime.p7s Description: S/MIME cryptographic signature
Re: Location of cforms stylesheets
Antonio Gallardo wrote: On Jue, 26 de Mayo de 2005, 5:21, Reinhard Poetz dijo: sorry, I don't understand this. Do you mean that some people complelty rewrite the stylesheets? Yep. Maybe not a full rewrite, but changes some things to meet some criteria. Best Regards, Antonio Gallardo FWIW that's what we've done for our app (made changes, not a full rewrite). Vil.
Re: Location of cforms stylesheets
Ugo Cei wrote: Il giorno 26/mag/05, alle 12:21, Reinhard Poetz ha scritto: sorry, I don't understand this. Do you mean that some people complelty rewrite the stylesheets? They probably modify them (like me). Why do you modify them directly and don't override templates in the file that includes them? Direct modifications is a very bad idea IMO. If you want to know what they look like you can either extract them from the JAR or have a look at SVN. Ok, not as convinient as having them copied into your custom project but I'm willing to pay this price. If you have them in the jar, it becomes more difficult That's not a disadvantage as they shouldn't be modified. and you risk confusion over what files are actually used when you have a locally modified copy. In short, I don't think it's a good idea, but then again I would prefer some better way to customize those. I don't know how, though. I know but I don't think that you'll like the answer (real blocks) ;-) -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Re: Location of cforms stylesheets
Reinhard Poetz wrote: Ugo Cei wrote: Il giorno 26/mag/05, alle 10:43, angeloimm ha scritto: Hi; first of all thanks for your answer. But if i exclude the samples blocks. how can i use cforms and portal blocks? Must i confogure anything or by escluding these blocks ant will build all in the right way? I thought you wanted to run *your* Cocoon application, not the samples, right? By excluding samples, you get a clean slate upon which you can build anything. The only thing you might want to reuse from samples are the CForms stylesheets, probably, but you can copy those to your app. Don't know about the portal. Should we move the stylesheets - forms-advanced-field-styling.xsl - forms-calendar-styling.xsl - forms-field-styling.xsl - forms-htmlarea-styling.xsl - forms-page-styling.xsl into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? jar:/? did you mean resource:/ ? Anyway +1. I did not understand why these were left in samples dir while every other cforms resource was moved. These stylesheets are far to complex to be just samples now. One would have had a very serious reason to rewrite them completely. We should provide a detailed description what to do in order to customize some parts. (I do not know it myself and have also some modifications done). -- Leszek Gawron [EMAIL PROTECTED] Project ManagerMobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65 smime.p7s Description: S/MIME Cryptographic Signature
Re: Location of cforms stylesheets
Leszek Gawron wrote: into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? jar:/? did you mean resource:/ ? ahm, yes ;-) Anyway +1. I did not understand why these were left in samples dir while every other cforms resource was moved. When I moved the resources I wasn't aware of that every protocol that is supported by Cocoon can be used in XSLT. These stylesheets are far to complex to be just samples now. yes One would have had a very serious reason to rewrite them completely. We should provide a detailed description what to do in order to customize some parts. (I do not know it myself and have also some modifications done). I will add a small example -- Reinhard Ptz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Re: Location of cforms stylesheets
Le 26 mai 05, à 12:07, Reinhard Poetz a écrit : Should we move the stylesheets ... into the JAR file and reference them from forms-samples-styling.xsl using the jar:/ protocol? +1 -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: Location of cforms stylesheets
Il giorno 26/mag/05, alle 13:12, Reinhard Poetz ha scritto: Why do you modify them directly and don't override templates in the file that includes them? Direct modifications is a very bad idea IMO. If you want to know what they look like you can either extract them from the JAR or have a look at SVN. Ok, not as convinient as having them copied into your custom project but I'm willing to pay this price. Because sometimes the modification is small but must be done across numerous templates, like adding class attributes here and there. Probably those stylesheets should be designed for extensibility from the start, and not as samples. Right now, the situation is akin to having to extend a Java class by overriding method implementations, whereas it would be more effective to use a template method pattern with well-defined extension points. Ugo -- Ugo Cei Tech Blog: http://agylen.com/ Source.zone: http://sourcezone.info/ Wine Food Blog: http://www.divinocibo.it/ smime.p7s Description: S/MIME cryptographic signature