Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

lines

Description

The tag denotes a reference to a collection of lines. This collection is expected to reside within the MailContext object, "mail", stored on the current page context. This tag will iterate upon its body until the collection is exhausted, or as constrained by the start and count properties. The start and count properties should only be set when the iterate attribute is set to "false".

Tag Body

JSP

Tag Parent

n/a

Restrictions

None.

Attributes

The tag has the following attributes for which the Required value is “No”:

id

Name of the entries collection to create.

name

Name of the entries collection to use.

iterate

A boolean that selects iteration. Default is "false", the collection will not iterate.

Properties

The tag provides the following bean properties for which the Type values are “Integer”, “Boolean” and Access value is “Get/Set”:

index

Index of the current bean in the collection.

count

The number of iterations the collection should perform. Integer.

start

The zero-based index from which to begin iteration.

end

The zero-based index that denotes the item upon which iteration will terminate. Integer.

startOne

One-based start; suitable for presentation.

endOne

One-based end; suitable for presentation.

size

The size of the collection being paged.

nextPage

Whether or not there are more items in the collection, beyond the current iterations.

prevPage

Whether there are items in the collection preceding the current iterations.

Example(s)
<%-- lines tag example --%>
...
<mail:context/>
...
<mail:fetch collection="lines" id="$(msgidx)"/>
...
<mail:lines id="llist">
	<mail:set property="start" value="$(start)"/>
	<mail:set property="count" value="5"/>
</mail:lines>
<mail:lines name="llist" iterate="true">
	<mail:line>
		<mail:get property="text"/>
	</mail:line>
</mail:lines>