Sun Java Solaris Communities My SDN Account Join SDN
 
Books & Authors

JavaServer Faces in Action Book Excerpt

 

Book Index

JavaServer Faces in Action by Kito Mann
January 2005

Chapter 8, "Developing a User Interface Without Java Code: The Login Page"

JavaServer Faces in Action Book Cover

The Sun Developer Network is pleased to present two chapters from JavaServer Faces in Action published by Manning Publications Co.

About the Book

JavaServer Faces In Action helps front-end developers, back-end developers, and architects understand how they can get the most out of JavaServer Faces technology. It guides developers to the new official standard for simplifying Java web development, and explains what JavaServer Faces technology is, how it works, and how it relates to other frameworks and technologies like Struts, Servlets, Portlets, JavaServer Pages (JSP), and JSTL. In addition, this book covers the standard components, renderers, converters, and validators, along with advice on how to use them to create solid applications. The building of complete JavaServer Faces applications is demonstrated with an in-depth case study covering complex user interface layouts, prototyping, and integrating templates with back-end model objects. Details are given for advanced techniques like internationalization, integration with Struts, and extending JavaServer Faces technology with custom components, renderers, converters, and validators.

About the Chapter

Chapter 8, "Developing a User Interface Without Java Code: The Login Page," shows how to build a static Login page with JavaServer Faces and JSP by examining each element of the Login page, such as creating the page, importing the proper tag libraries, and adding Html-GraphicImage and HtmlOutputText components. Next, go through the steps of adding a form for collecting the username and password, and adding a button image, Cascading Style Sheets, and JavaScript for an image rollover. Lastly, this chapter details how to add validators with room for error mesages to the Login page, customizing the message with a resource bundle.

Take the Quiz

Ordering Information

About the Author

Kito Mann is an enterprise architect who has developed applications with a wide variety of technologies on several different platforms. He has consulted with Fortune 500 clients, including Prudential Financial and J. P. Morgan Chase & Company, and was recently the chief architect of an educational application service provider. He is also the founder of JSFCentral.com, a site devoted to the JavaServer Faces community. He lives in Stamford, Connecticut.

More Information

Read articles and other documentation about JavaServer Faces technology on java.sun.com.

Rate and Review
Tell us what you think of the content of this page.
Excellent   Good   Fair   Poor  
Comments:
Your email address (no reply is possible without an address):
Sun Privacy Policy

Note: We are not able to respond to all submitted comments.