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/09/22 15:35:39 UTC
svn commit: r578436 -
/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Div.java
Author: musachy
Date: Sat Sep 22 06:35:38 2007
New Revision: 578436
URL: http://svn.apache.org/viewvc?rev=578436&view=rev
Log:
Fixing javadocs for snippet plugin
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Div.java
Modified: struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Div.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Div.java?rev=578436&r1=578435&r2=578436&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Div.java (original)
+++ struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Div.java Sat Sep 22 06:35:38 2007
@@ -49,26 +49,17 @@
*
* <p>Examples</p>
* <!-- START SNIPPET: example1 -->
- * <p>Simple div that loads its content once:</p>
- * <pre>
* <sx:div href="%{#url}">Initial Content</sx:div>
- * </pre>
* <!-- END SNIPPET: example1 -->
*
- * <!-- START SNIPPET: example1 -->
- * <p>div that reloads its content every 2 seconds, and shows an indicator while reloading:</p>
- * <pre>
+ * <!-- START SNIPPET: example2 -->
* <img id="indicator" src="${pageContext.request.contextPath}/images/indicator.gif" style="display:none"/>
* <sx:div href="%{#url}" updateFreq="2000" indicator="indicator">
* Initial Content
* </sx:div>
- * </pre>
- * <!-- END SNIPPET: example1 -->
+ * <!-- END SNIPPET: example2 -->
*
- * <!-- START SNIPPET: example1 -->
- * <p>div that uses topics to control the timer, highlights its content in red after reload, and submits
- * a form:</p>
- * <pre>
+ * <!-- START SNIPPET: example3 -->
* <form id="form">
* <label for="textInput">Text to be submited when div reloads</label>
* <input type=textbox id="textInput" name="data">
@@ -83,8 +74,7 @@
* formId="form">
* Initial Content
* </sx:div>
- * </pre>
- * <!-- END SNIPPET: example1 -->
+ * <!-- END SNIPPET: example3 -->
*/
@StrutsTag(name="div", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.DivTag", description="Render HTML div providing content from remote call via AJAX")
public class Div extends AbstractRemoteBean {