You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2007/10/16 21:15:22 UTC

svn commit: r585227 - in /myfaces/tobago/trunk: example/sandbox/ sandbox/ sandbox/src/main/java/org/apache/myfaces/tobago/facelets/ sandbox/src/main/resources/META-INF/

Author: lofwyr
Date: Tue Oct 16 12:15:21 2007
New Revision: 585227

URL: http://svn.apache.org/viewvc?rev=585227&view=rev
Log:
Add facelets support for the sandbox components

Added:
    myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/facelets/
    myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/facelets/TobagoSandboxTagLibrary.java
    myfaces/tobago/trunk/sandbox/src/main/resources/META-INF/tobago-sandbox.taglib.xml
Modified:
    myfaces/tobago/trunk/example/sandbox/pom.xml
    myfaces/tobago/trunk/sandbox/pom.xml

Modified: myfaces/tobago/trunk/example/sandbox/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/sandbox/pom.xml?rev=585227&r1=585226&r2=585227&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/sandbox/pom.xml (original)
+++ myfaces/tobago/trunk/example/sandbox/pom.xml Tue Oct 16 12:15:21 2007
@@ -37,6 +37,38 @@
           <url>http://localhost:8080/manager</url>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.myfaces.tobago</groupId>
+        <artifactId>maven-apt-plugin</artifactId>
+        <version>${project.version}</version>
+        <executions>
+          <execution>
+            <id>tobago-facelet-sandbox-taglib</id>
+            <goals><goal>execute</goal></goals>
+            <phase>validate</phase>
+            <configuration>
+              <excludes>
+                <exclude>org/apache/myfaces/tobago/*</exclude>
+              </excludes>
+              <includes>
+                <include>org/apache/myfaces/tobago/taglib/component/*</include>
+                <include>org/apache/myfaces/tobago/taglib/decl/*</include>
+              </includes>
+              <aptSourceRoots>
+                <aptSourceRoot>${project.build.directory}/tobago-core-sources</aptSourceRoot>
+              </aptSourceRoots>
+              <targetFiles>
+                <targetFile>tobago-sandbox.taglib.xml</targetFile>
+              </targetFiles>
+              <resourceTargetPath>META-INF</resourceTargetPath>
+              <generated>target/generated-sources</generated>
+              <factory>org.apache.myfaces.tobago.apt.FaceletAnnotationProcessorFactory</factory>
+              <nocompile>true</nocompile>
+              <encoding>UTF-8</encoding>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 

Modified: myfaces/tobago/trunk/sandbox/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/pom.xml?rev=585227&r1=585226&r2=585227&view=diff
==============================================================================
--- myfaces/tobago/trunk/sandbox/pom.xml (original)
+++ myfaces/tobago/trunk/sandbox/pom.xml Tue Oct 16 12:15:21 2007
@@ -207,6 +207,11 @@
       <scope>provided</scope>
       <optional>true</optional>
     </dependency>
+    <dependency>
+      <groupId>com.sun.facelets</groupId>
+      <artifactId>jsf-facelets</artifactId>
+      <version>${facelets.version}</version>
+    </dependency>
 
   </dependencies>
 
@@ -332,7 +337,7 @@
                   <attach>true</attach>
                   <verify>true</verify>
                   <verifyClasspath>
-                     <element>${java14.home}/lib/rt.jar</element>
+                     <element>/System/Library/Frameworks/JavaVM.framework/Versions/1.4/Classes/classes.jar</element>
                   </verifyClasspath>
                 </configuration>
               </execution>

Added: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/facelets/TobagoSandboxTagLibrary.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/facelets/TobagoSandboxTagLibrary.java?rev=585227&view=auto
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/facelets/TobagoSandboxTagLibrary.java (added)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/facelets/TobagoSandboxTagLibrary.java Tue Oct 16 12:15:21 2007
@@ -0,0 +1,26 @@
+package org.apache.myfaces.tobago.facelets;
+
+import com.sun.facelets.tag.AbstractTagLibrary;
+
+/**
+ * User: lofwyr
+ * Date: 15.10.2007 15:08:23
+ */
+public class TobagoSandboxTagLibrary extends AbstractTagLibrary {
+
+  public static final String NAMESPACE = "http://myfaces.apache.org/tobago/sandbox";
+
+  public static final TobagoSandboxTagLibrary INSTANCE = new TobagoSandboxTagLibrary();
+
+  public TobagoSandboxTagLibrary() {
+
+    super(NAMESPACE);
+
+    addComponent("tree", "org.apache.myfaces.tobago.Tree", "Tree", TobagoComponentHandler.class);
+
+    addComponent("treeNode", "org.apache.myfaces.tobago.TreeNode", "TreeNode", TobagoComponentHandler.class);
+
+    addComponent("treeData", "org.apache.myfaces.tobago.TreeData", "TreeData", TobagoComponentHandler.class);
+
+  }
+}

Added: myfaces/tobago/trunk/sandbox/src/main/resources/META-INF/tobago-sandbox.taglib.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/resources/META-INF/tobago-sandbox.taglib.xml?rev=585227&view=auto
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/resources/META-INF/tobago-sandbox.taglib.xml (added)
+++ myfaces/tobago/trunk/sandbox/src/main/resources/META-INF/tobago-sandbox.taglib.xml Tue Oct 16 12:15:21 2007
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
+<facelet-taglib>
+  <library-class>org.apache.myfaces.tobago.facelets.TobagoSandboxTagLibrary</library-class>
+</facelet-taglib>