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
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
Search News
News Categories
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
-
How to stand out from other Java/JEE Professionals?
Published about 14-01-2009 | Rated +3 -
10 reasons IT certification will be important in 2009
Published about 05-01-2009 | Rated +2 -
The 9 hottest skills for `09
Published about 02-01-2009 | Rated +1 -
New Features in Servlets 3.0
Published about 05-01-2009 | Rated +4
Most Recent User Submitted News
- How does Java allocate stack and heap memory?
Submitted by Balamurali | Rated 0 - Threads
Published about 30-04-2009 | Rated +1 - JavaBlackBelt and 50,000 Members Bring 2.0 Skills Management for Java to US and India Enterprises
Submitted by Yatin | Rated +1 - The Object class
Submitted by Mahi | Rated +3







