Generar combos separando etiquetas y valores con JSF
Código:
<h:selectOneMenu value="#{customerController.customer.homeAddress.country}"
converter="countryConverter" id="countryList">
<f:selectItems value="#{countryController.countries}" var="country"
itemLabel="#{country.name}" itemValue="#{country}" />
</h:selectOneMenu>
Referencia:
JSFToolbox
<h:selectOneMenu value="#{customerController.customer.homeAddress.country}"
converter="countryConverter" id="countryList">
<f:selectItems value="#{countryController.countries}" var="country"
itemLabel="#{country.name}" itemValue="#{country}" />
</h:selectOneMenu>
Referencia:
JSFToolbox
Comentarios
Publicar un comentario