1
Good evening, I am doing my tcc in Java Web and making data persistence with JPA and Hibernete. I did the CRUD apparently right, but when I click the sign up button it gives this error.
action="#{empresaController.incluir()}": Target Unreachable, identifier 'empresaController' resolved to null
I guess you’re not finding my class empresaController
.
Could someone 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();
}
}
You can edit the question by placing the class code
empresaController
?– Eduardo Silva
edited already with the code
– Patricia Netto
I don’t have an answer, but maybe this thread in the GUJ be useful to help identify the problem. (You imported this
ManagedBean
ofjavax.faces.bean.ManagedBean
?)– mgibsonbr
yes is imported from javax.faces.bean.Managedbean
– Patricia Netto