You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2010/04/24 17:37:57 UTC

svn commit: r937636 - in /myfaces/extensions/scripting/trunk: ./ extscript-bundles/ extscript-bundles/extscript-myfaces12-bundle/ extscript-bundles/extscript-myfaces20-bundle/ extscript-core-root/ extscript-core-root/extscript-core/ extscript-core-root...

Author: werpu
Date: Sat Apr 24 15:37:56 2010
New Revision: 937636

URL: http://svn.apache.org/viewvc?rev=937636&view=rev
Log:
fixed build for maven3
fixed npe for threading conditions


Added:
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/java/org/apache/myfaces/blank/TestValidator2.java
Modified:
    myfaces/extensions/scripting/trunk/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-bundles/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-bundles/extscript-myfaces12-bundle/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-bundles/extscript-myfaces20-bundle/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-core-root/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/pom.xml
    myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/util/WeavingContext.java
    myfaces/extensions/scripting/trunk/extscript-examples/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/   (props changed)
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/pom.xml
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/facelets/groovy-taglib.xml
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/blog.xhtml
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/helloWorld.xhtml
    myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/javablog.xhtml
    myfaces/extensions/scripting/trunk/extscript-examples/pom.xml
    myfaces/extensions/scripting/trunk/pom.xml

Propchange: myfaces/extensions/scripting/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1,5 +1,5 @@
 target
-
 extscript-root.iml
 atlassian-ide-plugin.xml
 extscript-root.ipr
+.gitignore

Propchange: myfaces/extensions/scripting/trunk/extscript-bundles/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1 +1,2 @@
 *.iml
+target

Propchange: myfaces/extensions/scripting/trunk/extscript-bundles/extscript-myfaces12-bundle/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1 +1,2 @@
 extscript-myfaces12-bundle.iml
+target

Propchange: myfaces/extensions/scripting/trunk/extscript-bundles/extscript-myfaces20-bundle/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1 +1,2 @@
 extscript-myfaces20-bundle.iml
+target

Propchange: myfaces/extensions/scripting/trunk/extscript-core-root/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1 +1,2 @@
 extscript-core-root.iml
+target

Propchange: myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1 +1,2 @@
 *.iml
+target

Modified: myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/pom.xml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/pom.xml (original)
+++ myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/pom.xml Sat Apr 24 15:37:56 2010
@@ -1,3 +1,4 @@
+
 <project xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -105,8 +106,13 @@
         <plugins>
            
             <plugin>
-                <groupId>org.codehaus.mojo.groovy</groupId>
-                <artifactId>groovy-maven-plugin</artifactId>
+                <groupId>org.codehaus.gmaven</groupId>
+                <artifactId>gmaven-plugin</artifactId>
+                <version>1.2</version>
+                <configuration>
+
+                    <providerSelection>1.7</providerSelection>
+                </configuration>
                 <executions>
                     <execution>
                         <goals>
@@ -123,6 +129,19 @@
                         <artifactId>groovy-all</artifactId>
                         <version>${groovy.version}</version>
                     </dependency>
+                    <!--
+                    <dependency>
+                        <groupId>org.codehaus.gmaven.runtime</groupId>
+                        <artifactId>gmaven-runtime-1.7</artifactId>
+                        <version>1.2</version>
+                        <exclusions>
+                            <exclusion>
+                                <groupId>org.codehaus.groovy</groupId>
+                                <artifactId>groovy-all</artifactId>
+                            </exclusion>
+                        </exclusions>
+                    </dependency>
+                    -->
                 </dependencies>
             </plugin>
 

