Posts Tagged ‘ primefaces ’

Integrate Spring into JSF 2

There are many ways to integrate the Spring Framework into a JSF application. In this post I write about a tight integration in which almost all configuration is done with Spring annotations without loosing JSF bean handling in the front end. I have created an application template to show this approach. The project is hosted on GitHub (spring-jsf). In the end of the article you find a guide how to build and run this application.

Weiterlesen

Advertisements

JSF and PrimeFaces: Session Timeout Handling

Implementing session timeout handling in an ajax web application can be hard. You have to redirect to a login page when a single ajax call fails after user session is invalid.

My solution is based on PrimeFaces idle monitor. User is redirected to logout action after timeout to invalidate the session. 2 minutes before a countdown dialog is shown to warn user. After moving the mouse again session is extended.

Weiterlesen