javax.el.MethodNotFoundException: /autor.xhtml @13,89 action="#{autorBean.carregaAutorPorId}": Method not found: br.com.caelum.livraria.bean.AutorBean@24af0fc7.carregaAutorPorId()
AutorBean:
public void carregaAutorPorId(Integer autorId) {
this.autor = new DAO<Autor>(Autor.class).buscaPorId(autorId);
}
autor.xhtml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:composition template="_template.xhtml">
<f:metadata>
<f:viewParam id="id" name="autorId" value="#{autorBean.autorId}"/>
<f:viewAction action="#{autorBean.carregaAutorPorId}" if="#{param.autorId != null}"/>
</f:metadata>
lib - javax.faces-2.2.13