Modified: myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/util/WeavingContext.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/util/WeavingContext.java?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/util/WeavingContext.java (original)
+++ myfaces/extensions/scripting/trunk/extscript-core-root/extscript-core/src/main/java/org/apache/myfaces/extensions/scripting/core/util/WeavingContext.java Sat Apr 24 15:37:56 2010
@@ -163,11 +163,11 @@ public class WeavingContext {
      * @return true in case of being scriptable
      */
     public static boolean isScriptingEnabled() {
-        return  _enabled.get();
+        return  _enabled != null && _enabled.get();
     }
 
     public static void setScriptingEnabled(boolean enabled) {
-        _enabled = new AtomicBoolean(enabled);
+        _enabled.set(enabled);
     }
 
     /**
@@ -182,7 +182,7 @@ public class WeavingContext {
      * @param enabled true set from out filter init
      */
     public static void setFilterEnabled(boolean enabled) {
-        _filterEnabled = new AtomicBoolean(enabled);
+        _filterEnabled.set(enabled);
     }
 
     /**

Propchange: myfaces/extensions/scripting/trunk/extscript-examples/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1 +1,2 @@
 extscript-examples.iml
+target

Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces12-example/src/main/webapp/blog.xhtml Sat Apr 24 15:37:56 2010
@@ -31,7 +31,9 @@
                 <h:inputText value="#{blogView.content}"/>
 
 
-                <h:commandLink action="#{blogView.addEntry}" value="Add Blog"/>
+                <h:commandLink action="#{blogView.addEntry}" value="Add Blog">
+                     <f:ajax execute="@this" render="content"/>
+                </h:commandLink>
             </h:panelGrid>
             <h:panelGrid columns="1">
                 <h:outputText value="Blog Entries"/>

Propchange: myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Apr 24 15:37:56 2010
@@ -1 +1,2 @@
 myfaces20-example.iml
+target

Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/pom.xml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/pom.xml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/pom.xml Sat Apr 24 15:37:56 2010
@@ -74,14 +74,14 @@
         <dependency>
             <groupId>org.apache.myfaces.core</groupId>
             <artifactId>myfaces-api</artifactId>
-            <version>2.0.0-beta-3</version>
+            <version>${myfaces2.version}</version>
             <scope>compile</scope>
         </dependency>
 
         <dependency>
             <groupId>org.apache.myfaces.core</groupId>
             <artifactId>myfaces-impl</artifactId>
-            <version>2.0.0-beta-3</version>
+            <version>${myfaces2.version}</version>
             <scope>compile</scope>
         </dependency>
 
@@ -99,26 +99,29 @@
              if you want to run bean validation
              and/or MyFaces ext-val
          -->
+
+        
         <dependency>
             <groupId>org.apache.myfaces.extensions.validator</groupId>
             <artifactId>myfaces-extval-core</artifactId>
-            <version>2.0.3</version>
-            <scope>compile</scope>
+            <version>${extval.version}</version>
         </dependency>
 
+        <!--
         <dependency>
             <groupId>org.apache.myfaces.extensions.validator.validation-modules</groupId>
             <artifactId>myfaces-extval-property-validation</artifactId>
-            <version>2.0.3</version>
-            <scope>compile</scope>
+            <version>${extval.version}</version>
         </dependency>
-
+        -->
+        
         <dependency>
             <groupId>org.apache.myfaces.extensions.validator.validation-modules</groupId>
             <artifactId>myfaces-extval-bean-validation</artifactId>
-            <version>2.0.3</version>
-            <scope>compile</scope>
+            <version>${extval.version}</version>
         </dependency>
+
+        
         <dependency>
             <groupId>org.hibernate</groupId>
             <artifactId>hibernate-validator</artifactId>

Added: myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/java/org/apache/myfaces/blank/TestValidator2.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/java/org/apache/myfaces/blank/TestValidator2.java?rev=937636&view=auto
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/java/org/apache/myfaces/blank/TestValidator2.java (added)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/java/org/apache/myfaces/blank/TestValidator2.java Sat Apr 24 15:37:56 2010
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.myfaces.blank;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+
+/**
+ * @author Werner Punz (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+
+public class TestValidator2 implements Validator {
+  public void validate(FacesContext facesContext, UIComponent uiComponent, Object o) {
+    System.out.println("validating aaaa ");
+  }
+}

Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/facelets/groovy-taglib.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/facelets/groovy-taglib.xml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/facelets/groovy-taglib.xml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/facelets/groovy-taglib.xml Sat Apr 24 15:37:56 2010
@@ -9,7 +9,9 @@ http://java.sun.com/xml/ns/javaee/web-fa
     <tag>
         <tag-name>groovyvalidator</tag-name>
         <validator>
+
             <validator-id>org.apache.myfaces.groovyloader.test.TestValidator</validator-id>
+           
         </validator>
     </tag>
     <tag>

Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/blog.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/blog.xhtml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/blog.xhtml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/blog.xhtml Sat Apr 24 15:37:56 2010
@@ -1,8 +1,11 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
-      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
-      xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:grv="http://myfaces.apache.org/groovy">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:t="http://myfaces.apache.org/tomahawk"
+      xmlns:grv="http://myfaces.apache.org/groovy">
 <head>
     <title>Hello World</title>
 </head>
@@ -33,14 +36,16 @@
                     </h:panelGrid>
                     <h:panelGrid columns="2" columnClasses="label, input">
                         <h:outputText styleClass="label" value="Content"/>
-                        <h:inputTextarea value="#{blogView.content}"/>
+                        <h:inputText value="#{blogView.content}"/>
                     </h:panelGrid>
                     <hr/>
-                    <h:commandButton styleClass="btn" action="#{blogView.addEntry}" value="Add Blog Entry"/>
+                    <h:commandButton styleClass="btn" action="#{blogView.addEntry}" value="Add Blog Entry">
+                       
+                    </h:commandButton>
                 </h:panelGrid>
             </div>
 
-            <h:panelGrid columns="1" styleClass="right">
+            <h:panelGrid id="content" columns="1" styleClass="right">
                 <ui:repeat value="#{blogService.blogEntries}" var="item">
                     <h:panelGrid columns="1" styleClass="messageBox">
                         <h:panelGroup styleClass="topic">

Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/helloWorld.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/helloWorld.xhtml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/helloWorld.xhtml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/helloWorld.xhtml Sat Apr 24 15:37:56 2010
@@ -40,6 +40,7 @@
                     <br/>
                     <h:outputFormat escape="false" value="#{javatestbean.sayHello}"/>
                 </h:panelGroup>
+                <!--
                 <h:panelGroup styleClass="stdBox">
                     <h3>Converter Test 1</h3>
                     please insert "hello world" into the input field
@@ -48,6 +49,7 @@
                         <grv:testValidator1/>
                     </h:inputText>
                 </h:panelGroup>
+                -->
                 <h:panelGroup styleClass="stdBox">
                     <h3>Action Test 1</h3>
                     <h:commandButton value="Press me dynamic" action="#{testbean.doit}"/>

Modified: myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/javablog.xhtml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/javablog.xhtml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/javablog.xhtml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/myfaces20-example/src/main/webapp/javablog.xhtml Sat Apr 24 15:37:56 2010
@@ -41,7 +41,7 @@
                     </h:panelGrid>
                     <hr/>
                     <h:commandButton styleClass="btn" action="#{javaBlogView.addEntry}" value="Add Blog Entry">
-                        <f:ajax execute="@this" render="content"/>
+                        <f:ajax execute="@form" render="content"/>
                     </h:commandButton>
                 </h:panelGrid>
             </div>

Modified: myfaces/extensions/scripting/trunk/extscript-examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-examples/pom.xml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/extscript-examples/pom.xml (original)
+++ myfaces/extensions/scripting/trunk/extscript-examples/pom.xml Sat Apr 24 15:37:56 2010
@@ -49,6 +49,7 @@
         <module>spring-example</module>
     </modules>
 
+    
 
 
     <profiles>

Modified: myfaces/extensions/scripting/trunk/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/pom.xml?rev=937636&r1=937635&r2=937636&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/pom.xml (original)
+++ myfaces/extensions/scripting/trunk/pom.xml Sat Apr 24 15:37:56 2010
@@ -11,8 +11,9 @@
     
     <properties>
         <myfaces12.version>1.2.8</myfaces12.version>
-        <myfaces2.version>2.0.0-SNAPSHOT</myfaces2.version>
+        <myfaces2.version>2.0.0</myfaces2.version>
         <groovy.version>1.7.1</groovy.version>
+        <extval.version>2.0.4-SNAPSHOT</extval.version>
     </properties>
 
     <description>
@@ -64,27 +65,7 @@
                 <enabled>false</enabled>
             </snapshots>
         </repository>
-        <repository>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-            <id>apache-maven-snapshots</id>
-            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
-        </repository>
-        <repository>
-            <id>myfaces2beta3</id>
-            <url>http://people.apache.org/~lu4242/myfaces200beta3/</url>
-            <releases>
-                <enabled>true</enabled>
-            </releases>
-            <snapshots>
-                <enabled>false</enabled>
-            </snapshots>
-        </repository>
-
+        
     </repositories>
 
     <dependencies>
@@ -214,10 +195,11 @@
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>jxr-maven-plugin</artifactId>
+                <!--
                 <configuration>
                     <aggregate>true</aggregate>
                 </configuration>
-
+                -->
             </plugin>
 
             <plugin>
@@ -232,10 +214,7 @@
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>surefire-report-maven-plugin</artifactId>
-                <configuration>
-                    <parallel>classes</parallel>
-                    <threadCount>4</threadCount>
-                </configuration>
+                
             </plugin>
 
             <plugin>