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/03/08 02:27:40 UTC
svn commit: r515879 -
/struts/struts2/trunk/apps/showcase/src/main/webapp/ajax/remoteforms/index.jsp
Author: musachy
Date: Wed Mar 7 17:27:40 2007
New Revision: 515879
URL: http://svn.apache.org/viewvc?view=rev&rev=515879
Log:
WW-1607 Fix remote forms example to use dojo plugin
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=515879&r1=515878&r2=515879
==============================================================================
--- 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 Wed Mar 7 17:27:40 2007
@@ -1,5 +1,6 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
+<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<html>
<head>
@@ -21,89 +22,83 @@
Remote form replacing another div:<br/>
<div id='two' style="border: 1px solid yellow;"><b>initial content</b></div>
-<s:form
+<sx:form
id='theForm2'
cssStyle="border: 1px solid green;"
action='AjaxRemoteForm'
- method='post'
- theme="ajax">
+ method='post'>
<input type='text' name='data' value='Struts User'>
- <s:submit value="GO2" theme="ajax" targets="two"/>
+ <sx:submit value="GO2" theme="ajax" targets="two"/>
-</s:form>
+</sx:form>
Remote form replacing the forms content:<br/>
-<s:form
+<sx:form
id='theForm3'
cssStyle="border: 1px solid green;"
action='AjaxRemoteForm'
- method='post'
- theme="ajax">
+ method='post'>
<input type='text' name='data' value='Struts User'>
- <s:submit value="GO3" theme="ajax" targets="theForm3"/>
+ <sx:submit value="GO3" targets="theForm3"/>
-</s:form>
+</sx:form>
Remote form evaluating suplied JS on completion:<br/>
-<s:form
+<sx:form
id='theForm4'
cssStyle="border: 1px solid green;"
action='AjaxRemoteForm'
- method='post'
- theme="ajax">
+ method='post'>
<input type='text' name='data' value='Struts User'>
- <s:submit value="GO4" theme="ajax"/>
+ <sx:submit value="GO4" />
-</s:form>
+</sx:form>
Remote form replacing the forms content after confirming results:<br/>
-<s:form
+<sx:form
id='theForm5'
cssStyle="border: 1px solid green;"
action='AjaxRemoteForm'
- method='post'
- theme="ajax">
+ method='post'>
<input type='text' name='data' value='Struts User'>
- <s:submit value="GO3" theme="ajax" targets="theForm5" />
+ <sx:submit value="GO3" targets="theForm5" />
-</s:form>
+</sx:form>
Remote form replacing the forms content after running a function:<br/>
-<s:form
+<sx:form
id='theForm6'
cssStyle="border: 1px solid green;"
action='AjaxRemoteForm'
- method='post'
- theme="ajax">
+ method='post'>
<input type='text' name='data' value='Struts User'>
- <s:submit value="GO3" theme="ajax" targets="theForm6" />
+ <sx:submit value="GO3" targets="theForm6" />
-</s:form>
+</sx:form>
A form with no remote submit (so should not be ajaxified):<br/>
-<s:form
+<sx:form
id='theForm7'
cssStyle="border: 1px solid green;"
action='AjaxRemoteForm'
- method='post'
- theme="ajax">
+ method='post'>
<input type='text' name='data' value='Struts User'>
- <s:submit value="Go AWAY" targets="theForm7" />
+ <sx:submit value="Go AWAY" targets="theForm7" />
-</s:form>
+</sx:form>
</body>
</html>