Return-Path: Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: (qmail 63000 invoked from network); 4 Mar 2009 20:07:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 20:07:32 -0000 Received: (qmail 30229 invoked by uid 500); 4 Mar 2009 20:07:28 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 30203 invoked by uid 500); 4 Mar 2009 20:07:28 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 30191 invoked by uid 99); 4 Mar 2009 20:07:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 12:07:28 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 20:07:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 45833238885D; Wed, 4 Mar 2009 20:06:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@struts.apache.org From: wesw@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090304200659.45833238885D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@ + + + org.apache.struts + struts2-apps + 2.1.6 + + 4.0.0 + s2-jquery-showcase + war + s2-jquery-showcase + http://struts.apache.org + + + org.apache.struts + struts2-core + 2.1.6 + + + org.apache.struts + struts2-jquery-plugin + 1.0-SNAPSHOT + + + javax.servlet + servlet-api + 2.4 + provided + + + javax.servlet + jsp-api + 2.0 + provided + + + junit + junit + 4.5 + test + + + + s2-jquery-showcase + install + + + org.apache.maven.plugins + maven-idea-plugin + + 1.5 + target,test-output,.clover + false + + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + + 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 @@ + + + + + You must enter a message. + + + 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 @@ + + + + + + + + /WEB-INF/content/form/SimpleFormPostNonAjaxResponse-input.jsp + /WEB-INF/content/form/SimpleFormPostNonAjaxResponse.jsp + + + /WEB-INF/content/form/SimpleFormGetNonAjaxResponse-input.jsp + /WEB-INF/content/form/SimpleFormGetNonAjaxResponse.jsp + + + /WEB-INF/content/form/SimpleFormPostAjaxResponse-input.jsp + /WEB-INF/content/form/SimpleFormPostAjaxResponse.jsp + + + /WEB-INF/content/form/SimpleFormGetAjaxResponse-input.jsp + /WEB-INF/content/form/SimpleFormGetAjaxResponse.jsp + + + + \ 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" %> + + + +Hello World! + + + + + + + + +
+ + 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 - \ 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" %> + + + +Hello World! + + + + + + + + + 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" %> + + + +Hello World! + + + +your message - + + 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" %> + + + +Hello World! + + + + + + + + +
+ + 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 - \ 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" %> + + + +Hello World! + + + + + + + + + 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" %> + + + +Hello World! + + + +your message - + + 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 @@ + + + + Double A Parts Store + + + struts2 + + org.apache.struts2.dispatcher.FilterDispatcher + + + + + struts2 + /* + + + \ 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 @@ + + + + + + +SimpleFormGetAjaxResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SimpleFormGetAjaxResponse
open/s2-jquery-showcase/SimpleFormGetAjaxResponse_input.action
clickindexForm_0
pause500
verifyTextPresentYou must enter a message.
typeindexForm_msga message
clickindexForm_0
pause500
verifyTextPresenta message
+ + 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 @@ + + + + + + +SimpleFormGetNonAjaxResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SimpleFormGetNonAjaxResponse
open/s2-jquery-showcase/SimpleFormGetNonAjaxResponse_input.action
clickindexForm_0
pause500
verifyTextPresentYou must enter a message.
typeindexForm_msga message
clickindexForm_0
pause500
verifyTextPresenta message
+ + 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 @@ + + + + + + +SimpleFormPostAjaxResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SimpleFormPostAjaxResponse
open/s2-jquery-showcase/SimpleFormPostAjaxResponse_input.action
clickindexForm_0
pause500
verifyTextPresentYou must enter a message.
typeindexForm_msga message
clickindexForm_0
pause500
verifyTextPresenta message
+ + 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 @@ + + + + + + +SimpleFormPostNonAjaxResponse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SimpleFormPostNonAjaxResponse
open/s2-jquery-showcase/SimpleFormPostNonAjaxResponse_input.action
clickindexForm_0
pause500
verifyTextPresentYou must enter a message.
typeindexForm_msga message
clickindexForm_0
pause500
verifyTextPresenta message
+ + 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 @@ + + + + + + Test Suite + + + + + + + + +
Test Suite
SimpleFormPostNonAjaxResponse
SimpleFormGetNonAjaxResponse
SimpleFormPostAjaxResponse
SimpleFormGetAjaxResponse
+ + 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 @@ + + + 4.0.0 + + org.apache.struts + struts2-plugins + 2.1.6 + + org.apache.struts + struts2-jquery-plugin + 1.0-SNAPSHOT + Struts 2 JQuery Plugin + jar + + + + org.apache.struts + struts2-core + 2.1.6 + + + org.apache.struts + struts-annotations + true + + + javax.servlet + servlet-api + 2.4 + provided + + + javax.servlet + jsp-api + 2.0 + provided + + + junit + junit + 4.5 + test + + + + + install + + + org.apache.maven.plugins + maven-idea-plugin + + 1.5 + target,test-output,.clover + false + + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + org.apache.myfaces.tobago + maven-apt-plugin + 1.0.15 + + + 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 + + target + false + true + true + true + + org.apache.struts.annotations.taglib.apt.TLDAnnotationProcessorFactory + + + **/*.java + + + + + compile + + execute + + + + + + + + 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 @@ + + + + + + + + + + + + + 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> + + \ 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 != ""> + + 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> + + <#if parameters.onsubmit??> + ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")} + <#else> + ${tag.addParameter('onsubmit', "return validateForm_${parameters.id}();")} + + 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}" + + +> +<#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. + */ +--> + +<#include "/${parameters.templateDir}/simple/head.ftl" /> + + 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" /> +<#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. + */ +--> + +
+<#if parameters.align??> + align="${parameters.align?html}"<#t/> + +><#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" />