ICEfaces EE Composite Components
Tag selectOneStateProvince


The Select State or Province Composite Component

Dynamically choose a US state or Canadian province

Features

How To Use

  1. Add an instance of SelectOneStateProvince with getter and setter, to your bean
  2. Add an <ice-cc:selectOneStateProvince/> tag to your page
  3. Pass a reference to the bean into the component using the "bean" attribute
  4. Specify the country in the "country" attribute. Use ISO 3166-1 two-letter country codes US or CA
  5. Pass in the label (and value) of the first SelectItem using the "firstSelectItem" attribute

Example:
<ice-cc:selectOneStateProvince id="stateOrProvince" bean="#{selectOneStateProvinceExampleBean}" country="#{selectOneStateProvinceExampleBean.country}" styleClass="stateProvStyle"/>


Tag Information
Tag Classjavax.faces.webapp.FacetTag
TagExtraInfo ClassNone
Body Contenttagdependent
Display NameSelect State or Province

Attributes
NameRequiredRequest-timeTypeDescription
idtruefalsejava.lang.StringA unique id for the component.
beantruefalsecom.icesoft.faces.facelets.component.selectOneStateProvince.SelectOneStateProvinceBean containg an instance of SelectOneStateProvince with a getter and setter.
countryfalsefalsejava.lang.StringISO 3166-1 two-letter country code US or CA. Should be set to true in order to render component.
firstSelectItemfalsefalsejava.lang.StringString label and value of first SelectItem in the ice:selectOneMenu.
disabledfalsefalsejava.lang.BooleanFlag indicating that this component must never receive focus or be included in a subsequent submit.
effectfalsefalsecom.icesoft.faces.context.effects.EffectThe Javascript Effect
requiredfalsefalsejava.lang.BooleanSets whether the input value is required
titlefalsefalsejava.lang.StringPassed through to underlying component
stylefalsefalsejava.lang.StringCSS style(s) to be applied when this component is rendered
styleClassfalsefalsejava.lang.StringSpace-separated list of CSS style class(es) to be applied when this element is rendered.

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.