Olá galera GUJ,
Bom ja diversos topícos desse aki no guj, porem tenho uma duvida.
//TEnho um combo com convenios medicos que deve atualizar outro combo com os planos<h:selectOneMenu id="selectConvenio" value="#{cadastroMB.cadastroMediator.clientes.clientesConvenio.idClinicaConvenio}" styleClass="campoInput" style="width:200px">
<f:selectItems value="#{cadastroMB.listaConvenios}" />
<a4j:support event="onchange" actionListener="#{cadastroMB.pesquisaMediator. ???? }" ajaxSingle="true" reRender="selectConvenioPlano"/>
</h:selectOneMenu>
<h:selectOneMenu id="selectConvenioPlano" value="#{cadastroMB.cadastroMediator.clientes.clientesConvenio.idClinicaConvenio}" styleClass="campoInput" style="width:200px">
<f:selectItems value="#{cadastroMB.listaConvPlanos}"/>
</h:selectOneMenu>
int idConvenio = 0;
// -> Planos vinculado aos convenios
if ( ( "convenios".equals(this.modulo) ) || ( "pacientes".equals(this.modulo) ) )
this.listaConvPlanos = this.pesquisaMediator.getListaConveniosPlanos(idConvenio);
public ArrayList getListaConveniosPlanos(int id) {
ConvenioDAO convenioDAO = new ConvenioDAO();
ArrayList listaConveniosPlanos = new ArrayList();
List<ClinicaConveniosPlanos> listaConvPlan = (ArrayList) convenioDAO.getListaConveniosPlanos(id);
listaConveniosPlanos.add(new SelectItem ("0", "- Selecione -"));
for (ClinicaConveniosPlanos cliConvPla : listaConvPlan) {
listaConveniosPlanos.add(new SelectItem (Integer.toString(cliConvPla.getIdConvenioPlano()), cliConvPla.getDescricao()));
}
return listaConveniosPlanos;
}
<a4j:support event="onchange" actionListener="#{cadastroMB.pesquisaMediator. ??? }" ajaxSingle="true" reRender="selectConvenioPlano"/>
/paciente.xhtml @207,190 actionListener="#{cadastroMB.pesquisaMediator.listaConveniosPlanos}": Method not found: [email removido](javax.faces.event.ActionEvent)
javax.faces.el.MethodNotFoundException: /paciente.xhtml @207,190 actionListener="#{cadastroMB.pesquisaMediator.listaConveniosPlanos}": Method not found: [email removido](javax.faces.event.ActionEvent)
at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71)
at javax.faces.component.UICommand.broadcast(UICommand.java:376)
...........
Se alguem puder me ajudar??
vlw :wink: