You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mu...@apache.org on 2007/05/20 23:53:33 UTC

svn commit: r539956 - in /struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms: index.jsp test1.jsp test2.jsp test3.jsp

Author: musachy
Date: Sun May 20 14:53:32 2007
New Revision: 539956

URL: http://svn.apache.org/viewvc?view=rev&rev=539956
Log:
Cleanup Remote Forms examples

Removed:
    struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/test1.jsp
    struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/test2.jsp
    struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/test3.jsp
Modified:
    struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp

Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp?view=diff&rev=539956&r1=539955&r2=539956
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp (original)
+++ struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp Sun May 20 14:53:32 2007
@@ -8,9 +8,9 @@
     <s:head theme="ajax"/>
 
     <script language="JavaScript" type="text/javascript">
-        dojo.event.topic.subscribe("/beforeSubmit", function(data, type, e) {
-            alert('you can manipulate the form before it gets submitted. To cancel the submit event set e.cancel=true');
-            e.cancel = true;
+        dojo.event.topic.subscribe("/beforeSubmit", function(event, widget) {
+            alert('you can manipulate the form before it gets submitted. To cancel the submit event set event.cancel=true');
+            event.cancel = true;
         });
     </script>
 
@@ -23,7 +23,7 @@
 
 <br /><br />
 Remote form replacing another div:<br/>
-<sx:form
+<s:form
         id='theForm2'
         cssStyle="border: 1px solid green;"
         action='AjaxRemoteForm'
@@ -33,11 +33,11 @@
 
     <sx:submit value="GO2" targets="two"/>
 
-</sx:form>
+</s:form>
 
 <br /><br />
 Remote form replacing the forms content:<br/>
-<sx:form
+<s:form
         id='theForm3'
         cssStyle="border: 1px solid green;"
         action='AjaxRemoteForm'
@@ -47,11 +47,11 @@
 
     <sx:submit value="GO3" targets="theForm3"/>
 
-</sx:form>
+</s:form>
 
 <br /><br />
 Remote form evaluating suplied JS on completion:<br/>
-<sx:form
+<s:form
         id='theForm4'
         cssStyle="border: 1px solid green;"
         action='Test3'
@@ -61,11 +61,11 @@
 
     <sx:submit value="GO4" executeScripts="true"/>
 
-</sx:form>
+</s:form>
 
 <br /><br />
 Remote form whose submit is cancelled:<br/>
-<sx:form
+<s:form
         id='theForm5'
         cssStyle="border: 1px solid green;"
         action='AjaxRemoteForm'
@@ -75,7 +75,7 @@
 
     <sx:submit value="GO5" targets="theForm5" beforeNotifyTopics="/beforeSubmit"/>
 
-</sx:form>
+</s:form>
 
 <br /><br />
 A form with no remote submit (so should not be ajaxified):<br/>