CHAPTER 6: Component-Based Web Development Using JSF 2 293
Listing 6-21. applicationContext.xml
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" - xmlns:aop="http://www.springframework.org/schema/aop"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.2.xsd
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-3.2.xsd">
- <bean id="dataSourceBean"
- class="org.springframework.jdbc.datasource.DriverManagerDataSource">
Lines 18 to 20: Configures bookController with bookService
Developing Templates
You will reuse the template and the template client file developed earlier for the header and
sidebar of the bookstore application. However, you need to modify sideBar.xhtml to invoke the
listOfAllBooks action in the bookController bean, as illustrated in Listing 6-22.