This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
Overview
Download & View Introduction To Java Server Faces Jsf Sun Ppt as PDF for free.
MVC for web applications Clean separation of roles Easy to use Extendable Component and Rendering architecture Support for client device independence Standard Huge vendor and industry support 6
Why JSF? (page 2) ●
JSP and Servlet –
●
Struts (I am not saying you should not use Struts) – – – – –
●
No built-in UI component model No built-in UI component model No built-in event model for UI components No built-in state management for UI components No built-in support of multiple renderers Not a standard (despite its popularity)
Struts and JSF can be used together 7
How the JSF Specification Fits In JSF App JSF App JSF Tags JSP (1.2)
JSF API
Servlets (2.3)
8
Agenda
What is and why JSF? Architecture Overview UI Component Model Development Steps
JSF Architecture [MVC] Server JSF Page
Desktop Browser
HTML HTML RenderKit
Front ctrl
JSF Page
App Backend
WML RenderKit
Phone WML
10
Request processing Lifecycle FacesServlet 2.Passes controls to Lifecycle
Lifecycle
1.Creates FacesContext
FacesContext 3. Process FacesContext in various phase
Must include JSF tag library HTML and core tags All JSF tags must enclosed between a set of view tag Use JSF form and form component tags not not May include validators and event listeners on any form components