Oracle Fusion Middleware Tag Reference for Oracle ADF Faces
12c (12.1.2)

E23188-01

af:getCustomTimeZoneSelectItems

getCustomTimeZoneSelectItems get custom time zone select items


This function takes an optional timezone ID parameter and merges it with the second argument, a custom list of timezones. The custom list of timezones should be sorted by raw offset order. If the ID parameter is not null, the TimeZone whose ID is specified is inserted into the list according to raw offset order, if it is not already present.

The return value is a java.util.List containing a javax.model.SelectItem for each timezone, where the select item's value is set to the TimeZone object, and the label is set to the timezone's name.

<source> <af:selectOneChoice label="Select a new timezone" value="#{demoInput.timeZoneId}" autoSubmit="true"> <f:selectItems value="#{af:getCustomTimeZoneSelectItems(demoInput.timeZoneId, demoInput.customTimeZoneList)}"/> </af:selectOneChoice> </source>

Attributes

Name Type Description
timezoneID java.lang.String The timezone ID to include with the returned List of common timezones.
timezones java.util.List A list of custom timezone IDs.