Posts Tagged ‘ jsf ’

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

Table-Detail-View with RichFaces Data Table

AJAX !!

It’s a common task in almost every application to show a table with a list of items and a detail view with one selected item of the table. RichFaces provides a data table component with a lot of sorting and ordering features called extendedDataTable. I will show how to implement the selection of one item of the table and display the item data in separate detail component. All action is done by AJAX requests without a page reload. You need a JSF application and RichFaces components to run this. To get started see the RichFaces Developer Guide.

Weiterlesen

JSF and Dependency Injection

Last week i noticed that you can easily inject one managed bean into another in your JSF configuration file faces-config.xml. Even if this not new to all of you i will write some configuration details.

Weiterlesen