struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r752218 - in /struts/sandbox/trunk/s2-jquery-showcase/src/main: java/org/apache/struts2/jquery/actions/form/MessageAction.java webapp/WEB-INF/content/index.jsp
Date Tue, 10 Mar 2009 19:07:39 GMT
Author: wesw
Date: Tue Mar 10 19:07:39 2009
New Revision: 752218

URL: http://svn.apache.org/viewvc?rev=752218&view=rev
Log:
fixing problem with conventions urls, adding simple theme examples to index page

Modified:
    struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/form/MessageAction.java
    struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/index.jsp

Modified: struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/form/MessageAction.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/form/MessageAction.java?rev=752218&r1=752217&r2=752218&view=diff
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/form/MessageAction.java
(original)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/java/org/apache/struts2/jquery/actions/form/MessageAction.java
Tue Mar 10 19:07:39 2009
@@ -24,12 +24,22 @@
             @Action("SimpleFormPostNonAjaxResponse"),
             @Action("FormWithResetGetReqAjaxResp"),
             @Action("FormWithResetPostReqAjaxResp")
-    })
+    }) @Override 
     public String execute() {
         return ActionSupport.SUCCESS;
     }
 
-    @SkipValidation
+    @Actions({
+            @Action("/simple-theme/SimpleFormPostAjaxResponse-input"),
+            @Action("/simple-theme/SimpleFormPostNonAjaxResponse-input"),
+            @Action("/simple-theme/FormWithResetPostReqAjaxResp-input"),
+            @Action("SimpleFormGetAjaxResponse-input"),
+            @Action("SimpleFormPostAjaxResponse-input"),
+            @Action("SimpleFormGetNonAjaxResponse-input"),
+            @Action("SimpleFormPostNonAjaxResponse-input"),
+            @Action("FormWithResetGetReqAjaxResp-input"),
+            @Action("FormWithResetPostReqAjaxResp-input")
+    }) @SkipValidation @Override
     public String input() {
         return ActionSupport.INPUT;
     }

Modified: struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/index.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/index.jsp?rev=752218&r1=752217&r2=752218&view=diff
==============================================================================
--- struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/index.jsp (original)
+++ struts/sandbox/trunk/s2-jquery-showcase/src/main/webapp/WEB-INF/content/index.jsp Tue
Mar 10 19:07:39 2009
@@ -30,7 +30,18 @@
            <s:url var="url" namespace="/form" action="FormWithResetPostReqAjaxResp-input"/>
            <s:a href="%{#url}">Form With Reset Post Ajax Response</s:a>
        </li>
-
+       <li>
+           <s:url var="url" namespace="/simple-theme" action="FormWithResetPostReqAjaxResp-input"/>
+           <s:a href="%{#url}">Form With Reset Post Request Ajax Response (simple theme)</s:a>
+       </li>
+       <li>
+           <s:url var="url" namespace="/simple-theme" action="SimpleFormPostAjaxResponse-input"/>
+           <s:a href="%{#url}">Simple Form Post Ajax Response (simple theme)</s:a>
+       </li>
+       <li>
+           <s:url var="url" namespace="/simple-theme" action="SimpleFormPostNonAjaxResponse-input"/>
+           <s:a href="%{#url}">Simple Form Post Non-Ajax Response (simple theme)</s:a>
+       </li>
        <li>
            <s:url var="url" value="/form/date-input"/>
            <s:a href="%{#url}">Date Picker</s:a>



Mime
View raw message