English French German Italian Portuguese Russian Spanish

logo_old

  • Java Training

    javaInterSource offers live instructor-led courses on all important Java-related technologies, including Apache Struts, Enterprise Java Beans (EJB), J2SE Desktop Java Enterprise Edition (Java EE), Java Fundamentals, Java Web Services, JavaServer Faces, JBoss, Java Server Pages (JSP), and Spring.

    Please refer to our detailed course outlines below.

  • About Java

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture

    Java is general-purpose, concurrent, class-based, and object-oriented, and is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is considered by many as one of the most influential programming languages of the 20th century, and widely used from application software to web application.

    Read More

  • Course Details Java

    Classes are offered at client sites, at our Geneva training center, and via a live web conference. For detailed course outlines and scheduled classes, please see below.

    To book training, navigate to the course you need, then:

    • For scheduled online classes, register from the choices indicated.
    • If you need an alternative date, time or location, or if you want a live classroom course, click on “request an offer for this course,” to complete the form.

JSF 2.0 Training

 PDF PrintEmail

Course duration

  • 5 Days

Course Outline

This comprehensive course shows Java programmers how to build web applications with JavaServer Faces 2.0. We develop the best-practice concepts that are formalized by the JSF architecture, from model/view/controller to the UI component framework and request-handling lifecycle. Students start to discover that there is a "JSF way" of doing things, and we learn not just APIs and tag libraries but the habit of slicing application logic into its most reusable forms: managed beans, event listeners, converters, validators, and more.

Students acquire a firm command of JSF development, learning to work with JSF's list and table components, building reusable composite components, and building Ajax applications. Simple, high-level Ajax functionality is covered, and students also work more directly with JSF's JavaScript API and resource-management framework.

  • Understand the purpose and scope of the JSF architecture
  • Build web applications using JSF's FacesServlet, faces-config.xml, and the JSF request/response lifecycle
  • Use Facelets tag libraries to build JSF views
  • Use managed beans to encapsulate form handling and server-side presentation logic
  • Implement control logic as JSF event listeners or action methods
  • Use validators and converters to implement a validation phase for a JSF application
  • Build composite UI fragments or custom components using Facelets
  • Build Ajax applications with JSF: client-side behaviors and partial requests and responses followed by DOM updates
  • This course is intended primarily for experienced Java application developers. Page authors, component developers, and others who may have little or no Java experience (but perhaps are stronger on HTML, JavaScript, and JSP) may well find this to be a valuable training experience, though without solid Java skills many of the coding exercises will be difficult to follow.
  • Java programming experience is essential to understanding the JSF API as presented here
  • General understanding of servlets and JSP is recommended, but not required
  • Basic knowledge of XML will be helpful, as will any previous experience with HTML.
  1. Overview
    1. Java EE and Web Applications
    2. Perspectives: Servlets and JSP
    3. Perspectives: MVC Frameworks
    4. Perspectives: AWT and JFC
    5. JSF Value Proposition
    6. JSF Configuration
    7. Issues with JSP and JSF
    8. Facelets
  2. Lifecycle
    1. The JSF Request/Response Cycle
    2. Lifecycle Phases
    3. Phase Listeners
    4. The FacesContext Class
    5. Who Does What
    6. Partial Request Cycles
  3. UI Components
    1. The UIComponent Class
    2. Behavioral Interfaces
    3. The Core and HTML Tag Libraries
    4. Relationship to CSS
    5. ID, Client ID, and Label
    6. UISelectItem(s)
    7. Navigating the UI Tree
    8. The binding Attribute
  4. Page Navigation
    1. View Selection
    2. Navigation Rules
    3. Implicit Navigation
    4. Problems with POSTback
    5. Post/Redirect/Get
    6. Support for HTTP GET
    7. Conditional Navigation
  5. Managed Beans
    1. JavaBeans and JSF
    2. Backing Beans
    3. Configuring Managed Beans
    4. @ManagedBean and Related Annotations
    5. The Unified Expression Language
    6. Value and Method Expressions
    7. Implicit Objects
  6. Scopes
    1. Managed-Bean Scopes
    2. Lifecycle Annotations
    3. View Parameters
    4. The Flash
  7. Dependency Injection
    1. Managed Properties
    2. Values, Lists, and Maps
    3. Using Dynamic Expressions
    4. Dependencies and Bean Scopes
    5. The @ManagedProperty Annotation
  8. Facelets
    1. Migrating from JSP
    2. View Definition Languages
    3. Facelets
    4. Tag Libraries
    5. Writing and Using Custom Tags
  9. Events and Listeners
    1. JSF Event Model
    2. Event Types and Timing
    3. Event Queueing
    4. ActionEvent and ActionListener
    5. Action Methods
    6. Connecting Controllers to Beans
    7. ValueChangeEvent and ValueChangeListener
    8. Deferring Event Processing
    9. Limitations of FacesListeners
  10. Lists and Tables
    1. Working with Collections
    2. Why We Don't Use <c:anything> <c:anyMore>
    3. <ui:repeat> vs. <c:forEach>
    4. <h:dataTable>
    5. Defining Columns and Facets
    6. One Command Per Row
    7. Reading the Row Number
    8. Pseudo-Maps
    9. Working with Persistent Data
    10. Concurrency and Caching
    11. Limiting the Scope of Queries
    12. Paging
  11. Converters
    1. The Converter Interface
    2. Life of a Datum
    3. Standard Converters
    4. Custom Converters
    5. The @FacesConverter Annotation
    6. Timing of Conversion
    7. Representing Persistent Objects by ID
  12. Validators
    1. The Validator Interface
    2. Standard Validators
    3. Using Regular Expressions
    4. Producing Error Messages
    5. Message Keys
    6. Presenting Error Messages
    7. Posting Error Messages from Anywhere
    8. Custom Validators
    9. The @FacesValidator Annotation
    10. Validating Multiple Inputs
    11. JSR-303 Support: "Bean Validation"
  13. Resources
    1. Resource Libraries
    2. Deploying Images, Scripts, and Stylesheets
    3. Addressing Resources
  14. Composites
    1. Limitations of Custom Tags
    2. Composite Components
    3. Encapsulation
    4. Deploying and Using Composites
    5. Interface and Implementation
    6. Impact on the UI Tree
    7. Attributes
    8. Retargeting
  15. Ajax
    1. What is Ajax?
    2. The XMLHttpRequest Object
    3. Ajax and the JSF Lifecycle
    4. Using <f:ajax>
    5. execute and render Attributes
    6. Ajax Listeners
  16. The JSF JavaScript API
    1. The JSF JavaScript API
    2. Trigering Ajax Requests
    3. Refining <f:ajax> with Callbacks
    4. onevent and onerror Attributes
    5. The Ajax Request/Response Process
    6. Using Hidden Inputs
    7. Other JavaScript Functions

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).


InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)


For an overall view of our offerings, please visit us at www.intersource.ch.