Good afternoon,
I have 2 listItems the first is filled with the values Physical Person and Legal Person and the second is filled with the values DNI, PASSPORT I want at the time of choosing Physical Person in the first one, the second one returns with only the value DNI and deactivated, the code I did is the following:
driver code:
public List<SelectItem> getComboTipoIdentificador() {
List<SelectItem> li = new ArrayList<SelectItem>();
if (cliente.getFiguraJuridica().equals(Codificadoras.ATC_FIG_JURIDICA_F)){
li= this.cargaComboCodificadora(Constantes.TABLA_TIPO_IDEN, true);
}else{
li.add(new SelectItem(new Integer(1),"DNI_NIF"));
}
return li;
}
code xhtml:
<n:campo clase="scCampoLista scOcupa1de6" label="#{textAtc['atc.altaCliente.labelFiguraJuridica']}*">
<h:selectOneMenu id="figuraJuridica" value="#{altaSimplificadaForm.cliente.figuraJuridica}" >
<f:selectItems value="#{altaSimplificadaForm.comboFiguraJuridica}" />
</h:selectOneMenu>
</n:campo>
<n:campo clase="scCampoLista scOcupa1de6" label="#{textAtc['atc.altaCliente.lableTipoIdentificacion']}*">
<h:selectOneMenu id="tipoIdentificacion" value="#{altaSimplificadaForm.cliente.tipoIdentificador}">
<f:selectItems value="#{altaSimplificadaForm.comboTipoIdentificador}"/>
</h:selectOneMenu>
</n:campo>
I get the following error: value="# {highSimplifiedForm.comboTypeIdentifier}": Error reading 'comboTypeIdentifier' something is wrong in the getComboTypeIdentifier function?
Thanks for your help.