Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

memberchoice

Description

This tag denotes a reference to the current memberchoice bean within an enclosing collection tag. For example, <ab:memberchoices>. The body of this tag may contain get/set tags that will generate output derived from the contents of this bean tag.

Tag Body

JSP

Tag Parent

<abPrefix:memberchoices>

Restrictions

Only one of id, name, or entryid should be used at a time. If no attributes are specified, the current entry in the parent collection is used.

Attributes

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

id

Specifies the bean id of the bean to create.

name

Specifies the bean id of the bean to use.

entryid

Specifies the address book entry id to use.

Properties

<abPrefix:entry>

Example(s)
<%-- Example 1  Current entry in the entries collection --%>

<%@ page errorPage="/jsp/errorpage.jsp" %>

<%@ taglib uri="/taglibs/ips_taglib_ab.jar" prefix="ab" %>

<ab:context/>

<ab:fetch collection="memberchoices">
		Error in Looking up address book.
</ab:fetch>

Number of Address Book entries:

<ab:context>
	<ab:get property="numMemberchoices"/>
</ab:context>

<ab:memberchoices iterate="true">
	<ab:memberchoice>
		Entry Id: <ab:get property="entryid"/>
		First Name: <ab:get property="fn"/>
		Last Name: <ab:get property="ln"/>
		Email: <ab:get property="em"/>
	</ab:memberchoice>
</ab:memberchoices>