Overview of JSF 2.0
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Overview of JSF 2.0

on

  • 8,240 views

An Overview of JavaServer Faces 2.0 (JSF 2.0)

An Overview of JavaServer Faces 2.0 (JSF 2.0)

Statistics

Views

Total Views
8,240
Views on SlideShare
8,193
Embed Views
47

Actions

Likes
5
Downloads
440
Comments
0

2 Embeds 47

http://www.slideshare.net 43
http://www.schoox.com 4

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Overview of JSF 2.0 Presentation Transcript

  • 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