mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Fixing javadocs for snippet plugin
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@577834 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -50,58 +50,41 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* <!-- 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 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* </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 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* </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 @@ 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}" />
|
||||
* </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 {
|
||||
|
||||
Reference in New Issue
Block a user