struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r750134 [1/2] - in /struts/sandbox/trunk: s2-jquery-showcase/ s2-jquery-showcase/src/ s2-jquery-showcase/src/main/ s2-jquery-showcase/src/main/gen/ s2-jquery-showcase/src/main/java/ s2-jquery-showcase/src/main/java/org/ s2-jquery-showcase/s...
Date Wed, 04 Mar 2009 20:06:57 GMT
Author: wesw
Date: Wed Mar  4 20:06:55 2009
New Revision: 750134

URL: http://svn.apache.org/viewvc?rev=750134&view=rev
Log:
initial import

Added:
    struts/sandbox/trunk/s2-jquery-showcase/
    struts/sandbox/trunk/s2-jquery-showcase/pom.xml
    struts/sandbox/trunk/s2-jquery-showcase/src/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/gen/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/MessageAction.java
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/jquery/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/jquery/actions/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/jquery/actions/MessageAction-validation.xml
    struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/struts.xml
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse-input.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse-input.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse-input.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse.jsp
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/web.xml
    struts/sandbox/trunk/s2-jquery-showcase/src/test/
    struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/
    struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/
    struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetAjaxResponse
    struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetNonAjaxResponse
    struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostAjaxResponse
    struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostNonAjaxResponse
    struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests
    struts/sandbox/trunk/struts2-jquery-plugin/
    struts/sandbox/trunk/struts2-jquery-plugin/LICENSE.txt
    struts/sandbox/trunk/struts2-jquery-plugin/NOTICE.txt
    struts/sandbox/trunk/struts2-jquery-plugin/README.txt
    struts/sandbox/trunk/struts2-jquery-plugin/pom.xml
    struts/sandbox/trunk/struts2-jquery-plugin/src/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/gen/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/JQueryPluginStatics.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryForm.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryHead.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQuerySubmit.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryTextField.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryFormTag.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryHeadTag.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQuerySubmitTag.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryTextFieldTag.java
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/struts-plugin.xml
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close-validate.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-validate.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/head.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit-close.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/text.ftl
    struts/sandbox/trunk/struts2-jquery-plugin/src/site/
    struts/sandbox/trunk/struts2-jquery-plugin/src/site/docs/
    struts/sandbox/trunk/struts2-jquery-plugin/src/site/docs/form.html
    struts/sandbox/trunk/struts2-jquery-plugin/src/site/docs/head.html
    struts/sandbox/trunk/struts2-jquery-plugin/src/site/docs/submit.html
    struts/sandbox/trunk/struts2-jquery-plugin/src/site/docs/textfield.html

