1
Why jsf is not recognizing the Bean Reader?
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 System, 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>
When 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 the method does not exist in Bean.
He even tried without the
()
? When you useactionListener="#{atividadeController.mudarSolicitante()}"
means explicitly a method without parameters. Since you need the event, then recommend to declare method Expression only by nameactionListener="#{atividadeController.mudarSolicitante}"
.– Wakim
Instead of "<a4j:support " he has tried to use "<p:ajax" ?
– Jose Vieira Neto
I made the change by withdrawing the
()
but the error remains.....– Marcelo Gomes
`org.apache.jasper.el.JspMethodNotFoundException: /atividade/formAtividade.jsp(171,18) '#{atividadeController.mudarSolicitante}' Method not found: com.porto.npf.sgpsweb.controller.AtividadeController@3f515f14.mudarSolicitante(javax.faces.event.ActionEvent)'
– Marcelo Gomes
Jose am using jsf 1.2 richfaces 3.3.3 (Client restriction)
– Marcelo Gomes