Core JavaServer(TM) Faces by David Geary, Cay S. Horstmann

By David Geary, Cay S. Horstmann

JavaServer Faces (JSF) is instantly rising as the prime answer for swift person interface improvement in Java-based server-side purposes. Now, middle JavaServer™ Faces –the number 1 consultant to JSF–has been completely up to date during this moment version, overlaying the newest characteristic improvements, the robust Ajax improvement recommendations, and open resource thoughts that make JSF much more valuable.

Authors David Geary and Cay Horstmann delve into all points of JSF 1.2 improvement, providing systematic most sensible practices for construction strong purposes, minimizing handcoding, and maximizing productiveness. Drawing on unsurpassed insider wisdom of the Java platform, they current strategies, tricks, information, and “how-tos” for writing enhanced JSF 1.2 creation code, whether you’re new to JSF, JavaServer Pages™, or servlets.

The moment edition’s huge new insurance comprises: JSF 1.2’s superior alignment with the wider Java EE five platform; improvements to the JSF APIs; controlling net move with Shale; and utilizing Facelets to exchange JSP with XHTML markup. The authors additionally introduce Ajax improvement with JSF–from real-time validation and Direct net Remoting to wrapping Ajax in JSF parts and utilizing the preferred Ajax4jsf framework.

This ebook can assist you

  • Automate low-level info and put off pointless complexity in server-side development
  • Discover JSF top practices, starting from potent UI layout and magnificence sheets to internationalization
  • Use JSF with Tiles to construct constant, reusable person interfaces
  • Leverage exterior prone similar to databases, LDAP directories, authentication/authorization, and internet services
  • Use JBoss Seam to enormously simplify improvement of database-backed purposes
  • Implement customized elements, converters, and validators
  • Master the JSF 1.2 tag libararies, and expand JSF with extra tag libraries

Preface Acknowledgments bankruptcy 1: Getting all started bankruptcy 2: controlled Beans bankruptcy three: Navigation bankruptcy four: typical JSF Tags bankruptcy five: information Tables bankruptcy 6: Conversion and Validation bankruptcy 7: occasion dealing with bankruptcy eight: Subviews and Tiles bankruptcy nine: customized parts, Converters, and Validators bankruptcy 10: exterior companies bankruptcy eleven: Ajax bankruptcy 12: Open resource bankruptcy thirteen: How Do I . . . Index 

Show description

Read or Download Core JavaServer(TM) Faces PDF

Similar system administration books

Pro SQL Server 2005 Reporting Services

SQL Server Reporting prone 2005 is the most recent model of thereporting expertise from Microsoft, delivering the capacity to design,author, render, and set up enterprise studies to clients, consumers, andemployees, through the net or the corporate intranet. The reporting engineis in-built to the SQL Server 2005 database (and supplied as a freeadd-on with SQL Server 2000) and the record supervisor is integratedwith visible Studio 2003, offering an efficient and familiarenvironment for all SQL Server and.

Beginning SQL Server2005 Administration

For the 1st time, SQL Server 2005 offers gains that may help large-scale firm databases. With this robust iteration, you'll end up being known as upon to accomplish tasks which are now not strictly "administrative," tasks that experience turn into even more complex and tough.

Management and Administration Skills for the Mental Health Professional (Practical Resources for the Mental Health Professional)

Psychologists obtain a number of years of specialised learn at the mind, habit, and psychological well-being, yet even though over part eventually prove in administrative or managerial roles, they obtain no formalized education within the talents essential to prevail in those roles. This ebook is the 1st of its variety to focus on the managerial and administrative abilities worthy for the psychological healthcare professional.

Additional info for Core JavaServer(TM) Faces

Example text

Fm Page 28 Wednesday, May 12, 2004 6:37 AM 28 Chapter 1 ■ Getting Started The form data is a string of ID/value pairs, such as _id0:_id1=me&_id0:_id2=secret&_id0:_id3=Login&_id0=_id0 As part of the normal servlet processing, the form data is placed in a hash table that all components can access. Next, the JSF framework gives each component a chance to inspect that hash table, a process called decoding. Each component decides on its own how to interpret the form data. The login form has three component objects: two UIInput objects that correspond to the text fields on the form and a UICommand object that corresponds to the submit button.

After the converters and validators have done their work, it is assumed that it is safe to update the model data. During the Update Model phase, the local values are used to update the beans that are wired to the components. In the Invoke Application phase, the action method of the button or link component that caused the form submission is executed. That method can carry out arbitrary application processing. It returns an outcome string that is passed to the navigation handler. The navigation handler looks up the next page.

Let us look behind the scenes of our sample application. faces. jsp page. That page contains tags such as f:form and h:inputText. Each tag has an associated tag handler class. When the page is read, the tag handlers are executed. The JSF tag handlers collaborate with each other to build a component tree (see Figure 1–11). Figure 1–11 Component Tree of the Sample Application The component tree is a data structure that contains Java objects for all user interface elements on the JSF page. For example, the two UIInput objects correspond to the h:inputText and h:inputSecret fields in the JSF file.

Download PDF sample

Rated 4.96 of 5 – based on 22 votes