Author: musachy
Date: Thu Sep 20 06:39:10 2007
New Revision: 577743

URL: http://svn.apache.org/viewvc?rev=577743&view=rev
Log:
Fixing javadocs for snippet plugin
Modified:
    
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java

Modified: 
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java?rev=577743&r1=577742&r2=577743&view=diff
==============================================================================
--- 
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java
 (original)
+++ 
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Autocompleter.java
 Thu Sep 20 06:39:10 2007
@@ -92,42 +92,33 @@
  * <p>Examples</p>
  * <!-- START SNIPPET: example1 -->
  * <p>Autocompleter that gets its list from an action:</p>
- * <pre>
  * &lt;sx:autocompleter name="autocompleter1" href="%{jsonList}"/&gt;
- * </pre>
  * <!-- END SNIPPET: example1 -->
  * 
  * <!-- START SNIPPET: example2 -->
  * <p>Autocompleter that uses a list:</p>
- * <pre>
  * &lt;s:autocompleter name="test"  list="{'apple','banana','grape','pear'}" 
autoComplete="false"/&gt;
- * </pre>
  * <!-- END SNIPPET: example2 -->
  * 
  * <!-- START SNIPPET: example3 -->
  * <p>Autocompleter that reloads its content everytime the text changes (and 
the length of the text is greater than 3):</p>
- * <pre>
  * &lt;sx:autocompleter name="mvc" href="%{jsonList}" loadOnTextChange="true" 
loadMinimumCount="3"/&gt;
  * 
  * The text entered on the autocompleter is passed as a parameter to the url 
specified in "href", like (text is "struts"):
  *  
  * http://host/example/myaction.do?mvc=struts
- * </pre>
  * <!-- END SNIPPET: example3 -->
  * 
  * <!-- START SNIPPET: example4 -->
  * <p>Linking two autocompleters:</p>
- * <pre>
  * &lt;form id="selectForm"&gt;
  *      &lt;sx:autocompleter  name="select" list="{'fruits','colors'}"  
valueNotifyTopics="/changed" /&gt;
  * &lt;/form&gt;  
  * &lt;sx:autocompleter  href="%{jsonList}" formId="selectForm" 
listenTopics="/changed"/&gt;
- * </pre>
  * <!-- END SNIPPET: example4 -->
  * 
  * <!-- START SNIPPET: example5 -->
  * <p>Set/Get selected values using JavaScript</p>
- * <pre>
  * &lt;sx:autocompleter  href="%{jsonList}" id="auto"/&gt;
  * &lt;script type="text/javascript"&gt;
  *   function getValues() {
@@ -156,12 +147,10 @@
  *      autoCompleter.setAllValues("AL", "Alabama");
  *   }
  * &lt;/script&gt;
- * </pre>
  * <!-- START SNIPPET: example5 -->
  * 
  * <!-- START SNIPPET: example6 -->
  * <p>Using beforeNotifyTopics:</p>
- * <pre>
  * &lt;script type="text/javascript"&gt;
  * dojo.event.topic.subscribe("/before", function(event, widget){
  *     alert('inside a topic event. before request');
@@ -171,12 +160,10 @@
  * &lt;/script&gt;         
  * 
  * &lt;sx:autocompleter beforeNotifyTopics="/before" href="%{#ajaxTest} /&gt;
- * </pre> 
  * <!-- END SNIPPET: example6 -->
  * 
  * <!-- START SNIPPET: example7 -->
  * <p>Using afterNotifyTopics:</p>
- * <pre>
  * &lt;script type="text/javascript"&gt;
  * dojo.event.topic.subscribe("/after", function(data, request, widget){
  *     alert('inside a topic event. after request');
@@ -187,12 +174,10 @@
  * &lt;/script&gt;        
  * 
  * &lt;sx:autocompleter afterNotifyTopics="/after" href="%{#ajaxTest}" /&gt;
- * </pre> 
  * <!-- END SNIPPET: example7 -->
  * 
  * <!-- START SNIPPET: example8-->
  * <p>Using errorNotifyTopics:</p>
- * <pre>
  * &lt;script type="text/javascript"&gt;
  * dojo.event.topic.subscribe("/error", function(error, request, widget){
  *     alert('inside a topic event. on error');
@@ -203,12 +188,10 @@
  * &lt;/script&gt;
  * 
  * &lt;sx:autocompleter errorNotifyTopics="/error" href="%{#ajaxTest}" /&gt;
- * </pre>
  * <!-- END SNIPPET: example8 -->
  * 
  * <!-- START SNIPPET: example9 -->
  * <p>Using valueNotifyTopics and indicator:</p>
- * <pre>
  * &lt;script type="text/javascript"&gt;
  * dojo.event.topic.subscribe("/value", function(value, key, text, widget){
  *     alert('inside a topic event. after value changed');
@@ -218,7 +201,8 @@
  *     //widget: widget that published the topic
  * });
  * &lt;/script&gt;   
- * <pre>
+ * 
+ * &lt;sx:autocompleter valueNotifyTopics="/value" href="%{#ajaxTest}" /&gt;
  * <!-- END SNIPPET: example9 -->
  */
 @StrutsTag(name="autocompleter", 
tldTagClass="org.apache.struts2.dojo.views.jsp.ui.AutocompleterTag", 
description="Renders a combobox with autocomplete and AJAX capabilities")


Reply via email to