Author: musachy
Date: Thu Sep 20 10:49:18 2007
New Revision: 577834
URL: http://svn.apache.org/viewvc?rev=577834&view=rev
Log:
Fixing javadocs for snippet plugin
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java
URL:
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java?rev=577834&r1=577833&r2=577834&view=diff
==============================================================================
---
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java
(original)
+++
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java
Thu Sep 20 10:49:18 2007
@@ -50,58 +50,41 @@
* <!-- END SNIPPET: javadoc -->
*
* <p>Examples</p>
- * <pre>
* <!-- START SNIPPET: example1 -->
* <sx:submit value="%{'Submit'}" />
* <!-- END SNIPPET: example1 -->
- * </pre>
- * <pre>
+ *
* <!-- START SNIPPET: example2 -->
- * Render an image submit:
* <sx:submit type="image" value="%{'Submit'}" label="Submit the form"
src="submit.gif"/>
* <!-- END SNIPPET: example2 -->
- * </pre>
- * <pre>
+
* <!-- START SNIPPET: example3 -->
- * Render an button submit:
* <sx:submit type="button" value="%{'Submit'}" label="Submit the form"/>
* <!-- END SNIPPET: example3 -->
- * </pre>
*
* <!-- START SNIPPET: example4 -->
- * <p>Update target content with html returned from an action:</p>
- * <pre>
* <div id="div1">Div 1</div>
* <s:url id="ajaxTest" value="/AjaxTest.action"/>
*
* <sx:submit id="link1" href="%{ajaxTest}" target="div1" />
- * </pre>
* <!-- END SNIPPET: example4 -->
*
* <!-- START SNIPPET: example5 -->
- * <p>Submit form(inside the form):</p>
- * <pre>
* <s:form id="form" action="AjaxTest">
* <input type="textbox" name="data">
* <sx:submit />
* </s:form>
- * </pre>
* <!-- END SNIPPET: example5 -->
*
* <!-- START SNIPPET: example6 -->
- * <p>Submit form(outside the form)</p>
- * <pre>
* <s:form id="form" action="AjaxTest">
* <input type="textbox" name="data">
* </s:form>
*
* <sx:submit formId="form" />
- * </pre>
* <!-- END SNIPPET: example6 -->
*
* <!-- START SNIPPET: example7 -->
- * <p>Using beforeNotifyTopics:</p>
- * <pre>
* <script type="text/javascript">
* dojo.event.topic.subscribe("/before", function(event, widget){
* alert('inside a topic event. before request');
@@ -111,12 +94,9 @@
* </script>
*
* <sx:submit beforeNotifyTopics="/before" />
- * </pre>
* <!-- END SNIPPET: example7 -->
*
* <!-- START SNIPPET: example8 -->
- * <p>Using afterNotifyTopics and highlight target:</p>
- * <pre>
* <script type="text/javascript">
* dojo.event.topic.subscribe("/after", function(data, request, widget){
* alert('inside a topic event. after request');
@@ -127,12 +107,9 @@
* </script>
*
* <sx:submit afterNotifyTopics="/after" highlightColor="red"
href="%{#ajaxTest}" />
- * </pre>
- * <!-- END SNIPPET: example5 -->
+ * <!-- END SNIPPET: example8 -->
*
- * <!-- START SNIPPET: example6 -->
- * <p>Using errorNotifyTopics and indicator:</p>
- * <pre>
+ * <!-- START SNIPPET: example9 -->
* <script type="text/javascript">
* dojo.event.topic.subscribe("/error", function(error, request, widget){
* alert('inside a topic event. on error');
@@ -144,8 +121,7 @@
*
* <img id="ind1"
src="${pageContext.request.contextPath}/images/indicator.gif"
style="display:none"/>
* <sx:submit errorNotifyTopics="/error" indicator="ind1"
href="%{#ajaxTest}" />
- * </pre>
- * <!-- END SNIPPET: example6 -->
+ * <!-- END SNIPPET: example9 -->
*/
@StrutsTag(name="submit",
tldTagClass="org.apache.struts2.dojo.views.jsp.ui.SubmitTag",
description="Render a submit button")
public class Submit extends FormButton implements RemoteBean {