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>
  * &lt;sx:div href="%{#url}"&gt;Initial Content&lt;/sx:div&gt;
- * </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 -->
  * &lt;img id="indicator" src="${pageContext.request.contextPath}/images/indicator.gif" style="display:none"/&gt;
  * &lt;sx:div href="%{#url}" updateFreq="2000" indicator="indicator"&gt;
  *   Initial Content
  * &lt;/sx:div&gt;
- * </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 -->
  * &lt;form id="form"&gt;
  *   &lt;label for="textInput"&gt;Text to be submited when div reloads&lt;/label&gt;
  *   &lt;input type=textbox id="textInput" name="data"&gt;
@@ -83,8 +74,7 @@
  *      formId="form"&gt;
  *  Initial Content
  * &lt;/sx:div&gt;
- * </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 {