Learn Java for Web Development
258 CHAPTER 5: Building Java Web Applications with Spring Web MVC import com.apress.bookstore.model.Book; public class BookVa ...
CHAPTER 5: Building Java Web Applications with Spring Web MVC 259 @Controller @RequestMapping("/addBook.html") public class Add ...
260 CHAPTER 5: Building Java Web Applications with Spring Web MVC Line 29: The BookValidator class is injected using the set ...
CHAPTER 5: Building Java Web Applications with Spring Web MVC 261 Summary This chapter first briefly introduced the Spring Frame ...
263 Chapter 6 Component-Based Web Development Using JSF 2 It’s so beautifully arranged on the plate—you just know someone’s fing ...
264 CHAPTER 6: Component-Based Web Development Using JSF 2 The Architecture of JSF A JSF web framework uses the Model-View-Contr ...
CHAPTER 6: Component-Based Web Development Using JSF 2 265 VDL JSF uses a view declaration language (VDL) to display a page to t ...
266 CHAPTER 6: Component-Based Web Development Using JSF 2 UI Component JSF has a rich component model provided in a standard UI ...
CHAPTER 6: Component-Based Web Development Using JSF 2 267 Converter and Validator JSF provides out-of-the-box converters to con ...
268 CHAPTER 6: Component-Based Web Development Using JSF 2 Configure the project for building a Java application, as illustrated ...
CHAPTER 6: Component-Based Web Development Using JSF 2 269 Figure 6-4. Configuring a dynamic web project Figure 6-5. Configuring ...
270 CHAPTER 6: Component-Based Web Development Using JSF 2 You need to select the JSF implementation library, as illustrated in ...
CHAPTER 6: Component-Based Web Development Using JSF 2 271 Select Mojarra, click Next, and accept the license terms, as illustra ...
272 CHAPTER 6: Component-Based Web Development Using JSF 2 Click Finish. Mojarra will be listed as the selected implementation l ...
CHAPTER 6: Component-Based Web Development Using JSF 2 273 You will create the following files in the project: Managed bean: ...
274 CHAPTER 6: Component-Based Web Development Using JSF 2 Listing 6-1 illustrates the code of the form.xhtml file. Listing 6-1. ...
CHAPTER 6: Component-Based Web Development Using JSF 2 275 Line 10: When the page is submitted, JSF will find the helloBean ...
276 CHAPTER 6: Component-Based Web Development Using JSF 2 Listing 6-4. web.xml <web-app ..... > helloWorldJSF ... ...
CHAPTER 6: Component-Based Web Development Using JSF 2 277 Life Cycle of a JSF Application Unlike Struts and Spring Web MVC, the ...
278 CHAPTER 6: Component-Based Web Development Using JSF 2 Phase 1: Restore View JSF begins the Restore View phase as soon as a ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf