SlideShare a Scribd company logo
1 of 35
JavaServer Faces 2.0 Overview Roger Kitain JSF Co-Specification Lead mailto:Roger.Kitain@Sun.Com http://www.java.net/blogs/rogerk/ https://twitter.com/rogerk09
Hi Level Categories of Features Foundational New  Features Large New  Features
System Events ,[object Object]
JSF Lifecycle events
Listeners registered at 3 scopes: ,[object Object]
View: UIViewRoot.subscribeToEvent()
Application: Application.subscribeToEvent() ,[object Object],[object Object],[object Object],<h:inputText> <f:event type=”preValidate” listener=”#{bean.preVal}”/> </h:inputtext>
Resources ,[object Object]
Loaded from Classpath or filesystem
Library / i18n / Versioning Support
Java API: ,[object Object]
“ Target” Attribute: head, body, form ,[object Object],[object Object]
Resources
View Traversal ,[object Object]
Useful for component(s) processing
VisitContext ,[object Object]
createVisitContext() ,[object Object],[object Object],[object Object]
Partial State Saving ,[object Object]
Performance issues(session bloat) ,[object Object],[object Object]
Per view state size up to 4 x smaller
Default for JSF 2.0 components (written with Facelets)
PartialStateHolder ,[object Object],[object Object],[object Object]
No need for saveState/restoreState
GET Request Support View Parameters ,[object Object]
Mappings specified with <f:viewParam> component: <f:metadata> <f:viewParam  name=”user” value=”#{bean.userName}” /> </f:metadata> ,[object Object]
<f:viewParam> is EditableValueHolder ,[object Object]
GET Request Support <h:link>  <h:button> ,[object Object]
Uses JSF navigation system for determining destination <h:link outcome=”success”/> ,[object Object],<h:link outcome=”success” includeViewParams=”true”/> ,[object Object]
JSF 2.0 Component Model Why Do We Need It? ,[object Object]
Renderer
Tag class
Tld
faces-config.xml
......
JSF 2.0 Component Model ,[object Object]

More Related Content

What's hot

Java Server Faces (JSF) - advanced
Java Server Faces (JSF) - advancedJava Server Faces (JSF) - advanced
Java Server Faces (JSF) - advanced
BG Java EE Course
 
OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial Intro
Pamela Fox
 

What's hot (20)

Java Server Faces (JSF) - advanced
Java Server Faces (JSF) - advancedJava Server Faces (JSF) - advanced
Java Server Faces (JSF) - advanced
 
JSF Custom Components
JSF Custom ComponentsJSF Custom Components
JSF Custom Components
 
Jsf
JsfJsf
Jsf
 
Vaadin Components @ Angular U
Vaadin Components @ Angular UVaadin Components @ Angular U
Vaadin Components @ Angular U
 
Rails Plugins - Linux For You, March 2011 Issue
Rails Plugins - Linux For You, March 2011 IssueRails Plugins - Linux For You, March 2011 Issue
Rails Plugins - Linux For You, March 2011 Issue
 
OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial Intro
 
An Introduction to Django Web Framework
An Introduction to Django Web FrameworkAn Introduction to Django Web Framework
An Introduction to Django Web Framework
 
Struts Overview
Struts OverviewStruts Overview
Struts Overview
 
Ajax Rails
Ajax RailsAjax Rails
Ajax Rails
 
Extend sdk
Extend sdkExtend sdk
Extend sdk
 
How to Webpack your Django!
How to Webpack your Django!How to Webpack your Django!
How to Webpack your Django!
 
Vaadin Components
Vaadin ComponentsVaadin Components
Vaadin Components
 
One Weekend With AngularJS
One Weekend With AngularJSOne Weekend With AngularJS
One Weekend With AngularJS
 
Securing JSF Applications Against the OWASP Top Ten
Securing JSF Applications Against the OWASP Top TenSecuring JSF Applications Against the OWASP Top Ten
Securing JSF Applications Against the OWASP Top Ten
 
Angular js
Angular jsAngular js
Angular js
 
Introduction to JSF
Introduction toJSFIntroduction toJSF
Introduction to JSF
 
Spring MVC 3.0 Framework (sesson_2)
Spring MVC 3.0 Framework (sesson_2)Spring MVC 3.0 Framework (sesson_2)
Spring MVC 3.0 Framework (sesson_2)
 
Django 1.10.3 Getting started
Django 1.10.3 Getting startedDjango 1.10.3 Getting started
Django 1.10.3 Getting started
 
What You Need To Build Cool Enterprise Applications With JSF
What You Need To Build Cool Enterprise Applications With JSFWhat You Need To Build Cool Enterprise Applications With JSF
What You Need To Build Cool Enterprise Applications With JSF
 
UI5con 2018: News from Control Development
UI5con 2018: News from Control DevelopmentUI5con 2018: News from Control Development
UI5con 2018: News from Control Development
 

Viewers also liked (7)

Lpo Dag Van De Wabo 2009 Vl
Lpo   Dag Van De Wabo 2009   VlLpo   Dag Van De Wabo 2009   Vl
Lpo Dag Van De Wabo 2009 Vl
 
Whs STaR Chart
Whs STaR ChartWhs STaR Chart
Whs STaR Chart
 
