How-to create a select one choice listing common time zones

Posted by frank.nimphius on Oracle Blogs See other posts from Oracle Blogs or by frank.nimphius
Published on Mon, 20 Dec 2010 14:19:45 +0000 Indexed on 2010/12/20 17:51 UTC
Read the original article Hit count: 323

Filed under:

ADF Faces provides an option to query a list of common timezones for display in a Select One Choice component. The EL expression for this is #{af:getCommonTimeZoneSelectItems()}.

To use this expression in a Single Select One Choice component, drag and drop the component from the Oracle JDeveloper Component Palette into a JSF page.  In the opened dialog, copy the expression into the Value property below the Bind to list (select items) header.

<af:selectOneChoice label="TimeZones" id="soc1">
  <f:selectItems value="#{af:getCommonTimeZoneSelectItems()}"
                          id="si1"/>
</af:selectOneChoice>

© Oracle Blogs or respective owner

Related posts about ADFv