How-to create a select one choice listing common time zones
- by frank.nimphius
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
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>