JavaServer Faces Application - Sample
Creating a Simple JavaServer Faces Application JavaServer Faces technology provides an easy and user-friendly process for creating web applications. Developing a simple JavaServer Faces application typically requires the following tasks: Developing managed beans Creating web pages using component tags Mapping the javax.faces.webapp.FacesServlet instance This section describes those tasks through the process of creating a simple JavaServer Faces Facelets application. The example is a Hello application that includes a managed bean and a web page. When accessed by a client, the web page prints out a Hello World message. The tasks involved in developing this application can be examined by looking at the application components in detail. Developing the Managed Bean A managed bean is a lightweight container-managed object. Components in a page are associated with managed beans that provide application logic. The example managed bean, Hello.jav...