JSF TUTORIAL

1.           JSF 2(Java Server Faces 2 Latest)

1.1.  JSF is MVC framework

1.2.  It Is server Side Component Based user Interface FRAMEWORK

1.3.  Application which deploy into server and access by multiple user used to created in JSF

1.4.  It Provide well Defined Programming model and consists of rich APIT and tag

1.5.  The Latest version of JSF 2 uses Facelets as its default templating system, It written in Java

2.           JSF Feature

2.1Provides reusable Components for UI development

2.2We can do modification on existing JSF component as well

2.3It Allows Server Side validation as well

2.4Support HTML 5

2.5Support Internationalization

2.6 Inbuilt AJAX support

2.7Security

2.8Facelets Technology

2.9Templating

3.           JSF Benefit

3.1.                       Separation of business logic and View UI

3.2.                       JSF layered directly on top of Servlet API, which enable various application use cased such as, use different presentation technologies, create your own custom component  from component classes

3.3.                       JSF 2.0 has include Facelets technology which act as VIEW (Facelets it is default view handler technology for JSF Facelets support all of the JSF UI component, it completely focused to create view for JSF)

3.4.                       JavaBeans act as Model

4.           JSF Life Cycle : JSF manager there lifecycle automatically as well as allow to manage that manually, life cycle of jsf start once the HTTP request comes from client and completed once the response done

JSF Life cycle Divided into Two Phases:

1.     Execute Phase: when request comes than application view build or restored, than for upcoming requests other actions are performed Like parameter Mapping and applying, conversion and validation for component values, managed bean value will be updated by component values, and then application business logic is called (further steps in execute phase are)

·    Restore View: 1st Phase of JSF, it will stored component tree in FacesContext instance

·    Apply request values: in this phase component tree will retrieve their value for request.

·   Process validations: all converter and validators are executed, if Validation passes tan all other phases executes normally , otherwise jsf adds error message to the FacesContext instance and render response phase executes directly

·  Update model values: Bean properties are updated using corresponding component values

·     Invoke application: Business logic is executed after form submission

·    Render response: Response send to the browser

 

 NEXT--> MANGED BEAN

 

 

 


Comments

Post a Comment

Popular posts from this blog

JunitTest

Log4j2 Setup