Arab Internet Governance Forum MultiStakeholder Model
Arab Internet Governance Forum MultiStakeholder ModelArab Internet Governance Forum MultiStakeholder Model
Arab Internet Governance Forum MultiStakeholder Model
 
Con5133
Con5133Con5133
Con5133
 
10 MontañAs Europeas
10 MontañAs Europeas10 MontañAs Europeas
10 MontañAs Europeas
 
Ngày đẹp nhất đời tôi
Ngày đẹp nhất đời tôiNgày đẹp nhất đời tôi
Ngày đẹp nhất đời tôi
 
Prezentarea lui Serban de la Marketing 360
Prezentarea lui Serban de la Marketing 360Prezentarea lui Serban de la Marketing 360
Prezentarea lui Serban de la Marketing 360
 

Similar to JSF 2.0 (JavaEE Webinar)

Swiss army knife Spring
Swiss army knife SpringSwiss army knife Spring
Swiss army knife Spring
Mario Fusco
 

Similar to JSF 2.0 (JavaEE Webinar) (20)

Rich faces
Rich facesRich faces
Rich faces
 
Os Johnson
Os JohnsonOs Johnson
Os Johnson
 
Java Web Programming [8/9] : JSF and AJAX
Java Web Programming [8/9] : JSF and AJAXJava Web Programming [8/9] : JSF and AJAX
Java Web Programming [8/9] : JSF and AJAX
 
Ajax Applications with RichFaces and JSF 2
Ajax Applications with RichFaces and JSF 2Ajax Applications with RichFaces and JSF 2
Ajax Applications with RichFaces and JSF 2
 
Facelets
FaceletsFacelets
Facelets
 
Facelets
FaceletsFacelets
Facelets
 
Swiss army knife Spring
Swiss army knife SpringSwiss army knife Spring
Swiss army knife Spring
 
In The Brain of Cagatay Civici: Exploring JavaServer Faces 2.0 and PrimeFaces
In The Brain of Cagatay Civici: Exploring JavaServer Faces 2.0 and PrimeFaces In The Brain of Cagatay Civici: Exploring JavaServer Faces 2.0 and PrimeFaces
In The Brain of Cagatay Civici: Exploring JavaServer Faces 2.0 and PrimeFaces
 
Jsf Ajax
Jsf AjaxJsf Ajax
Jsf Ajax
 
Custom Action Framework
Custom Action FrameworkCustom Action Framework
Custom Action Framework
 
Jsfsunum
JsfsunumJsfsunum
Jsfsunum
 
Introducing Struts 2
Introducing Struts 2Introducing Struts 2
Introducing Struts 2
 
DWR, Hibernate and Dojo.E - A Tutorial
DWR, Hibernate and Dojo.E - A TutorialDWR, Hibernate and Dojo.E - A Tutorial
DWR, Hibernate and Dojo.E - A Tutorial
 
Spark IT 2011 - Simplified Web Development using Java Server Faces 2.0
Spark IT 2011 - Simplified Web Development using Java Server Faces 2.0Spark IT 2011 - Simplified Web Development using Java Server Faces 2.0
Spark IT 2011 - Simplified Web Development using Java Server Faces 2.0
 
Google Web Toolkits
Google Web ToolkitsGoogle Web Toolkits
Google Web Toolkits
 
Struts2
Struts2Struts2
Struts2
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
Migrating from Struts 1 to Struts 2
Migrating from Struts 1 to Struts 2Migrating from Struts 1 to Struts 2
Migrating from Struts 1 to Struts 2
 
Google Web Toolkit
Google Web ToolkitGoogle Web Toolkit
Google Web Toolkit
 
java ee 6 Petcatalog
java ee 6 Petcatalogjava ee 6 Petcatalog
java ee 6 Petcatalog
 

JSF 2.0 (JavaEE Webinar)

Editor's Notes

  1. Open Source from Sun allows a combined vision of the stack - Open Source provides the quality gained from thousands of developers reviewing and testing the quality of the product, the innovations which are determined by the community who builds what they need not what a vendor desires or has been driven by a few major customers, allows customers full transparency into the source code to determine extensions and how to leverage code to full use, and last , open source allows customers to pay at the point of their value of the product – at production time not at the intial stages of development. Closed source solutions are a drain on the enterprise by costing up front extensive license fees plus uncontrolled annual maintenance fees, tools which improve productivity are often complex and they plus extensions built by the vendor lead to planned lock in.
  2. Small subset of EJB 3.1 API required by Java EE Platform 6 Web Profile Broadens the availability of EJB technology Without losing portability Any 3.1 Lite application can be deployed to Web Profile and Full Java EE 6 Platform Made possible by simplified .war packaging
  3. Open Source from Sun allows a combined vision of the stack - Open Source provides the quality gained from thousands of developers reviewing and testing the quality of the product, the innovations which are determined by the community who builds what they need not what a vendor desires or has been driven by a few major customers, allows customers full transparency into the source code to determine extensions and how to leverage code to full use, and last , open source allows customers to pay at the point of their value of the product – at production time not at the intial stages of development. Closed source solutions are a drain on the enterprise by costing up front extensive license fees plus uncontrolled annual maintenance fees, tools which improve productivity are often complex and they plus extensions built by the vendor lead to planned lock in.