Help in Cocoon2.1.2
hi, we are using cocoon2.1.2,xsl with jsp. The problem that we are facing is follows. In a file called Hoverwelcome.jsp whilch transforming to hoverwelcome.xsl file through sitemap file. we used 3 frame in that xsl file. We added pipeline for that 3 files similar to file. (One of the file in the frame is headerpage.jsp) map:match pattern=headerpage.jsp map:generate type=jsp src=headerpage.jsp/ map:transform src=headerpage.xsl map:parameter name=servletPath value={request:servletPath}/ map:parameter name=sitemapURI value={request:sitemapURI}/ map:parameter name=contextPath value={request:contextPath}/ map:parameter name=file value=headerpage.jsp/ /map:transform map:serialize type=html/ /map:match IS THERE ANY SPECIAL TAG SHOULD BE ADD FOR DISPLAYING PAGES UNDER FRAMES IN SITEMAP? PLEASE HELP ME THANKS MOHAN - Click here to find your dream partner! Know more at http://www.bharatmatrimony.com/partner/sify.html Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Woody: problems configuring pipeline
I found the problem. The reason was that I used a CDATA section in my XSLT to output the wt:form-template tag like xsl:text disable-output-escaping=yes![CDATA[ wt:form-template action=#{$continuation/id}.continue method=POST]]/xsl:text The reason I used a cdata section was that xalan else tries to replace the variable $continuation which is not a variable... If i want to use a CDATA section with xalan I suppose I have to add some parameter to preserve CDATA section, I'm a little bit confused why he outputs the CDATA section if I just do a transformation in the browser but not inside a pipeline ?? Anyway I now used a variable to define the action attribute so that I don't have to use a CDATA section anymore. wouter -Original Message- From: Bruno Dumon [mailto:[EMAIL PROTECTED] Sent: mercredi 26 novembre 2003 19:28 To: [EMAIL PROTECTED] Subject: Re: Woody: problems configuring pipeline On Wed, 2003-11-26 at 12:04, [EMAIL PROTECTED] wrote: Hello, I have a pipeline which transform an XML file into a Woody template file. (I need to do this because of migration to Woody reasons) When I try to use this pipeline in another pipeline to show a Woody form than I get an exception: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.xml.sax.SAXException: wt:widget-label cannot be used outside a wt:form-template element However I do not generate a template file with wt:widget-label tags outside wt:form-template file. The pipeline which transform an XML to an template file looks like: map:match pattern=toWT/*.xml map:generate src={1}.xml/ map:transform src=toWT.xslt/ map:serialize type=xml/ /map:match The pipeline which shows my form: map:match pattern=original map:call function=original/ /map:match map:match pattern=originalForm map:generate src=cocoon:/toWT/test.xml/ map:transform type=woody/ map:transform type=i18n map:parameter name=locale value=en-US/ /map:transform map:transform src=resources/woody-samples-styling.xsl/-- map:serialize/ /map:match The remarkable thing is that when I first invoke in a browser the toWT pipeline , save the generated Woody template file into temp.xml and then modify the pipeline above to use that file instead of calling the toWT pipeline like snip/ Assuming your XSLT doesn't contain any errors (can't think of what it would be), this is probably a bug in Xalan producing SAX events containing wrong namespaces or something. Are you using Xalan interpretive or XSLTC? To debug this problem, add a logtransformer in the pipeline producing the form template: map:match pattern=toWT/*.xml map:generate src={1}.xml/ map:transform src=toWT.xslt/ map:transform type=log map:parameter name=logfile value=out.txt/ /map:transform map:serialize type=xml/ /map:match and check that the startElement event for the form-template element contains the correct namespace and local name. If unsure, just post the relevant part of the output here. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: removing namespaces...
J.Pietschmann wrote: You also can't use exclude-result-prefixes to transform XHTML (using the XHTML namespace) into HTML 4.x (no namespace). Use the cleanxmlns posted downthread for this task. Thanks to everyone who replied on my message - I will go deeper into it now, thanks!! Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon with servlet Filter - running twice
Hi I put simple test filter before cocoon servlet. But I have a problem with it, because my Filter runs twice. I run Cocoon on oracle OC4J. There is just simple System.out.print in my filter just count the runs int runs=0; public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { System.out.println(= TestFilter + ++runs + =); chain.doFilter(request, response); } When I tested filter on other servlets than cocoon everything was OK. But when I mapped my filter to Cocoon servlet my filter runs twice. Can anybody help ? Thks. Roman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
encoding, UTF-8
Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the é become é . Any idea ? I use Cocoon 2.0.4 Lionel Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: encoding, UTF-8
Are you sure, the viewer is UTF8? -Message d'origine- De : Lionel Crine [mailto:[EMAIL PROTECTED] Envoyé : jeudi 27 novembre 2003 11:58 À : [EMAIL PROTECTED] Objet : encoding, UTF-8 Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the é become é . Any idea ? I use Cocoon 2.0.4 Lionel Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Precompilation of XSP-files via CLI - flag precompile-only broken
[EMAIL PROTECTED] wrote: Upayavira, thank you very much! :-) Try the below build file, and let me know how you get on. Try it with Cocoon 2.1.3. The Ant task in 2.1.1 is old, and I do not know its status. Regards, Upayavira ?xml version=1.0? project default=cocoon basedir=. name=Apache Cocoon property name=cocoon.context value=d:/documents/cocoon/cocoonTask/cocoon-2.1/build/webapp/ path id=cp dirset dir=${cocoon.context}/WEB-INF/classes/ fileset dir=${cocoon.context}/WEB-INF/lib includes=*.jar/ fileset dir=lib/optional includes=servlet*.jar/ /path taskdef name=cocoon classname=org.apache.cocoon.CocoonTask classpathref=cp/ target name=cocoon cocoon verbose=true classpathref=cp follow-links=true precompile-only=false confirm-extensions=false md5-compare=true context-dir=${cocoon.context} config-file=WEB-INF/cocoon.xconf work-dir=work dest-dir=dest checksums-uri=work/checksums default-filename=index.html accept=*/* broken-links type=xml file=brokenlinks.xml generate=false extension=.error/ logging log-kit=${cocoon.context}/WEB-INF/logkit.xconf logger=cli level=DEBUG / include pattern=**/ exclude pattern=docs/apidocs/**/ uri type=replace src-prefix=samples/ src=hello-world/hello.html dest=build/dest/hello-world.html/ uris name=docs follow-links=true uri type=append src-prefix=docs/ src=index.html dest=build/dest/ / /uris uris name=samples follow-links=false src-prefix=samples/ dest=build/dest/examples/ type=append md5-compare=true uri src=/ uri src=hello-world/hello.html/ uri src=hello-world/hello.xml/ /uris /cocoon /target /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: encoding, UTF-8
i'm allmost sure that the entire cocoon has UTF-8 as default encoding corect me --stavros On Thu, 27 Nov 2003, Nicolas Toper wrote: Are you sure, the viewer is UTF8? -Message d'origine- De : Lionel Crine [mailto:[EMAIL PROTECTED] Envoy : jeudi 27 novembre 2003 11:58 : [EMAIL PROTECTED] Objet : encoding, UTF-8 Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the become ? . Any idea ? I use Cocoon 2.0.4 Lionel Lionel CRINE Ingnieur Systmes documentaires Socit : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding, UTF-8
From: Nicolas Toper [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 27 Nov 2003 12:16:11 +0100 To: [EMAIL PROTECTED] Subject: RE: encoding, UTF-8 Are you sure, the viewer is UTF8? -Message d'origine- De : Lionel Crine [mailto:[EMAIL PROTECTED] Envoyé : jeudi 27 novembre 2003 11:58 À : [EMAIL PROTECTED] Objet : encoding, UTF-8 Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the é become é . Any idea ? I use Cocoon 2.0.4 Lionel In tomcat you may have to start up with utf-8 flags as well From the catalina.sh shell script CATALINA_OPTS=$CATALINA_OPTS -Dfile.encoding=UTF-8 Not sure if this will help but I think that it will unless you are using jetty then I can't offer any help. Cheers Tim Cavanagh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding, UTF-8
Did you set the form-encoding parameter in web.xml? Guido Lionel Crine wrote: Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the é become Ãf© . Any idea ? I use Cocoon 2.0.4 Lionel Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deleting repeater-rows
On 26 Nov 2003, at 18:19, Bruno Dumon wrote: How do I call delete on my bean? I am using Hibernate, it is not enough to just remove the item from the Collection, I also need to call session.delete (resource) (or more accurately ResourcePeer.delete (session, resource), so it is wrapped in a Transaction) on the deletee. Simply execute this code from an event-handler attached to the button? Now I am having a problem identifying which row is being deleted. in my Model : wd:repeater id=resources wd:widgets wd:output id=id wd:datatype base=long/ /wd:output . . . wd:row-action id=delete action-command=delete wd:labeli18n:text i18n:catalogue=locallabel.delete.resource/i18n:text/wd:label wd:hinti18n:text i18n:catalogue=localhint.delete.resource/i18n:text/wd:hint wd:on-activate javascriptdeleteRow (event)/javascript /wd:on-activate /wd:row-action /wd:widgets /wd:repeater in my Binding : wb:repeater id=resources parent-path=. row-path=resources unique-row-id=id unique-path=id wb:on-bind wb:value id=id path=id/ . . . /wb:on-bind wb:on-insert-row wb:insert-bean classname=uk.co.my.bean.Resource addmethod=addResource/ /wb:on-insert-row wb:on-delete-row wb:delete-node/ /wb:on-delete-row /wb:repeater in my FløwScript : // event handler called by Woody to remove a Resource Row from the Album function deleteRow (event) { // get the ID of the Resource that is being deleted, so I can remove it from the Persistor cocoon.log.info (User deleting Row : + event.getSourceWidget ().getParent ().getId ()); } this shows '-1' ( ) Has it been deleted before this handler is called? If I go :event.getSourceWidget ().getId () I get 'delete'. If I go :event.getSourceWidget ().getParent ().getId () I get '-1'. If I go :event.getSourceWidget ().getParent ().getParent ().getId () I get 'resources'. Thanks for any suggestions regards Jeremy smime.p7s Description: S/MIME cryptographic signature
create new session attribute in xsp
hi guys, i habe the following problem: i have a sitemape: map:match pattern=bookmark* map:generate src=logic/bookmark.xsp type=serverpages/ map:transform src=stylesheets/bookmark.xsl type=xslt /map:transform map:serialize type=html/ /map:match in the bookmark xsp i create a new session attribute xsp-request:set-attribute name=fruitApple/xsp-request:set-attribute as an example how can i access this attribute in: map:match pattern=confirm* map:generate src=logic/confirm.xml/ map:transform src=stylesheets/login.xsl/ map:serialize/ /map:match is there a way to catch this attribute in the sitemap ? thanx a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: create new session attribute in xsp
Nadia Brünning wrote: hi guys, i habe the following problem: i have a sitemape: map:match pattern=bookmark* map:generate src=logic/bookmark.xsp type=serverpages/ map:transform src=stylesheets/bookmark.xsl type=xslt /map:transform map:serialize type=html/ /map:match in the bookmark xsp i create a new session attribute xsp-request:set-attribute name=fruitApple/xsp-request:set-attribute as an example how can i access this attribute in: map:match pattern=confirm* map:generate src=logic/confirm.xml/ map:transform src=stylesheets/login.xsl/ map:serialize/ /map:match Something like: map:match pattern=confirm* map:generate src=logic/confirm.xml/ map:transform src=stylesheets/login.xsl map:parameter name=fruit value={session-attr:fruit}/ /map:transform map:serialize/ /map:match Guido - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding, UTF-8
Hallo Lionel, we had problems with this issues several times. Play arround with these two initparams. The strange thing was, that on different engines we had to change the container-encoding to avoid encoding problems. Now we do not have any problems with encoding anymore and we don't need entries in the sitemaps. init-param param-nameform-encoding/param-name param-valueUTF-8/param-value /init-param init-param param-namecontainer-encoding/param-name param-valueISO-8859-1/param-value /init-paramBoris - Original Message - From: Lionel Crine To: [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 11:57 AM Subject: encoding, UTF-8 Hi,I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1.Here what I've already done :map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html" pool-grow="4" pool-max="32" pool-min="4" src="" buffer-size1024/buffer-size encodingUTF-8/encoding/map:serializerBut that's not enough because I have many problem with the form.When I reload it with some request parameter (using xsl:value-of).The characters are not display good.For example the é become Ãf© .Any idea ?I use Cocoon 2.0.4LionelLionel CRINEIngénieur Systèmes documentairesSociété : 4DConcept22 rue Etienne de Jouy 78353 JOUY EN JOSASTel : 01.34.58.70.70 Fax : 01.39.58.70.70-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding, UTF-8
In fact : The encoding parameter for the serializer modify the ?xml ...? declaration according the the value. Now I'm sure of that, my previous message was false. Now, I'm using that : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer This lines above allow me not to set the form-encoding parameter as UTF-8 in the web.xml. Finally, the form is working well. But the url parameters are not encoded well if I make a go back from the result page to the form page. I think xsl can't encode the parameter. Maybe an xsp could do that. For instant, instead of using a a href, I use a form with input type=hidden. Lionel At 13:02 27/11/2003 +0100, you wrote: Did you set the form-encoding parameter in web.xml? Guido Lionel Crine wrote: Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the é become Ãf© . Any idea ? I use Cocoon 2.0.4 Lionel Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding, UTF-8
we have solve the same problem using action map:actions map:action name=set-encoding src=org.apache.cocoon.acting.SetCharacterEncodingAction/ ... ... ... !-- === order form === -- map:pipeline map:act type=set-encoding map:parameter name=form-encoding value=iso-8859-7/ /map:act map:act type=locale map:match pattern=order/proceed map:aggregate element=order map:part src=cocoon:/order/product/ map:part src=cocoon:/order/def/ /map:aggregate map:transform src=../htdocs/serverpages/order.xsl/ map:serialize type=html/ /map:match map:match pattern=order/product map:generate src=../htdocs/serverpages/product.xsp type=serverpages/ map:serialize type=xml/ /map:match map:match pattern=order/def map:generate src=../htdocs/serverpages/def.xml/ map:serialize type=xml/ /map:match /map:act /map:pipeline -- stavros On Thu, 27 Nov 2003, Boris Althaus wrote: Hallo Lionel, we had problems with this issues several times. Play arround with these two initparams. The strange thing was, that on different engines we had to change the container-encoding to avoid encoding problems. Now we do not have any problems with encoding anymore and we don't need entries in the sitemaps. init-param param-nameform-encoding/param-name param-valueUTF-8/param-value /init-param init-param param-namecontainer-encoding/param-name param-valueISO-8859-1/param-value /init-param Boris - Original Message - From: Lionel Crine To: [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 11:57 AM Subject: encoding, UTF-8 Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the become f . Any idea ? I use Cocoon 2.0.4 Lionel Lionel CRINE Ingnieur Systmes documentaires Socit : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: encoding, UTF-8
Thx. At 16:03 27/11/2003 +0200, you wrote: we have solve the same problem using action map:actions map:action name=set-encoding src=org.apache.cocoon.acting.SetCharacterEncodingAction/ ... ... ... !-- === order form === -- map:pipeline map:act type=set-encoding map:parameter name=form-encoding value=iso-8859-7/ /map:act map:act type=locale map:match pattern=order/proceed map:aggregate element=order map:part src=cocoon:/order/product/ map:part src=cocoon:/order/def/ /map:aggregate map:transform src=../htdocs/serverpages/order.xsl/ map:serialize type=html/ /map:match map:match pattern=order/product map:generate src=../htdocs/serverpages/product.xsp type=serverpages/ map:serialize type=xml/ /map:match map:match pattern=order/def map:generate src=../htdocs/serverpages/def.xml/ map:serialize type=xml/ /map:match /map:act /map:pipeline -- stavros On Thu, 27 Nov 2003, Boris Althaus wrote: Hallo Lionel, we had problems with this issues several times. Play arround with these two initparams. The strange thing was, that on different engines we had to change the container-encoding to avoid encoding problems. Now we do not have any problems with encoding anymore and we don't need entries in the sitemaps. init-param param-nameform-encoding/param-name param-valueUTF-8/param-value /init-param init-param param-namecontainer-encoding/param-name param-valueISO-8859-1/param-value /init-param Boris - Original Message - From: Lionel Crine To: [EMAIL PROTECTED] Sent: Thursday, November 27, 2003 11:57 AM Subject: encoding, UTF-8 Hi, I want to put the entire plateform into UTF-8. For now, cocoon is using ISO-8859-1. Here what I've already done : map:serializer logger=sitemap.serializer.html mime-type=text/html name=html pool-grow=4 pool-max=32 pool-min=4 src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size encodingUTF-8/encoding /map:serializer But that's not enough because I have many problem with the form. When I reload it with some request parameter (using xsl:value-of). The characters are not display good. For example the é become Ãf© . Any idea ? I use Cocoon 2.0.4 Lionel Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lionel CRINE Ingénieur Systèmes documentaires Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RequestParameterModule
This can be reported as bug, I think. When I try to access for parameter from request in sitemap and in request is not such parameter I'll get null-exception. I think that RequestParameterModule should return always not null value. The method getAttribute from RequestParameterModule shoul be like this. public Object getAttribute( String name, Configuration modeConf, Map objectModel ) throws ConfigurationException { String pname = (String) this.settings.get(parameter, name); if ( modeConf != null ) { pname = modeConf.getChild(parameter).getValue(pname); } String value = ObjectModelHelper.getRequest(objectModel).getParameter( pname ); if (value == null) { return ; } else { return value; } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Uploading files with Cocoon 2.1 (one more)
Hi all ... Geoff... thanks for your help all these days, and for your interest about my problems for uploading files in Cocoon 2.1. Steven ... thanks for posting your upload action. It's very important to colaborate in this way, sharing the knowledges we have. About your upload action, I think it contains an error, that causes you can't upload a file if there have been uploaded another file before Here's the code of your upload action: File folder = new File (uploadfolder); if (!folder.exists()){ folder.mkdirs(); //code for uploading and saving a file } That generates the next problem: if you upload a file, a folder is created, and the file is saved into this folder. If you want to upload a second file,the folder is already created, and !folder.exists() is false , and no code is executed in order to upload and save the file. I have used next if condition: if (true) { ... } In this way, the code inside the if condition is always executed, and files are saved without problem. If you mantain if(!folder.exists()), the code is only executed first time .. because second time the folder already exists. Am I wrong??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
document-v10 transformation rules to HTML and PDF
hi people i have look in cvs's to find .xsl files that transform document-v10 (document-v10.dtd) xml files to html and pdf at once but without to find somenthing exist those file i'm looking for or not? i want to make our project (othello) ready to accept document-v10.dtd valid content files thnx --stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Woody: problems configuring pipeline
On Thu, 2003-11-27 at 09:15, [EMAIL PROTECTED] wrote: I found the problem. The reason was that I used a CDATA section in my XSLT to output the wt:form-template tag like xsl:text disable-output-escaping=yes![CDATA[ wt:form-template action=#{$continuation/id}.continue method=POST]]/xsl:text Ah, ok. It's normal that doesn't work, everything in a CDATA section is escaped, so the tag also isn't a tag anymore. You can circumvent the interpretation of the {} by XSL by using them double: wt:form-template action=#{{$continuation/id}}.continue method=POST -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Selecting the correct value in a selection-list
On Thu, 2003-11-27 at 04:16, Joe Latty wrote: Bruno, Ok I think I over simplified things so as to explain my problem I have a repeater with a select-list in each row, I wish to select the AK value in the select-list of the first row. form.getWidget(myRepeaterWidget).getRow(0).getWidget(myStateDropDown).se tValue(AK); This does not work (for me). I see no reason it wouldn't work. Could you create a minimal testcase (form definition, template flowscript) to illustrate the problem? -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Uploading files with Cocoon 2.1 (one more)
I wrote my own action and it works correctly, you can use it. See attached fileuploadsample.zip You will specify those parameters to action number-of-files - number of uploaded files - number of input file fields file-form-field-prefix - form field prefix for file field i.e. myFile the file field names must be always be myFile1, myFile2, myFile3, ... upload-directory - relative or physical path where to save file overwrite-file - it can be deny, allow, rename In your sitemap you will put map:actions map:action logger=sitemap.action.fileupload name=file-upload-action src=com.mypackage.FileUploadAction/ /map:actions than use i.e. map:match pattern=doupload map:act type=file-upload-action map:parameter name=number-of-files value=3/ map:parameter name=file-form-field-prefix value=myfile/ !-- for physical path use map:parameter name=upload-directory value=C:\upload\test1/ -- !-- for relative path use -- map:parameter name=upload-directory value=/WEB-INF/myupload/test1/ map:parameter name=overwrite-file value=rename/ !-- action will return file-form-field-prefix#number#renamed true / false file-form-field-prefix#number#uploaded true / false file-form-field-prefix#number#originalFileName - as was in request file-form-field-prefix#number#physicalFilePath - full path to saved file file-form-field-prefix#number#uploadedFileName - file name if was renamed -- Roman -Pvodn zprva- Od: Josep Riudavets [mailto:[EMAIL PROTECTED] Odeslno: 27. novembra 2003 16:06 Komu: [EMAIL PROTECTED] Pedmt: Fw: Uploading files with Cocoon 2.1 (one more) Hi all ... Geoff... thanks for your help all these days, and for your interest about my problems for uploading files in Cocoon 2.1. Steven ... thanks for posting your upload action. It's very important to colaborate in this way, sharing the knowledges we have. About your upload action, I think it contains an error, that causes you can't upload a file if there have been uploaded another file before Here's the code of your upload action: File folder = new File (uploadfolder); if (!folder.exists()){ folder.mkdirs(); //code for uploading and saving a file } That generates the next problem: if you upload a file, a folder is created, and the file is saved into this folder. If you want to upload a second file,the folder is already created, and !folder.exists() is false , and no code is executed in order to upload and save the file. I have used next if condition: if (true) { ... } In this way, the code inside the if condition is always executed, and files are saved without problem. If you mantain if(!folder.exists()), the code is only executed first time .. because second time the folder already exists. Am I wrong??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] fileuploadsample.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon:/ does not work with SourceResolver (was: Re: Flow's processePipelineTo inside a Transformer?)
On Wed, 2003-11-26 at 21:32, Sebastian Klamar wrote: * Bruno Dumon [2003-11-26 14:29 +0100] wrote: On Wed, 2003-11-26 at 14:04, Sebastian Klamar wrote: But for cocoon:/ and cocoon:// prefixed URLs (like »cocoon://samples/«) I get no response. The response has always mime type text/xml and content length -1. Can you do source.getInputStream() and read data from the inputstream? I can call source.getInputStream().available() that returns the same size as source.getContentLength() with http:// URI. But I can't make reading from the InputStream. I've tried the read() methods from InputStream interface byte[] bytes; source.getInputStream().read(bytes); is this a literal cut and paste from your code? You need to create the byte array yourself: byte[] bytes = new byte[1]; though you should have gotten a NullPointerException in case you didn't do that. See the javadoc of the InputStream.read method for more info. and source.getInputStream().read(bytes, int, ...getInputStream().length) this obviously won't work, since getLength() returns -1. but both are blocking the whole process and no data gets read. I've also tried to call close() on the InputStream. Do you easily see what I'm doing wrong? If not I can provide more information about IOExceptions that were thrown when trying various methods tomorrow (no read() but close(), only available() w/ and wo close() ...). If you think you found a bug, best of all would be a full example (full Java class + pipelines etc. to reproduce the problem) that illustrates the problem, so that we can reproduce it (submit it to bugzilla in that case). -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ading new fonts to cocoon runing on headles java VM
Hi, I am working on a small Project using cocoon on a headless linux server. I would like to add new fonts, so I can use them in the SVGs I am generating. How can I do this? I am using a Jrockit VM on a RedHat 6.1 Server. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deleting repeater-rows
On Thu, 2003-11-27 at 13:37, Jeremy Quinn wrote: On 26 Nov 2003, at 18:19, Bruno Dumon wrote: How do I call delete on my bean? I am using Hibernate, it is not enough to just remove the item from the Collection, I also need to call session.delete (resource) (or more accurately ResourcePeer.delete (session, resource), so it is wrapped in a Transaction) on the deletee. Simply execute this code from an event-handler attached to the button? Now I am having a problem identifying which row is being deleted. in my Model : wd:repeater id=resources wd:widgets wd:output id=id wd:datatype base=long/ /wd:output . . . wd:row-action id=delete action-command=delete wd:labeli18n:text i18n:catalogue=locallabel.delete.resource/i18n:text/wd:label wd:hinti18n:text i18n:catalogue=localhint.delete.resource/i18n:text/wd:hint wd:on-activate javascriptdeleteRow (event)/javascript /wd:on-activate /wd:row-action /wd:widgets /wd:repeater in my Binding : wb:repeater id=resources parent-path=. row-path=resources unique-row-id=id unique-path=id wb:on-bind wb:value id=id path=id/ . . . /wb:on-bind wb:on-insert-row wb:insert-bean classname=uk.co.my.bean.Resource addmethod=addResource/ /wb:on-insert-row wb:on-delete-row wb:delete-node/ /wb:on-delete-row /wb:repeater in my FløwScript : // event handler called by Woody to remove a Resource Row from the Album function deleteRow (event) { // get the ID of the Resource that is being deleted, so I can remove it from the Persistor cocoon.log.info (User deleting Row : + event.getSourceWidget ().getParent ().getId ()); I don't think this will return the id you expect. The id returned by getId() is the id of the widget as defined in the form definition, not to be confused with the unique-row-id from the binding, which just points to a widget who's value is used as unique row identification. } this shows '-1' ( ) Has it been deleted before this handler is called? If I go :event.getSourceWidget ().getId () I get 'delete'. If I go :event.getSourceWidget ().getParent ().getId () I get '-1'. If I go :event.getSourceWidget ().getParent ().getParent ().getId () I get 'resources'. Saw your messages on the dev list (which are still valid), but you could do this as follows: event.getSourceWidget().getParent().getWidget(my-id-widget).getValue() where my-id-widget is the widget containing your id (assuming that's what you want). the getParent() call gives you the current row in the repeater (which is in fact also a widget, though it's not visible in the form definition, it's automatically created for you), of which you request another child widget using the getWidget() call. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deleting repeater-rows
On Thu, 2003-11-27 at 17:29, Bruno Dumon wrote: On Thu, 2003-11-27 at 13:37, Jeremy Quinn wrote: On 26 Nov 2003, at 18:19, Bruno Dumon wrote: How do I call delete on my bean? I am using Hibernate, it is not enough to just remove the item from the Collection, I also need to call session.delete (resource) (or more accurately ResourcePeer.delete (session, resource), so it is wrapped in a Transaction) on the deletee. Simply execute this code from an event-handler attached to the button? Now I am having a problem identifying which row is being deleted. in my Model : wd:repeater id=resources wd:widgets wd:output id=id wd:datatype base=long/ /wd:output . . . wd:row-action id=delete action-command=delete wd:labeli18n:text i18n:catalogue=locallabel.delete.resource/i18n:text/wd:label wd:hinti18n:text i18n:catalogue=localhint.delete.resource/i18n:text/wd:hint wd:on-activate javascriptdeleteRow (event)/javascript /wd:on-activate /wd:row-action /wd:widgets /wd:repeater in my Binding : wb:repeater id=resources parent-path=. row-path=resources unique-row-id=id unique-path=id wb:on-bind wb:value id=id path=id/ . . . /wb:on-bind wb:on-insert-row wb:insert-bean classname=uk.co.my.bean.Resource addmethod=addResource/ /wb:on-insert-row wb:on-delete-row wb:delete-node/ /wb:on-delete-row /wb:repeater in my FløwScript : // event handler called by Woody to remove a Resource Row from the Album function deleteRow (event) { // get the ID of the Resource that is being deleted, so I can remove it from the Persistor cocoon.log.info (User deleting Row : + event.getSourceWidget ().getParent ().getId ()); I don't think this will return the id you expect. The id returned by getId() is the id of the widget as defined in the form definition, not to be confused with the unique-row-id from the binding, which just points to a widget who's value is used as unique row identification. oops, was confused for a while, the getId() on the row will indeed return the row number (as a string). -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Advice using Cocoon for my application?
Hi, I'm thinking of using Cocoon for a simple database-driven address book application where the critical part is being able to print address labels for envelopes. I'm wondering if XSL:FO would be reasonable to use to produce the pages of labels to send to the printer. I appreciate your advice and the benefits of your experience. Thank you. -- ==Leonard E. Sitongia Visualization and Enabling Technologies / Scientific Computing Division National Center for Atmospheric Research P.O. Box 3000 Boulder CO 80307 USA [EMAIL PROTECTED]voice: (303)497-2454 fax: (303)497-1239 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deleting repeater-rows
On 27 Nov 2003, at 16:29, Bruno Dumon wrote: On Thu, 2003-11-27 at 13:37, Jeremy Quinn wrote: On 26 Nov 2003, at 18:19, Bruno Dumon wrote: How do I call delete on my bean? I am using Hibernate, it is not enough to just remove the item from the Collection, I also need to call session.delete (resource) (or more accurately ResourcePeer.delete (session, resource), so it is wrapped in a Transaction) on the deletee. Simply execute this code from an event-handler attached to the button? Now I am having a problem identifying which row is being deleted. in my Model : wd:repeater id=resources wd:widgets wd:output id=id wd:datatype base=long/ /wd:output . . . wd:row-action id=delete action-command=delete wd:labeli18n:text i18n:catalogue=locallabel.delete.resource/i18n:text/wd:label wd:hinti18n:text i18n:catalogue=localhint.delete.resource/i18n:text/wd:hint wd:on-activate javascriptdeleteRow (event)/javascript /wd:on-activate /wd:row-action /wd:widgets /wd:repeater in my Binding : wb:repeater id=resources parent-path=. row-path=resources unique-row-id=id unique-path=id wb:on-bind wb:value id=id path=id/ . . . /wb:on-bind wb:on-insert-row wb:insert-bean classname=uk.co.my.bean.Resource addmethod=addResource/ /wb:on-insert-row wb:on-delete-row wb:delete-node/ /wb:on-delete-row /wb:repeater in my FløwScript : // event handler called by Woody to remove a Resource Row from the Album function deleteRow (event) { // get the ID of the Resource that is being deleted, so I can remove it from the Persistor cocoon.log.info (User deleting Row : + event.getSourceWidget ().getParent ().getId ()); I don't think this will return the id you expect. The id returned by getId() is the id of the widget as defined in the form definition, not to be confused with the unique-row-id from the binding, which just points to a widget who's value is used as unique row identification. OK } this shows '-1' ( ) Has it been deleted before this handler is called? If I go :event.getSourceWidget ().getId () I get 'delete'. If I go :event.getSourceWidget ().getParent ().getId () I get '-1'. If I go :event.getSourceWidget ().getParent ().getParent ().getId () I get 'resources'. Saw your messages on the dev list (which are still valid), but you could do this as follows: event.getSourceWidget().getParent().getWidget(my-id- widget).getValue() where my-id-widget is the widget containing your id (assuming that's what you want). Thanks, yes that works. the getParent() call gives you the current row in the repeater (which is in fact also a widget, though it's not visible in the form definition, it's automatically created for you), of which you request another child widget using the getWidget() call. Is it possible to get the index of the row? It would save my Application scanning the Bean's List looking for that ID. event.getSourceWidget ().getParent ().getParent ().indexOf (event.getSourceWidget ().getParent ()) still returns -1. Is that because it really has been removed, or because I am asking the wrong question again ;) Many thanks regards Jeremy smime.p7s Description: S/MIME cryptographic signature
Re: deleting repeater-rows
On 27 Nov 2003, at 16:29, Bruno Dumon wrote: Saw your messages on the dev list (which are still valid), but you could do this as follows: event.getSourceWidget().getParent().getWidget(my-id- widget).getValue() where my-id-widget is the widget containing your id (assuming that's what you want). I get a strange Exception : java.lang.NoClassDefFoundError: uk/co/my/bean/album (wrong name: uk/co/my/bean/Album) I am trying this : in my main FlowScript, I pass my bizzdata to the showForm method, so it is available to the event handler : . . . importPackage (Packages.uk.co.my.bean); . . . function updateAlbum () { . . . var album = AlbumPeer.load (session, new java.lang.Long (cocoon.parameters[albumid]), null); . . . form.load (album); . . . form.showForm (screen, {album: album}); . . . } Where 'album' is an instance of uk.co.my.bean.Album. In my form model, I define this button in my 'resources' Repeater: . . . wd:row-action id=delete action-command=delete . . . wd:on-activate javascriptdeleteRow (event, viewData)/javascript /wd:on-activate /wd:row-action . . . and back in the FlowSript (same file as above) I have this function: // event handler called by Woody to remove a Resource Row from the Album function deleteRow (event, viewData) { var factory = cocoon.getComponent (PersistanceFactory.ROLE); var session = factory.createSession (); var id = event.getSourceWidget ().getParent ().getWidget (id).getValue (); var deletee = AlbumPeer.getResourceById (viewData.album, new java.lang.Long (id)); album.removeResource (deletee); if (!ResourcePeer[delete] (session, deletee)) cocoon.log.error (Resource not deleted properly!!!: + deletee.getId ()); session.close (); cocoon.releaseComponent (factory); } When I click the 'delete' button on one of the resources, I get this Exception : Original Exception: java.lang.NoClassDefFoundError: uk/co/my/bean/album (wrong name: uk/co/my/bean/Album) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:198) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:171) at org.mozilla.javascript.ScriptRuntime.loadClassName(ScriptRuntime.java: 2103) at org.mozilla.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackag e.java:183) at org.mozilla.javascript.ImporterTopLevel.get(ImporterTopLevel.java:119) at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1110) at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(C ontinuationInterpreter.java:1220) at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(C ontinuationInterpreter.java:190) at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(C ontinuationInterpreter.java:138) at org.mozilla.javascript.continuations.InterpretedScriptImpl.call(Interpre tedScriptImpl.java:137) at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java: 59) at org.apache.cocoon.woody.util.JavaScriptHelper.execScript(JavaScriptHelpe r.java:177) at org.apache.cocoon.woody.event.impl.JavaScriptWidgetListener.callScript(J avaScriptWidgetListener.java:101) at org.apache.cocoon.woody.event.impl.JavaScriptWidgetListener$JSActionList ener.actionPerformed(JavaScriptWidgetListener.java:118) at org.apache.cocoon.woody.event.WidgetEventMulticaster.actionPerformed(Wid getEventMulticaster.java:80) at org.apache.cocoon.woody.formmodel.ActionDefinition.fireActionEvent(Actio nDefinition.java:82) at org.apache.cocoon.woody.formmodel.Action.broadcastEvent(Action.java: 144) at org.apache.cocoon.woody.formmodel.Form.fireWidgetEvents(Form.java:133) at org.apache.cocoon.woody.formmodel.Form.process(Form.java:259) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:230) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244) at
Re: RequestParameterModule
Roman Hrivik wrote: This can be reported as bug, I think. When I try to access for parameter from request in sitemap and in request is not such parameter I'll get null-exception. I think that RequestParameterModule should return always not null value. Nope since is different from null eg on database updates. If there is a null pointer exception inside the sitemap engine, this is an error since it should expect null values from an input module and replace it with . Could you provide a test case for this that shows the error? (A short test of mine didn't reveal any problems.) Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: portal engine on Cocoon 2.1.3
David Geleyn wrote: Hi all! I'm looking at the (new) portal engine of cocoon and I have some questions about it: It is possible to make any coplet fullscreen, which is great, but how exactly do you know whether you are in full screen mode or not (when you are creating the coplet)? It would be great to know this, because it IIRC this is handled by the renderers. The rederer gets this information because the layout object carries this information. The layout in turn is modified by some component (DefaultChangeAspectDataEventSubscriber) that is subscribed to the appropriate portal event (ChangeAspectDataEvent). If your coplet would be subscribed to the same event, it would be informed of this change. It would be great to have a coplet with some data that depends on request parameters. The request parameters are now read by all the coplets (correct me if I'm wrong). Is it possible to make sure that request All request parameters are made available to all coplets. parameters are only processed by one coplet instance? Maybe I can illustrate this with an example: If you have a coplet that list all users and you want a filter option (selection list) to view only the administrators you have to use a request parameter. This parameter is also read by the other coplet instances. Now, If you want also an instance of the same coplet in the same portal view, but with only the 'guest users' listed, you have a problem, I assume? Or is there any way to avoid this? Those coplets would need to talk to each other through the portal event mechanism. It do not that that the coplets are meant to list only administrators or guests. Both instances should be able to show them both! HTH Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with Cocoon Tomcat
hi, We are using cocoon 2.0.3 in tomcat 4.1 on Solaris. We are using Java beans to query database and we have XML embeded in JSP files,these JSP files make calls to the java beans for dynamic content. we use XSLT to transform the xml in JSP files to html using cocoon. The following are the problems we are facing using the above architechture : 1.Bean recomiplation requires, every time restart of tomcat 2.Cocoon's performance degrades .. as days go by ..( i.e page takes a great amount of time toload ) this happens only to JSP pagesmaking calls tobeans 3.The environment variables like JAVA_HOMEetc.. are lost And above all, we appriciate any other suggestions to implement the above architechture. with regards pratap Do you Yahoo!? Free Pop-Up Blocker - Get it now
Re: cocoon with servlet Filter - running twice
I wonder how Cocoon (= a servlet) should influence servlet container behaviour? Isn't the filtering independent on the things the servlet does? Are you sure that not two requests are sent (e.g. using Adobe PDF plugin with IE)? Joerg On 27.11.2003 11:41, Roman Hrivik wrote: Hi I put simple test filter before cocoon servlet. But I have a problem with it, because my Filter runs twice. I run Cocoon on oracle OC4J. There is just simple System.out.print in my filter just count the runs int runs=0; public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { System.out.println(= TestFilter + ++runs + =); chain.doFilter(request, response); } When I tested filter on other servlets than cocoon everything was OK. But when I mapped my filter to Cocoon servlet my filter runs twice. Can anybody help ? Thks. Roman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ading new fonts to cocoon runing on headles java VM
On 27.11.2003 17:21, Christofer Dutz wrote: Hi, I am working on a small Project using cocoon on a headless linux server. I would like to add new fonts, so I can use them in the SVGs I am generating. How can I do this? It's some time ago, but we already did it. We converted fonts to font definition XML files that we included in SVGs before they were transformed to PNGs. I don't know which tool for converting we used, but I guess either http://xml.apache.org/batik/ttf2svg.html or http://xml.apache.org/fop/fonts.html. We didn't do it the Java way. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: document-v10 transformation rules to HTML and PDF
On 27.11.2003 16:24, [EMAIL PROTECTED] wrote: hi people i have look in cvs's to find .xsl files that transform document-v10 (document-v10.dtd) xml files to html and pdf at once but without to find somenthing exist those file i'm looking for or not? i want to make our project (othello) ready to accept document-v10.dtd valid content files The documentation at http://127.0.0.1:/docs/ in old style is generated by the stylesheets at COCOON/src/documentation/stylesheets. The documentation at http://cocoon.apache.org/2.1/ in new style is generated using Forrest. If I looked correctly it should be the stylesheets at FORREST/src/resources/skins/forrest-site/xslt/. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clickable list
Hello, We have prototyped some forms with Woody and Flow. It is impressive technology, particularly the binding framework. We use Cayenne (similar to OJB) as our object layer to access our postgres database. It is not obvious to us how to use woody to implement a 'clickable list' of objects -- meaning a list of objects (actually object attributes) where clicking one of them takes the user to a form to edit that object. We've now realized that this 'clickable list' may not really be a job for woody. Even so, we would still like to take advantage of woody's powerful bindings. Moreover, while we could implement a 'clickable list' using the wd:action widgets inside a wd:repeater we would rather use hyperlinks than buttons -- which even more, we suppose, begs the question: why even use woody? (But, we would like to use one technique for all our dynamic data.) We would be interested in suggestions on implementing a 'clickable list' and also on techniques for identifying the clicked object. We had intended to use, as part of the solution, Cayenne's DataObject.objectid() method which (I believe) is guaranteed to be unique among objects in a given DataContext (simliar to OJB's Broker). Now however, looking at frameworks like struts, we wonder if we even need to use the objectid -- that there might be a more elegant way to identify the clicked object. Here is some of our prototype code which works as far as displaying the list of objects from the database via Cayenne but does not yet attempt to allow selection of one of the objects. Widget Definition - ?xml version = 1.0 encoding = UTF-8? wd:form xmlns:wd=http://apache.org/cocoon/woody/definition/1.0; wd:widgets wd:repeater id=kriCategoryList wd:widgets wd:field id=kriCategoryName wd:labelKRI Category Name/wd:label wd:datatype base=string/ /wd:field /wd:widgets /wd:repeater /wd:widgets /wd:form Bindings wb:context xmlns:wb=http://apache.org/cocoon/woody/binding/1.0; path=/ wb:repeater id=kriCategoryList parent-path=. row-path=KRICategories unique-row-id=globalID unique-path=@id wd:convertor datatype=long / -- wb:on-bind wb:value id=kriCategoryName path=@name / /wb:on-bind /wb:repeater /wb:context Flow function kriCategoryList(form) { form.load(ourApp()); form.showForm(kriCategoryList-pipeline); // form.save(ourApp()); cocoon.sendPage(editingPage.html); } Content --- html xmlns:wt=http://apache.org/cocoon/woody/template/1.0; xmlns:wi=http://apache.org/cocoon/woody/instance/1.0; head titleKRI Category List/title /head body h1Select a KRI Category/h1 wt:form-template action=?continuation-id=#{$continuation/id} method=POST wt:widget id=kriCategoryList/ br/ input type=submit/ /wt:form-template /body /html SiteMap --- map:match pattern=KRICategoryList.html map:select type=request-method !-- GET : start the flow for this screen -- map:when test=GET map:call function=woody map:parameter name=function value=kriCategoryList/ map:parameter name=form-definition value=forms/kriCategoryList.wd/ map:parameter name=documentURI value=docs/kriCategoryListTempData.xml/ map:parameter name=bindingURI value=forms/kriCategoryList.wb/ /map:call /map:when !-- POST (form submission) : continue the flow -- map:when test=POST map:call continuation={request-param:continuation-id}/ /map:when /map:select /map:match map:match pattern=kriCategoryList-pipeline map:generate src=docs/kriCategoryList.xml/ map:transform type=woody/ map:transform src=stylesheets/forms/woody-samples-styling.xsl/ map:serialize type=html/ /map:match --- Steve Steinitz ph +61 (0)2 9487 7215 Director Data Tactics Sydney, Australia www.datatactics.com.au Web Commerce Development Project Estimation and Planning Software Development MacOS X Support - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help in Cocoon2.1.2
Sorry, but I don't understand your question/problem exactly. But to make it clearer: You want to generate a website with 3 frames? What you need are exactly 4 files: 1 frameset HTML file and 3 content HTML files. Nothing specific has to be done in the sitemap. The browser simply loads the frameset HTML file, reads it and knows that it needs the 3 content HTML files and requests them. You can not generate the frameset description and the content at the same time. Joerg On 27.11.2003 08:06, Mohan Ganesan wrote: hi, we are using cocoon2.1.2,xsl with jsp. The problem that we are facing is follows. In a file called Hoverwelcome.jsp whilch transforming to hoverwelcome.xsl file through sitemap file. we used 3 frame in that xsl file. We added pipeline for that 3 files similar to file. (One of the file in the frame is headerpage.jsp) map:match pattern=headerpage.jsp map:generate type=jsp src=headerpage.jsp/ map:transform src=headerpage.xsl map:parameter name=servletPath value={request:servletPath}/ map:parameter name=sitemapURI value={request:sitemapURI}/ map:parameter name=contextPath value={request:contextPath}/ map:parameter name=file value=headerpage.jsp/ /map:transform map:serialize type=html/ /map:match IS THERE ANY SPECIAL TAG SHOULD BE ADD FOR DISPLAYING PAGES UNDER FRAMES IN SITEMAP? PLEASE HELP ME THANKS MOHAN - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ading new fonts to cocoon runing on headles java VM
Thanks for your tip. The ttf2svg tool worked fine ... the only thing I noticed was a slower geretation of the images. I thik this is a result of the much larger SVG-files. Is there a way to include fonts to be Java-accessible ? Mabe this would make everything a lot faster. Chris Joerg Heinicke schrieb: On 27.11.2003 17:21, Christofer Dutz wrote: Hi, I am working on a small Project using cocoon on a headless linux server. I would like to add new fonts, so I can use them in the SVGs I am generating. How can I do this? It's some time ago, but we already did it. We converted fonts to font definition XML files that we included in SVGs before they were transformed to PNGs. I don't know which tool for converting we used, but I guess either http://xml.apache.org/batik/ttf2svg.html or http://xml.apache.org/fop/fonts.html. We didn't do it the Java way. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]