Core JavaServer Faces (Sun Microsystems Press Java Series)

Core JavaServer Faces (Sun Microsystems Press Java Series)

Core JavaServer Faces (Sun Microsystems Press Java Series)

Editorial Reviews
Book Description
When we heard about JavaServer Faces (JSF) at the 2002 Java One conference, we were very excited. Both of us had extensive experience with client-side Java programming, and had lived to tell the tale-David in Graphic Java, and Cay in Core Java, both published by Sun Microsystems Press. When we first tried web programming with servlets and JavaServer Pages (JSP), we found it to be rather unintuitive and tedious. JavaServer Faces promised to put a friendly face in front of a web application, allowing programmers to think about text fields and menus instead of fretting over page flips and request parameters. Each of us proposed a book project to the publisher, who promptly suggested that we should jointly write the Sun Microsystems Press book on this technology. It took the JSF expert group (of which David is a member) another two years to release the JSF 1.0 specification and reference implementation. This release ful-fills many of the original promises. You really can design web user interfaces by putting components on a form and linking them to Java objects, without having to write any code at all. The framework was designed for tool support, and the first batch of drag-and-drop GUI builders is now emerging. The framework is extensible-you are not limited to the standard set of HTML components, and you can even use completely different rendering technologies, to support, for example, wireless devices. And finally, unlike competing technologies that let you tumble down a deep cliff once you step beyond the glitz, JSF supports the hard stuff-separation of presentation and business logic, navigation, connections with external services, and configuration management. Of course, being a 1.0 release, the current version of JSF is far from perfect. Some of the APIs are awkward. We supply you with utility classes in the com.corejsf.util package to reduce your pain. Also, there are fewer components than we originally expected. While JSF has a powerful and convenient data table component, some useful components such as tabbed panes, scrollers, file uploads, and so on, were not included for lack of time. In the book, we show you how to implement these features. Of course, we expect the next release of JSF to remedy many of these shortcomings. We are still excited about JSF, and we hope you will share this excitement when you learn how this technology makes you a more effective web application developer. About This Book This book is suitable for web developers whose main focus is user interface design, as well as for programmers who implement reusable components for web applications. This is in stark contrast to the official JSF specification, a dense and pompously worded document whose principal audience is framework implementors, as well as long-suffering book authors. The first half of the book, extending to the middle of Chapter 6, focuses on the JSF tags. These tags are similar to HTML form tags. They are the basic building blocks for JSF user interfaces. No programming is required for use of to use the tags. We only assume only basic HTML skills for web pages and standard Java programming for the business logic. The first part of the book covers these topics: Setting up your programming environment (Chapter 1) Connecting JSF tags to application logic (Chapter 2) Navigating between pages (Chapter 3) Using the standard JSF tags (Chapters 4 and 5) Converting and validating input (Chapter 6) Starting with the final sections of Chapter 6, we begin JSF programming in earnest. You will learn how to perform advanced tasks, and how to extend the JSF framework. Here are the main topics of the second part: Implementing custom converters and validators (Chapter 6) Event handling (Chapter 7) Including common content among multiple pages (Chapter 8) Implementing custom components (Chapter 9) Connecting to databases and other external services (Chapter 10) Supporting wireless clients (Chapter 11) We end the book with a chapter that aims to answer common questions of the form How do I .? We encourage you to have a peek at that chapter as soon as you become comfortable with the basics of JSF. There are helpful notes on debugging and logging, and we also give you implementation details and working code for features that are missing from JSF 1.0, such as file uploads, popup menus, and a pager component for long tables. JSF is built on top of servlets and JSP, but from the point of view of the JSF developer, these technologies merely form the low-level plumbing. While it can't hurt to be familiar with other web technologies such as servlets, JSP, or Struts, we do not assume any such knowledge. Required Software All software that you need for this book is freely available. You need the Java Software Development Kit from Sun Microsystems, a servlet container such as Tomcat, and, of course, a JSF implementation, such as Sun's reference implementation. The software runs identically on Linux, Mac OS X, Solaris, and Windows. We used the 1.4.2 J2SE and Tomcat 5.0.19 on both Linux and Mac OS X to develop the code examples in the book. We also expect that integrated environments will become commercially available in the near future. Web Support The web page for this book is http://corejsf.com . It contains The source code for all examples in this book Useful reference material that we felt is more effective in browseable form than in print A list of known errors in the book and the code A form for submitting corrections and suggestions 0131463055P08062004

