convirgance
Tag iterate


Loops through the supplied Iterable object

Example:

<virge:iterate var="customer" items="customers" status="loop">
<div>${loop.index+1}: ${virge:html(customer.name)}</div>
</virge:iterate>


Tag Information
Tag Classcom.invirgance.convirgance.web.tag.IterateTag
TagExtraInfo ClassNone
Body Contentscriptless
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
itemstruetruejava.lang.Iterable An Iterable to iterate over
limitfalsetrueintEnd the iteration after this many items have been looped
scopefalsefalsejava.lang.StringScope of the variable (i.e. page, request, session, or application)
skipfalsetrueintSkip over this many items before starting to loop
statusfalsefalsejava.lang.String Sets the specified variable name to a JSONObject containing the following loop information:

index: the index of the item in the stream
count: the number of items looped through so far, not including skipped items
first: true if this is the first record in the Iterable
last: true if this is the last record in the Iterable
vartruefalsejava.lang.StringVariable to assign the active item to

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.