SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
JavaServer™ Faces 2.0
Overview



 • Roger Kitain
 • Enterprise Java Platforms
        >
JSF 2.0 – What We Heard
• Top Goals
 1)Page Declaration Language (PDL)
 2)Make custom components much easier to develop
 3)Ajax Support
 4)Reduce the configuration burden
Page Declaration Language
 • Based on Facelets
 • Facelets:
   > first non-JSP PDL designed for JSF
   > Some differences from JSP:
       > Pages compiled to abstract structure - when executed builds
         JSF component view
       > Don't need TLD for tag attributes
       > Page templating
Easier component Development

 <html xmlns=quot;http://www.w3.org/1999/xhtmlquot;
       xmlns:h=quot;http://java.sun.com/jsf/htmlquot;
       xmlns:ez=quot;http://java.sun.com/jsf/composite/simpleoutquot;>
 ...
        <h1>Yellow Text Example</h1>
        <h:form id=quot;form1quot;>
             <ez:out value=quot;Test Valuequot;/>
           <p><h:commandButton value=quot;reloadquot;/></p>
        </h:form>
 </html>
Easier component Development
 <html xmlns=quot;http://www.w3.org/1999/xhtmlquot;
        xmlns:h=quot;http://java.sun.com/jsf/htmlquot;
        xmlns:composite=quot;http://java.sun.com/jsf/compositequot;>
 ...
 <composite:interface name=quot;outquot; displayName=quot;Very Basic Output Componentquot;
    preferred=quot;truequot;...>
       <composite:attribute name=quot;valuequot; required=quot;falsequot;/>
 </composite:interface>


 <composite:implementation>
       <h:outputText value=quot;#{compositeComponent.attrs.value}quot; style=quot;background-color: yellowquot;/>
 </composite:implementation>
 </body>
 </html>
Ajax Support
    •   Resource Delivery Mechanism
    •   Partial View Processing
    •   Partial View Rendering    ↑ In JSF 2.0 Spec
    •   Ajaxification Capability

    • Ajax Enabled Components     ↓ In Component Library




R
Ajax Support
    Partial View Processing

     Ajax Request
     execute:4,5
                                    Apply Request                Process
                     Restore View
                                        Values                   Validations




      1
      2
      1                Render         Invoke                    Update Model
      1               Response       Application                  Values

2         3


4         5                                   Execute Portion
Ajax Support
    Partial View Processing

     Ajax Request
     render:4,5
                                         Apply Request    Process
                          Restore View
                                             Values       Validations




      1
      2
      1                      Render        Invoke        Update Model
      1                     Response      Application      Values

2         3


4         5         Render Portion
Ajax Support

 • JavaScript namespace registered with OpenAjax
 • JavaScript API for performing Ajax interations with
   JSF
   > collecting/encoding view state
   > sending requests
   > processing Ajax response and Dom updates
Ajax Support
  Ajaxification Capability
 • A way to give ajax capability to existing JSF
   components without writing any JavaScript
 • Specification will define core tag
 <h:commandButton value=”submit”>
    <f:ajaxRequest render=”myOutput” />
 </h:commandButton>
 ...
 <h:outputText id=”myOutput” />
Reduce Configuration Burden
  Annotation Support
 • An alternative to XML configuration
 • @FacesComponent, @FacesConverter, @ManagedBean
 • “Scope” Annotations:
    > @RequestScope, @SessionScope, @ApplicationScope
Summary

 • Collected feedback from community and EG members
 • Defined top goals for specification
 • Diverse set of EG members

Más contenido relacionado

La actualidad más candente

New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0
Dima Maleev
 

La actualidad más candente (20)

NLOUG 2018 - Future of JSF and ADF
NLOUG 2018 - Future of JSF and ADFNLOUG 2018 - Future of JSF and ADF
NLOUG 2018 - Future of JSF and ADF
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
 
Oracle application framework (oaf) online training
Oracle application framework (oaf) online trainingOracle application framework (oaf) online training
Oracle application framework (oaf) online training
 
oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...oracle oa framework training | oracle oa framework training courses | oa fram...
oracle oa framework training | oracle oa framework training courses | oa fram...
 
Servlet programming
Servlet programmingServlet programming
Servlet programming
 
New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0
 
Mvc
MvcMvc
Mvc
 
WebLogic for DBAs
WebLogic for DBAsWebLogic for DBAs
WebLogic for DBAs
 
Oracle OSB Tutorial 3
Oracle OSB Tutorial 3Oracle OSB Tutorial 3
Oracle OSB Tutorial 3
 
Rails review
Rails reviewRails review
Rails review
 
Angularj2.0
Angularj2.0Angularj2.0
Angularj2.0
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
 
Spring - Part 4 - Spring MVC
Spring - Part 4 - Spring MVCSpring - Part 4 - Spring MVC
Spring - Part 4 - Spring MVC
 
Lecture 5 JSTL, custom tags, maven
Lecture 5   JSTL, custom tags, mavenLecture 5   JSTL, custom tags, maven
Lecture 5 JSTL, custom tags, maven
 
