cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <Andre.Juf...@oulu.fi>
Subject Re: Linking/including mutiple flowscript files
Date Fri, 14 Oct 2005 12:35:25 GMT
Derek Hohls wrote:
> Thanks Andre!
>  
> I assume any changes to file such as "hibernate.js"
> would immediately show up in the master flowscript?

Yes, it should.

> 
> 
>  >>> Andre.Juffer@oulu.fi 2005/10/14 12:28:16 PM >>>
> Derek Hohls wrote:
>  > Is it possible to have one "master" flowscript file
>  > which links or includes other "child" flowscript files,
>  > in much the same way as XSL uses the "include"
>  > statement?
> 
> You could use something like
> 
> cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
> cocoon.load("context:/app/flow/hibernate.js");
> 
> 
> which you would place at the top of your master flowscript file. All the
> function listed in hibernate.js (for example) are visible in your master
>   file. There would be no need to define the hibernate.js in your
> sitemap, just for instance
> 
>    <map:flow language="javascript">
>      <map:script src="flow/your-master-flowscript-file.js"/>
>    </map:flow>
> 
> 
> 
>  >
>  > If so, how?; if not, what is the best design approach
>  > for ensuring a clean design around location of logic
>  > in appropriate places?
>  > 
>  > Thanks
>  > Derek
>  >
>  >
> 
> 
> -- 
> Andre H. Juffer              | Phone: +358-8-553 1161
> The Biocenter and            | Fax: +358-8-553-1141
>      the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
> University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/ 
> <http://www.biochem.oulu.fi/Biocomputing/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> -- 
> 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 CSIR 
> HelpDesk <mailto:HelpDesk@csir.co.za>
> 
> 
> This message has been scanned for viruses and dangerous content by 
> *MailScanner* <http://www.mailscanner.info/>,
> and is believed to be clean. MailScanner thanks Transtec Computers 
> <http://www.transtec.co.uk/> for their support.
> 


-- 
Andre H. Juffer              | Phone: +358-8-553 1161
The Biocenter and            | Fax: +358-8-553-1141
     the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message