I am having problems with the primefaces selectonemenu, it only displays cube.name (the pulldown has the verbiage cube.name not the value of cube.name), here is the code.
<p:selectOneMenu id="cubeConfigId" value="#{projectModel.selectedProject.cubeConfigId}" >
<f:selectItem itemLabel="Select One" itemValue="" />
<f:selectItems value="#{projectModel.cubeConfigEntities}" var="cube" itemLabel="cube.name" itemValue="cube.cubeConfigId"/>
</p:selectOneMenu>
what exactly does the var="cube" do?