camunda.org Community Meeting
camunda.org Community Meeting camunda.org Community Meeting
camunda.org Community Meeting
 
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
Discuss About ASP.NET MVC 6 and ASP.NET MVC 5
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
 
JavaFX Enterprise
JavaFX EnterpriseJavaFX Enterprise
JavaFX Enterprise
 
ASP.NET MVC - Whats The Big Deal
ASP.NET MVC - Whats The Big DealASP.NET MVC - Whats The Big Deal
ASP.NET MVC - Whats The Big Deal
 
Microsoft Azure
Microsoft AzureMicrosoft Azure
Microsoft Azure
 

Similar a Overview of JSF 2.0

Going Above JSF 2.0 with RichFaces and Seam
Going Above JSF 2.0 with RichFaces and SeamGoing Above JSF 2.0 with RichFaces and Seam
Going Above JSF 2.0 with RichFaces and Seam
Lincoln III
 
ASP.NET AJAX - 20090916
ASP.NET AJAX - 20090916ASP.NET AJAX - 20090916
ASP.NET AJAX - 20090916
Viral Patel
 

Similar a Overview of JSF 2.0 (20)

Java EE 8 Web Frameworks: A Look at JSF vs MVC
Java EE 8 Web Frameworks: A Look at JSF vs MVCJava EE 8 Web Frameworks: A Look at JSF vs MVC
Java EE 8 Web Frameworks: A Look at JSF vs MVC
 
Jsf Ajax
Jsf AjaxJsf Ajax
Jsf Ajax
 
Java EE 8 Update
Java EE 8 UpdateJava EE 8 Update
Java EE 8 Update
 
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
 
Lecture 10 - Java Server Faces (JSF)
Lecture 10 - Java Server Faces (JSF)Lecture 10 - Java Server Faces (JSF)
Lecture 10 - Java Server Faces (JSF)
 
JSF and Seam
JSF and SeamJSF and Seam
JSF and Seam
 
Java EE 6
Java EE 6Java EE 6
Java EE 6
 
JSF2
JSF2JSF2
JSF2
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
Ajax Applications with JSF 2 and New RichFaces 4 - TSSJS
Ajax Applications with JSF 2 and New RichFaces 4 - TSSJSAjax Applications with JSF 2 and New RichFaces 4 - TSSJS
Ajax Applications with JSF 2 and New RichFaces 4 - TSSJS
 
Going Above JSF 2.0 with RichFaces and Seam
Going Above JSF 2.0 with RichFaces and SeamGoing Above JSF 2.0 with RichFaces and Seam
Going Above JSF 2.0 with RichFaces and Seam
 
Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011Java EE 6 workshop at Dallas Tech Fest 2011
Java EE 6 workshop at Dallas Tech Fest 2011
 
Web Applications of the future: Combining JEE6 & JavaFX
Web Applications of the future: Combining JEE6 & JavaFXWeb Applications of the future: Combining JEE6 & JavaFX
Web Applications of the future: Combining JEE6 & JavaFX
 
New Features of Java7 SE
New Features of Java7 SENew Features of Java7 SE
New Features of Java7 SE
 
Ajax Applications with JSF 2 and New RichFaces 4 - JAX/JSF Summit
Ajax Applications with JSF 2 and New RichFaces 4 - JAX/JSF SummitAjax Applications with JSF 2 and New RichFaces 4 - JAX/JSF Summit
Ajax Applications with JSF 2 and New RichFaces 4 - JAX/JSF Summit
 
Java EE7 Demystified
Java EE7 DemystifiedJava EE7 Demystified
Java EE7 Demystified
 
Java EE 7 Recipes
Java EE 7 RecipesJava EE 7 Recipes
Java EE 7 Recipes
 
Java EE 8: On the Horizon
Java EE 8:  On the HorizonJava EE 8:  On the Horizon
Java EE 8: On the Horizon
 
JBoss AS7 OSDC 2011
JBoss AS7 OSDC 2011JBoss AS7 OSDC 2011
JBoss AS7 OSDC 2011
 
ASP.NET AJAX - 20090916
ASP.NET AJAX - 20090916ASP.NET AJAX - 20090916
ASP.NET AJAX - 20090916
 

Más de Eduardo Pelegri-Llopart

Más de Eduardo Pelegri-Llopart (20)

Juggling at freenome
Juggling   at freenomeJuggling   at freenome
Juggling at freenome
 
Csumb capstone-fall2016
Csumb capstone-fall2016Csumb capstone-fall2016
Csumb capstone-fall2016
 
Digital activitymanagement
Digital activitymanagementDigital activitymanagement
Digital activitymanagement
 
Progress next iot_pelegri
Progress next iot_pelegriProgress next iot_pelegri
Progress next iot_pelegri
 
Pelegri Desarrollando en una nueva era de software
Pelegri   Desarrollando en una nueva era de software Pelegri   Desarrollando en una nueva era de software
Pelegri Desarrollando en una nueva era de software
 
Market trends in IT - exchange cala - October 2015
Market trends in IT - exchange cala - October 2015Market trends in IT - exchange cala - October 2015
Market trends in IT - exchange cala - October 2015
 
