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 10:28:16 GMT
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/

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


Mime
View raw message