• • Table of Contents Index Java™ Studio Creator Field Guide By Gail Anderson, Paul Anderson Publisher : Addison Wesley Pub Date : June 28, 2004 ISBN : 0-13-149168-7 Pages : 368 Sun's Java Studio Creator (formerly Project Rave) offers you a remarkably productive visual environment for building, integrating, and delivering business-critical applications Direct from Sun, Java (TM) Studio Creator Field Guide is your definitive guide to Java Studio Creator Leading Java platform instructors and consultants Gail and Paul Anderson help you use Java Studio Creator to simplify and accelerate your entire development process One step at a time, the Andersons walk you through Mastering Java Studio Creator's interface and workflow Simplifying Web development with JavaServer(TM) Faces components, validators, and data converters Controlling Web application page flow with the Page Navigation editor Building Creator projects with JavaBeans(TM) components Accessing Web services using XML-based open standards: a case study using Google Web Service APIs Using databases and data-aware components including detailed coverage of new JDBC(TM) RowSets Customizing applications: localization, internationalization, and custom validation Debugging with Creator's built-in debugger With Java Studio Creator and this book, you'll spend less time on application "plumbing"-leaving more time for the high-value tasks you really care about Simply put, you'll get more done, faster and have more fun doing it • • Table of Contents Index Java™ Studio Creator Field Guide By Gail Anderson, Paul Anderson Publisher : Addison Wesley Pub Date : June 28, 2004 ISBN : 0-13-149168-7 Pages : 368 Copyright Foreword Preface How This Book Is Organized About the Examples Stay Current with Creator! Notational Conventions About the Front Cover Acknowledgments Chapter 1 Java Technology Overview Section 1.1 Introduction Section 1.2 The Java Programming Language Section 1.4 NetBeans Software Section 1.6 The J2EE Architecture Section 1.8 JavaServer Pages Technology Section 1.3 JavaBeans Components Section 1.5 The XML Language Section 1.7 Java Servlet Technology Section 1.9 JDBC API and JDBC RowSets Section 1.10 JavaServer Faces Technology Section 1.11 Ant Build Tool Section 1.12 Web Services Section 1.13 Key Point Summary Chapter 2 Creator Basics Section 2.1 Examples Installation Section 2.2 Creator Views Section 2.3 Sample Application Section 2.4 Key Point Summary Chapter 3 JSF Standard Components Section 3.1 JSF Overview Section 3.2 Components Section 3.4 JSF Validators Section 3.3 Component Catalog Section 3.5 JSF Data Converters Section 3.6 Key Point Summary Chapter 4 Page Navigation Section 4.1 Navigation Model Section 4.2 Simple Navigation Section 4.4 Dynamic Navigation Section 4.3 Noncommand Components Section 4.5 Key Point Summary Chapter 5 JavaBeans Components Section 5.1 What Is a Bean? Section 5.2 LoginBean Component Section 5.3 LoanBean Component Section 5.4 Key Point Summary Chapter 6 Accessing Web Services Section 6.1 Google Web Services Section 6.2 Validation Section 6.3 HTML with Output Text Section 6.4 Displaying Multiple Pages Section 6.5 Key Point Summary Chapter 7 Accessing Databases Section 7.1 Database Fundamentals Section 7.2 Data Sources Section 7.4 Database Joins Section 7.6 Database Row Inserts Section 7.3 Accessing the Music Database Section 7.5 Database Updates Section 7.7 Database Deletions Section 7.8 Key Point Summary Chapter 8 Customizing Applications with Creator Section 8.1 Localizing an Application Section 8.2 Internationalizing an Application Section 8.3 Controlling the Locale from the Application Section 8.4 Creating Custom Validation Section 8.5 Key Point Summary Chapter 9 Debugging with Creator Section 9.1 Planning for Debugging Section 9.2 Running the Debugger Section 9.4 Stepping Through the Code Section 9.6 Setting Watches Section 9.8 Detecting Exceptions Section 9.10 Finish Debugging Section 9.3 Setting Breakpoints Section 9.5 Tracking Variables Section 9.7 Using the Call Stack Section 9.9 Using Log Files Section 9.11 Key Point Summary Index Copyright © 2004 Gail Anderson and Paul Anderson Published by Prentice Hall PTR Prentice-Hall, Inc Upper Saddle River, NJ 07458 All rights reserved This product and related documentation are protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation No part of this product or related documentation may be reproduced in any form by any means without prior written authorization of Sun and it's licensors, if any RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the United States Government is subject to the restrictions as set forth in DFARS 252.227-7013 (c)(1)(ii) and FAR 55.227.19 The products described in this book may be protected by one or more U.S patents, foreign patents, or pending patents TRADEMARKSHotJava, Java, Java Development Kit, J2EE, JSP, JavaServer Pages, Enterprise JavaBeans, EJB, JDBC, J2SE, Solaris, SPARC, SunOS, and SunSoft are trademarks of Sun Microsystems, Inc All other products or services mentioned in this book are the trademarks or service marks of their respective companies or organizations Prentice Hall PTR offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales For more information, please contact U.S Corporate and Government Sales, 1-800-382-3419, corpsales@pearsontechgroup.com For sales outside of the U.S., please contact International Sales, 1-317-581-3793, international@pearsontechgroup.com Acquisitions Editor: Gregory G Doench Editorial Assistant: Raquel Kaplan Sun Microsystems Press Publisher: Myrna Rivera Text printed on recycled paper 1 2 3 4 5 6 7 8 9 10CRS0807060504 First printing, June 2004 Sun Microsystems Press A Prentice Hall Title Foreword The developers who set out to build Java Studio Creator had a very difficult task: to make the creation of sophisticated enterprise applications easy The set of technologies that comprise Java2 Enterprise Edition (J2EE) is huge The good side is that J2EE is battle hardened and field proven to be an excellent base for large scale mission critical applications There are many excellent books that cover all of the aspects of J2EE in great detail But all of this leads to the bad side of J2EE: it can be difficult and time-consuming to learn and use Tremendous effort goes into making J2EE as simple as possible, but it remains daunting Java Studio Creator is a huge leap in the simplification of the process of developing J2EE based web applications Developers don't need to deal with all of the gory details: Creator just handles them Instead, developers can focus on what their application does and looks like in a very simple and straightforward way They weave together data sources through a simple drag-and-drop interface Very little knowledge of Java or J2EE is required to develop applications in Creator Creator not only simplifies the process: it also accelerates it This book contains all that you need to know to generate enterprise applications using Creator It doesn't require that you know anything about J2EE or even Java: there are gentle introductory chapters that lead you through what you need to know This is a great entry point for developers from other platforms (like Visual Basic!) to enter the world of large-scale, mission-critical applications It's fun Take the plunge James Gosling Sun Microsystems, Inc Preface You're about to embark on a journey that we hope will prove both enjoyable and fruitful Certainly the aim of any application development tool is to help developers become efficient and allow them to spend time on creative tasks while the tool silently generates the drudgery for them To that end, we hope this book will teach you the ins and outs of Creator so that you can quickly begin to build web applications Before you start, we'd like to take a moment to explain the organization of the book and the "method behind the madness" of our project examples ... and have more fun doing it • • Table of Contents Index Java Studio Creator Field Guide By Gail Anderson, Paul Anderson Publisher : Addison Wesley Pub Date : June 28, 2004 ISBN : 0-13-149168-7 Pages : 368 Copyright... 1 2 3 4 5 6 7 8 9 10CRS0807060504 First printing, June 2004 Sun Microsystems Press A Prentice Hall Title Foreword The developers who set out to build Java Studio Creator had a very difficult task: to make the creation of sophisticated... text field loanAmount Creator components output text, text field, dropdown list filename color1.properties, Page1.jsp Java class String, Object, Integer Java code username.setValue("rave4u") JavaBeans