TimeSpinner

You are viewing an old version (v. 3) of this page.
The latest version is v. 7, last edited on Jan 17, 2013 (view differences | )
<< View previous version | view page history | view next version >>

TimeSpinner

The TimeSpinner component uses a mobility-designed time selection component and may be rendered depending on whether the mobile operating system is using iOS5 or not and it is enabled by using the useNative attribute. If the device is running iOS5, then the option to choose the inherent date selection component is used (so for iPhone, iPad running iOS5) the native timeSelection may be used (html5 input tag with type="time"). If iOS5 is not detected, then the <mobi:dateSpinner/> component renders a mobility designed non-browser solution which with popup selector, styled with <mobi:deviceStyleSheet/>. This component has mobi:ajax support.

Each device will popup the correct entry spinner that is styled as per the device; Jsf validation and conversion is supported. The non-iOS5 version will actually have built-in conversion for date, so as long as the default pattern of 'yyyy-MM-dd' is used, then no <f:convertDateTime pattern="yyyy-MM-dd" /> tag is required.
The developer will have to know what platforms they are creating applications for in that some of these options are not applicable to the iOS5 supported inherent selection.

Usage

How to use.

If want iOS5 timeSpinner enabled if available and using singleSubmit="true"

   <mobi:timeSpinner id="timeIOS5" useNative="true" value="#{date.time2}" title="date ios5 cap"
                 singleSubmit="#{date.singleSubmit}">
   </mobi:timeSpinner>

readonly *disabled

singleSubmit if true, submits itself (element) and triggers a full page response using the ICEfaces dom-diff algorithm (in other words, only what has changed on the view page). If false, then the field is not submitted until the form is. ** Note that with the various popup widgets, this isn't necessarily working for all browsers/devices. It is unclear as to whether it is even desirable at this time. Will see what users/developers want first before complete implementation.

for this component

pattern currently only supports "hh:mm a"

timeZone for built in conversion so convertDateTime tag not required for this component

locale for built in conversion so convertDateTime tag not required for this component

TagLib Documentation
This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2017 ICEsoft Technologies Canada Corp.