I have 3 dependent combos and the third does not load me. Primeface Ajax

0

I have the following error, because I load the two initial combos, but the third one I see an error in which it says idCiudad1 not valid, however, this id loads the second and when selecting the city jumps that error and the other Combo that is Airport does not load. This is a part of a flight form where you must relate Country - City - Airport

 <h:outputLabel value="País Origen:" />
                    <p:selectOneMenu value="#{CRUDVuelo.vuelo.pais1.codPais}">
                        <f:selectItem itemLabel="[Seleccione]" itemValue=" " />
                        <f:selectItems value="#{CRUDVuelo.listaPais}" var="fila"
                        itemLabel="#{fila.nomPais}"
                        itemValue="#{fila.codPais}"/>
                        <p:ajax  listener="#{CRUDVuelo.cargarCiudad1}" 
                                    update="idCiudad1"/>            
                    </p:selectOneMenu>
                    <h:outputLabel value="Ciudad de Origen:" />
                    <p:selectOneMenu 
                        value="#{CRUDVuelo.vuelo.ciudad1.codCiudad}" id="idCiudad1">
                        <f:selectItem itemLabel="[Seleccione]" itemValue=" " />
                        <f:selectItems value="#{CRUDVuelo.listaCiudad}" var="fila"
                        itemLabel="#{fila.nomCiudad}"
                        itemValue="#{fila.codCiudad}"/>
                        <p:ajax  listener="#{CRUDVuelo.CargarAeropuerto1}" 
                                    update="idAeropuerto1"  />
                    </p:selectOneMenu>

                    <h:outputLabel value="Aeropuerto Partida:" />
                    <p:selectOneMenu 
                        value="#{CRUDVuelo.vuelo.aeropuerto1.codAeropuerto}" id="idAeropuerto1">
                        <f:selectItem itemLabel="[Seleccione]" itemValue=" " />
                        <f:selectItems value="#{CRUDVuelo.listaAeropuerto}" var="fila"
                        itemLabel="#{fila.nomAeropuerto}"
                        itemValue="#{fila.codAeropuerto}" />

                    </p:selectOneMenu>
    
asked by Min_GN 20.10.2018 в 03:21
source

0 answers