Author: musachy
Date: Thu Sep 20 07:06:09 2007
New Revision: 577758
URL: http://svn.apache.org/viewvc?rev=577758&view=rev
Log:
Fixing javadocs for snippet plugin
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Anchor.java
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Anchor.java
URL:
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Anchor.java?rev=577758&r1=577757&r2=577758&view=diff
==============================================================================
---
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Anchor.java
(original)
+++
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Anchor.java
Thu Sep 20 07:06:09 2007
@@ -40,40 +40,33 @@
*
* <!-- START SNIPPET: example1 -->
* <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:a id="link1" href="%{ajaxTest}" target="div1">
* Update Content
* </sx:a>
- * </pre>
* <!-- END SNIPPET: example1 -->
*
* <!-- START SNIPPET: example2 -->
* <p>Submit form(anchor inside the form):</p>
- * <pre>
* <s:form id="form" action="AjaxTest">
* <input type="textbox" name="data">
* <sx:a>Submit form</sx:a>
* </s:form>
- * </pre>
* <!-- END SNIPPET: example2 -->
*
* <!-- START SNIPPET: example3 -->
* <p>Submit form(anchor outside the form)</p>
- * <pre>
* <s:form id="form" action="AjaxTest">
* <input type="textbox" name="data">
* </s:form>
*
* <sx:a formId="form">Submit form</sx:a>
- * </pre>
* <!-- END SNIPPET: example3 -->
*
* <!-- START SNIPPET: example4 -->
* <p>Using beforeNotifyTopics:</p>
- * <pre>
* <script type="text/javascript">
* dojo.event.topic.subscribe("/before", function(event, widget){
* alert('inside a topic event. before request');
@@ -83,12 +76,10 @@
* </script>
*
* <sx:a beforeNotifyTopics="/before">Publish topics</sx:a>
- * </pre>
* <!-- END SNIPPET: example4 -->
*
* <!-- START SNIPPET: example5 -->
* <p>Using afterNotifyTopics and highlights target:</p>
- * <pre>
* <script type="text/javascript">
* dojo.event.topic.subscribe("/after", function(data, request, widget){
* alert('inside a topic event. after request');
@@ -99,12 +90,10 @@
* </script>
*
* <sx:a afterNotifyTopics="/after" highlightColor="red"
href="%{#ajaxTest}">Publish topics</sx:a>
- * </pre>
* <!-- END SNIPPET: example5 -->
*
* <!-- START SNIPPET: example6 -->
* <p>Using errorNotifyTopics and indicator:</p>
- * <pre>
* <script type="text/javascript">
* dojo.event.topic.subscribe("/error", function(error, request, widget){
* alert('inside a topic event. on error');
@@ -116,7 +105,6 @@
*
* <img id="ind1"
src="${pageContext.request.contextPath}/images/indicator.gif"
style="display:none"/>
* <sx:a errorNotifyTopics="/error" indicator="ind1"
href="%{#ajaxTest}">Publish topics</sx:a>
- * </pre>
* <!-- END SNIPPET: example6 -->
*/
@StrutsTag(name="a",
tldTagClass="org.apache.struts2.dojo.views.jsp.ui.AnchorTag",
description="Renders an HTML anchor element that when clicked calls a URL via
remote XMLHttpRequest and updates " +