Abstract
In 2004 Sun Microsystems introduced a Java web framework called JavaServer Faces (JSF) in an effort to help simplify web application development. It is an evolution of the JavaServer Pages (JSP) framework, adding a more organized development life cycle and the ability to more easily utilize modern web technologies. JSF uses XML files for view construction and uses Java classes for application logic, making it adhere to the MVC architecture. JSF is request-driven, and each request is processed by a special servlet named the FacesServlet. The FacesServlet is responsible for building the component trees, processing events, determining which view to process next, and rendering the response. JSF 1.x used a special resource file named the faces-config.xml file for specifying application details such as navigation rules, registering listeners, and so on. While the faces-config.xml file can still be used in JSF 2.x, the more modern releases of JSF have focused on being easy to use, minimizing the amount of XML configuration, and utilizing annotations in place of XML where possible.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Josh Juneau
About this chapter
Cite this chapter
Juneau, J. (2013). The Basics of JavaServer Faces. In: Java EE 7 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4426-4_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4426-4_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4425-7
Online ISBN: 978-1-4302-4426-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books