From fb42b3e194c3de3eb04d7599ab52728eacf073c8 Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Thu, 20 Sep 2007 17:49:18 +0000 Subject: [PATCH] Fixing javadocs for snippet plugin git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@577834 13f79535-47bb-0310-9956-ffa450edef68 --- .../struts2/dojo/components/Submit.java | 34 +++---------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java index 809f3b977..c34b05f15 100644 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java +++ b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java @@ -50,58 +50,41 @@ import com.opensymphony.xwork2.util.ValueStack; * * *

Examples

- *
  * 
  * <sx:submit value="%{'Submit'}" />
  * 
- * 
- *
+ * 
  * 
- * Render an image submit:
  * <sx:submit type="image" value="%{'Submit'}" label="Submit the form" src="submit.gif"/>
  * 
- * 
- *
+
  * 
- * Render an button submit:
  * <sx:submit type="button" value="%{'Submit'}" label="Submit the form"/>
  * 
- * 
* * - *

Update target content with html returned from an action:

- *
  * <div id="div1">Div 1</div>
  * <s:url id="ajaxTest" value="/AjaxTest.action"/>
  * 
  * <sx:submit id="link1" href="%{ajaxTest}" target="div1" />
- * 
* * * - *

Submit form(inside the form):

- *
  * <s:form id="form" action="AjaxTest">
  *      <input type="textbox" name="data">
  *      <sx:submit />          
  * </s:form>
- * 
* * * - *

Submit form(outside the form)

- *
  * <s:form id="form" action="AjaxTest">
  *      <input type="textbox" name="data">   
  * </s:form>
  * 
  * <sx:submit formId="form" />
- * 
* * * - *

Using beforeNotifyTopics:

- *
  * <script type="text/javascript">
  * dojo.event.topic.subscribe("/before", function(event, widget){
  *     alert('inside a topic event. before request');
@@ -111,12 +94,9 @@ import com.opensymphony.xwork2.util.ValueStack;
  * </script>         
  * 
  * <sx:submit beforeNotifyTopics="/before" />
- * 
* * * - *

Using afterNotifyTopics and highlight target:

- *
  * <script type="text/javascript">
  * dojo.event.topic.subscribe("/after", function(data, request, widget){
  *     alert('inside a topic event. after request');
@@ -127,12 +107,9 @@ import com.opensymphony.xwork2.util.ValueStack;
  * </script>        
  * 
  * <sx:submit afterNotifyTopics="/after" highlightColor="red" href="%{#ajaxTest}" />
- * 
- * + * * - * - *

Using errorNotifyTopics and indicator:

- *
+ * 
  * <script type="text/javascript">
  * dojo.event.topic.subscribe("/error", function(error, request, widget){
  *     alert('inside a topic event. on error');
@@ -144,8 +121,7 @@ import com.opensymphony.xwork2.util.ValueStack;
  * 
  * <img id="ind1" src="${pageContext.request.contextPath}/images/indicator.gif" style="display:none"/>
  * <sx:submit errorNotifyTopics="/error" indicator="ind1" href="%{#ajaxTest}" />
- * 
- * + * */ @StrutsTag(name="submit", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.SubmitTag", description="Render a submit button") public class Submit extends FormButton implements RemoteBean {