Re: Problem transforming: one xml works fine, the other don't !!
I cannot see these sites - why not post some sample XML and the stylesheet that is problematic [EMAIL PROTECTED] 2004/09/08 03:36:14 AM Hello, I'm having some trouble rendering one of my xml files. Through conventinal methods (i.e, regular browser parsing, saxxon, xalan...) I get no problems. Also, one xml file works fine (the pagina.xml) but the other (bolsistas.xml) doesn't get transformed. I mean, only the text is outputed, none of the tags. Could someone please take a look in my application. It's not in english, but I don't think that would be a problem. I'm using Cocoon's default Jetty in Windows XP with j2sdk 1.4.2_05. I'm using Firefox and IExplorer If I'm online, http://192.168.242.25:/fonte/bolsistas http://192.168.242.25:/fonte/pagina www.inf.ufsc.br/~vanzin/cocoon the cocoonFile.rar contains all the files seen in the address Thanks. Daniel D. Vanzin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loose continuation
hi Superbiji thanx for your answer but i test all this without to leave the form open for a long time. maybe i dont have refer to my problem corectly let me describe the scenario 1. i'm in form_A 2. click on submit 3. i'm in form_B and posted data form form_A are here 4. i press browser's back button 5. i'm in form_A 6. click on submit and i get a message that a widget with a specific id (form_A's widget) does not exist is it possible here flow to try to dipslay from_A instead form_B? i have the feeling that when i press browsers back button i get a cashed page from my browser and flow does not understund where i am. is it possible to be a bug in cforms or not? because the example is very simple (i think so) here is my flow script - function search() { var db= new Packages.gr.osmosis.hotpoints.DatabaseAccess(); var list = new Packages.java.util.ArrayList(); var rc= new Packages.gr.osmosis.hotpoints.RichPathCreator(); var report = ; db.connect(); db.init(); var form = new Form(forms/search_welcome.xml); var search_for; var max_results = 10; do{ //-FORM_A form.showForm(search_welcome-display-pipeline); var model = form.getModel(); search_for = model.search_for; max_results = model.max_results; print (Searching for [ + search_for + ] ...); list = db.searchForElementsWithTitle(search_for); // if there is no records that match the criteria // list==null then redisplay the form }while (list==null) form = new Form(forms/search_results.xml); model = form.getModel(); var items = max_results; if (items list.length){ items = list.length; } for (var i=0; iitems; i++){ rc.setElement(list[i]); rc.touchElement(); print (rich path : + list[i].getRichPath()); model.elements[i].element_id = list[i].getId(); model.elements[i].title = list[i].getTitle(); model.elements[i].path = list[i].getPath(); model.elements[i].richpath = list[i].getRichPath(); model.elements[i].description = list[i].getDescription(); } //-FORM_B // Here is where i press browsers back button form.showForm(search_results-display-pipeline); On Wed, 8 Sep 2004, Superbiji wrote: Maybe time is expired ;) You hang out too long after pressing Back button On Tue, 7 Sep 2004 19:12:51 +0300 (EEST), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i have some cforms and a flow script that create a small wizard that - display a form - wait for submit - display the next form and so on the problem is that if i hit browser's back button to return to a previous form and then click submit again i loose continuation and objects in flow script are nothing can anyone give me a hint of what is happend? - 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: Problem transforming: one xml works fine, the other don't!!
Derek, you need to change your XSL. Move the xsl:import above the xsl:output. That should fix it. It does for me. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Posted At: Wednesday, September 08, 2004 8:59 AM Posted To: Cocoon User List Conversation: Problem transforming: one xml works fine, the other don't!! Subject: Re: Problem transforming: one xml works fine, the other don't!! I cannot see these sites - why not post some sample XML and the stylesheet that is problematic [EMAIL PROTECTED] 2004/09/08 03:36:14 AM Hello, I'm having some trouble rendering one of my xml files. Through conventinal methods (i.e, regular browser parsing, saxxon, xalan...) I get no problems. Also, one xml file works fine (the pagina.xml) but the other (bolsistas.xml) doesn't get transformed. I mean, only the text is outputed, none of the tags. Could someone please take a look in my application. It's not in english, but I don't think that would be a problem. I'm using Cocoon's default Jetty in Windows XP with j2sdk 1.4.2_05. I'm using Firefox and IExplorer If I'm online, http://192.168.242.25:/fonte/bolsistas http://192.168.242.25:/fonte/pagina www.inf.ufsc.br/~vanzin/cocoon the cocoonFile.rar contains all the files seen in the address Thanks. Daniel D. Vanzin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - 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: cocoon directory generator
http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/DirectoryGenerator.java ... } else if (sort.equals(lastmodified)) { ... Superbiji wrote: I see. So which one is correct in CVS, sort=lastmodified or sort=lastModified ? On Tue, 07 Sep 2004 18:40:10 +0200, Jorg Heymans [EMAIL PROTECTED] wrote: this is fixed in CVS already. The docs were wrong. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=109344585918253w=2 Superbiji wrote: If you use cocoon's directory generator expect trouble if you want to sort it by date. To sort by time or date set parameter: sort = lastmodified That's it! not by setting parameter: sort = lastModified or time or date - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: From Unicode to Form and back again
Instead of that META-hack you'd better use a correct HTTP header. Configure your serializer with mime-type like: map:serializer name=html mime-type=text/html; charset=utf-8 logger=sitemap.serializer.html pool-grow=2 pool-max=64 pool-min=2 src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//W3C//DTD XHTML 1.0 Strict//EN /doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd /doctype-system omit-xml-declarationyes/omit-xml-declaration omit-namespacesyes/omit-namespaces encodingUTF-8/encoding /map:serializer UTF-8 in mime-type will put the charset information into HTTP header, and encoding/ will take care of the correct file encoding. The omit-xml-declaration/ will make MSIE to use its standards compliance rendering mode. I'm using to generally change _every_ serializer to use utf-8 only for easier standardisation. Yes! You are right! That's much safer. With the serializer configured this way, such a META-Line will be inserted automatically anyway (besides of stating the correct encoding in the HTTP-Header) Thanks again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Woody question (how to give certain field focus at onload of document)
Hello Robby! You could try some fi:styling myAttr=doSomething() element in the form template, since all attributes to that element is copied into the resulting input tag in the standard cforms field transformer: ... xsl:if test=fi:styling xsl:copy-of select=fi:styling/@*/ /xsl:if ... Another option would be to include a simple javascript in the template that does the focusing job. Regards, Ulf Sahlin -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Skickat: den 7 september 2004 15:46 Till: [EMAIL PROTECTED] Ämne: Woody question (how to give certain field focus at onload of document) Hi, anyone who knows how to give a woody field (input field) focus when the page is loaded ? Kind regards, Robby - 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: From Unicode to Form and back again
And what about your HTML serializer? Which encoding does it use for the form? Thank you Timur, but Volkmar already pointed this out to me. Actually I have to configure two things to put it right. First -- as you suggested -- configure the HTMLSerializer to produce UTF-8 and second put a 'set-encoding' action as the top-level action of the pipeline to be used. This will inform Cocoon to use UTF-8 when decoding the submitted form parameters from the request again. Regards, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2.1.5.1 build oddity, 2.0.4 war fails
On Tue, 2004-09-07 at 19:38, Antonio Gallardo wrote: Hi Peter: I use Fedora Core 2 with tomcat 5.0.28, j2sdk 1.4.2_05 and that work OK with Cocoon 2.1.5.1 and cvs version. If you are a new in Cocoon, please try first tomcat 4.1.x with j2sdk 1.4.2_x. This configuration works on Fedora. I'm not new to Cocoon (been using it since v1) but I don't reinstall it that often :-) and I'm not a developer, so I don't track the code. Using 4.x sounds sensible; I was just trying to keep up to date :-) Else, try to search another ant.jar and java libraries in your Fedora Core installation. I have very bad experiences with ant (basically it appears to be non-functional anywhere I've tried it). I didn't even know it was included in FC2. I wouldn't know what to do with ant.jar anyway (there appear to be two on the machine, in /usr/share/java/ant.jar and /usr/share/ant/lib/ant.jar). Do I copy one of them into the Cocoon distribution directory, overwriting the one in /opt/cocoon/cocoon-2.1.5.1/tools/lib/ant.jar ? Hmm. I just did. Same error: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Grrr. Why O why is Java stuff always broken? If you are interested, here are some bugzilla reports related to j2sdk 1.5 (aka. java 5.0): Thanks but no thanks. Bugzilla is impenetrably user-hostile. But, I think we could avoid j2sdk 5.0 until the stable (final) version. Good idea. But unfortunately the Tomcat site says it is a requirement for tomcat 5.5 Unfortunately, I had no time to test if Cocoon run on the new tomcat 5.5. Maybe someone else can confirm that. I can confirm that it doesn't, and it seems to be the Launcher missing from the ant distributed with Cocoon, not anything to do with Tomcat, because you can't even build Cocoon 2.1.5.1 as it stands: it's broken as distributed. So it cannot be tested with Tomcat 5.5 yet. ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2.1.5.1 build oddity, 2.0.4 war fails
Hi, Peter Flynn wrote: On Tue, 2004-09-07 at 19:38, Antonio Gallardo wrote: Hi Peter: I use Fedora Core 2 with tomcat 5.0.28, j2sdk 1.4.2_05 and that work OK with Cocoon 2.1.5.1 and cvs version. If you are a new in Cocoon, please try first tomcat 4.1.x with j2sdk 1.4.2_x. This configuration works on Fedora. I tried to deploy my application (based on cocoon 2.1.5.1) in both: tomcat 5.0.27 and 5.5.0. Both did not work because of a conflict between my commons-logging-1.0.3.jar and tomcat's commons-logging-api.jar (I posted this yesterday... still found no solution :-{). I'm not new to Cocoon (been using it since v1) but I don't reinstall it that often :-) and I'm not a developer, so I don't track the code. Using 4.x sounds sensible; I was just trying to keep up to date :-) me too. not the best idea apparently (although it would be really nice to speed up my cocoon on a 64bit box with the new jdk... *dreams* Else, try to search another ant.jar and java libraries in your Fedora Core installation. I have very bad experiences with ant (basically it appears to be non-functional anywhere I've tried it). I didn't even know it was included in FC2. I wouldn't know what to do with ant.jar anyway (there appear to be two on the machine, in /usr/share/java/ant.jar and /usr/share/ant/lib/ant.jar). Do I copy one of them into the Cocoon distribution directory, overwriting the one in /opt/cocoon/cocoon-2.1.5.1/tools/lib/ant.jar ? Hmm. I just did. Same error: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Grrr. Why O why is Java stuff always broken? If you are interested, here are some bugzilla reports related to j2sdk 1.5 (aka. java 5.0): Thanks but no thanks. Bugzilla is impenetrably user-hostile. But, I think we could avoid j2sdk 5.0 until the stable (final) version. Good idea. But unfortunately the Tomcat site says it is a requirement for tomcat 5.5 It is not. There is a compatibility package available for download at the apache binary download site. overwrite the files in your tomcat 5.5 directory by the files in this archive and it should work with jdk 1.4.2_x (works fine on my linux box). Unfortunately, I had no time to test if Cocoon run on the new tomcat 5.5. Maybe someone else can confirm that. I can confirm that it doesn't, and it seems to be the Launcher missing from the ant distributed with Cocoon, not anything to do with Tomcat, because you can't even build Cocoon 2.1.5.1 as it stands: it's broken as distributed. So it cannot be tested with Tomcat 5.5 yet. I had no problems with building (but i built my cocoon 2.1.5.1 on a windows machine in cygwin with jdk 1.4.2_03-b02 ///Peter best regards, Niko - 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: 2.1.5.1 build oddity, 2.0.4 war fails
Il giorno 08/set/04, alle 10:45, Peter Flynn ha scritto: I can confirm that it doesn't, and it seems to be the Launcher missing from the ant distributed with Cocoon, not anything to do with Tomcat, because you can't even build Cocoon 2.1.5.1 as it stands: it's broken as distributed. So it cannot be tested with Tomcat 5.5 yet. Since Cocoon works fine with JDK 1.4, I guess it's unfair to say that Cocoon is broken. If there's something that's broken is the degree of backward-compatibility offered by Java5 and you can hardly blame anyone for not delivering a release that runs on an undelivered platform. This is Open Source software, so if you have a need to run Cocoon on Java5, you are free to provide the necessary patches. If they solve the problem, they will surely be included in a future release. Cheers, Ugo -- Ugo Cei - http://beblogging.com/ smime.p7s Description: S/MIME cryptographic signature
Re: 2.1.5.1 build oddity, 2.0.4 war fails
On Wed, 2004-09-08 at 09:57, Ugo Cei wrote: Since Cocoon works fine with JDK 1.4, I guess it's unfair to say that Cocoon is broken. If there's something that's broken is the degree of backward-compatibility offered by Java5 and you can hardly blame anyone for not delivering a release that runs on an undelivered platform. True. Sorry, it's my ignorance. I assumed that the error message Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher meant that some routine called Launcher was missing from the Cocoon ant distribution, not that there was something wrong with the Java that was looking for it. This is Open Source software, so if you have a need to run Cocoon on Java5, you are free to provide the necessary patches. If they solve the problem, they will surely be included in a future release. Absolutely. If I knew enough Java, I would. But I misinterpreted the error message to mean Cocoon was at fault. ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loose continuation
Hi, Here's a note from http://wiki.apache.org/cocoon/RhinoWithContinuations that explains what's going on: NOTE: Captured continuation does not save the state of the variables, but rather pointers to the variables. Example: two continuations will share one instance of the local variable declared in the function, if those two continuations were created during execution of the same call of this function. -- Vadim The result of this is that when you set the form variable to the search results form, you change the form variable in the earlier continuation too so when you click the Back button and submit, an instance of form B does the processing instead of form A. Probably the easiest thing to do here is to use two different variables for the two forms. If this is awkward (e.g. you're generating forms in a loop), you can also use a page local variable to get the behavior you want. Pete hi Superbiji thanx for your answer but i test all this without to leave the form open for a long time. maybe i dont have refer to my problem corectly let me describe the scenario 1. i'm in form_A 2. click on submit 3. i'm in form_B and posted data form form_A are here 4. i press browser's back button 5. i'm in form_A 6. click on submit and i get a message that a widget with a specific id (form_A's widget) does not exist is it possible here flow to try to dipslay from_A instead form_B? i have the feeling that when i press browsers back button i get a cashed page from my browser and flow does not understund where i am. is it possible to be a bug in cforms or not? because the example is very simple (i think so) here is my flow script - function search() { var db= new Packages.gr.osmosis.hotpoints.DatabaseAccess(); var list = new Packages.java.util.ArrayList(); var rc= new Packages.gr.osmosis.hotpoints.RichPathCreator(); var report = ; db.connect(); db.init(); var form = new Form(forms/search_welcome.xml); var search_for; var max_results = 10; do{ //-FORM_A form.showForm(search_welcome-display-pipeline); var model = form.getModel(); search_for = model.search_for; max_results = model.max_results; print (Searching for [ + search_for + ] ...); list = db.searchForElementsWithTitle(search_for); // if there is no records that match the criteria // list==null then redisplay the form }while (list==null) form = new Form(forms/search_results.xml); model = form.getModel(); var items = max_results; if (items list.length){ items = list.length; } for (var i=0; iitems; i++){ rc.setElement(list[i]); rc.touchElement(); print (rich path : + list[i].getRichPath()); model.elements[i].element_id = list[i].getId(); model.elements[i].title = list[i].getTitle(); model.elements[i].path = list[i].getPath(); model.elements[i].richpath = list[i].getRichPath(); model.elements[i].description = list[i].getDescription(); } //-FORM_B // Here is where i press browsers back button form.showForm(search_results-display-pipeline); -- Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR* Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build Problems on Windows 9x
Hi, normally I build Cocoon on Windows 2000 and it all works fine, however today I have had cause to build it on Windows ME (not the best environment, but Java should run on it :-) ). However despite setting JAVA_HOME correctly and testing this with echo %JAVA_HOME% I get the following message Unable to locate tools.jar. Expected to find it in C:\J2SDK1.4.2_03\JRE\lib\tools.jar so it looks like java.home is being taken by the build-init.xml file with Cocoon to be the JRE! Anyone know a work around, I have tried setting within the build.bat file, but no joy. Many thanks, Norman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Form from ScriptableWidget?
Hi Phil, Use jsForm.getWidget().unwrap(). Pete I have a java object which currently has a method (addForm) that accepts a Form object as a parameter. In v1 of the forms javascript code this can easily be accessed from javascript with javaObj.addForm(jsForm.getWidget()); However I want to use some of the new features in the v2 API. Now when the getWidget() method is called on the jsForm the form is returned as a ScriptableWidget. How can I retrieve the Form object from that? I've read lots of mailing list entries about why this is in place, but nothing to help me with migration of existing code to the newer api. Thanks Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR* Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Woody question (how to give certain field focus at onload of document) Solution provided
We found out how to do it yesterday: give the template a name-attribute (e.g. login) and the body tag an onload attribute with value: document.nameOfForm.NameOfField.focus() Regards, Robby html head titleAccess Control/title /head body onload=document.login.id.focus(); h1Login/h1 p${message}/p wt:form-template action=continuation:${cocoon.continuation.id} method=POST name=login table class=panel captionLogin/caption tr td wi:group wi:styling layout=columns/ wi:items wt:widget id=id/ wt:widget id=password wi:styling type=password/ /wt:widget wt:widget id=changepassword/ /wi:items /wi:group /td /tr /table wt:widget id=login wi:styling class=button/ /wt:widget wt:widget id=cancel wi:styling class=button/ /wt:widget /wt:form-template /body /html -Original Message- From: Ulf Sahlin [mailto:[EMAIL PROTECTED] Sent: 08 September, 2004 09:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Woody question (how to give certain field focus at onload of document) Hello Robby! You could try some fi:styling myAttr=doSomething() element in the form template, since all attributes to that element is copied into the resulting input tag in the standard cforms field transformer: ... xsl:if test=fi:styling xsl:copy-of select=fi:styling/@*/ /xsl:if ... Another option would be to include a simple javascript in the template that does the focusing job. Regards, Ulf Sahlin -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Skickat: den 7 september 2004 15:46 Till: [EMAIL PROTECTED] Ämne: Woody question (how to give certain field focus at onload of document) Hi, anyone who knows how to give a woody field (input field) focus when the page is loaded ? Kind regards, Robby - 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: CForm bind JXPathContext
oceatoon wrote: Hello every one I've allready posted about this earlier, with no answer, I desperatly post it again because this is something I really need for a cforms function and I'm sure it's just some guidance away. on javascript binding a widget, I need to get some data that is outside the JXPathcontext. I noticed the parentContext points to the tag I bound my widget with. I don't need to go far, the info I need is one xpath parent higher :) but how to access it??? I tried everything I could think off getValue(../../@id); nop parentContext(./@id) is my widgets one this depends on the structure (xml or bean) you want to bind to, maybe you can provide some details on that and dump the relevant parts of your current binding file explaining what works different to what you expect. regards, -marc= Thanx Tibor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Portierhttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Woody question (how to give certain field focus at onload of document) Solution provided
cool, just for completeness though: when upgrading from woody to cforms (which is highly recommended) you should: watch out with those on_load thingies, you might be killing the necessary onload of other widgets in the form (e.g. used by advanced widgets like calendar or html area and whatnot) the way to add your own code to the 'onload' event is therefor a bit different when you use the provided xsl's from samples/resources forms_onloadHandlers[forms_onloadHandlers.length] = document.login.id.focus; // not tested, so might have some syntax issues see the forms_onloadHandlers Array declared and used in form_lib.js http://cvs.apache.org/viewcvs.cgi/cocoon/trunk/src/blocks/forms/samples/resources/forms-lib.js?rev=36594root=Apache-SVNview=auto HTH -marc= [EMAIL PROTECTED] wrote: We found out how to do it yesterday: give the template a name-attribute (e.g. login) and the body tag an onload attribute with value: document.nameOfForm.NameOfField.focus() Regards, Robby html head titleAccess Control/title /head body onload=document.login.id.focus(); h1Login/h1 p${message}/p wt:form-template action=continuation:${cocoon.continuation.id} method=POST name=login table class=panel captionLogin/caption tr td wi:group wi:styling layout=columns/ wi:items wt:widget id=id/ wt:widget id=password wi:styling type=password/ /wt:widget wt:widget id=changepassword/ /wi:items /wi:group /td /tr /table wt:widget id=login wi:styling class=button/ /wt:widget wt:widget id=cancel wi:styling class=button/ /wt:widget /wt:form-template /body /html -Original Message- From: Ulf Sahlin [mailto:[EMAIL PROTECTED] Sent: 08 September, 2004 09:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Woody question (how to give certain field focus at onload of document) Hello Robby! You could try some fi:styling myAttr=doSomething() element in the form template, since all attributes to that element is copied into the resulting input tag in the standard cforms field transformer: ... xsl:if test=fi:styling xsl:copy-of select=fi:styling/@*/ /xsl:if ... Another option would be to include a simple javascript in the template that does the focusing job. Regards, Ulf Sahlin -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Skickat: den 7 september 2004 15:46 Till: [EMAIL PROTECTED] Ämne: Woody question (how to give certain field focus at onload of document) Hi, anyone who knows how to give a woody field (input field) focus when the page is loaded ? Kind regards, Robby - 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] -- Marc Portierhttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForm bind JXPathContext
Hi Marc my Cform is binded to an XML document, This is the part we are concirned with : fb:repeater id=uploads parent-path=newuploads row-path=upload rooms room id=1 newuploads upload path=/ upload path=/..etc newuploads /room room id=2 newuploads upload path=/ newuploads /room /rooms *** fb:on-bind fb:javascript id=path path=@path direction=save fb:save-form if(widget.getValue() != null){ var roomid = jxpathContext.parentContext.getValue(../../@id); var formValue = /room+roomid+/+widget.getValue().getHeaders().get(filename); jxpathPointer.setValue(formValue); } /fb:save-form/fb:javascript/fb:on-bind As you can see my @path should be relative to the room it is in So on bind I would like to retreive the id of the room it is in ;) but I cant go back further than upload which is the parentContext on the JXPathContext, var roomid = jxpathContext.getValue(../../@id) doesn't work , neither does the one above ??? is this possible or do I really have to do a post bind transformation ?? I'm sure there's a way to XPoint at the whole binded document?? Thanks for the help Tibor Marc Portier wrote: oceatoon wrote: Hello every one I've allready posted about this earlier, with no answer, I desperatly post it again because this is something I really need for a cforms function and I'm sure it's just some guidance away. on javascript binding a widget, I need to get some data that is outside the JXPathcontext. I noticed the parentContext points to the tag I bound my widget with. I don't need to go far, the info I need is one xpath parent higher :) but how to access it??? I tried everything I could think off getValue(../../@id); nop parentContext(./@id) is my widgets one this depends on the structure (xml or bean) you want to bind to, maybe you can provide some details on that and dump the relevant parts of your current binding file explaining what works different to what you expect. regards, -marc= Thanx Tibor - 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]
Pattern matching for static resources
Please help with a simple match that I cannot get to work... in HTML I will have: src=/dir1/dir2/dir3/resources/custom/images/icon.gif or src=dir2/dir3/resources/custom/images/icon.gif or src=dir3/resources/custom/images/icon.gif I need all of these to match to the same file in the same location - but when I try: map:match pattern=**/resources/custom/**.gif map:read mime-type=image/gif src=resources/actual-dir/{2}.gif/ /map:match The image, which can be found in: resources/actual-dir/images/icon.gif does not appear... What is the correct pattern? Thanks Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form in Coplet
I am trying to link a form into a coplet, and I am very confused about the difference between the attributes: uri and temporary:application-uri in portal.xml. It does not work if I only use temporary:application-uri, I have to add my application into the uri section. What is temporary:application-uri used for? Furthermore, images and scripts are not shown/executed. They seem to search for a path resources/ which is found when the form is run standalone, but I am not sure in what context it is executed when being a coplet. I have tried moving the resource directory about (skins directories etc) but it is not found from the coplet Steinar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form in Coplet
I managed the second part by adding map:match pattern=resources/** map:read mime-type=* src={global:skin}resources/{1}/ /map:match to my main sitemap in my portal and moving resources into my skin dir. Not sure if this is the appropriate way though Still wondering why the 2 uri references uri and temporary:application-uri. I currently have them both pointing to the same uri. Steinar Rune Eriksen wrote: I am trying to link a form into a coplet, and I am very confused about the difference between the attributes: uri and temporary:application-uri in portal.xml. It does not work if I only use temporary:application-uri, I have to add my application into the uri section. What is temporary:application-uri used for? Furthermore, images and scripts are not shown/executed. They seem to search for a path resources/ which is found when the form is run standalone, but I am not sure in what context it is executed when being a coplet. I have tried moving the resource directory about (skins directories etc) but it is not found from the coplet Steinar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pattern matching for static resources
Hi Derek, Please help with a simple match that I cannot get to work... in HTML I will have: src=/dir1/dir2/dir3/resources/custom/images/icon.gif or src=dir2/dir3/resources/custom/images/icon.gif or src=dir3/resources/custom/images/icon.gif just use this map:match pattern=**/*.gif map:read src=resource/actual-dir/{2}.gif mimetype=image/gif/ /map:match With this matcher it doesn't matter what path was used to request a GIF, all will be read from the same directory Regards, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pattern matching for static resources
Hi Derek, Please help with a simple match that I cannot get to work... in HTML I will have: src=/dir1/dir2/dir3/resources/custom/images/icon.gif or src=dir2/dir3/resources/custom/images/icon.gif or src=dir3/resources/custom/images/icon.gif just use this map:match pattern=**/*.gif map:read src=resource/actual-dir/{2}.gif mimetype=image/gif/ /map:match Sorry Derek, I just realized what you want to do. (Next time I will think twice...) If you want to select the set of images by the appearance of customimages anywhere in the URL, this might be the right matcher: map:match pattern=**/resources/custom/**/*.gif map:read src=resource/actual-dir/{3}.gif mimetype=image/gif/ /map:match Regards, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best practice search results
What could be the best way for implenting a search engine (like google) with cocoon. I was thinking about using session-context but then read that the memory could get a problem, if there are a lot of result sets. What I didn't find, how to store a result set in a session. Any how-to's on this topic? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem transforming: one xml works fine, the other don't !!
There is an xsl:import href=pagina.xsl in pagina.xsl. This is creating an error. IceT wrote: Hello, I'm having some trouble rendering one of my xml files. Through conventinal methods (i.e, regular browser parsing, saxxon, xalan...) I get no problems. Also, one xml file works fine (the pagina.xml) but the other (bolsistas.xml) doesn't get transformed. I mean, only the text is outputed, none of the tags. Could someone please take a look in my application. It's not in english, but I don't think that would be a problem. I'm using Cocoon's default Jetty in Windows XP with j2sdk 1.4.2_05. I'm using Firefox and IExplorer If I'm online, http://192.168.242.25:/fonte/bolsistas http://192.168.242.25:/fonte/pagina www.inf.ufsc.br/~vanzin/cocoon the cocoonFile.rar contains all the files seen in the address Thanks. Daniel D. Vanzin - 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.46.06.90 begin:vcard note;quoted-printable:Lionel CRINE=0D=0A= Ing=C3=A9nieur Syst=C3=A8mes documentaires=0D=0A= Soci=C3=A9t=C3=A9 : 4DConcept=0D=0A= 22 rue Etienne de Jouy 78353 JOUY EN JOSAS=0D=0A= Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 version:2.1 end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SimpleForm Transformer Problem
Hi Cocoon Users, I am facing an issue while using simpleform Transformer.As we know, simpleform Transformer helps to prefill the=0D Input fields after form validation. The issue I am facing with is , I want to prefill only specific request attributes. To explain in brief, I have a form with fields - EmailAddress and Confirm EmailAddress .When the form loads after validation, I need to populate only the EmailAddress field and not the Confirm EmailAddress field. But, simpleform prefills both the fields after validation.Do I have an option to prefill selected fields? Here is the xsl used by me: form name=3DUserOptionsEmailAddress action=3DUserOptions/UserOptionsEmailAddress/putValidateEmailFields method=3DPOST table border=3D0 tr td table tr td align=3Dright =0D i18n:textxsl:value-of select=3D./Fields/[EMAIL PROTECTED]'emailAddress']/@label//i18n:text: /td td input name=3DemailAddress style=3Dwidth:200px; type=3Dtext size=3D30/ /td /tr xsl:if test=3Dcount(./Fields/[EMAIL PROTECTED]'emailAddressVerify']) !=3D 0 tr td align=3Dright =0D i18n:textxsl:value-of select=3D./Fields/[EMAIL PROTECTED] =3D'emailAddressVerify']/@label//i18n:text : /td td input name=3DemailAddressVerify style=3Dwidth:200px; type=3Dtext size= =3D30/ /td /tr /xsl:if /table br/ div align=3Dcenter input type=3Dbutton name=3DsubmitForm value=3DUserOptions_emailChange i18n:attr=3Dvalue /#160; input type=3Dreset name=3DresetForm value=3DUserOptions_emailReset i18n:attr=3Dvalue/ /div /td /tr /table Thanks in advance, Sowkhya Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pattern matching for static resources
Daniel Thanks, I think I need to add the following to make it fit exactly: map:match pattern=**/resources/custom/**/*.gif map:read src=resource/actual-dir/{2}/{3}.gif mimetype=image/gif/ /map:match Derek [EMAIL PROTECTED] 2004/09/08 02:14:22 PM Hi Derek, Please help with a simple match that I cannot get to work... in HTML I will have: src=/dir1/dir2/dir3/resources/custom/images/icon.gif or src=dir2/dir3/resources/custom/images/icon.gif or src=dir3/resources/custom/images/icon.gif just use this map:match pattern=**/*.gif map:read src=resource/actual-dir/{2}.gif mimetype=image/gif/ /map:match Sorry Derek, I just realized what you want to do. (Next time I will think twice...) If you want to select the set of images by the appearance of customimages anywhere in the URL, this might be the right matcher: map:match pattern=**/resources/custom/**/*.gif map:read src=resource/actual-dir/{3}.gif mimetype=image/gif/ /map:match Regards, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CForms, XUpdate and xmldb
Hello all, I'm trying to figure out the best way to edit XML document fragments stored in an xml db (eXist). I have been reading through all relevant mails I could find both on this list and on the eXist-open list, but I am still confused. Here are the usecases: Simple case: - an editor should be able to browse through a document (type: catalog), select a node to update - the selected node should be loaded into a form, edited, and stored back to the db - it should be possible to add new nodes or delete existing ones Advanced case: - an editor will search a (set of) specified document(s) - a list of hits (candidate nodes for editing) - the documents are interlinked with XPointer expressions and XIncludes - upon selecting a node, the node gets loaded into a form: - the XPointer expressions should be validated - when editing the form, new references could be created, but such that the editor only will have to enter plain text - the actual XPointer expression should be created automatically (and programmatically) when postprocessing/validating the form - it should be possible to add new nodes or delete existing ones In both cases the editing should be kept within a session, and it should be possible for more than one person to edit different fragments of the same document at the same time. The problems: 1) I would like to do some XSLT processing on the submitted XML fragment after it has been validated by CForms, but before the update is submitted to the xmldb 2) I am completely new to CForms, and I have only been briefly experimenting with XUpdate - I am not able to find my way through all the different possibilities, and find a reasonable (and working) way of implementing the use-cases: CForms + XML binding? XUpdate? XQuery? Other? All or some in combination? 3) I am no Java programmer (although I should be able to copy-paste reuse working codes from others if it is not too different from what I need) I would be glad to hear from anyone who would be willing to share their experience. Best, Sjur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exploring the Slide sample
Hello I'm trying to explore the Slide sample and then to adapt it (http://localhost:/samples/blocks/slide/ with Cocoon 2.2.0-dev) On my development system (Windows), an attempt to upload a file works fine with the form. On my exploitation system (FreeBsd), after filing the form and a click on the 'Upload File' button, I get an error on the URL http://myserver:/samples/blocks/slide/uploadsource.do The error is: file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/blocks/slide/flow.js, line 120: uncaught JavaScript exception: at uploadsource (file:/usr/local/cocoon/cocoon-2.1/build/webapp/samples/blocks/slide/flow.js, Line 120): org.apache.excalibur.source.SourceException: Request object uploadFile is not an uploaded Part I don't find a way for debuging that. Can someone help me? -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exploring the Slide sample
Is the property enable-uploads in WEB-INF/web.xml enabled? If not, the uploaded part will be null. -Original Message- From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: Exploring the Slide sample Hello I'm trying to explore the Slide sample and then to adapt it (http://localhost:/samples/blocks/slide/ with Cocoon 2.2.0-dev) On my development system (Windows), an attempt to upload a file works fine with the form. On my exploitation system (FreeBsd), after filing the form and a click on the 'Upload File' button, I get an error on the URL http://myserver:/samples/blocks/slide/uploadsource.do The error is: file:/usr/local/cocoon/cocoon- 2.1/build/webapp/samples/blocks/slide/flow.js, line 120: uncaught JavaScript exception: at uploadsource (file:/usr/local/cocoon/cocoon- 2.1/build/webapp/samples/blocks/slide/flow.js, Line 120): org.apache.excalibur.source.SourceException: Request object uploadFile is not an uploaded Part I don't find a way for debuging that. Can someone help me? -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - 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: Exploring the Slide sample
Yes It is set to true on both systems. Bart Molenkamp wrote: Is the property enable-uploads in WEB-INF/web.xml enabled? If not, the uploaded part will be null. -Original Message- From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: Exploring the Slide sample Hello I'm trying to explore the Slide sample and then to adapt it (http://localhost:/samples/blocks/slide/ with Cocoon 2.2.0-dev) On my development system (Windows), an attempt to upload a file works fine with the form. On my exploitation system (FreeBsd), after filing the form and a click on the 'Upload File' button, I get an error on the URL http://myserver:/samples/blocks/slide/uploadsource.do The error is: file:/usr/local/cocoon/cocoon- 2.1/build/webapp/samples/blocks/slide/flow.js, line 120: uncaught JavaScript exception: at uploadsource (file:/usr/local/cocoon/cocoon- 2.1/build/webapp/samples/blocks/slide/flow.js, Line 120): org.apache.excalibur.source.SourceException: Request object uploadFile is not an uploaded Part I don't find a way for debuging that. Can someone help me? -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - 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] -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form in Coplet
uri is the URI which is called when the coplet is supposed to display. Set it to cocoon:/coplets/html/application, and you'll probably don't need to change it. temporary:application-uri stores the URI that is used by cocoon:/coplets/html/application (look at it, you'll see). This temporary URI should point to some flow-script application or ... (eg cocoon://my/calculator.do). The html event link transformer also uses this attribute to transform form and a elements into portal events, but you probably don't need to worry about that. So, always set the uri to cocoon:/coplets/html/application and set the temporary uri to the startpoint of your flow application. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Steinar Rune Eriksen Sent: Wednesday, September 08, 2004 1:57 PM To: [EMAIL PROTECTED] Subject: Re: Form in Coplet I managed the second part by adding map:match pattern=resources/** map:read mime-type=* src={global:skin}resources/{1}/ /map:match to my main sitemap in my portal and moving resources into my skin dir. Not sure if this is the appropriate way though Still wondering why the 2 uri references uri and temporary:application-uri. I currently have them both pointing to the same uri. Steinar Rune Eriksen wrote: I am trying to link a form into a coplet, and I am very confused about the difference between the attributes: uri and temporary:application-uri in portal.xml. It does not work if I only use temporary:application-uri, I have to add my application into the uri section. What is temporary:application-uri used for? Furthermore, images and scripts are not shown/executed. They seem to search for a path resources/ which is found when the form is run standalone, but I am not sure in what context it is executed when being a coplet. I have tried moving the resource directory about (skins directories etc) but it is not found from the coplet Steinar - 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: Exploring the Slide sample
Hmm... I use uploads in combination with CForms, and then it is required to have the attribute enctype=multipart/form-data added to the form tag. Maybe that is missing? -Original Message- From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:24 PM To: [EMAIL PROTECTED] Subject: Re: Exploring the Slide sample Yes It is set to true on both systems. Bart Molenkamp wrote: Is the property enable-uploads in WEB-INF/web.xml enabled? If not, the uploaded part will be null. -Original Message- From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: Exploring the Slide sample Hello I'm trying to explore the Slide sample and then to adapt it (http://localhost:/samples/blocks/slide/ with Cocoon 2.2.0-dev) On my development system (Windows), an attempt to upload a file works fine with the form. On my exploitation system (FreeBsd), after filing the form and a click on the 'Upload File' button, I get an error on the URL http://myserver:/samples/blocks/slide/uploadsource.do The error is: file:/usr/local/cocoon/cocoon- 2.1/build/webapp/samples/blocks/slide/flow.js, line 120: uncaught JavaScript exception: at uploadsource (file:/usr/local/cocoon/cocoon- 2.1/build/webapp/samples/blocks/slide/flow.js, Line 120): org.apache.excalibur.source.SourceException: Request object uploadFile is not an uploaded Part I don't find a way for debuging that. Can someone help me? -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - 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] -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - 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]
Treating strings passed to templates as markup?
Hello! Problem: I'm trying to pass a string to a jx template. The passed string contains html markup which I want the generator\serializer to parse and serialize. However, the following sendpage call: cocoon.sendPage(error.xml, {error : bBold test/b}); just produces this output: bBold test/b Looking at the source, I see that the tags have been translated with escape chars: lt;bgt;Bold testlt;/bgt; For various reasons I don't want the jx generator to translate my b tags with escape characters- I want the string above to be treated as html markup. How do I accomplish this? Regards, Thomas Kjeldahl Nilsson Oslo, Norway - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice search results
have you looked at Lucene? it's integrated in Cocoon already. [EMAIL PROTECTED] wrote: What could be the best way for implenting a search engine (like google) with cocoon. I was thinking about using session-context but then read that the memory could get a problem, if there are a lot of result sets. What I didn't find, how to store a result set in a session. Any how-to's on this topic? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
More Cocoon build problems
Hi to get around the problems with java.home on Windows 9x I set up Eclipse to use the Ant distro shipped with Cocoon, this seems to work fine as they have a fix for java.home, however I now get Buildfile: D:\projects\cocoon-2.1.5.1\build.xml init: init-tasks: prepare: [echo] == [echo] Apache Cocoon 2.1.5.1 [1999-2004] [echo] == [echo] Building with Apache Ant version 1.6.1 compiled on February 12 2004 [echo] -- [echo] Using build file D:\projects\cocoon-2.1.5.1\build.xml [echo] -- [echo] Compiler options: [echo]- debug . [on] [echo]- optimize .. [on] [echo]- deprecation ... [off] [echo] == compile-core: compile-deprecated: BUILD FAILED: java.lang.ExceptionInInitializerError Total time: 3 seconds Which isn't very helpful! Anyone got any ideas please. Thanks, Norman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2.1.5.1 build oddity, 2.0.4 war fails
Peter Flynn Escribio :-) I just installed a fresh tomcat 5.5.0 on Fedora Core 2, with jdk1.5.0, and that works fine (edited server.xml to make it the default port 80 server). Then I unwrapped Cocoon 2.1.5.1 and typed ./build to get the default set of targets. I immediately get the error: # cd /opt/cocoon/cocoon-2.1.5.1/ # ./build.sh Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Hi peter, I had the same problem and was because Fedora Core 2 had installed another versión of Ant, i dont remember which is, i uninstall that version and install Ant 1.6.2. Well i have cocoon-2.1.6-dev, but the error message was the same. you try rpm -q ant to see the Ant installed. I hope help you. Cheers. Is something (ant) missing from 2.1.5.1? The docs at http://cocoon.apache.org/2.1/installing/index.html#Building%2BCocoon say The build script overrides the existing ANT_HOME variable. In fact I do have ant installed, but I deliberately held back from exporting ANT_HOME as I assumed Cocoon came with its own built-in ant. OK, so backpedal...I unwrapped a copy of Cocoon 2.0.4 and copied the cocoon.war file into the tomcat webapps directory. Tomcat picked it up and expanded it, apparently correctly, but http://localhost/cocoon just gives me the error message (yes I *am* using port 80, not 8080): HTTP Status 404 - /cocoon type Status report message /cocoon description The requested resource (/cocoon) is not available. Apache Tomcat/5.5.0 What have I done wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Carlos Chávez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2.1.5.1 build oddity, 2.0.4 war fails
On Wed, 2004-09-08 at 16:03, Carlos Chávez wrote: I had the same problem and was because Fedora Core 2 had installed another versión of Ant, i dont remember which is, i uninstall that version and install Ant 1.6.2. Thanks. That's odd: the docs say that Cocoon ignores any setting of $ANT_HOME, so it shouldn't be using the copy of ant that came with FC2 at all, should it? Well i have cocoon-2.1.6-dev, but the error message was the same. you try rpm -q ant to see the Ant installed. Anyway I changed back to Java 1.4.2_05 and Tomcat 4.1.30 and Cocoon 2.0.4. Now Java and Tomcat work fine but when I copy the cocoon.war file into Tomcat's webapps directory and open http://localhost/cocoon in my browser, I get a Cocoon error message: Cocoon 2 - Internal server error type fatal message Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. description org.apache.cocoon.ProcessingException: Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. Well, at least it's an error from Cocoon, so *something* is running. Has anyone any idea why it doesn't bring up the Cocoon install page. I've installed several Cocoon before and never hit this kind of error. ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
printing
hello list, I have a pipeline generating pdf documents out of xml files. is it possible to tell cocoon to pring a generated document on a printer connected to the server itself or to the client? what I want is that any generated pdf is printed. thanks!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xhtml output formating problems / passing throught pre defined static xhtml
Hi, my name is Dominic and I'm new to this mailing list and to XSLT / Coocoon. I'm using: java version 1.4.2_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4. Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) With Tomcat/5.0.27 And cocoon 2.1 Running on WinXP SP2 I am trying to write a xhtml file that consist of some static areas (pre formated xhtml)and some dynamic areas I want to fill with content from an xml file. Filling in the content works fine. My problem is that cocoon will not keep the formated xhtml that I copied into the stylesheet. The xhtml file to be generated is very complex and the IE 6 seems to have major problems with displaying it correctly. As soon as some of the formating ist lost the page just doesn't display as wanted. For example some a href=sample text /a tags have to have the space behind the last character as in above example in order not to show a carriage return and an empty line underneath and so on... Is there a way of passing through the Static xhtml without cocoon touching the structure? Thanks for any help or Ideas!! Regards Dominic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web service
Hello I'm trying to use the SOAP logicsheet I don't find documentation about it other than the sample. I'm trying to derive a test from the following sample http://...mycocoon.../samples/blocks/xsp/soap/temperature which is based on the following xsp xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://services.xmethods.net:80/soap/servlet/rpcrouter; ns1:getTemp xmlns:ns1=urn:xmethods-Temperature soap:enc/ zipcode xsi_type=xsd:string90210/zipcode /ns1:getTemp /soap:call /page /xsp:page I don't understand the semantic of soap:enc/ and I don't find the syntax and/or the semantic for the urn in xmlns:ns1=urn:xmethods-Temperature for the capascience weather service (http://www.capescience.com/webservices/globalweather/index.shtml, SOAP technical details in the bottom of the page), I derive from above to xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://live.capescience.com:80/ccx/GlobalWeather; ns1:getWeatherReport xmlns:ns1=urn:capeconnect soap:enc/ code xsi_type=xsd:stringCYVR/code /ns1:getWeatherReport /soap:call /page /xsp:page The urn seems to be always false whatever I try. -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sending userid to coplet
I am trying to write a Todo List coplet using the portal engine. My coplet generator is written in XSP. Is there an easy way to send the {ID} thingy to the coplet? Thanks, Dylan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web service
Hello Some more info The following soap request work well outside cocoon, but all my attempt to map that request in the soap logicsheet fails SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; SOAP-ENV:Body m:getWeatherReport xmlns:m=capeconnect:GlobalWeather:GlobalWeather SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; code xsi:type=xsd:stringCYVR/code /m:getWeatherReport /SOAP-ENV:Body /SOAP-ENV:Envelope Is there someone which could help about the translation from a soap request to a soap logicsheet (a method, a link, a tutorial, ...) Jean-Claude Moissinac Jean-Claude Moissinac wrote: Hello I'm trying to use the SOAP logicsheet I don't find documentation about it other than the sample. I'm trying to derive a test from the following sample http://...mycocoon.../samples/blocks/xsp/soap/temperature which is based on the following xsp xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://services.xmethods.net:80/soap/servlet/rpcrouter; ns1:getTemp xmlns:ns1=urn:xmethods-Temperature soap:enc/ zipcode xsi_type=xsd:string90210/zipcode /ns1:getTemp /soap:call /page /xsp:page I don't understand the semantic of soap:enc/ and I don't find the syntax and/or the semantic for the urn in xmlns:ns1=urn:xmethods-Temperature for the capascience weather service (http://www.capescience.com/webservices/globalweather/index.shtml, SOAP technical details in the bottom of the page), I derive from above to xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xscript=http://apache.org/xsp/xscript/1.0; xmlns:soap=http://apache.org/xsp/soap/3.0; page soap:call url=http://live.capescience.com:80/ccx/GlobalWeather; ns1:getWeatherReport xmlns:ns1=urn:capeconnect soap:enc/ code xsi_type=xsd:stringCYVR/code /ns1:getWeatherReport /soap:call /page /xsp:page The urn seems to be always false whatever I try. -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: [EMAIL PROTECTED] Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Persistance, Tomcat Cocoon
Hi, is there a way to prevent Tomcat (5.0.19) from storing all active sessions when shuting down. As some of the Cocoon classes are not serializable this produces lots of exceptions each time. This is not an important issue, but more a cosmetical problem when doing demonstrations with our software... Regards, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form in Coplet
Hi Steinar, uri parameter points to the following pipeline (it's in coplets/html/sitemap.xmap): map:pipeline map:match pattern=application map:generate src={coplet:temporaryAttributes/application-uri}?copletid={coplet:#}/ map:transform type=portal-html-eventlink map:parameter name=attribute-name value=application-uri/ /map:transform map:serialize type=xml/ /map:match /map:pipeline What it does, it takes XML produced by the pipeline referenced in temporary:application-uri, and applies the portal-html-eventlink transformer. This translates internal portal events to the html links. If you want to have resources to be available to the browser - add resource forwarding pipelines to the sitemap where you need it: For example, use this for jpeg's\ map:match pattern=images/* map:read mime-type=image/jpeg type=image src=editor/images/{1}/ /map:match and this for JavaScript files. map:match pattern=*.js map:read mime-type=text/javascript src=editor/{1}.js/ /map:match Make sure that this pipeplines are in the correct sitemaps. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml output formating problems / passing throught pre defined static xhtml
Dominic Krüger wrote: [...] I am trying to write a xhtml file that consist of some static areas (pre formated xhtml)and some dynamic areas I want to fill with content from an xml file. Filling in the content works fine. My problem is that cocoon will not keep the formated xhtml that I copied into the stylesheet. Hi Dominic, This topic is regarding XSLT and not so much Cocoon. You'd better go to an XML/XSLT newgroup like de.comp.text.xml -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Problems on Windows 9x
Try setting the environment variables through the control panel. I had the same problem than yours, and that worked fine for me on windows XP though. Btw, you did set JAVA_HOME=c:\J2SDK1.4.2_03 right? Norman Barker wrote: Hi, normally I build Cocoon on Windows 2000 and it all works fine, however today I have had cause to build it on Windows ME (not the best environment, but Java should run on it :-) ). However despite setting JAVA_HOME correctly and testing this with echo %JAVA_HOME% I get the following message Unable to locate tools.jar. Expected to find it in C:\J2SDK1.4.2_03\JRE\lib\tools.jar so it looks like java.home is being taken by the build-init.xml file with Cocoon to be the JRE! Anyone know a work around, I have tried setting within the build.bat file, but no joy. Many thanks, Norman - 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]
Problem dealing with ampersand - HELP
I have a jsp page that produces a href element that has some query parameters. Unfortunately the cocoon pipeline throws an error: org.apache.cocoon.ProcessingException: SAXException while parsing JSPEngine output: null:102:135:org.xml.sax.SAXParseException: The reference to entity subsect must end with the ';' delimiter. The href element has a URL of the form xyz.com?test=1subsect=go How do I get around this? I cannot possibly put in some entity reference because the href is user input driven. Thanks K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem dealing with ampersand - HELP
On Wed, 8 Sep 2004 14:53:34 -0400, kranga [EMAIL PROTECTED] wrote: I have a jsp page that produces a href element that has some query substitute your '' for 'amp;' like this: xyz.com?test=1amp;subsect=go org.apache.cocoon.ProcessingException: SAXException while parsing JSPEngine output: null:102:135:org.xml.sax.SAXParseException: The reference to entity subsect must end with the ';' delimiter. The href element has a URL of the form xyz.com?test=1subsect=go How do I get around this? I cannot possibly put in some entity reference because the href is user input driven. Thanks K - 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: printing
[EMAIL PROTECTED] wrote: I have a pipeline generating pdf documents out of xml files. is it possible to tell cocoon to pring a generated document on a printer connected to the server itself or to the client? Yes, it is possible, but not out-of-the-box. You'll have to write a custom transformer. You can use the FOP print servlet example, available from the FOP version, as a base for the printing stuff (see also http://xml.apache.org/fop/embedding.html). The Cocoon docs and Wiki have sample code for a variety of custom transformers. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: xhtml output formating problems / passing throught pre defined static xhtml
Sorry for using the wrong medium then and thanks fort he tipps! dominic -Ursprüngliche Nachricht- Von: Joerg Heinicke [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 8. September 2004 20:37 An: [EMAIL PROTECTED] Betreff: Re: xhtml output formating problems / passing throught pre defined static xhtml On 08.09.2004 18:17, Dominic Krüger wrote: my name is Dominic and I'm new to this mailing list and to XSLT / Coocoon. As Volkmar already said: this list is not that much about XSLT as mentioned somewhere in the list guidelines ;-) http://cocoon.apache.org/community/mail-lists.html#Cocoon+Users I am trying to write a xhtml file that consist of some static areas (pre formated xhtml)and some dynamic areas I want to fill with content from an xml file. Standard task, nothing special about it. Filling in the content works fine. My problem is that cocoon will not keep the formated xhtml that I copied into the stylesheet. ... Is there a way of passing through the Static xhtml without cocoon touching the structure? Of course. I simply guess it's a namespace problem in the XSLT. You have the elements in the static xhtml input in the default namespace, but do not match them correctly. Help is here: http://www.dpawson.co.uk/xsl/sect2/N5536.html#d6286e1012. You have to bound the default namespace in the input to a prefix in the xslt to match the elements correctly. 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]
Creating and halting flow continuations
Hello! I need to: 1. create a continuation 2. put the id of the continuation in a deliveryUrl 3. redirect to a redirectUrl 4. suspend flowscript execution, until the remote system hosting redirectUrl redirects the user to my deliveryUrl 5. resume from here (by sitemap-catching the deliveryUrl continuation id, continuing the flowscript execution) Is this possible? I tried to read http://cocoon.apache.org/2.1/userdocs/flow/api.html on how creating WebContinuations manually affect execution, but it doesn't say how and if I could halt execution. Best regards, Ulf Sahlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating and halting flow continuations
On Thursday 09 September 2004 00:08, Ulf Sahlin wrote: I need to: 1. create a continuation 2. put the id of the continuation in a deliveryUrl 3. redirect to a redirectUrl 4. suspend flowscript execution, until the remote system hosting redirectUrl redirects the user to my deliveryUrl 5. resume from here (by sitemap-catching the deliveryUrl continuation id, continuing the flowscript execution) Is this possible? I tried to read http://cocoon.apache.org/2.1/userdocs/flow/api.html on how creating WebContinuations manually affect execution, but it doesn't say how and if I could halt execution. What you need is a 'redirectAndWait'. This is something that IMHO is missing in the current flow API, but very easy to implement. I don't have the cocoon source here at the moment, but take a look at the 'sendPageAndWait' method in the flow implementation you are using (probably javascript). This method should call 'sendPage' and some other stuff. The 'redirectAndWait' method you need will contain a 'redirect' (or is it 'redirectTo'?) and this other stuff. That's all you need. A custom flow engine I'm working on as an example: public void sendPageAndWait(String uri, Object bizdata) { sendPage(uri, bizdata); getCont().endExecution(null); } public void redirectAndWait(String uri) { redirectTo(uri); getCont().endExecution(null); } Good luck, Emond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Database connections hang
I have database connections hanging under load (2.1.5.1, jdk1.4.2_05, MySQL 4.0.18). I found a thread about updating excalibur-datasource-1.1.1.jar to a later version to fix this. When I upgrade to excalibur-datasource-1.2.0.jar, I get cannot create a quaetz scheduler. Has anyone seen this before? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]