Re: Proccesing "normal" form data with flow
Bertrand Thanks, that makes sense. The problem, though, is how to get all the IDs of all checkboxes that have been checked, where the total number of checkeboxes and their IDs, vary from case to case (sorry, should have been more specifc in my original request). Derek >>> [EMAIL PROTECTED] 2006/02/21 03:45 PM >>> Le 21 févr. 06 à 14:37, Derek Hohls a écrit : > I have a use case where I need to process data from "normal" > HTML form - is flow capable of doing so and, if so, how? I > specifically need to fetch and process a set of checkbox values > (each with unique id). No problem, just grab the parameters from the request. The example at http://cocoon.zones.apache.org/demos/release/samples/ blocks/tour/flow/docs/multi-page.html does exactly this, and takes advantage of continuations but does not use Cocoon Forms. -Bertrand -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Practical Demo of CForms?
If you are getting started with AJAX, I would recommend the IBM tutorials; they deal with browser-specific issues: http://www-128.ibm.com/developerworks/web/library/wa-ajaxintro1.html http://www-128.ibm.com/developerworks/web/library/wa-ajaxintro2/?ca=dnw-702 also: http://today.java.net/pub/a/today/2005/08/25/dwr.html >>> [EMAIL PROTECTED] 2006/02/22 12:20 AM >>> Berin Loritsch wrote: > Is there anything out there that is a decent demonstration of AJAX and > Cocoon Forms? I'm looking for something that's a bit better of a > tutorial than the online documentation. There is Apache Cocoon 2.1.8 online block forms samples, those with (ajax) mentioned. http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/ I think cocoon samples are a gold mine worth to delve into. > > Also, can anyone tell me whether the AJAX is compatible with IE 5.5? No idea. Patrick > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply: SOLVED!
Andrew Could you perhaps add some sample code to the wiki site to help the next poor bloke that has to attempt this?! Thanks Derek >>> [EMAIL PROTECTED] 2006/02/22 04:41 AM >>> Hi, just to let you know that I have successfully implemented webservice calls to Paypal into my site via flowscript. Andrew > Andrew Madu wrote: > >> Hi Simone, >> >>> I supposed you was not going to call a webservice (which is >>> server to server comunication) but send the user to another >>> site, and then receive back (thru the user browser) the result >>> of the transaction. This is what i asked in the first few lines >>> of my first answer. If you have to call a webservice (your >>> server connects to the other server, the user notices nothing) >>> then the aproach is radically different. >> >> >> yes I am aware of this, and sorry for any confusion. I am just >> looking at both approaches and wish to find a solution to both. >> Ultimately for those credit clearing facilities that offer a >> webservice (SOAP) solution, I would like to implement that into >> my project. > > Oh ok, I was just missing the point :) > >> >> >> I have a pretty clear idea of how to implement the first issue >> that I made my original question against. I would now like to >> tackle the option of implementing a webservice call into my website. >> >> Could you direct me to any documentation on calls to webservices >> from cocoon within flowscript? > > I don't know of any facility for calling webservices directly from > inside a flowscript. I think you will have to use any webservice > engine/client you need (Axis, of HTTPClient if it's a rest or > whatever else) as if you were going to use it inside any other web > technology or java program. > > Simone > > -- > Simone Gianni > > - > 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] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CForms: HTMLArea Documentation
Gary Well, I think the issue does need to get raised... maybe someone has thought about it before, but just not gotten aroud to dealing with it. And version 2.1.9 is about to be released Derek >>> [EMAIL PROTECTED] 2006/02/21 05:19 PM >>> > Is this something that needs to be taken up on the dev list? Not sure. If you think it would I can forward it up there (though I'd have to join the dev list). > I am sure that htmlArea was the best choice at the time > that the CForms package was first put together, but some > technology just does not last [unlike Cocoon, of course!] > and continued reliance on (or seeming support for) a module > that is no longer actively maintained is not to Cocoon's > advantage... I agree that using an unsupported and undeveloped unit for Cocoon wouldn't be in the best interest of the users. Presumably as Xinha was based on htmlArea3 then the port would be pretty simple. Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon&hibernate tutorial
i'm back ;-)...now i'm using cocoon 2.1.7, hibernate 2.1.6 (same like tutorial). I'm still got the errors when i compiled file.java...Through this tutorial, i should download hibernate and copy some files.jar to /WEB-INF/lib. Here should i build hibernate file??Then for files.java (PersistenceFactory.java n HibernateFactory.java) i put at /WEB-INF/classes/hib. From tutorial i should copy avalon-framework-api.jar, excalibur-datasource.jar to WEB-INF/lib folder and compile java files..So my problem is the java file cant compiled and the errrors: mac:/usr/opt/tomcat/jakarta-tomcat-5.0.28/webapps/cocoon/WEB-INF/classes/hib root# javac PersistenceFactory.java PersistenceFactory.java:8: package org.apache.avalon.framework.component does not existimport org.apache.avalon.framework.component.*;^PersistenceFactory.java:10: cannot resolve symbolsymbol : class Component location: interface hib.PersistenceFactorypublic interface PersistenceFactory extends Component { ^PersistenceFactory.java:13: package net.sf.hibernate does not exist public net.sf.hibernate.Session createSession(); ^3 errorsOn 2/14/06, Thomas Lutz < [EMAIL PROTECTED]> wrote:sorry for the noise, rereading your post, I think i replied too short. you have to include the avalon jars in your build path. this is hast tobe done in your ide and in your build file. so search for configurebuild path in your ide, adapt my build.xml to your ant script, or use the classpath argument of the javac to reference to the avalong jar (in/WEB-INF/lib, that's right).actually i'm just using VI in my mac os X usually you can't just unzip a jar and take one class file out, much toomuch dependencies :-)hth better :-),tomThomas Lutz wrote:> this is a part of my build file which should fit your needs, too. > (it's a bit too much, as i use javaflow, just comment the not needed> jars)>>> destdir="${build.server.war.ant.dir}" debug="on"> >>>> location="${lib.dir}/cocoon/avalon-framework-api-4.3.jar"/> >> location="${lib.dir}/cocoon/avalon-framework-impl-4.3.jar"/>>> location="${lib.dir}/cocoon/avalon-logkit-2.1.jar "/>>> location="${lib.dir}/cocoon/excalibur-datasource-2.1.jar"/>>> location="${lib.dir}/cocoon/excalibur- pool-api-2.1.jar"/>>> location="${lib.dir}/cocoon/cocoon-javaflow-block.jar"/>>> location="${lib.dir}/cocoon/cocoon- 2.1.8.jar"/>>> location="${lib.dir}/cocoon/commons-lang-2.1.jar"/>>>>> hth, > tom>> zulhisham abu nawar wrote:>> hi..>> now i'm in process to get hibernate and cocoon run together...i found>> some documentation at wiki. I try to follow cocoon and hibernate >> tutorial. I've problem when i try to compile PersistenceFactory.java>> and HibernateFactory.java the errors:>> javac PersistenceFactory.java>> PersistenceFactory.java :3: package>> org.apache.avalon.framework.component does not exist>> import org.apache.avalon.framework.component.Component;>> ^>> PersistenceFactory.java :5: cannot resolve symbol>> symbol : class Component>> location: interface org.test.PersistenceFactory>> public interface PersistenceFactory extends Component {>> ^ >> PersistenceFactory.java:8: package net.sf.hibernate does not exist>> public net.sf.hibernate.Session createSession();>>^>> 3 errors>> >> >From the errors, it look like avalon package not exist in my>> directory. Then i look into /WEB-INF/classes and don't have folder for>> avalon. So my question is where the imported avalon classess from >> (from lib or /classes/avalon...). Cause no sure what im doing, i try>> to extarct avalon-framework-api-4.3.jar and put it in>> /classes/org/avalon and so. But i still got the same errors any ideas?? req:>> cocoon 2.1.8>> tomcat 5.0.28>> hibernate 3.1>> avalon-framework-api-4.3.jar -->> ::)- mister ijoi ->> 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]-- ::)- mister ijoi
Re: Flowscript continuation from external reply: SOLVED!
Hi, just to let you know that I have successfully implemented webservice calls to Paypal into my site via flowscript. Andrew Andrew Madu wrote: Hi Simone, I supposed you was not going to call a webservice (which is server to server comunication) but send the user to another site, and then receive back (thru the user browser) the result of the transaction. This is what i asked in the first few lines of my first answer. If you have to call a webservice (your server connects to the other server, the user notices nothing) then the aproach is radically different. yes I am aware of this, and sorry for any confusion. I am just looking at both approaches and wish to find a solution to both. Ultimately for those credit clearing facilities that offer a webservice (SOAP) solution, I would like to implement that into my project. Oh ok, I was just missing the point :) I have a pretty clear idea of how to implement the first issue that I made my original question against. I would now like to tackle the option of implementing a webservice call into my website. Could you direct me to any documentation on calls to webservices from cocoon within flowscript? I don't know of any facility for calling webservices directly from inside a flowscript. I think you will have to use any webservice engine/client you need (Axis, of HTTPClient if it's a rest or whatever else) as if you were going to use it inside any other web technology or java program. Simone -- Simone Gianni - 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: Practical Demo of CForms?
Berin Loritsch wrote: Is there anything out there that is a decent demonstration of AJAX and Cocoon Forms? I'm looking for something that's a bit better of a tutorial than the online documentation. There is Apache Cocoon 2.1.8 online block forms samples, those with (ajax) mentioned. http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/ I think cocoon samples are a gold mine worth to delve into. Also, can anyone tell me whether the AJAX is compatible with IE 5.5? No idea. Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Practical Demo of CForms?
Is there anything out there that is a decent demonstration of AJAX and Cocoon Forms? I'm looking for something that's a bit better of a tutorial than the online documentation. Also, can anyone tell me whether the AJAX is compatible with IE 5.5? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon 2.1.8 - portal framework - getting startet with it
What kind of portlets? Cocoon supports JSR-168, WSRP as well as Cocoon portlets (essentially, cocoon pipelines that are rendered as portlets). The best way to learn about Cocoon is to look at the portal sample site. The minimum steps to add your own portlet depend on what kind it is. JSR-168 portlets are war files and should be placed in the servlet container's webapp directory (Cocoon now comes with a deployer, but I haven't worked with it yet). You then have to define the portlet in copletdata/portal.xml, the instances of it in copletinstancedata/portal.xml and then reference it in a page in layout/portal.xml If you are deploying JSR-168 portlets they require that Cross-context sessions be enabled. So, to deploy a Cocoon pipeline as a portlet define the pipeline in copletdata/portal.xml, reference it in copletinstancedata.xml, and then specify on what page, column and row it is to appear in layout/portal.xml Ralph [EMAIL PROTECTED] wrote: Hi, i´m new to this list so first greetings @ all. i´ve searched a lot in the web but i´ve found no information about cocoon portal and "starting from scratch". that means not to rewrite all functionality but i´ve started a subapplication in cocoon and want to use the portal framework. so what are the minimum necessary steps to build up a portal page with 2 portlets (static content is enough to experiment with it) without authentification and all other features ? thanks for any help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CForms: Global JavaScript Variables?
Philippe Gassmann ([EMAIL PROTECTED]) wrote: > Have you try to set your object as a form attribute ( > form.setAttribute("myDOM",doc); ) ? > > You can then get you object by form.getAttribute("myDOM"); Thanks for that. It works. Though for the achieve and additional notes you can't do that on the on-create as the form's on-create is called after the widgets (which I didn't know until now). So you could design a singleton class to get around that or, the solution I took, to set the widgets values using event.source.lookupWidget("dob").setValue(domValueForNode) in the Form on-create however I'm still using the suggested solution above for dynamic data loading. Thanks again, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Le 21 févr. 06 à 17:57, Andrew Madu a écrit : ...Could you direct me to any documentation on calls to webservices from cocoon within flowscript?.. Have a look at http://wiki.apache.org/cocoon/FlowAndWebServices - dunno how well this works but it might be worth testing. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: Flowscript continuation from external reply
Hi Simone,I don't know of any facility for calling webservices directly from inside a flowscript. I think you will have to use any webservice engine/client you need (Axis, of HTTPClient if it's a rest or whatever else) as if you were going to use it inside any other web technology or java program. for those that may be interested I came across a thread which is a good starting point for flow and web services:http://java2.5341.com/msg/28421.htmlAndrew
Re: Flowscript continuation from external reply
Andrew Madu wrote: Hi Simone, I supposed you was not going to call a webservice (which is server to server comunication) but send the user to another site, and then receive back (thru the user browser) the result of the transaction. This is what i asked in the first few lines of my first answer. If you have to call a webservice (your server connects to the other server, the user notices nothing) then the aproach is radically different. yes I am aware of this, and sorry for any confusion. I am just looking at both approaches and wish to find a solution to both. Ultimately for those credit clearing facilities that offer a webservice (SOAP) solution, I would like to implement that into my project. Oh ok, I was just missing the point :) I have a pretty clear idea of how to implement the first issue that I made my original question against. I would now like to tackle the option of implementing a webservice call into my website. Could you direct me to any documentation on calls to webservices from cocoon within flowscript? I don't know of any facility for calling webservices directly from inside a flowscript. I think you will have to use any webservice engine/client you need (Axis, of HTTPClient if it's a rest or whatever else) as if you were going to use it inside any other web technology or java program. Simone -- Simone Gianni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Hi Simone, I supposed you was not going to call a webservice (which is server to server comunication) but send the user to another site, and then receive back (thru the user browser) the result of the transaction. This is what i asked in the first few lines of my first answer. If you have to call a webservice (your server connects to the other server, the user notices nothing) then the aproach is radically different. yes I am aware of this, and sorry for any confusion. I am just looking at both approaches and wish to find a solution to both. Ultimately for those credit clearing facilities that offer a webservice (SOAP) solution, I would like to implement that into my project. I have a pretty clear idea of how to implement the first issue that I made my original question against. I would now like to tackle the option of implementing a webservice call into my website. Could you direct me to any documentation on calls to webservices from cocoon within flowscript? Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Hi Andrew, I supposed you was not going to call a webservice (which is server to server comunication) but send the user to another site, and then receive back (thru the user browser) the result of the transaction. This is what i asked in the first few lines of my first answer. If you have to call a webservice (your server connects to the other server, the user notices nothing) then the aproach is radically different. Simone Andrew Madu wrote: Hi Simone, 1) Instead of using redirectTo, set up a page with a link to the external site (like a jx page), then use sendPageAndWait to send this page to the user, he will click on the link, go to the external site and all the rest, while your flow will be suspended until the external site will redirect him to your continuation and the flow will restart. This is a clean solution, but involves one more step for the user. 2) Create a webContinuation in your flow (you can do this in _javascript_ flow), before the redirectTo. This way you have a "bookmark" in your flow the user can be redirected to, even if you haven't stopped the flow directly. This is quite a dirtier solution, but avoids the extra click. Here is the pseudocode: wouldn't a nicer way to be to call a webservice? So for example: var webServiceVal = cocoon.callWebservice(bizData.fname etc etc etc) try { if (webServiceVal == true) { }else{ } } catch (e) { //Some problem has occured msg2 = e.toString(); } How do I call a webservice and pass it parameters in flowscript? Andrew
Re: CForms: Global JavaScript Variables?
Have you try to set your object as a form attribute ( form.setAttribute("myDOM",doc); ) ? You can then get you object by form.getAttribute("myDOM"); Stewart, Gary a écrit : Hi there and sorry to bother with *yet another CForms question*, I have a CForms form that loads an external XML document in the on-create function of the form (though the data doesn't change and therefore could be loaded in the flowscript instead if this would be easier). I parse it into a DOM tree and everything works ok. However I was wondering if there was a way of sharing this to a few objects in the form? So I could use a particular node in an output, say. Is there a way of making Javascript objects global in the context of a form? Also I noticed the Output document mentions using field and states to achieve the same effect. Does anyone know if there any intention on deprecating the output element later (ie should I just switch to using field instead)? Thanks again, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Philippe GASSMANN Systèmes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cinclude usage/alternatives
Bruyn Bill wrote: For various reasons, I need to retrieve some markup from a remote resource, and insert my jx result inline. e.g., I have some remote file called wrapper.xhtml that looks like "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Here is some static content and a placeholder for dynamic stuff Where I need to replace the contents of //[EMAIL PROTECTED]'webapp'] with 'whatever'. It isn't the way I would have chosen to put it together, but it seems like a reasonable requirement that I should be able to handle with the sitemap and a cinclude transform. Right? No luck though with several hours of experimentation and the usual looking through google, samples, wiki, archives, userdoc, etc. BTW, the cinclude is really very slow... Is this the recommended method, or am I barking up the wrong tree here? As an alternative to using , you could run your wrapper.xhtml through a stylesheet transformation that replaces //[EMAIL PROTECTED]'webapp'] with src="cocoon:/my-pipeline-for-whatever" />; then follow that with the cinclude transform: Does that address what you're trying to do? Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error in cocoon-2.1.7..
On Tue, 2006-02-21 at 07:36 -0700, Jason Johnston wrote: > [EMAIL PROTECTED] wrote: > > Hi Simone, > > > > The same stuffs seem to be working with cocoon2.1.5. > > Anything we need to add with cocoon 2.1.7 to make this work. > > Please suggest us something so that we go ahead and try out with cocoon > > 2.1.7. > > > > It's really impossible to tell what is going wrong without seeing the > flowscript function in question. Something is causing the function to > exit without sending a response, but who knows what without seeing the code. > In earlier Cocoon versions (don't know up till when exactly) it was allowed to call a flowscript which didn't do a sendPage(AndWait) or redirect. The execution of the sitemap would then continue after the map:call. This behaviour has been disabled, discussions about this can be found in the dev mail list archive, basically because it was an inconsistent or unexpected behaviour. So if this is the cause of the problem, the only solution is to adjust the flowscripts. -- 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: CForms: HTMLArea Documentation
> Is this something that needs to be taken up on the dev list? Not sure. If you think it would I can forward it up there (though I'd have to join the dev list). > I am sure that htmlArea was the best choice at the time > that the CForms package was first put together, but some > technology just does not last [unlike Cocoon, of course!] > and continued reliance on (or seeming support for) a module > that is no longer actively maintained is not to Cocoon's > advantage... I agree that using an unsupported and undeveloped unit for Cocoon wouldn't be in the best interest of the users. Presumably as Xinha was based on htmlArea3 then the port would be pretty simple. Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CForms: Global JavaScript Variables?
Hi there and sorry to bother with *yet another CForms question*, I have a CForms form that loads an external XML document in the on-create function of the form (though the data doesn't change and therefore could be loaded in the flowscript instead if this would be easier). I parse it into a DOM tree and everything works ok. However I was wondering if there was a way of sharing this to a few objects in the form? So I could use a particular node in an output, say. Is there a way of making Javascript objects global in the context of a form? Also I noticed the Output document mentions using field and states to achieve the same effect. Does anyone know if there any intention on deprecating the output element later (ie should I just switch to using field instead)? Thanks again, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon 2.1.8 - portal framework - getting startet with it
Hi, i´m new to this list so first greetings @ all. i´ve searched a lot in the web but i´ve found no information about cocoon portal and "starting from scratch". that means not to rewrite all functionality but i´ve started a subapplication in cocoon and want to use the portal framework. so what are the minimum necessary steps to build up a portal page with 2 portlets (static content is enough to experiment with it) without authentification and all other features ? thanks for any help -- mailto:[EMAIL PROTECTED] -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Hi Simone,1) Instead of using redirectTo, set up a page with a link to the external site (like a jx page), then use sendPageAndWait to send this page to the user, he will click on the link, go to the external site and all the rest, while your flow will be suspended until the external site will redirect him to your continuation and the flow will restart. This is a clean solution, but involves one more step for the user.2) Create a webContinuation in your flow (you can do this in _javascript_ flow), before the redirectTo. This way you have a "bookmark" in your flow the user can be redirected to, even if you haven't stopped the flow directly. This is quite a dirtier solution, but avoids the extra click. Here is the pseudocode:wouldn't a nicer way to be to call a webservice? So for example: var webServiceVal = cocoon.callWebservice(bizData.fname etc etc etc) try { if (webServiceVal == true) { }else{ } } catch (e) { //Some problem has occured msg2 = e.toString(); }How do I call a webservice and pass it parameters in flowscript?Andrew
Re: Coccoon 2.1.7
[EMAIL PROTECTED] wrote: > Hi All, > > I want to know where I can get the cocoon 2.1.7 source to build. Follow the "Older Distributions Archive" link on http://cocoon.apache.org/mirror.cgi > Will v2 API work on cocoon 2.1.7 version? > > If not any patches we can update to make v2 API work with the cocoon > 2.1.7 version. I believe it will work, though I haven't tried it. What do you need from v2 that cannot be done with v1? The reason I ask is that all versions except v1 are being removed in the next release, so if you use v2 you will have problems with future Cocoon versions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Andrew Madu wrote: Hi Simone, many thanks for your suggestions. You're welcome :) How so? This is what comes back to me: www.mysite.com/continuation-id/value-returned What happens next? How do I get the value-returned into the if statement following the var bizdata line? This is not simple. If you can manipulate the return url, try to have the value-returned passed as a parameter (like www.yoursite.com/continuation-id.continue?value-returned=X ) . If you can't, then you will have to parse the URL by yourself inside the flow, and to do this you have to access the underlying JAVA request object, since the FOM object does not have methods to access the requestURI. This is dirty, and YMMV, but it's done this way : var objectmodel = Packages.org.apache.cocoon.components.CocoonComponentManager.getCurrentEnvironment().getObjectModel(); var jrequest = Packages.org.apache.cocoon.environment.ObjectModelHelper.getRequest(objectmodel); var uri = jrequest.getRequestURI(); var value-returned = uri.substring(uri.lastIndexOf('/') + 1); I don't know of a way to pass parameters from the sitemap to a continuation (you can pass them with OR you can try to rewrite the url, (a match that uses a map:redirect-to uri="{1}.continue?value-returned={2}") but it's getting dirtier and dirtier and don't know if it works well at all. Hope this helps, Simone -- Simone Gianni
Re: error in cocoon-2.1.7..
[EMAIL PROTECTED] wrote: > Hi Simone, > > The same stuffs seem to be working with cocoon2.1.5. > Anything we need to add with cocoon 2.1.7 to make this work. > Please suggest us something so that we go ahead and try out with cocoon > 2.1.7. > It's really impossible to tell what is going wrong without seeing the flowscript function in question. Something is causing the function to exit without sending a response, but who knows what without seeing the code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Andrew Madu wrote: > Hi Simone, > many thanks for your suggestions. > >> 1) Instead of using redirectTo, set up a page with a link to the >> external site (like a jx page), then use sendPageAndWait to send this >> page to the user, he will click on the link, go to the external site >> and all the rest, while your flow will be suspended until the external >> site will redirect him to your continuation and the flow will restart. >> This is a clean solution, but involves one more step for the user. > > I have implemented the following so far: > > function getUserOrder() { > .. > .. > cocoon.sendPageAndWait("confirmStage") > } It's not really related to the issue at hand, but instead of issuing a sendPageAndWait() to a pipeline that just calls another flow function, you could call that flow function confirmStage() directly and save some complexity. > > confirmStage is a sitemap function call: > > > > > > > to: > > function confirmStage() { > //2. Get card details. > var form = new Form("forms/CreditCardDetails.xml"); > form.showForm("CreditCardDetails.xml", {"userGlobal":userGlobal}); > var model = form.getModel(); > var bizData = {"fname" : model.fname, "lname" : model.lname, > "account_no" : model.account_no, "credit" : model.credit, "month" : > model.month, "year" : model.year} > > try { > if (value-returned == true) { > }else{ > } > } catch (e) { > //Some problem has occured > msg2 = e.toString(); > } > } > > So I am making a sendPageAndWait to a form which reads like this in the > html: > > http://www.externalsite.com/test.asp>" name="Form1" method="post" > onsubmit="forms_onsubmit(); "> > name="continuation-id" /> > ... > > The user enters their credit card details and clicks submit which posts > the form to externalsite.com. > > Now, at this point, this is where I get confused. You say: > > *'while your flow will be suspended until the external site will > redirect him to your continuation'* > > How so? This is what comes back to me: > > www.mysite.com/continuation-id/value-returned > > What happens next? How do I get the *value-returned *into the if > statement following the var bizdata line? IIUC, you're just making an HTTP request to an external URL, passing it a few parameters, and getting back a one-line text result which you need to parse? You can do that all within flow by using the HTTPClient library: http://jakarta.apache.org/commons/httpclient/ (included with Cocoon). So instead of your form posting directly to the external site, have it post to your continuation like normal, then in your flowscript read the user's inputted values from the form, assemble them into a HTTPClient request, send that request to the external URL, and parse the response however you need to. Is this what you're wanting to do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error in cocoon-2.1.7..
Hi Simone, The same stuffs seem to be working with cocoon2.1.5. Anything we need to add with cocoon 2.1.7 to make this work. Please suggest us something so that we go ahead and try out with cocoon 2.1.7. Regards, Baskar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 12:07 PM To: users@cocoon.apache.org Subject: RE: error in cocoon-2.1.7.. Thanks Simone. -Original Message- From: Simone Gianni [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 10:28 PM To: users@cocoon.apache.org Subject: Re: error in cocoon-2.1.7.. Hi Vijay, this usually happens when the script exits the function without calling a sendPage or a redirectTo. In this case cocoon does not know what to send to the user. Hope this helps, Simone -- Simone Gianni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Coccoon 2.1.7
Hi All, I want to know where I can get the cocoon 2.1.7 source to build. Will v2 API work on cocoon 2.1.7 version? If not any patches we can update to make v2 API work with the cocoon 2.1.7 version. Thanks and Regards, Baskar 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 proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: cocoon.sendPage and bizData
Le 21 févr. 06 à 15:17, Johannes Textor a écrit : ...Sure ? if I get this correctly, it is equivalent to cocoon.sendPage("test.jx", { name : "test", id : "identifier" } );.. Yes, after rereading the question you're right, sorry for the noise. So the problem is probably in test.jx. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Re: cocoon.sendPage and bizData
Bertrand Delacretaz schrieb: > Le 21 févr. 06 à 14:57, Angelo Immediata a écrit : > >> ...var bizData = { >> >> name : "test", >> id : "identifier" >> } >> >> cocoon.sendPage("test.jx", bizData);.. > > > Should be > > cocoon.sendPage("test.jx", { "bizData" : bizData} ); > > -Bertrand Sure ? if I get this correctly, it is equivalent to cocoon.sendPage("test.jx", { name : "test", id : "identifier" } ); so it should work as well .. Angelo, how does your "test.jx" file look like ? what do you mean by "internal-only resource" ? how does the pipeline look like ? Johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Hi Simone,many thanks for your suggestions.1) Instead of using redirectTo, set up a page with a link to the external site (like a jx page), then use sendPageAndWait to send this page to the user, he will click on the link, go to the external site and all the rest, while your flow will be suspended until the external site will redirect him to your continuation and the flow will restart. This is a clean solution, but involves one more step for the user.I have implemented the following so far:function getUserOrder() { .. .. cocoon.sendPageAndWait("confirmStage")}confirmStage is a sitemap function call: to:function confirmStage() { //2. Get card details. var form = new Form("forms/CreditCardDetails.xml"); form.showForm("CreditCardDetails.xml", {"userGlobal":userGlobal}); var model = form.getModel(); var bizData = {"fname" : model.fname, "lname" : model.lname, "account_no" : model.account_no, "credit" : model.credit, "month" : model.month, "year" : model.year} try { if (value-returned == true) { }else{ } } catch (e) { //Some problem has occured msg2 = e.toString(); }}So I am making a sendPageAndWait to a form which reads like this in the html:www.externalsite.com/test.asp" name="Form1" method="post" >...The user enters their credit card details and clicks submit which posts the form to externalsite.com. Now, at this point, this is where I get confused. You say:'while your flow will be suspended until the external site will redirect him to your continuation'How so? This is what comes back to me:www.mysite.com/continuation-id/value-returnedWhat happens next? How do I get the value-returned into the if statement following the var bizdata line?many thanksAndrew
Re: cocoon.sendPage and bizData
Le 21 févr. 06 à 14:57, Angelo Immediata a écrit : ...var bizData = { name : "test", id : "identifier" } cocoon.sendPage("test.jx", bizData);.. Should be cocoon.sendPage("test.jx", { "bizData" : bizData} ); -Bertrand smime.p7s Description: S/MIME cryptographic signature
cocoon.sendPage and bizData
Hi all. I'm using cocoon 2.1.7. I have noticed a strain thing in the cocoon.sendPage method in a flowscript. If i have an internal-only resource (i.e. let's call it "test.jx") it seems to me that if in the flow script i do a similar thing: var bizData = { name : "test", id : "identifier" } cocoon.sendPage("test.jx", bizData); the bizData cannot be read in the jx page.In fact i was not able to read bizData in the test.jx page. I have tried, then, to remove the test.jx page from the internal-only resources and, by changing nothing in my code, the bizData can be read. This causes to me that sometimes i'm forced to put in session some variables that i must read in the jx page. Is this a bug or a desired feature? Thanks to all. Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Proccesing "normal" form data with flow
Le 21 févr. 06 à 14:37, Derek Hohls a écrit : I have a use case where I need to process data from "normal" HTML form - is flow capable of doing so and, if so, how? I specifically need to fetch and process a set of checkbox values (each with unique id). No problem, just grab the parameters from the request. The example at http://cocoon.zones.apache.org/demos/release/samples/ blocks/tour/flow/docs/multi-page.html does exactly this, and takes advantage of continuations but does not use Cocoon Forms. -Bertrand smime.p7s Description: S/MIME cryptographic signature
Proccesing "normal" form data with flow
I have a use case where I need to process data from "normal" HTML form - is flow capable of doing so and, if so, how? I specifically need to fetch and process a set of checkbox values (each with unique id). If flow is not going to work, are there any other alternatives (excluding writing custom Java components)? Thanks Derek -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript continuation from external reply
Hi Andrew, first question. When you say "pass variables to an external site" you mean "redirect the user to an external site, like a payment gateway, and then the external site will redirect the user back to me" right? In that case, the redirectTo function does not suspend the current execution, and there is no "redirectAndWait" function, so you are sending the user to the site, but the flow is not waiting for the response. You can solve in two ways : 1) Instead of using redirectTo, set up a page with a link to the external site (like a jx page), then use sendPageAndWait to send this page to the user, he will click on the link, go to the external site and all the rest, while your flow will be suspended until the external site will redirect him to your continuation and the flow will restart. This is a clean solution, but involves one more step for the user. 2) Create a webContinuation in your flow (you can do this in _javascript_ flow), before the redirectTo. This way you have a "bookmark" in your flow the user can be redirected to, even if you haven't stopped the flow directly. This is quite a dirtier solution, but avoids the extra click. Here is the pseudocode: continuation = createWebcontinuation(); if (value-returned == null) { redirectTo(externalSite + continuation.id); } else { if (value-returned == true) { etc etc } } You have to check if there is a returned value because when the user is redirected back to your site the flow will restart from the line immediately after the creation of the continuation, so you have no way to determine if this is the first time the user is entering this flow or if it's returning from the external site if not checking for the presence of the return value. Hope this helps, Simone Andrew Madu wrote: Hi, I have a flowscript function which passes some variables to an external site. The site will send back a success or failure confirmation based upon the parameters passed. What I want to do next is continue on the from the next point in time after the external site was contacted, so: I want to create some flowscript which passes variables to an external site, (https://www.externalsite.com/test.asp?contiuation-id=xxx, var1=x,var2=x) for example, gets a response back from the external site (http://www.mysite.com/continuation-id/value-returned), and based on the response sent back does something else following the initial call to the external site. How do I do this in flowscript? So what i'm thinking is something like: function getResults() { cocoon.redirectTo("https://www.externalsite.com/test.asp?contiuation-id=xxx, var1=x,var2=x") if (value-returned == 'true') { do this }else{ do this } } How do I get back to the point after cocoon.redirectTo() using the returned continuation-id? thanks in advance Andrew -- Simone Gianni
Re: cinclude usage/alternatives
Le 21 févr. 06 à 06:01, Bruyn Bill a écrit : For various reasons, I need to retrieve some markup from a remote resource, and insert my jx result inline As mentioned on this thread, you can either a) use map:aggregate to combine this remote resource with your data, and "move" it to the right place with a downstream XSLT transform or b) use cinclude to call another pipeline which gets your remote data and inserts it directly in the right place. The end result will be pretty much be same, but the advantage for b) is that you can compute the URL to be included based on the other data. ...BTW, the cinclude is really very slow... Is this the recommended method, or am I barking up the wrong tree here? Although I haven't precisely measured it, I don't think cinclude by itself is slow, it's just an inclusion of SAX events. If you're getting bad performance, you should first test your "remote resource" pipeline for speed, or maybe look at what happens downstream after the CInclude: if the inclusion causes a big document to be generated, it might be your downstream transforms which run slower. -Bertrand smime.p7s Description: S/MIME cryptographic signature
RE: cinclude usage/alternatives
Mm. I'd actually forgotten about map:aggregate. I'm not sure it fits this use-case though... does it? In this case, the dynamic part is a rendered CForm (via flowscript sendPageAndWait), but all markup application-wide should be wrapped with this static content. So I thought I'd pull that down in my simple-page2html stylesheet (stolen from sample and modified slightly). Lemme get some coffee in me and think this thorugh some more. Thanks for your help so far. Bill From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Tue 2/21/2006 4:32 AM To: users@cocoon.apache.org Subject: RE: cinclude usage/alternatives Bill Sorry, I still am not sure where the dynamic part is... what I was suggesting was: where "doc-date" might be another pipeline retrieving a static XML file and "app-graphs-{1}"/" yet other pipeline with a dynamic component. It was "xinclude", retrieving xpath data from multiple (hundreds) of XML files that I found slow. Derek >>> [EMAIL PROTECTED] 2006/02/21 01:22 PM >>> Thanks, Derek. That's what I thought exactly. But the aggregation step is the cinclude, yes? Am I going about this the right way? I have something like the following ATM: (and btw, any thoughts on the speed issue? I saw some posts from you a while back on that...) SITEMAP ... http://dev.drugfreeaz.com/treatment_ctrs/drugfreeaz.xhtml"/> - forms/view/find.xml - http://apache.org/cocoon/forms/1.0#template"; xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"; xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";> Find Treatment Provider Enter search criteria to find a provder that best suits your needs. You'll need to supply part of a provider name or a search area (zip code), but the rest of the options are optional. Search Criteria - dreamweavertemplate-page2html - http://www.w3.org/1999/XSL/Transform"; version="1.0" xmlns:html="http://www.w3.org/1999/xhtml"; exclude-result-prefixes="html"> - simple-page2html - http://www.w3.org/1999/XSL/Transform"; xmlns:inc="http://apache.org/cocoon/include/1.0"; xmlns:html="http://www.w3.org/1999/xhtml";> ... ... From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Tue 2/21/2006 12:04 AM To: users@cocoon.apache.org Subject: Re: cinclude usage/alternatives Bill Just 2c worth of thought from the side. I am not sure I understand your problem as a whole... but can you not have a pipeline with an aggregation step in it; one part of the aggregate is the static file below, and the other is a pointer to the pipeline that generates the dynamic data. You can then run the aggregated xml through a normal transform to get your result... "looking up" the dynamic section and adding it in to the element (basic XSL). Just an idea. Derek >>> [EMAIL PROTECTED] 2006/02/21 07:01:17 AM >>> For various reasons, I need to retrieve some markup from a remote resource, and insert my jx result inline. e.g., I have some remote file called wrapper.xhtml that looks like http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> http://www.w3.org/1999/xhtml";> Here is some static content and a placeholder for dynamic stuff Where I need to replace the contents of //[EMAIL PROTECTED]'webapp'] with 'whatever'. It isn't the way I would have chosen to put it together, but it seems like a reasonable requirement that I should be able to handle with the sitemap and a cinclude transform. Right? No luck though with several hours of experimentation and the usual looking through google, samples, wiki, archives, userdoc, etc. BTW, the cinclude is really very slow... Is this the recommended method, or am I barking up the wrong tree here? TIA, Bill -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <>---
RE: cinclude usage/alternatives
Bill Sorry, I still am not sure where the dynamic part is... what I was suggesting was: where "doc-date" might be another pipeline retrieving a static XML file and "app-graphs-{1}"/" yet other pipeline with a dynamic component. It was "xinclude", retrieving xpath data from multiple (hundreds) of XML files that I found slow. Derek >>> [EMAIL PROTECTED] 2006/02/21 01:22 PM >>> Thanks, Derek. That's what I thought exactly. But the aggregation step is the cinclude, yes? Am I going about this the right way? I have something like the following ATM: (and btw, any thoughts on the speed issue? I saw some posts from you a while back on that...) SITEMAP ... http://dev.drugfreeaz.com/treatment_ctrs/drugfreeaz.xhtml"/> - forms/view/find.xml - http://apache.org/cocoon/forms/1.0#template"; xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"; xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";> Find Treatment Provider Enter search criteria to find a provder that best suits your needs. You'll need to supply part of a provider name or a search area (zip code), but the rest of the options are optional. Search Criteria - dreamweavertemplate-page2html - http://www.w3.org/1999/XSL/Transform"; version="1.0" xmlns:html="http://www.w3.org/1999/xhtml"; exclude-result-prefixes="html"> - simple-page2html - http://www.w3.org/1999/XSL/Transform"; xmlns:inc="http://apache.org/cocoon/include/1.0"; xmlns:html="http://www.w3.org/1999/xhtml";> ... ... From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Tue 2/21/2006 12:04 AM To: users@cocoon.apache.org Subject: Re: cinclude usage/alternatives Bill Just 2c worth of thought from the side. I am not sure I understand your problem as a whole... but can you not have a pipeline with an aggregation step in it; one part of the aggregate is the static file below, and the other is a pointer to the pipeline that generates the dynamic data. You can then run the aggregated xml through a normal transform to get your result... "looking up" the dynamic section and adding it in to the element (basic XSL). Just an idea. Derek >>> [EMAIL PROTECTED] 2006/02/21 07:01:17 AM >>> For various reasons, I need to retrieve some markup from a remote resource, and insert my jx result inline. e.g., I have some remote file called wrapper.xhtml that looks like http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> http://www.w3.org/1999/xhtml";> Here is some static content and a placeholder for dynamic stuff Where I need to replace the contents of //[EMAIL PROTECTED]'webapp'] with 'whatever'. It isn't the way I would have chosen to put it together, but it seems like a reasonable requirement that I should be able to handle with the sitemap and a cinclude transform. Right? No luck though with several hours of experimentation and the usual looking through google, samples, wiki, archives, userdoc, etc. BTW, the cinclude is really very slow... Is this the recommended method, or am I barking up the wrong tree here? TIA, Bill -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cinclude usage/alternatives
Thanks, Derek. That's what I thought exactly. But the aggregation step is the cinclude, yes? Am I going about this the right way? I have something like the following ATM: (and btw, any thoughts on the speed issue? I saw some posts from you a while back on that...) SITEMAP ... http://dev.drugfreeaz.com/treatment_ctrs/drugfreeaz.xhtml"/> - forms/view/find.xml - http://apache.org/cocoon/forms/1.0#template"; xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"; xmlns:jx="http://apache.org/cocoon/templates/jx/1.0";> Find Treatment Provider Enter search criteria to find a provder that best suits your needs. You'll need to supply part of a provider name or a search area (zip code), but the rest of the options are optional. Search Criteria - dreamweavertemplate-page2html - http://www.w3.org/1999/XSL/Transform"; version="1.0" xmlns:html="http://www.w3.org/1999/xhtml"; exclude-result-prefixes="html"> - simple-page2html - http://www.w3.org/1999/XSL/Transform"; xmlns:inc="http://apache.org/cocoon/include/1.0"; xmlns:html="http://www.w3.org/1999/xhtml";> ... ... From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Tue 2/21/2006 12:04 AM To: users@cocoon.apache.org Subject: Re: cinclude usage/alternatives Bill Just 2c worth of thought from the side. I am not sure I understand your problem as a whole... but can you not have a pipeline with an aggregation step in it; one part of the aggregate is the static file below, and the other is a pointer to the pipeline that generates the dynamic data. You can then run the aggregated xml through a normal transform to get your result... "looking up" the dynamic section and adding it in to the element (basic XSL). Just an idea. Derek >>> [EMAIL PROTECTED] 2006/02/21 07:01:17 AM >>> For various reasons, I need to retrieve some markup from a remote resource, and insert my jx result inline. e.g., I have some remote file called wrapper.xhtml that looks like http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Here is some static content and a placeholder for dynamic stuff Where I need to replace the contents of //[EMAIL PROTECTED]'webapp'] with 'whatever'. It isn't the way I would have chosen to put it together, but it seems like a reasonable requirement that I should be able to handle with the sitemap and a cinclude transform. Right? No luck though with several hours of experimentation and the usual looking through google, samples, wiki, archives, userdoc, etc. BTW, the cinclude is really very slow... Is this the recommended method, or am I barking up the wrong tree here? TIA, Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - 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]
Flowscript continuation from external reply
Hi,I have a flowscript function which passes some variables to an external site. The site will send back a success or failure confirmation based upon the parameters passed. What I want to do next is continue on the from the next point in time after the external site was contacted, so:I want to create some flowscript which passes variables to an external site, (https://www.externalsite.com/test.asp?contiuation-id=xxx, var1=x,var2=x) for example, gets a response back from the external site (http://www.mysite.com/continuation-id/value-returned), and based on the response sent back does something else following the initial call to the external site. How do I do this in flowscript? So what i'm thinking is something like:function getResults() { cocoon.redirectTo("https://www.externalsite.com/test.asp?contiuation-id=xxx, var1=x,var2=x") if (value-returned == 'true') { do this }else{ do this }}How do I get back to the point after cocoon.redirectTo() using the returned continuation-id?thanks in advanceAndrew