I am in the fight trying to populate a selectOneMenu
with data of a Enum
, but when I gave up and put the static data with f:selectItem
I realized that even then the field is empty.
Even with the value filled with #{clienteBean.teste}
the result is the same, where test is an attribute of type String
with its getters and setters.
<p:selectOneMenu id="console" value="" style="width:125px">
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItem itemLabel="Xbox One" itemValue="Xbox One" />
<f:selectItem itemLabel="PS4" itemValue="PS4" />
<f:selectItem itemLabel="Wii U" itemValue="Wii U" />
</p:selectOneMenu>
obs: The above example is the same as showcase.