You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2010/01/06 14:59:17 UTC

[Myfaces Wiki] Update of "Extensions/Scripting/Setup" by WernerPunz

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The "Extensions/Scripting/Setup" page has been changed by WernerPunz.
http://wiki.apache.org/myfaces/Extensions/Scripting/Setup?action=diff&rev1=6&rev2=7

--------------------------------------------------

   * Ext-Scripting and its dependencies has to be added to the myfaces installation
   * Several entries in the web.xml have to be added (see below)
   * The paths to the scripts have to be present (see also below)
+ 
+ 
+ ==== Setup via maven ====
+ 
+ The easiest way once Extension scripting is compiled is probably a setup via maven (once a release is out the compile step can be skipped)
+ 
+ Depending on your configuration and preferred JDK version you can add following entries to your Maven '''pom.xml''' to enable
+ '''Ext-Scripting'''
+ 
+  * JDK 5 + JSF 1.2
+ 
+ {{{
+   <dependency>
+       <groupId>org.apache.myfaces.extension-scripting</groupId>
+       <artifactId>core</artifactId>
+       <version>1.0-SNAPSHOT</version>
+   </dependency>
+ 
+ 
+   <dependency>
+      <groupId>org.apache.myfaces.extension-scripting</groupId>
+      <artifactId>myfaces12-extensions</artifactId>
+      <version>1.0-SNAPSHOT</version>
+   </dependency>
+ }}}
+ 
+ As you can see two imports, the core, which is basically the kernel of '''Ext-Scripting''' and the MyFaces 1.2 extension.
+ 
+ Extension scripting is highly modular, a very small core defines the base behavior of the system with extensions supporting various aspects.
+ 
+ The same configuration under Java 6 would look like:
+ 
+ {{{
+   <dependency>
+       <groupId>org.apache.myfaces.extension-scripting</groupId>
+       <artifactId>core</artifactId>
+       <version>1.0-SNAPSHOT</version>
+   </dependency>
+ 
+ 
+   <dependency>
+      <groupId>org.apache.myfaces.extension-scripting</groupId>
+      <artifactId>myfaces12-extensions</artifactId>
+      <version>1.0-SNAPSHOT</version>
+   </dependency>
+ 
+    <dependency>
+      <groupId>org.apache.myfaces.extension-scripting</groupId>
+      <artifactId>core-java6</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
+ }}}
+ 
+ 
+ In this configuration the java compiler API is used if a valid java 6+ installation is present and used.
+ 
+ For MyFaces 2.0 following configurations are valid
+ 
+ {{{
+   <dependency>
+       <groupId>org.apache.myfaces.extension-scripting</groupId>
+       <artifactId>core</artifactId>
+       <version>1.0-SNAPSHOT</version>
+   </dependency>
+ 
+ 
+   <dependency>
+      <groupId>org.apache.myfaces.extension-scripting</groupId>
+      <artifactId>myfaces20-extensions</artifactId>
+      <version>1.0-SNAPSHOT</version>
+   </dependency>
+ }}}
+ 
+ 
+ for a java 5 environment
+ 
+ {{{
+   <dependency>
+       <groupId>org.apache.myfaces.extension-scripting</groupId>
+       <artifactId>core</artifactId>
+       <version>1.0-SNAPSHOT</version>
+   </dependency>
+ 
+ 
+   <dependency>
+      <groupId>org.apache.myfaces.extension-scripting</groupId>
+      <artifactId>myfaces20-extensions</artifactId>
+      <version>1.0-SNAPSHOT</version>
+   </dependency>
+ 
+    <dependency>
+      <groupId>org.apache.myfaces.extension-scripting</groupId>
+      <artifactId>core-java6</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
+ }}}
+ 
+ For a java 6 environment.
+ 
+ 
+ 
  
  ==== web.xml Filter ====
  '''Ext-Scripting''' relies on several entries to be present in the web.xml to function properly.