From the Back Cover

JavaServer Faces promises to bring rapid user-interface development to server-side Java. It allows developers to painlessly write server-side applications without worrying about the complexities of dealing with browsers and Web servers. It also automates low-level, boring details like control flow and moving code between web forms and business logic.

JavaServer Faces was designed to support drag and drop development of server-side applications," but you can also think of it as a conceptual layer on top of servlets and JavaServer Pages (JSP). Experienced JSP developers will find that JavaServer Faces provides much of the plumbing that they currently have to implement by hand. If you already use a server-side framework such as Struts, you will find that JavaServers Faces uses a similar architecture, but is more flexible and extensible. JavaServer Faces also comes with server-side components and an event model, which are fundamentally similar to the same concepts in Swing.

JavaServer Faces is quickly becoming the standard Web-application framework. Core JavaServer Faces is the one book you need to master this powerful and time-saving technology.

Without assuming knowledge of JSP and servlets, Core JavaServer Faces:



Core JavaServer Faces (Sun Microsystems Press Java Series)

Core JavaServer Faces (Sun Microsystems Press Java Series),David Geary,Cay Horstmann,Prentice Hall PTR,0131463055,Computer Bks - Languages / Programming,Computer Books: General,Computers,Design,Internet - Web Site Design,JavaServer pages,Programming - General,Programming Languages - Java,Web site development,Web sites,Computers / Programming Languages / Java

Mathematics Book

Core JavaServer Faces (Sun Microsystems Press Java Series)

Books:

  1. Crossing Over Where Art and Science Meet
  2. CSS Hacks and Filters : Making Cascading Stylesheets Work
  3. Cultures in Orbit : Satellites and the Televisual (Console-ing Passions)
  4. Death in the Dining Room and Other Tales of Victorian Culture
  5. Decorating Scrapbooks With Rubber Stamps
  6. Different Drummers : Jazz in the Culture of Nazi Germany
  7. Do Bald Men Get Half-Price Haircuts? : In Search of America's Great Barbershops
  8. Domain-Driven Design: Tackling Complexity in the Heart of Software
  9. Elusive Consumption
  10. Enterprise Service Bus

Books

books

Books

  1. Painting the Secret World of Nature
  2. The Enlargement of the European Union: Opportunities for Business and Trade
  3. Accelerated Dragons
  4. 180 Ways to Build a Magnetic Culture
  5. PreTest Step 1 Career Pack
  6. Sparrows of the United States and Canada: A Photographic Guide (A Volume in the AP Natural World Series)
  7. Practical Math for Respiratory Care: A Text and Workbook
  8. The Legend of Seyavash (Persian Classics)
  9. The Emerald Dagger
  10. The New England Table
  11. The Gardener's Guide to Growing Orchids (Brooklyn Botanic Garden All-Region Guide)
  12. The Family in Social Context
  13. The Problem of the Media: U.S. Communication Politics in the Twenty-First Century
  14. The Kingdon Pocket Guide to African Mammals (Princeton Pocket Guides)
  15. The Two Cultures (Canto)
  16. German Books: Deutsche Bücher ~ 6
  17. Praxis Ratgeber, Rhodesian Ridgeback
  18. Umrisskarten. Nr. 10011. Südwestasien
  19. The Lean Six Sigma Pocket Toolbook: A Quick Reference Guide to 100 Tools for Improving Quality and Speed