I would like that in the selectItem
, instead of giving me a value, it would default to one of those in selectItems
where I have 6 values.
Let's say I want the 4 to appear, could it be done?
my code:
<div class="row group">
<h:outputLabel for="critEjec" value="#{msg['cod_ejec']}" styleClass="nombreCampo" />
<h:selectOneMenu id="critEjec" value="#{maestroSubCategoriasBean.critEjec}" styleClass="campo">
<f:selectItem itemLabel="#{msg['comunes_seleccionarTodos']}" itemValue="-1" />
<f:selectItems value="#{maestroSubCategoriasController.comboListaEjesCatalogacion}" />
<a4j:support event="onchange" action="#{maestroSubCategoriasController.llenarComboCategorias}" reRender="CategoriasPanel,mensajesPanel" ajaxSingle="true" />
</h:selectOneMenu>