Bom dia a todos!!
Estou com um problema que não consigo resolver…
Minha página tem um modalPanel, e dentro dele tem uma ListBox…
Acontece que a ListBox está aparecendo como um comboBox quando só há um valor…
Segue o código:
<rich:modalPanel id="dlgSelect" width="300" height="300">
<h:form>
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Selecione o item" />
</h:panelGroup>
</f:facet>
<div>
<h:selectOneListbox id="jlbxItens"
value="#{dlgEtiquetaDigitacaoMB.jlbxItens}"
style="width:100%">
<f:selectItems value="#{dlgEtiquetaDigitacaoMB.jlbxItensList}"/>
</h:selectOneListbox>
</div>
<a4j:commandButton id="jbtnConfirmar"
value="Confirmar"
onclick="Richfaces.hideModalPanel('dlgSelect')">
</a4j:commandButton>
<a4j:commandButton id="jbtnCancelar"
value="Cancelar"
onclick="javascript:Richfaces.hideModalPanel('dlgSelect')">
</a4j:commandButton>
</h:form>
</rich:modalPanel>