JSF Presentation"2"
Upcoming SlideShare
Loading in...5
×
 

JSF Presentation"2"

on

  • 1,530 views

 

Statistics

Views

Total Views
1,530
Views on SlideShare
1,527
Embed Views
3

Actions

Likes
0
Downloads
27
Comments
0

1 Embed 3

http://www.linkedin.com 3

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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

    JSF Presentation"2" JSF Presentation"2" Presentation Transcript

    • www.devoxx.com
    • Java Server Faces (JSF)
    • Agenda
      • Design Pattern
      • MVC Design Pattern
      • What is JSF?
      • How to build JSF project?
      • JSF tags
      • Demo1
      • Demo2
      • Demo3
      • Each pattern describes a problem which occurs over and over again in our environment,
      • and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over
      Design Pattern
      • Pattern Name
      • Problem
      • Solution
      • Consequences
      Elements of Design Patterns
    • Model-View-Controller pattern goals
      • There are often many ways to present the same problem
      • requirements on how a problem is displayed tend to change.
      • The MVC design tries to separate the code that represents the problem from the code that presents the problem to the user
        • this allows the “presentation” part to be change more easily
    • Model (Business process layer)
      • Models the data and behavior behind the business process
      • Responsible for actually doing
      • ● Performing DB queries
      • ● Calculating the business process
    • View (Presentation layer)
      • Display information according to client types
      • Display result of business logic (Model)
      • Not concerned with how the information was obtained, or from where (since that is the responsibility of Model)
    • Controller (Control layer)
      • Serves as the logical connection between the user's interaction and the business services on the back
      • Responsible for making decisions among multiple presentations
      • A request enters the application through the control layer, it will decide how the request should be handled and what information should be returned
    • MVC Diagram
    • What is JSF?
      • is a Java-based Web application framework intended to simplify development of user interfaces for Java EE applications.
    • Tags Libraries
      • ● JSP page need to declare them
      • <%@ taglib uri=&quot;http://java.sun.com/jsf/html/&quot; prefix=&quot;h&quot; %>
      • <%@ taglib uri=&quot;http://java.sun.com/jsf/core/&quot; prefix=&quot;f&quot; %>
      • All component tags on the page must be enclosed in the view tag
      • <f:view></f:view>
      • An input form with child components representing
      • data that is either presented to the user or submitted with the form
      • <h:form></h:form>
      • <h:commandLink value=&quot;Second Page&quot; action=&quot;second&quot;/>
      • <h:commandLink value=&quot;Go To index&quot; action=&quot;index&quot; />
      • <h:commandButton id=&quot;submit&quot; value=&quot;Submit&quot; action=&quot;success&quot; />
      • <h:outputText value=&quot;JavaServer Faces&quot; />
    • How to build JSFproject?
    • How to build JSFproject?
      • Demo 1
    • Demo 1
    • Demo 1
    • Demo 2
    • Demo 2
    • Demo 2
    • Demo 3
      • http://www.arabteam2000-forum.com/
      • http://forums.sun.com/forum.jspa?forumID=427
      • http://www.javapassion.com/j2ee/#JavaServer_Faces_JSF
    •