1. Trang chủ
  2. » Công Nghệ Thông Tin

OReilly javaserver faces apr 2004 ISBN 0596005393

1,4K 476 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 1.358
Dung lượng 5,11 MB

Nội dung

• • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic JavaServer Faces By Hans Bergsten Publisher : O'Reilly Pub Date : April 2004 ISBN : 0-596-00539-3 Pages : 606 Slots : 1.0 In JavaServer Faces, developers learn how to use the new JavaServer Faces framework to build real-world web applications The book contains everything you'll need: how to construct the HTML on the front end; how to create the user interface components that connect the front end to your business objects; how to write a back-end that's JSFfriendly; and how to create the deployment descriptors that tie everything together This book is a complete guide to the crucial new JSF technology • • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic JavaServer Faces By Hans Bergsten Publisher : O'Reilly Pub Date : April 2004 ISBN : 0-596-00539-3 Pages : 606 Slots : 1.0 Copyright Preface In This Book Audience Organization Conventions Used in This Book Acknowledgments About the Examples How to Contact Us Chapter 1 Introducing JavaServer Faces Section 1.1 What Is JavaServer Faces? Section 1.2 How Does JSF Compare to Traditional Technologies? Section 1.3 Where Does JSF Fit in the Big Picture? Section 1.4 What You Need to Get Started Chapter 2 JSF Development Process Overview Section 2.1 Developing an Application with a JSF-Based User Interface Section 2.3 Developing Components and Integration Code Section 2.2 Developing the Application Backend Section 2.4 Developing the User Interface Pages Chapter 3 Setting Up the JSF Environment Section 3.1 Installing the Java Software Development Kit Section 3.2 Installing the Tomcat Server Section 3.3 Testing Tomcat Section 3.5 Example Web Application Overview Section 3.4 Installing the Book Examples Chapter 4 Servlet and JavaServer Pages Basics Section 4.1 HTTP Section 4.2 Web Application Deployment and Runtime Environment Section 4.3 Servlets, Filters, and Listeners Section 4.5 Accessing Application Data Section 4.4 JavaServer Pages Chapter 5 Developing the Business Logic and Setting Up Authentication Section 5.1 Sample Application Overview Section 5.2 Implementing the Business Logic Classes Section 5.3 Authentication and Authorization Chapter 6 Creating and Rendering Components Section 6.1 The Basics Section 6.2 Binding Components to Model Properties Section 6.3 Conditionally Render Components Chapter 7 Validating Input Section 7.1 Dealing with Syntax Errors in User Input Section 7.2 Using the Standard Validators Section 7.3 Defining Custom Error Messages Section 7.5 Other Ways to Validate Input Section 7.4 Using a Custom Validator Chapter 8 Handling Events Section 8.1 Understanding the JSF Event Model Section 8.2 Handling Application Backend Events Section 8.3 Handling User Interface Events Chapter 9 Controlling Navigation Section 9.1 Moving Between JSF Views Section 9.2 Returning a Non-JSF View Response Section 9.3 Returning a JSF View Response to a Non-JSF Request Chapter 10 Working with Tabular Data Section 10.1 Displaying a Read-Only Table Section 10.2 Processing Row-Specific Events Section 10.3 Dealing with Large Tables Section 10.4 Editing Tabular Data Chapter 11 Internationalization Section 11.1 Localizing Application Output Section 11.2 Handling Localized Application Input Section 11.3 Dealing with Non-Western Languages Chapter 12 Odds and Ends Section 12.1 Building a View from Many JSP Files Section 12.2 Combining JSF Views with Other Content Section 12.3 Dealing with Struts Applications and JSF Section 12.5 Using a PhaseListener Section 12.4 Programmatically Modifying Components Section 12.6 Debugging and Error Handling Ideas Chapter 13 Developing Custom Renderers and Other Pluggable Classes Section 13.1 Developing Custom Renderers Section 13.2 Using Other Custom Classes Section 13.3 Packaging Custom Classes Chapter 14 Developing Custom Components Section 14.1 Extending an Existing Component Section 14.2 Developing a New Component from Scratch Chapter 15 Developing a Custom Presentation Layer Section 15.1 The ViewHandler Class Section 15.2 Using Java Classes as Views Section 15.3 Using Pure HTML Templates with XML View Definition Files Appendix A Standard JSF Tag Libraries Section A.1 JSF Tag Libraries URIs and Default Prefixes Section A.2 HTML Tag Library Actions Section A.3 Core Library Actions Appendix B JSF Expression Language Reference Section B.1 Syntax Section B.2 Variables Section B.3 Data Types Section B.4 Expressions and Operators Appendix C Standard JSF Components and Render Kits Section C.1 Component Class Categories Section C.2 Render-Independent Components Section C.3 HTML Render Kit Classes Section C.5 Request Processing Lifecycle Section C.4 HTML-Specific Component Classes Appendix D Infrastructure API Reference Section D.1 Package javax.faces Section D.2 Package javax.faces.application Section D.3 Package javax.faces.context Section D.5 Package javax.faces.el Section D.7 Package javax.faces.lifecycle Section D.9 Package javax.faces.validator Section D.11 Identifiers for Standard JSF Messages Section D.4 Package javax.faces.convert Section D.6 Package javax.faces.event Section D.8 Package javax.faces.render Section D.10 Package javax.faces.webapp Appendix E JSF Configuration File Reference , , and Appendix F Web Application Structure and Deployment Descriptor Reference Section F.1 Web Application File Structure Section F.2 Web Application Deployment Descriptor Section F.3 Creating a WAR File Colophon Index Copyright © 2004 O'Reilly Media, Inc Printed in the United States of America Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O'Reilly Media books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (http://safari.oreilly.com) For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly Media, Inc The Java Series, JavaServer ™ Faces, the image of a Barbary ape, and related trade dress are trademarks of O'Reilly Media, Inc Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc., in the United States and other countries Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O'Reilly Media, Inc was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein Preface JavaServer™ Faces (JSF) is the latest Java™ web application technology, building on the experience gained from Java Servlets, JavaServer™ Pages (JSP), and numerous commercial and open source web application frameworks JSF defines an event-driven, component-based model for web application development, similar to the model that has been used successfully for standalone GUI application for years This is an area that has received a lot of attention from vendors over the last few years The highly anticipated publication of a Java Community Process (JCP) developed specification that addresses this need means that vendors can now focus on developing first-class development tools and user interface components based on the JSF specification rather than reinventing the wheel with proprietary APIs, and you will reap all the benefits of a larger market In This Book This book covers Version 1.0 of the JSF specification, which was released in March 2004 The first four chapters gives an introduction to what JSF has to offer and how it relates to other Java enterprise technologies You'll also learn about the fundamentals technologiesHTTP, Java web containers, servlets, and JSPand how to install and setup a Java web container Next, you will learn how to use all the standard JSF components and other features (such as input validation, data type conversion, page navigation, and internationalization), as well as how to develop customized versions of these items Each chapter illustrates how to use a specific feature through stepwise refinement of a sample web application In addition to showing you what to do, the book also describes what's happening behind the scenes, helping you gain a deeper understanding of how JSF works and how to use this technology in your own applications The sample application used in this book is an expense report system, where users create, edit, and submit expense reports for approval, and managers accept or reject reports It's a realistic example that guides you through solutions to common JSF application design problems, such as authenticating users, connecting the business logic objects to the user interface while still keeping each aspect decoupled, distinguishing between user interface events and application events, customizing and localizing messages, and building a complete user interface in a modular fashion The last three chapters describe advanced topics, such as how to develop custom components and custom presentation layers Audience Developing a web application takes people with different skills, and the JSF specification associates these skill sets with role names A page author is a person who knows the client-side technology (e.g., HTML, CSS, and JavaScript) but isn't a programmer An application developer is a Java programmer who understands the application domain and how to develop solutions in terms of business objects A component writer is a person who develops custom components and connects the user interface developed by the page author to the business objects developed by the Application Developer The Component Writer must know both Java and the JSF API, and have a good idea about how JSF processes requests and produces responses This book covers the tasks for all these roles What You Need to Know I assume that the readers of this book have experience with HTML; consequently, I don't explain the standard HTML elements used in the examples If you want to learn more about HTML, I recommend HTML and XHTML: The Definitive Guide by Chuck Musciano and Bill Kennedy (O'Reilly Media, Inc.) But even if you're an HTML wiz, this may be your first exposure to web applications I have therefore included a thorough introduction to the HTTP protocol that drives all web applications I also assume that you're a programmer familiar with Java programming and object-oriented concepts If that's not the case, you must learn Java before you continue reading this book There are plenty of introductory Java books available, for instance Head First Java (O'Reilly) by Kathy Sierra and Bert Bates, and Learning Java (O'Reilly) by Patrick Niemeyer and ... solution that all frameworks can use The result is JavaServer Faces; the 1.0 version of the specification was released in March 2004 1.1 What Is JavaServer Faces? JavaServer Faces (JSF) simplifies development of sophisticated... Package javax .faces Section D.2 Package javax .faces. application Section D.3 Package javax .faces. context Section D.5 Package javax .faces. el Section D.7 Package javax .faces. lifecycle... Table of Contents Index Reviews Reader Reviews Errata Academic JavaServer Faces By Hans Bergsten Publisher : O'Reilly Pub Date : April 2004 ISBN : 0-596-00539-3 Pages : 606 Slots : 1.0 Copyright

Ngày đăng: 26/03/2019, 16:34