TextEntry

You are viewing an old version (v. 12) of this page.
The latest version is v. 36, last edited on Dec 11, 2014 (view differences | )
<< View previous version | view page history | view next version >>

Overview

TextEntry is a component for entering single line text. It has additional styling and functional feature.

Getting Started

<ace:textEntry id="firstNameInput" value="#{textEntryBean.firstName}" label="First Name" labelPosition="left" required="true" requiredIndicator="(*)" indicatorPosition="right"/>

Attributes

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.

value is the input text.

label and labelPosition specify the label text and its position relative to the input field. Positions can be "left/right/top/bottom/inField/none". Default is "none".

required indicates whether the user is required to provide a non-empty submitted value for this component. Default = "false".

timeZone is used to set the date's time zone. It can be a string or java.util.TimeZone object.

Month/year navigation is by left and right arrow images, one month at a time. To also navigate by month/year drop down lists, set navigator to true.

To enter time only, set timeOnly to true.

Multiple months can be displayed by specifying the no. of months in pages.

Event Listeners

valueChangeListener Listener method that will be notified when a new value has been set for this input component.

Client Behavior Events

dateSelect Fired when a date is selected from the calendar (default event).

JavaScript API

The client side date/time object is exposed through the global variable named by the widgetVar attribute, but currently there is no API useful to the user.

Keyboard Support

These keyboard shortcuts work only in a popup calendar without the time component. Some of them may conflict with browser keyboard shortcuts.

Keypress Result
page up/down previous/next month
ctrl+page up/down previous/next year
ctrl+home current month or open when closed
ctrl+left/right previous/next day
ctrl+up/down previous/next week
enter select the focused day
ctrl+end close and erase the date
escape close the calendar without selection

Known Issues

Additional Resources

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2017 ICEsoft Technologies Canada Corp.