nxu
Tag selectItems


Tag adapted from the EasySI package ( http://jsf-comp.sourceforge.net/components/easysi/index.html).

This tag allows to iterate on any kind of data and have control on the resulting selections values and labels.

It has been adapted to work with datamodel lists wrapped by Seam (when using the Datamodel annotation).


Example:
<nxu:selectItems value="#{myBean.myList}" var="item" itemValue="#{item.id}" itemLabel="#{item.title}" /> <nxu:selectItems value="#{documentList}" var="document" itemValue="#{document.ref}" itemLabel="#{document.dublincore.title}" />


Tag Information
Tag ClassNone
TagExtraInfo ClassNone
Body ContentNone
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
valuetruefalsejava.lang.StringValue binding representing the list to iterate on.
varfalsefalsejava.lang.StringName of the request scope attribute that will be used to set an item value and label with flexibility.
itemValuetruefalsejava.lang.StringValue binding resolved to build the item value.
itemLabeltruefalsejava.lang.StringValue binding resolved to build the item label.
itemDisabledfalsefalsejava.lang.StringValue binding resolved to build the item disabled attribute. Available since 5.4.
itemRenderedfalsefalsejava.lang.StringValue binding resolved to exclude the item from the list of selections. Available since 5.4.
orderingfalsefalsejava.lang.StringValue binding resolved to sort options. Possible values are "id" and "label". If not set, no ordering is done. Available since 5.4.
caseSensitivefalsefalsejava.lang.StringValue binding resolved to a boolean value, to sort options case-insensitively. Does not have any effect if ordering is not set. Defaults to false. Available since 5.4.

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.