See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
News »Browse Articles » Integrating Spring and JSF
0
Vote Vote

Integrating Spring and JSF

Views 2 Views    Comments 0 Comments    Share Share    Posted 24-09-2009  
1) Introduction

This article provides an introduction on how Spring and Java Server Faces Technologies can be integrated. It covers the necessary details of both Spring and JSF Technology in the initial section in the context of Integration. Later on it moves towards the concept of Variable Resolvers which help in easing the integration between the two technologies. Then a full-fleged sample application is followed to get a greater feel and understanding of the integration.
2) Spring-JSF Integration
2.1) Introduction

Before getting into the details of how Sping-JSF Integration, it is important to know a bit about basic details. The following section will talk about how the base architecture is structured for both Spring and JSF in the context of integration.
2.2) Spring

Spring is a framework that supports of Inversion of Control. For more information about Spring`s Introduction, readers are advised to read the article http://spring.javabeat.net/articles/2007/06/introduction-spring-web-framework in javabeat. Inversion of Control (IOC) enables you to decouple several components that fit in an Application. In Spring terminology, Beans (or Spring Beans) are nothing but regular java classes. It is possible to externalize the state of Bean objects by specifying them in the Xml file. A spring Bean has a dedicated life-cycle and it passes through various phases. Spring`s IOC is responsible for reading the Xml file and constructing Spring Beans from the various meta-data information. So, the main responsibility of IOC is to make the Spring Beans available to the client Application. And the other core of IOC is to provide wiring between Spring Beans. So, instead of Application code manually managing the relationship between Beans, now the burden of maintaining this is delegated to the Spring`s IOC. An example bean called Person is as follows,

Source:
http://www.javabeat.net/articles/39-integrating-spring-and-jsf-1.html
0
Vote  Vote
Enter your comment:
No Comments For This News

Search News

What's the News?

Post a link to something interesting from another site, or submit your own original writing for the Java community to read.

Most Popular News

Most Recent User Submitted News