Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICEfaces EE Composite Components
Tag dateSpinner

## Date Spinner Composite Component

### Features

- The Date Spinner allows you to scroll date values forward and back
- The increment and decrement step value can be set on the bean
- The date format can be set to short, medium, long, or full
- Changes to the underlying dateTimeConverter require a full post-back (ie. redirect)

### How To Use

1. Create an instance of the DateSpinner class in your managed bean
2. Use the dateSpinner tag in your page (eg. ice-cc:dateSpinner). Nest <ice-cc:css/> in your page <head> tag.
3. Bind the 'bean' attribute on the tag to your managed bean property (eg. bean="#{myBean.spinner})
4. Set the 'incrementBy' property on the DateSpinner object (default is 1)
5. Set the 'dateStyle' attribute on the dateSpinner tag (default is 'default', other valid values are 'short', 'medium', 'long', and 'full')
6. Set the 'type' attribute on the dateSpinner tag (default is 'both', other valid values are 'date' for showing only the date, and 'time' for showing only the time)
7. Set the 'width' attribute on the dateSpinner tag (default is '200px')

Example:

    <ice-cc:dateSpinner id="dateSpinnerDemo" bean="#{dateSpinnerExampleBean.spinner}" dateStyle="#{dateSpinnerExampleBean.dateStyle}" type="#{dateSpinnerExampleBean.type}" width="200px"/>

Tag Information
Tag Class | javax.faces.webapp.FacetTag
TagExtraInfo Class | None
Body Content | tagdependent
Display Name | Date Spinner

Attributes
Name | Required | Request-time | Type | Description
id | true | false | `java.lang.String` | A unique id for the component.
bean | true | false | `com.icesoft.faces.facelets.component.spinner.DateSpinner` | The bean attribute must resolve to an instance of the DateSpinner class.
type | false | false | `java.lang.String` | Sets the dateTimeConverter type property [both|date|time} (default both)
width | false | false | `java.lang.String` | Sets the width of the input field (default 200px)
dateStyle | false | false | `java.lang.String` | Sets the dateStyle property of the dateTimeConverter [default|short|medium|long|full] (default is 'default')
readonly | false | false | `java.lang.Boolean` | Passed through to the underlying UIInput component
partialSubmit | false | false | `java.lang.Boolean` | Passed through to the underlying ICEfaces input component (default true)
styleClassInput | false | false | `java.lang.String` | Passed through to styleClass attribute of ice:inputText component
effect | false | false | `com.icesoft.faces.context.effects.Effect` | The Javascript Effect
title | false | false | `java.lang.String` | Passed through to underlying component
disabled | false | false | `java.lang.Boolean` | Flag indicating that this component must never receive focus or be included in a subsequent submit.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

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.