Overview of JSF 2.0

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    4 Favorites

    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=\"http://www.w3.org/1999/xhtml\" xmlns:h=\"http://java.sun.com/jsf/html\" xmlns:ez=\"http://java.sun.com/jsf/composite/simpleout\"> ... <h1>Yellow Text Example</h1> <h:form id=\"form1\"> <ez:out value=\"Test Value\"/> <p><h:commandButton value=\"reload\"/></p> </h:form> </html>
    5. Easier component Development <html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:h=\"http://java.sun.com/jsf/html\" xmlns:composite=\"http://java.sun.com/jsf/composite\"> ... <composite:interface name=\"out\" displayName=\"Very Basic Output Component\" preferred=\"true\"...> <composite:attribute name=\"value\" required=\"false\"/> </composite:interface> <composite:implementation> <h:outputText value=\"#{compositeComponent.attrs.value}\" style=\"background-color: yellow\"/> </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

    + pelegripelegri, 2 years ago

    custom

    2466 views, 4 favs, 0 embeds more stats

    An Overview of JavaServer Faces 2.0 (JSF 2.0)

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 2466
      • 2466 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 4
    • Downloads 149
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories