2006-01-10

POJ - JavaServer Faces in Action Book Excerpt (free 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.
download