Added: struts/sandbox/trunk/s2-jquery-showcase/pom.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/pom.xml?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/pom.xml (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/pom.xml Wed Mar  4 20:06:55 2009
@@ -0,0 +1,65 @@
+<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">
+    <parent>
+        <groupId>org.apache.struts</groupId>
+        <artifactId>struts2-apps</artifactId>
+        <version>2.1.6</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>s2-jquery-showcase</artifactId>
+    <packaging>war</packaging>
+    <name>s2-jquery-showcase</name>
+    <url>http://struts.apache.org</url>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts2-core</artifactId>
+            <version>2.1.6</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts2-jquery-plugin</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.4</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>jsp-api</artifactId>
+            <version>2.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.5</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <finalName>s2-jquery-showcase</finalName>
+	<defaultGoal>install</defaultGoal>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-idea-plugin</artifactId>
+                <configuration>
+                    <jdkName>1.5</jdkName>
+                    <exclude>target,test-output,.clover</exclude>
+                    <useFullNames>false</useFullNames>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/MessageAction.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/MessageAction.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/MessageAction.java (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/MessageAction.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,28 @@
+package org.apache.struts2.jquery.actions;
+
+import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.interceptor.validation.SkipValidation;
+
+public class MessageAction extends ActionSupport {
+
+    private String msg ;
+
+    @Override
+    public String execute() {
+        return ActionSupport.SUCCESS;
+    }
+
+    @SkipValidation @Override
+    public String input() {
+        return ActionSupport.INPUT;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public String getMsg() {
+        return msg ;
+    }
+
+}

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/jquery/actions/MessageAction-validation.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/jquery/actions/MessageAction-validation.xml?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/jquery/actions/MessageAction-validation.xml (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/org/apache/struts2/jquery/actions/MessageAction-validation.xml Wed Mar  4 20:06:55 2009
@@ -0,0 +1,9 @@
+<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
+       "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
+<validators>
+  <field name="msg">
+      <field-validator type="requiredstring">
+          <message>You must enter a message.</message>
+      </field-validator>
+  </field>
+</validators>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/struts.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/struts.xml?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/struts.xml (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/resources/struts.xml Wed Mar  4 20:06:55 2009
@@ -0,0 +1,27 @@
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
+    "http://struts.apache.org/dtds/struts-2.0.dtd">
+
+<struts>
+
+    <package name="s2-jquery-showcase" extends="struts-default" namespace="/">
+        <default-interceptor-ref name="jsonValidationWorkflowStack"/>
+        <action name="SimpleFormPostNonAjaxResponse_*" method="{1}" class="org.apache.struts2.jquery.actions.MessageAction">
+            <result name="input">/WEB-INF/content/form/SimpleFormPostNonAjaxResponse-input.jsp</result>
+            <result>/WEB-INF/content/form/SimpleFormPostNonAjaxResponse.jsp</result>
+        </action>
+        <action name="SimpleFormGetNonAjaxResponse_*" method="{1}" class="org.apache.struts2.jquery.actions.MessageAction">
+            <result name="input">/WEB-INF/content/form/SimpleFormGetNonAjaxResponse-input.jsp</result>
+            <result>/WEB-INF/content/form/SimpleFormGetNonAjaxResponse.jsp</result>
+        </action>
+        <action name="SimpleFormPostAjaxResponse_*" method="{1}" class="org.apache.struts2.jquery.actions.MessageAction">
+            <result name="input">/WEB-INF/content/form/SimpleFormPostAjaxResponse-input.jsp</result>
+            <result>/WEB-INF/content/form/SimpleFormPostAjaxResponse.jsp</result>
+        </action>
+        <action name="SimpleFormGetAjaxResponse_*" method="{1}" class="org.apache.struts2.jquery.actions.MessageAction">
+            <result name="input">/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp</result>
+            <result>/WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp</result>
+        </action>
+    </package>
+
+</struts>
\ No newline at end of file

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,22 @@
+<%@ taglib prefix="sjx" uri="/struts-jquery-tags" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title>Hello World!</title>
+<sjx:head />
+    <script type="text/javascript">
+        function handleAjaxResponse(data, textStatus) {
+            $("#messages").append(data + "<br />\n");
+        }
+    </script>
+</head>
+<body>
+<sjx:form id="indexForm" method="get" validate="true"
+          action="SimpleFormPostAjaxResponse"
+          ajaxResult="true" ajaxResultHandler="handleAjaxResponse" >
+<sjx:textfield key="msg" />
+<sjx:submit />
+</sjx:form>
+<div id="messages"></div>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,2 @@
+<%@ taglib prefix="s" uri="/struts-tags" %>
+your message - <s:property value="msg"/>
\ No newline at end of file

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse-input.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse-input.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse-input.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse-input.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,16 @@
+<%@ taglib prefix="sjx" uri="/struts-jquery-tags" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title>Hello World!</title>
+<sjx:head />
+</head>
+<body>
+<sjx:form id="indexForm" method="get" validate="true"
+          action="SimpleFormPostNonAjaxResponse"
+          ajaxResult="false" >
+<sjx:textfield key="msg" />
+<sjx:submit />
+</sjx:form>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormGetNonAjaxResponse.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,11 @@
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title>Hello World!</title>
+<s:head />
+</head>
+<body>
+your message - <s:property value="msg"/>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse-input.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse-input.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse-input.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse-input.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,22 @@
+<%@ taglib prefix="sjx" uri="/struts-jquery-tags" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title>Hello World!</title>
+<sjx:head />
+    <script type="text/javascript">
+        function handleAjaxResponse(data, textStatus) {
+            $("#messages").append(data + "<br />\n");
+        }
+    </script>
+</head>
+<body>
+<sjx:form id="indexForm" method="post" validate="true"
+          action="SimpleFormPostAjaxResponse"
+          ajaxResult="true" ajaxResultHandler="handleAjaxResponse" >
+<sjx:textfield key="msg" />
+<sjx:submit />
+</sjx:form>
+<div id="messages"></div>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostAjaxResponse.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,2 @@
+<%@ taglib prefix="s" uri="/struts-tags" %>
+your message - <s:property value="msg"/>
\ No newline at end of file

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse-input.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse-input.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse-input.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse-input.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,16 @@
+<%@ taglib prefix="sjx" uri="/struts-jquery-tags" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title>Hello World!</title>
+<sjx:head />
+</head>
+<body>
+<sjx:form id="indexForm" method="post" validate="true"
+          action="SimpleFormPostNonAjaxResponse"
+          ajaxResult="false" >
+<sjx:textfield key="msg" />
+<sjx:submit />
+</sjx:form>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse.jsp?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse.jsp (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/form/SimpleFormPostNonAjaxResponse.jsp Wed Mar  4 20:06:55 2009
@@ -0,0 +1,11 @@
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<title>Hello World!</title>
+<s:head />
+</head>
+<body>
+your message - <s:property value="msg"/>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/web.xml?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/web.xml (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/web.xml Wed Mar  4 20:06:55 2009
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+    version="2.4">
+
+  <display-name>Double A Parts Store</display-name>
+
+  <filter>
+    <filter-name>struts2</filter-name>
+    <filter-class>
+      org.apache.struts2.dispatcher.FilterDispatcher
+    </filter-class>
+  </filter>
+
+  <filter-mapping>
+    <filter-name>struts2</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
+</web-app>
\ No newline at end of file

Added: struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetAjaxResponse
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetAjaxResponse?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetAjaxResponse (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetAjaxResponse Wed Mar  4 20:06:55 2009
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8080/s2-jquery-showcase/SimpleFormGetAjaxResponse_input.action" />
+<title>SimpleFormGetAjaxResponse</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">SimpleFormGetAjaxResponse</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/s2-jquery-showcase/SimpleFormGetAjaxResponse_input.action</td>
+	<td></td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>You must enter a message.</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>indexForm_msg</td>
+	<td>a message</td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>a message</td>
+	<td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetNonAjaxResponse
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetNonAjaxResponse?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetNonAjaxResponse (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormGetNonAjaxResponse Wed Mar  4 20:06:55 2009
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8080/s2-jquery-showcase/SimpleFormGetNonAjaxResponse_input.action" />
+<title>SimpleFormGetNonAjaxResponse</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">SimpleFormGetNonAjaxResponse</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/s2-jquery-showcase/SimpleFormGetNonAjaxResponse_input.action</td>
+	<td></td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>You must enter a message.</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>indexForm_msg</td>
+	<td>a message</td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>a message</td>
+	<td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostAjaxResponse
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostAjaxResponse?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostAjaxResponse (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostAjaxResponse Wed Mar  4 20:06:55 2009
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8080/s2-jquery-showcase/SimpleFormPostAjaxResponse_input.action" />
+<title>SimpleFormPostAjaxResponse</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">SimpleFormPostAjaxResponse</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/s2-jquery-showcase/SimpleFormPostAjaxResponse_input.action</td>
+	<td></td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>You must enter a message.</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>indexForm_msg</td>
+	<td>a message</td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>a message</td>
+	<td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostNonAjaxResponse
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostNonAjaxResponse?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostNonAjaxResponse (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/SimpleFormPostNonAjaxResponse Wed Mar  4 20:06:55 2009
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8080/s2-jquery-showcase/SimpleFormPostNonAjaxResponse_input.action" />
+<title>SimpleFormPostNonAjaxResponse</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">SimpleFormPostNonAjaxResponse</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/s2-jquery-showcase/SimpleFormPostNonAjaxResponse_input.action</td>
+	<td></td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>You must enter a message.</td>
+	<td></td>
+</tr>
+<tr>
+	<td>type</td>
+	<td>indexForm_msg</td>
+	<td>a message</td>
+</tr>
+<tr>
+	<td>click</td>
+	<td>indexForm_0</td>
+	<td></td>
+</tr>
+<tr>
+	<td>pause</td>
+	<td>500</td>
+	<td></td>
+</tr>
+<tr>
+	<td>verifyTextPresent</td>
+	<td>a message</td>
+	<td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>

Added: struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests (added)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/test/resources/selenium/s2-jquery-plugin-selenium-tests Wed Mar  4 20:06:55 2009
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
+  <title>Test Suite</title>
+</head>
+<body>
+<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
+<tr><td><b>Test Suite</b></td></tr>
+<tr><td><a href="SimpleFormPostNonAjaxResponse">SimpleFormPostNonAjaxResponse</a></td></tr>
+<tr><td><a href="SimpleFormGetNonAjaxResponse">SimpleFormGetNonAjaxResponse</a></td></tr>
+<tr><td><a href="SimpleFormPostAjaxResponse">SimpleFormPostAjaxResponse</a></td></tr>
+<tr><td><a href="SimpleFormGetAjaxResponse">SimpleFormGetAjaxResponse</a></td></tr>
+</tbody></table>
+</body>
+</html>

Added: struts/sandbox/trunk/struts2-jquery-plugin/LICENSE.txt
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/LICENSE.txt?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/LICENSE.txt (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/LICENSE.txt Wed Mar  4 20:06:55 2009
@@ -0,0 +1,174 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.

Added: struts/sandbox/trunk/struts2-jquery-plugin/NOTICE.txt
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/NOTICE.txt?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/NOTICE.txt (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/NOTICE.txt Wed Mar  4 20:06:55 2009
@@ -0,0 +1,6 @@
+Apache Struts
+
+Copyright 2006 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/

Added: struts/sandbox/trunk/struts2-jquery-plugin/README.txt
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/README.txt?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/README.txt (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/README.txt Wed Mar  4 20:06:55 2009
@@ -0,0 +1,10 @@
+README.txt - plugin
+
+This is an "empty" Struts 2 plugin that you can use as the basis for a new
+plugin.
+
+For more on Struts plugins, see 
+
+* http://struts.apache.org/2.x/docs/plugins.html
+
+----------------------------------------------------------------------------

Added: struts/sandbox/trunk/struts2-jquery-plugin/pom.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/pom.xml?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/pom.xml (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/pom.xml Wed Mar  4 20:06:55 2009
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.struts</groupId>
+        <artifactId>struts2-plugins</artifactId>
+        <version>2.1.6</version>
+    </parent>
+    <groupId>org.apache.struts</groupId>
+    <artifactId>struts2-jquery-plugin</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <name>Struts 2 JQuery Plugin</name>
+    <packaging>jar</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts2-core</artifactId>
+            <version>2.1.6</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts-annotations</artifactId>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.4</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>jsp-api</artifactId>
+            <version>2.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.5</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <defaultGoal>install</defaultGoal>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-idea-plugin</artifactId>
+                <configuration>
+                    <jdkName>1.5</jdkName>
+                    <exclude>target,test-output,.clover</exclude>
+                    <useFullNames>false</useFullNames>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.myfaces.tobago</groupId>
+                <artifactId>maven-apt-plugin</artifactId>
+                <version>1.0.15</version>
+                <configuration>
+                    <A>
+                        uri=/struts-jquery-tags,tlibVersion=2.2.3,jspVersion=2.0,shortName=sjx,displayName="Struts JQuery Tags",
+                        outFile=${basedir}/target/classes/META-INF/struts-jquery-tags.tld,
+                        description="Struts AJAX tags based on JQuery.",
+                        outTemplatesDir=${basedir}/src/site/docs
+                    </A>
+                    <resourceTargetPath>target</resourceTargetPath>
+                    <fork>false</fork>
+                    <force>true</force>
+                    <nocompile>true</nocompile>
+                    <showWarnings>true</showWarnings>
+                    <factory>
+                        org.apache.struts.annotations.taglib.apt.TLDAnnotationProcessorFactory
+                    </factory>
+                    <includes>
+                        <include>**/*.java</include>
+                    </includes>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>execute</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/JQueryPluginStatics.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/JQueryPluginStatics.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/JQueryPluginStatics.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/JQueryPluginStatics.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,13 @@
+package org.apache.struts2.jquery;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 2, 2009
+ * Time: 1:22:20 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class JQueryPluginStatics {
+
+    public static final String THEME_NAME = "jquery";
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryForm.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryForm.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryForm.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryForm.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,64 @@
+package org.apache.struts2.jquery.components;
+
+import org.apache.struts2.components.Form;
+import org.apache.struts2.views.annotations.StrutsTagAttribute;
+import org.apache.struts2.views.annotations.StrutsTag;
+import org.apache.struts2.jquery.JQueryPluginStatics;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 1, 2009
+ * Time: 8:11:29 PM
+ * To change this template use File | Settings | File Templates.
+ */
+@StrutsTag(
+    name="form",
+    tldTagClass="org.apache.struts2.jquery.views.jsp.ui.JQueryFormTag",
+    description="Renders an input form",
+    allowDynamicAttributes=true)
+public class JQueryForm extends Form {
+
+    private String ajaxResult ;
+    private String ajaxResultHandler ;
+
+
+    public JQueryForm(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
+        super(stack, request, response);
+    }
+
+    @Override
+    public void evaluateParams() {
+        super.evaluateParams();
+
+        if (ajaxResult != null ) {
+            addParameter("ajaxResult", findValue(ajaxResult, Boolean.class));
+        }
+        if (ajaxResultHandler != null ) {
+            addParameter("ajaxResultHandler", findString(ajaxResultHandler));
+        }
+    }
+
+    @Override
+    public String getTheme() {
+        return JQueryPluginStatics.THEME_NAME;
+    }
+
+    @StrutsTagAttribute(description="for specifying whether the result of the action of this form will be processed " +
+        "by javascript, or if the form should be posted like a normal", type="Boolean", defaultValue="true")
+    public void setAjaxResult(String ajaxResult) {
+        this.ajaxResult = ajaxResult;
+    }
+
+    @StrutsTagAttribute(description="if the form posting will result in an ajax response, then a handler for the data "+
+        " must be specified. Whether the response is XML, JSON, text or an HTML snippet, it will be passed to this "
+            + "handler", type="String")
+    public void setAjaxResultHandler(String ajaxResultHandler) {
+        this.ajaxResultHandler = ajaxResultHandler ;
+    }
+    
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryHead.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryHead.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryHead.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryHead.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,34 @@
+package org.apache.struts2.jquery.components;
+
+import org.apache.struts2.components.Head;
+import org.apache.struts2.views.annotations.StrutsTag;
+import org.apache.struts2.jquery.JQueryPluginStatics;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpServletRequest;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 2, 2009
+ * Time: 1:14:11 PM
+ * To change this template use File | Settings | File Templates.
+ */
+@StrutsTag(
+    name="head",
+    tldTagClass="org.apache.struts2.jquery.views.jsp.ui.JQueryHeadTag",
+    description="Renders an Javscript tags and CSS links appropriate for using the struts2-jquery-plugin",
+    allowDynamicAttributes=false)
+public class JQueryHead extends Head {
+
+    public JQueryHead(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
+        super(stack, request, response);
+    }
+
+    @Override
+    public String getTheme() {
+        return JQueryPluginStatics.THEME_NAME;
+    }
+
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQuerySubmit.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQuerySubmit.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQuerySubmit.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQuerySubmit.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,33 @@
+package org.apache.struts2.jquery.components;
+
+import org.apache.struts2.components.Submit;
+import org.apache.struts2.views.annotations.StrutsTag;
+import org.apache.struts2.jquery.JQueryPluginStatics;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 2, 2009
+ * Time: 4:01:31 PM
+ * To change this template use File | Settings | File Templates.
+ */
+@StrutsTag(
+    name="submit",
+    tldTagClass="org.apache.struts2.jquery.views.jsp.ui.JQuerySubmitTag",
+    description="Render a submit button",
+    allowDynamicAttributes=true)
+public class JQuerySubmit extends Submit {
+
+    public JQuerySubmit(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
+        super(stack, request, response);
+    }
+
+    @Override
+    public String getTheme() {
+        return JQueryPluginStatics.THEME_NAME;
+    }
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryTextField.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryTextField.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryTextField.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/components/JQueryTextField.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,33 @@
+package org.apache.struts2.jquery.components;
+
+import org.apache.struts2.components.TextField;
+import org.apache.struts2.views.annotations.StrutsTag;
+import org.apache.struts2.jquery.JQueryPluginStatics;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 2, 2009
+ * Time: 3:18:30 PM
+ * To change this template use File | Settings | File Templates.
+ */
+@StrutsTag(
+    name="textfield",
+    tldTagClass="org.apache.struts2.jquery.views.jsp.ui.JQueryTextFieldTag",
+    description="Render an HTML input field of type text",
+    allowDynamicAttributes=true)
+public class JQueryTextField extends TextField {
+
+    public JQueryTextField(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
+        super(stack, request, response);
+    }
+
+    @Override
+    public String getTheme() {
+        return JQueryPluginStatics.THEME_NAME;
+    }
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryFormTag.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryFormTag.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryFormTag.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryFormTag.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,44 @@
+package org.apache.struts2.jquery.views.jsp.ui;
+
+import org.apache.struts2.views.jsp.ui.FormTag;
+import org.apache.struts2.components.Component;
+import org.apache.struts2.jquery.components.JQueryForm;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 1, 2009
+ * Time: 8:54:46 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class JQueryFormTag extends FormTag {
+
+    // TODO the ajaxResult is making its way to the HTML, need to fix that
+    private String ajaxResult ;
+    private String ajaxResultHandler ;
+
+    @Override
+    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
+        return new JQueryForm(stack, req, res);
+    }
+
+    @Override
+    protected void populateParams() {
+        super.populateParams();
+        JQueryForm form = ((JQueryForm) component);
+        form.setAjaxResult(ajaxResult);
+        form.setAjaxResultHandler(ajaxResultHandler);
+    }
+
+    public void setAjaxResult(String ajaxResult) {
+        this.ajaxResult = ajaxResult;
+    }
+
+    public void setAjaxResultHandler(String ajaxResultHandler) {
+        this.ajaxResultHandler = ajaxResultHandler ;
+    }
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryHeadTag.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryHeadTag.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryHeadTag.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryHeadTag.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,33 @@
+package org.apache.struts2.jquery.views.jsp.ui;
+
+import org.apache.struts2.views.jsp.ui.HeadTag;
+import org.apache.struts2.components.Component;
+import org.apache.struts2.jquery.components.JQueryHead;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 2, 2009
+ * Time: 1:14:21 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class JQueryHeadTag extends HeadTag {
+
+    @Override
+    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
+        return new JQueryHead(stack, req, res);
+    }
+
+    @Override
+    protected void populateParams() {
+        super.populateParams();
+        JQueryHead head = (JQueryHead) component ;
+        // set new parameters in here, if we take some
+    }
+
+    
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQuerySubmitTag.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQuerySubmitTag.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQuerySubmitTag.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQuerySubmitTag.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,31 @@
+package org.apache.struts2.jquery.views.jsp.ui;
+
+import org.apache.struts2.views.jsp.ui.SubmitTag;
+import org.apache.struts2.components.Component;
+import org.apache.struts2.jquery.components.JQuerySubmit;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 2, 2009
+ * Time: 4:04:02 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class JQuerySubmitTag extends SubmitTag {
+
+    @Override
+    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
+        return new JQuerySubmit(stack, req, res);
+    }
+
+    @Override
+    protected void populateParams() {
+        super.populateParams();
+        JQuerySubmit submit = (JQuerySubmit) component;
+        // add custom params here
+    }
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryTextFieldTag.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryTextFieldTag.java?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryTextFieldTag.java (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/java/org/apache/struts2/jquery/views/jsp/ui/JQueryTextFieldTag.java Wed Mar  4 20:06:55 2009
@@ -0,0 +1,31 @@
+package org.apache.struts2.jquery.views.jsp.ui;
+
+import org.apache.struts2.views.jsp.ui.TextFieldTag;
+import org.apache.struts2.components.Component;
+import org.apache.struts2.jquery.components.JQueryTextField;
+import com.opensymphony.xwork2.util.ValueStack;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: wesw
+ * Date: Mar 2, 2009
+ * Time: 3:21:18 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class JQueryTextFieldTag extends TextFieldTag {
+
+    @Override
+    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
+        return new JQueryTextField(stack, req, res);
+    }
+
+    @Override
+    protected void populateParams() {
+        super.populateParams();
+        JQueryTextField textField = (JQueryTextField) component;
+        // add custom stuff here 
+    }
+}

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/struts-plugin.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/struts-plugin.xml?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/struts-plugin.xml (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/struts-plugin.xml Wed Mar  4 20:06:55 2009
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
+    "http://struts.apache.org/dtds/struts-2.0.dtd">
+    
+<struts>
+
+    <!-- 
+       Define new Struts beans that implement key interfaces or extend existing objects.
+       
+       This is an example of a bean that provides a new ObjectFactory:
+    
+    <bean type="com.opensymphony.xwork2.ObjectFactory" name="myObjectFactory" class="com.mycompany.myapp.MyObjectFactory" />
+
+       This example adds a new template engine for the Struts UI tags:
+
+    <bean type="org.apache.struts2.components.template.TemplateEngine" name="myEngine" class="com.mycompany.myapp.MyTemplateEngine" />
+    
+    -->
+
+    <!-- 
+       You can also define or override constants to plug in your custom beans into the Struts framework or provide customization
+       options for plugin users.
+
+       This is an example of making your new ObjectFactory, defined above, the default ObjectFactory for the framework:
+
+    <constant name="struts.objectFactory" value="myObjectFactory" />
+
+       Or perhaps you want to provide a configuration option for the plugin user.  Define a constant here, then have it injected
+       into your bean:
+
+    <constant name="my.configuration.option" value="myValue" />
+
+    -->
+
+    <!--
+       Finally, you can define your own interceptors, results, and action packages.
+
+       In this example, we create a package that defines a result: -->
+    <!--
+    <package name="myPlugin-default">
+        <result-types>
+            <result-type name="myResult" class="org.apache.struts.MyResult"/>
+        </result-types>
+    </package>    
+    -->
+</struts>

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close-validate.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close-validate.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close-validate.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close-validate.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,82 @@
+<#--
+/*
+ * $Id: form-close-validate.ftl 720258 2008-11-24 19:05:16Z musachy $
+ *
+ * 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.
+ */
+-->
+<#if parameters.validate?default(true) == true>
+<script type="text/javascript">
+<#--TODO add tests for funky datatypes like Date obj returned from the datepicker
+    TODO consider ids that contain a period... valid for struts, invalid for jquery
+    -->
+    function validateForm_${parameters.id}() {
+        var formData = {'struts.enableJSONValidation': true};
+        $("#${parameters.id}").find(":input").each( function() {
+            formData[$(this).attr('name')] = $(this).val();
+        });
+<#--
+        // var formData = $("#${parameters.id}").serialize() + '&struts.enableJSONValidation=true';
+
+var debugStr = "";
+jQuery.each(formData, function(i, val) {
+    debugStr = debugStr + i + "=>" + val + ", ";
+});
+alert("formData = " + debugStr); -->
+
+<#if parameters.method?contains("post") >
+        $.post("${parameters.action}", formData, validateFormCb_${parameters.id} );
+<#else>
+        $.get("${parameters.action}", formData, validateFormCb_${parameters.id} );
+</#if>
+        return false;
+    }
+
+    function validateFormCb_${parameters.id}( responseText, textStatus ) {
+        // var form = $("${parameters.id}").get(0); // need the actual DOM element, not the JQuery obj
+        var form = document.getElementById("${parameters.id}");
+        //clear previous validation errors, if any
+        StrutsUtils.clearValidationErrors(form);
+
+        //get errors from response
+        var errorsObject = StrutsUtils.getValidationErrors(responseText);
+
+        //show errors, if any
+        if(errorsObject && errorsObject.fieldErrors) {
+            StrutsUtils.showValidationErrors(form, errorsObject);
+        }
+        else {
+<#if (parameters.ajaxResult?default(false) == true ) && parameters.method?contains("post")>
+            var formData = { };
+            $("#${parameters.id}").find(":input").each( function() {
+                formData[$(this).attr('name')] = $(this).val();
+            });
+            $.post("${parameters.action}", formData, ${parameters.ajaxResultHandler} );
+<#elseif (parameters.ajaxResult?default(false) == true )>
+            var formData = { };
+            $("#${parameters.id}").find(":input").each( function() {
+                formData[$(this).attr('name')] = $(this).val();
+            });
+            $.get("${parameters.action}", formData, ${parameters.ajaxResultHandler} );
+<#else>
+            form.submit();
+</#if>
+        }
+    }
+</script>
+</#if>
\ No newline at end of file

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-close.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,36 @@
+<#--
+/*
+ * $Id: form-close.ftl 590812 2007-10-31 20:32:54Z apetrelli $
+ *
+ * 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.
+ */
+ TODO Need to check on elements like inputtransferselect and doubleselect
+-->
+<#include "/${parameters.templateDir}/xhtml/control-close.ftl" />
+<#include "/${parameters.templateDir}/simple/form-close.ftl" />
+<#include "/${parameters.templateDir}/jquery/form-close-validate.ftl" />
+<#if parameters.focusElement?if_exists != "">
+<script type="text/javascript">
+    StrutsUtils.addOnLoad(function() {
+        var element = document.getElementById("${parameters.focusElement?html}");
+        if(element) {
+            element.focus();
+        }
+    });
+</script>
+</#if>

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-validate.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-validate.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-validate.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form-validate.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,32 @@
+<#--
+/*
+ * $Id: form-validate.ftl 720258 2008-11-24 19:05:16Z musachy $
+ *
+ * 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.
+ */
+--><#--
+   TODO rather than going with traditional onclick handler, it would be nice to move to $().live("click", ...
+-->
+<#if parameters.validate?default(true) == true>
+	<script type="text/javascript" src="${base}/struts/xhtml/validation.js"></script>
+	<#if parameters.onsubmit??>
+		${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")}
+	<#else>
+		${tag.addParameter('onsubmit', "return validateForm_${parameters.id}();")}
+	</#if>
+</#if>

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/form.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,33 @@
+<#--
+/*
+ * $Id: form.ftl 720258 2008-11-24 19:05:16Z musachy $
+ *
+ * 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.
+ */
+-->
+<#include "/${parameters.templateDir}/jquery/form-validate.ftl" />
+<#include "/${parameters.templateDir}/simple/form-common.ftl" />
+<#if parameters.validate?default(true) == true>
+  onreset="${parameters.onreset?default('clearErrorMessages(this);clearErrorLabels(this);')}"
+<#else>
+  <#if parameters.onreset??>
+  onreset="${parameters.onreset?html}"
+  </#if>
+</#if>
+>
+<#include "/${parameters.templateDir}/xhtml/control.ftl" />
\ No newline at end of file

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/head.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/head.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/head.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/head.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,26 @@
+<#--
+/*
+ * $Id: head.ftl 590812 2007-10-31 20:32:54Z apetrelli $
+ *
+ * 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.
+ */
+-->
+<link rel="stylesheet" href="<@s.url value='/struts/xhtml/styles.css' includeParams='none' encode='false' />" type="text/css"/>
+<#include "/${parameters.templateDir}/simple/head.ftl" />
+
+<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript"></script>

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit-close.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit-close.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit-close.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit-close.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,3 @@
+<#include "/${parameters.templateDir}/simple/submit-close.ftl" />
+</div><#t/>
+<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/submit.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,29 @@
+<#--
+/*
+ * $Id: submit.ftl 720258 2008-11-24 19:05:16Z musachy $
+ *
+ * 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.
+ */
+-->
+<tr>
+    <td colspan="2"><div <#rt/>
+<#if parameters.align??>
+    align="${parameters.align?html}"<#t/>
+</#if>
+><#t/>
+<#include "/${parameters.templateDir}/simple/submit.ftl" />

Added: struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/text.ftl
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/text.ftl?rev=750134&view=auto
==============================================================================
--- struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/text.ftl (added)
+++ struts/sandbox/trunk/struts2-jquery-plugin/src/main/resources/template/jquery/text.ftl Wed Mar  4 20:06:55 2009
@@ -0,0 +1,25 @@
+<#--
+/*
+ * $Id: text.ftl 590812 2007-10-31 20:32:54Z apetrelli $
+ *
+ * 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.
+ */
+-->
+<#include "/${parameters.templateDir}/xhtml/controlheader.ftl" />
+<#include "/${parameters.templateDir}/simple/text.ftl" />
+<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />



Mime
View raw message