3246 JSF Support in JBuilder 2005 - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

3246 JSF Support in JBuilder 2005

Description:

To introduce you to JBuilder's JavaServer Faces (JSF) support and show you how ... JSPs, 'Backing' Beans, Navigation, Converters, Validators... Component Development ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 22
Provided by: karle6
Category:

less

Transcript and Presenter's Notes

Title: 3246 JSF Support in JBuilder 2005


1
3246JSF Support in JBuilder 2005
  • Karl Ewald
  • RD Engineer
  • Borland Software Corporation

2
Primary Presentation Goals
  • To introduce you to JBuilders JavaServer Faces
    (JSF) support and show you how to maximize your
    productivity while working on JSF applications in
    JBuilder.

3
Speakers Qualifications
  • Karl Ewald is an RD Engineer at Borland working
    on the JBuilder Team
  • Karl was one of Borlands representatives on
    JSR-127, JavaServer Faces

4
Presentation Overview
  • JSF Crash Course
  • JBuilders Design Philosophy
  • Demo
  • Summary
  • Q A

5
JSF Crash Course
  • JavaServer Faces (JSF) is a user interface (UI)
    framework for Java web applications. It is
    designed to significantly ease the burden of
    writing and maintaining applications that run on
    a Java application server and render their UIs
    back to a target client.
  • From JavaServer Faces specification

6
JSF Crash Course
  • Oh, the Complexity!
  • How to Simplify Identify Your Role
  • Backing Beans
  • JSF Expression Language
  • Programming Models
  • Controlling Navigation

7
Identify Your Role
  • Application Development
  • JSPs, Backing Beans, Navigation, Converters,
    Validators
  • Component Development
  • Components, Render Kits, Renderers...
  • Application Configuration
  • Factories, Handlers, Resolvers, etc...

8
Backing Beans
  • Referenced Bean Defines the logical name and the
    type of a bean that will be available within one
    of the scopes at runtime.
  • Managed Bean Defines the logical name, type, and
    scope of a bean that will be made available via
    the JSF Framework.
  • Concrete vs. Dyna
  • Managed Properties
  • List / Map Entries

9
JSF Expression Language
  • Searches in scoped storage for an object by name
  • Allows access to the objects methods and
    properties
  • Uses the delimiters and

10
JSF Expression Examples
  • foo
  • foo.bar
  • foo.bar.baz
  • foobar
  • foobar
  • foo3
  • foo3.bar
  • foo.bar3

11
Programming Models
  • Value Bound - The component values are bound to
    properties in the backing in beans.
  • Advantages
  • Clean separation of view and model
  • Less casting in business logic
  • Covered extensively in books
  • Disadvantages
  • More difficult to manipulate components
    programmatically

12
Programming Models
  • Component Bound - The components are bound to
    properties in the backing in beans.
  • Advantages
  • Easy to manipulate components programmatically
  • Disadvantages
  • Need to cast to get meaningful values
  • Blurs the line between view and model
  • Your results may vary

13
Programming Models
  • Which model should I use?
  • Have a bias to the Value Bound Model
  • but do what you
    need to do.
  • Simplicity
  • Minimize view/model blending
  • If you must, bind components as generically as
    possible

14
Controlling Navigation
  • The UICommand Components
  • Setting the action attribute
  • a hard coded outcome
  • method binding expression
  • Default Navigation Handler
  • The three keys
  • From view ID
  • From outcome
  • From action

15
Controlling Navigation
  • Navigation Rule
  • From view ID
  • The views for which this rule is active
  • Can include the wildcard character,
  • Collection of Navigation Cases
  • Navigation Case
  • From outcome
  • From action
  • To view ID

16
JBuilder Design Philosophy
  • Easing development is the goal
  • Assume developers will touch the code
  • No extra artifacts
  • No unnecessary fluff
  • Encompass the breadth of the spec
  • What elephant?

  • ...WYSIWYG

17
Demo
18
Things to Remember
  • Configure JBuilder to your liking
  • Sketch your applications flow
  • Exploit the JSF Palette
  • Exploit code templates
  • Let ErrorInsight lead the way

19
Usability Testing
  • Testing takes place Monday and Tuesday, 1-5pm, in
    the Computer Lab.
  • Testing Areas
  • Code generation and manipulation
  • Running, debugging, deploying
  • Web JSF features
  • EJB features

20
Questions?
21
Thank You
  • 3246
  • JSF Support in JBuilder 2005
  • Please fill out the speaker evaluation
  • You can contact me further at kewald_at_borland.com
  • http//blogs.borland.com/kewald/
Write a Comment
User Comments (0)
About PowerShow.com