Anonymous avatar Anonymous committed ed0b388

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/views/jsp/iterator/SortIteratorTag.java

 
 /**
  * <!-- START SNIPPET: javadoc -->
+ *
  * <b>NOTE: JSP-TAG</b>
  * 
  * <p>A Tag that sorts a List using a Comparator both passed in as the tag attribute.
  * If 'id' attribute is specified, the sorted list will be placed into the PageContext
  * attribute using the key specified by 'id'. The sorted list will ALWAYS be
  * pushed into the stack and poped at the end of this tag.</p>
+ *
  * <!-- END SNIPPET: javadoc -->
  *
  *
  * <!-- START SNIPPET: params -->
+ *
  * <ul>
  * 		<li>id (String) - if specified, the sorted iterator will be place with this id under page context</li>
  * 		<li>source (Object) - the source for the sort to take place (should be iteratable) else JspException will be thrown</li>
  * 		<li>comparator* (Object) - the comparator used to do sorting (should be a type of Comparator or its decendent) else JspException will be thrown</li>
  * </ul>
+ *
  * <!-- END SNIPPET: params -->
  *
  *
+ *
+ * <pre>
  * <!-- START SNIPPET: example -->
+ *
  * USAGE 1:
- * <pre>
  * &lt;ww:sort comparator="myComparator" source="myList"&gt;
  * 	&lt;ww:iterator&gt;
  * 		&lt;!-- do something with each sorted elements --&gt;
  * 		&lt;ww:property value="..." /&gt;
  *      &lt;/ww:iterator&gt;
  * &lt;/ww:sort&gt;
- * </pre>
  *
  * USAGE 2:
- * <pre>
  * &lt;ww:sort id="mySortedList" comparator="myComparator" source="myList" /&gt;
  *
  * &lt;%
  *    	// do something with each of the sorted elements
  *    }
  * %&gt;
- * </pre>
+ *
  * <!-- END SNIPPET: example -->
+ * </pre>
  *
  *
  * @see com.opensymphony.webwork.util.SortIteratorFilter
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.