Why is jsf not recognizing the Bean listener?
My bean:
/**
* Listener que escuta a mudança do tipo de Solicitante
*
* @param event
*/
public void mudarSolicitante(ValueChangeEvent event){
logger.info("Novo objeto : " + event.getNewValue());
solicitanteId = (Integer) event.getNewValue();
}
I call this selectOneMenu listener, as below:
<h:column>
<h:selectOneMenu
value="#{atividadeController.solicitanteId }"
id="solicitante">
<f:selectItems
value="#{atividadeController.listaSelectSolicitantesAtivos}" />
<a4j:support event="onchange"
actionListener="#{atividadeController.mudarSolicitante()}"
ajaxSingle="true" immediate="true"></a4j:support>
</h:selectOneMenu>
Running the following exception is displayed:
javax.faces.event.AbortProcessingException: /atividade/formAtividade.jsp(171,18) '#{atividadeController.mudarSolicitante()}' Method not found: com.porto.npf.sgpsweb.controller.AtividadeController@75b3883f.mudarSolicitante()
at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:118)
That is, it is returning that method does not exist in the Bean.