The impact of IOT - exchange cala - 2015
The impact of IOT - exchange cala - 2015The impact of IOT - exchange cala - 2015
The impact of IOT - exchange cala - 2015
 
IOT - Presentation to PEP @ Progress
IOT - Presentation to PEP @ ProgressIOT - Presentation to PEP @ Progress
IOT - Presentation to PEP @ Progress
 
Node.js as an IOT Bridge
Node.js as an IOT BridgeNode.js as an IOT Bridge
Node.js as an IOT Bridge
 
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
What is IoT and how Modulus and Pacific can Help - Featuring Node.js and Roll...
 
What is the Internet of Things and How it Impacts You
What is the Internet of Things and How it Impacts YouWhat is the Internet of Things and How it Impacts You
What is the Internet of Things and How it Impacts You
 
Community Update 25 Mar2010 - English
Community Update 25 Mar2010 - EnglishCommunity Update 25 Mar2010 - English
Community Update 25 Mar2010 - English
 
GlassFish Community Update 25 Mar2010
GlassFish Community Update 25 Mar2010GlassFish Community Update 25 Mar2010
GlassFish Community Update 25 Mar2010
 
Glass Fish Portfolio C1 West V3.Mini
Glass Fish Portfolio C1 West V3.MiniGlass Fish Portfolio C1 West V3.Mini
Glass Fish Portfolio C1 West V3.Mini
 
Virtual Box Aquarium May09
Virtual Box Aquarium May09Virtual Box Aquarium May09
Virtual Box Aquarium May09
 
Introduction To Web Beans
Introduction To Web BeansIntroduction To Web Beans
Introduction To Web Beans
 
Ehcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEhcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage Patterns
 
OpenDS Primer Aquarium
OpenDS Primer AquariumOpenDS Primer Aquarium
OpenDS Primer Aquarium
 
Fuji Overview
Fuji OverviewFuji Overview
Fuji Overview
 
Nuxeo 5.2 Glassfish
Nuxeo 5.2 GlassfishNuxeo 5.2 Glassfish
Nuxeo 5.2 Glassfish
 

Último

Último (20)

ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 

Overview of JSF 2.0

  • 1. JavaServer™ Faces 2.0 Overview • Roger Kitain • Enterprise Java Platforms >
  • 2. JSF 2.0 – What We Heard • Top Goals 1)Page Declaration Language (PDL) 2)Make custom components much easier to develop 3)Ajax Support 4)Reduce the configuration burden
  • 3. Page Declaration Language • Based on Facelets • Facelets: > first non-JSP PDL designed for JSF > Some differences from JSP: > Pages compiled to abstract structure - when executed builds JSF component view > Don't need TLD for tag attributes > Page templating
  • 4. Easier component Development <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:h=quot;http://java.sun.com/jsf/htmlquot; xmlns:ez=quot;http://java.sun.com/jsf/composite/simpleoutquot;> ... <h1>Yellow Text Example</h1> <h:form id=quot;form1quot;> <ez:out value=quot;Test Valuequot;/> <p><h:commandButton value=quot;reloadquot;/></p> </h:form> </html>
  • 5. Easier component Development <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:h=quot;http://java.sun.com/jsf/htmlquot; xmlns:composite=quot;http://java.sun.com/jsf/compositequot;> ... <composite:interface name=quot;outquot; displayName=quot;Very Basic Output Componentquot; preferred=quot;truequot;...> <composite:attribute name=quot;valuequot; required=quot;falsequot;/> </composite:interface> <composite:implementation> <h:outputText value=quot;#{compositeComponent.attrs.value}quot; style=quot;background-color: yellowquot;/> </composite:implementation> </body> </html>
  • 6. Ajax Support • Resource Delivery Mechanism • Partial View Processing • Partial View Rendering ↑ In JSF 2.0 Spec • Ajaxification Capability • Ajax Enabled Components ↓ In Component Library R
  • 7. Ajax Support Partial View Processing Ajax Request execute:4,5 Apply Request Process Restore View Values Validations 1 2 1 Render Invoke Update Model 1 Response Application Values 2 3 4 5 Execute Portion
  • 8. Ajax Support Partial View Processing Ajax Request render:4,5 Apply Request Process Restore View Values Validations 1 2 1 Render Invoke Update Model 1 Response Application Values 2 3 4 5 Render Portion
  • 9. Ajax Support • JavaScript namespace registered with OpenAjax • JavaScript API for performing Ajax interations with JSF > collecting/encoding view state > sending requests > processing Ajax response and Dom updates
  • 10. Ajax Support Ajaxification Capability • A way to give ajax capability to existing JSF components without writing any JavaScript • Specification will define core tag <h:commandButton value=”submit”> <f:ajaxRequest render=”myOutput” /> </h:commandButton> ... <h:outputText id=”myOutput” />
  • 11. Reduce Configuration Burden Annotation Support • An alternative to XML configuration • @FacesComponent, @FacesConverter, @ManagedBean • “Scope” Annotations: > @RequestScope, @SessionScope, @ApplicationScope
  • 12. Summary • Collected feedback from community and EG members • Defined top goals for specification • Diverse set of EG members