Good evening, I'm doing my tcc on Java Web and doing data persistence with JPA and Hibernete. I made CRUD seemingly right, but when I click the register button it gives this error.
action="#{empresaController.incluir()}": Target Unreachable, identifier 'empresaController' resolved to null
I believe that that is not finding my class empresaController
.
Could anyone help me?
@ManagedBean
@SessionScoped
public class EmpresaController extends BaseController<Empresa>{
public EmpresaController() {
super(Empresa.class);
this.dao = new EmpresaDao();
}
@Override
public void limpar() {
this.objeto = new Empresa();
}
@Override
public String incluir() {
return super.incluir();
}
}