Opening the JSF page gives me the following exception:
Caused by: java.lang.IllegalStateException: Cannot create a session after the response has been
The reason is that:
HttpSessionSo the solution is to create the session before the Facelet (/JSP) page is printed. An crude example could be like:
@PostConstruct
void initialiseSession() {
FacesContext.getCurrentInstance().getExternalContext().getSession(true);
}
/napu