0
I have the following scenario:
A Datatable with a button that executes a Bean method, but this Datatable is using a Lazy Loading Pagination, but according to the session annotation that I use the button method is not executed or the session is terminated.
If I use the annotation in Bean:
javax.enterprise.context.RequestScoped
The entire search for popular Datatable runs, but the edit button when triggered does not execute the Bean method.
I already use the annotation in Bean:
javax.faces.view.ViewScoped
The search is not performed by complete, but the activation of the edit button executes the Bean method.
I create the Session through a Daofactory
public static DocumentoDAO criarDocumentoDAO() {
DocumentoDAOHibernate documentoDAO = new DocumentoDAOHibernate();
documentoDAO.setSession(HibernateUtil.getSessionFactory().getCurrentSession());
return documentoDAO;
}
Any suggestions on how to resolve?
Does anyone have any suggestions?
– Jeremias Santos