selectOneMenu component is an extended version of JSF
selectOneMenu. It provides custom content display along with skinning capabilities.
The simplest component declaration would be as follows:
<p:selectOneMenu> <f:selectItem itemLabel="English" itemValue="en"/> <f:selectItem itemLabel="Turkish" itemValue="tr"/> </p:selectOneMenu>
The output visual will be as follows:
Instead of working with primitive types or just string literals, most of the time we would be using the
selectOneMenu component with domain objects. The basic definition of the component for listing the cars for ...