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

E81455-02

af:getCommonTimeZoneSelectItems

getCommonTimeZoneSelectItems getcommontimezoneselectitems


The function returns a java.util.List of commonly used timezones, sorted by raw offset. Each item in the list is a javax.model.SelectItem with its value set to the TimeZone object, and the label set to the timezone's name.

This list is used by the af:inputDate to allow the user to select a timezone for a date-time.

<af:selectOneChoice label="Select a new timezone" value="#{demoInput.timeZoneId}" autoSubmit="true"> <f:selectItems value="#{af:getCommonTimeZoneSelectItems}" /> </af:selectOneChoice>