Mastering JavaServer™ Face phần 1 pps

49 242 0
Mastering JavaServer™ Face phần 1 pps

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Values Validators Configuring Event Listeners Working with Tables 18 9 19 8 2 01 202 203 208 Using Facets A dataTable Example Using a panelGrid Working with Select Lists Summary 218 222 Navigation, Actions, and Listeners Overview Actions and Navigation 223 223 224 Implementing Application Actions Specifying Navigation Rules Chapter 7 209 210 215 227 229 Working with Forms Complex Forms Complex Navigation... Validation Processing Summary 280 283 285 289 289 290 293 296 297 299 300 300 302 305 309 312 Contents Part 3 Applying JSF 313 Chapter 9 Building JSF Applications Overview Architectural Overview JSF in the Architecture Connecting View, Controller, and Model Objects iBank Bill Payment Application 315 315 316 318 319 320 Login Screen Account Summary Review Historical Payments Logging into iBank Configuration... application data or other user interface components, while changes to application data must be reflected immediately in user interface components ■ ■ You wish to reuse one or more user interface components independently of application data The structure of the MVC Pattern is provided in Figure 1. 1 5 6 Chapter 1 Changes to data in the Model may require user interface components in the View to update... that Swing and Struts were faced with In the end, you should not be surprised to see how heavily JSF is influenced by both frameworks MVC and User Interfaces MVC was first popularized with Smalltalk (Goldberg & Robson 19 83) and is now used in many modern user interface frameworks One of the primary benefits of MVC is that it provides reusable components for interactive user interfaces Swing does this admirably... and a button to save the input The user interface is rendered in Figure Intro .1 below Figure Intro .1 Sample customer input form The components involved in this user interface are built in a JSP with the following code The important parts will be discussed below in more detail Introduction . Applications 11 0 Web Application Structure 11 0 Web Application Deployment Descriptor 11 3 Configuring a Web Application for JSF 11 4 FacesServlet Mapping 11 5 JSF Application Configuration Files 11 6 Necessary. Values 10 0 Invoke Application 10 1 Render Response 10 1 Summary 10 3 Part 2 Elements of JSF 10 5 Chapter 4 JSF Configuration 10 7 Overview 10 7 Getting Started 10 8 Introduction to Sample Application 10 8 A. Cycle 81 Overview 81 Faces Request Generates Faces Response 83 Non-Faces Request Generates Faces Response 83 Faces Request Generates Non-Faces Response 84 Non-Faces Request Generates Non-Faces

Ngày đăng: 14/08/2014, 09:22

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan