Doug Tidwell Strategist, IBM Software Group dtidwellus'ibm'com - PowerPoint PPT Presentation

1 / 40
About This Presentation
Title:

Doug Tidwell Strategist, IBM Software Group dtidwellus'ibm'com

Description:

Mozilla has an XForms plug-in; it's available at https://addons.mozilla.org ... https://addons.mozilla.org/ en-US/firefox/addon/824. Resources. Visual XForms Designer: ... – PowerPoint PPT presentation

Number of Views:114
Avg rating:3.0/5.0
Slides: 41
Provided by: dougtid
Category:

less

Transcript and Presenter's Notes

Title: Doug Tidwell Strategist, IBM Software Group dtidwellus'ibm'com


1
Doug TidwellStrategist, IBM Software
Groupdtidwell_at_us.ibm.com
How I learned to stop worrying and love the data
model
2
Objectives
  • Introduce XForms, an open standard for business
    forms
  • Illustrate how to generate applications and data
    models from business process models
  • Show how everything can be generated from the
    business process model

3
XForms
  • The next generation of forms on the Web

4
XForms
  • A W3C effort to bring HTML forms into the 20th
    century
  • Forms should be integrated with data models
  • One form should be renderable on many types of
    devices
  • Use a declarative model as much as possible

5
HTML forms - weaknesses
  • Based solely on appearance
  • Reliance on scripting
  • Non-Western character support is spotty
  • Cross-device forms are very difficult to write
  • No real data model

6
Advantages of XForms
  • XForms has an underlying data model that can be
    generated from your existing business objects.
  • XForms has an underlying data model that can be
    generated from your existing business objects.
  • XForms has an underlying data model that can be
    generated from your existing business objects.

7
Advantages of XForms
  • Choose a winner
  • ltxfselect1 ref"/bracket/results/result1/_at_winne
    rSeed"gt ltxflabelgtRound 1, Matchup
    1lt/xflabelgt ltxfitemgt ltxflabelgt
    ltxfoutput value"/bracket/"/gt lt/xflabelgt
    ltxfvaluegt1lt/xfvaluegt lt/xfitemgt
    ltxfitemgt ltxflabelgt ltxfoutput
    value"/bracket/"/gt. . .

8
Advantages of XForms
  • With XForms, were specifying what the data is.
  • The XPath expression says were choosing a value
    for the winnerSeed attribute on the first
    ltresultgt element in the ltresultsgt element in the
    ltbracketgt element.
  • The label for the selection and the labels for
    each item are extracted from the XML document.

9
Advantages of XForms
  • We dont say how the data is displayed.
  • We can define rules elsewhere to say how this is
    rendered based on the number of choices, type of
    device, whatever.

10
A brief tour of XForms
  • Well look at the different kinds of controls you
    can use.
  • Well focus on the dynamic nature of XForms, and
    show how to use plug-ins and Ajax to run the
    forms on the client.

11
A wee demo
12
Free XForms tools
  • alphaWorks Visual XForms Designer
  • An Eclipse-based tool for building XForms

13
Free XForms tools
  • alphaWorks XForms Generator
  • Converts XML documents and schemas to XForms

14
Building and deploying XForms
15
Building and deploying
  • One of the challenges of deploying XForms is
    getting XForms support on the client.
  • Well look at two approaches
  • Requiring a browser plug-in
  • Using Ajax controls

16
Using a browser plug-in
  • Typically useful in an intranet
  • For Internet Explorer, theres MozzIE, written by
    Peter Nunnsourceforge.net/projects/mozzie
  • Mozilla has an XForms plug-in its available at
    https//addons.mozilla.org/ en-US/firefox/addon/8
    24

17
Using Ajax controls
  • The Chiba project provides an open-source XForms
    engine.
  • It uses XSLT to transform the XForms document
    into Ajax-enabled HTML pages and send them to the
    client.
  • Chiba doesnt require any client-side plug-ins.

18
Using Ajax controls
  • Well look at the Orbeon Presentation Server, an
    open-source XForms engine.
  • It uses the XForms definition to generate
    Ajax-enabled HTML pages and send them to the
    client.
  • Orbeon doesnt require any client-side plug-ins.
  • Its based on Chiba.

19
XForms at the W3C
  • XForms Version 1.1 is currently in Last Call at
    the W3C.
  • IBMs John Boyer is the editor of the spec.
  • IBMs Jan Kratky is behind the alphaWorks XForms
    tools. Hes also a member of the XForms working
    group.

20
The importance of data models
21
Data models
  • Lost in all the excitement of Web 2.0 is the fact
    that our spiffy interfaces have to do something
    useful.
  • You can build Web pages with JavaScript libraries
    to put a happy face on a business process
  • Are these maintainable? Probably not.
  • We want these pages to be tied to our data model.

22
Our data models
23
Code from data models
  • We can generate Java beans and database schemas
    directly from our data model.
  • Well take a quick look at the data model behind
    our application.

24
A Web 2.0 UI
25
The application
26
The application
27
What well generate
  • An XForms data model, generated directly from our
    XML schema.
  • We now have a modern front end to our application.

28
Achtung!
  • At a test run of this session, several people
    lost consciousness in the excitement of the demo.
  • If you are prone to hyperventilation, motion
    sickness or Tourettes syndrome, we implore you
    to avert your eyes during this portion of the
    program.
  • Unfortunately, we cannot be responsible for your
    medical expenses.

29
Majestic demo
30
A glimpse at the future
  • The technologies developed by the Open Service
    Oriented Architecture group (osoa.org) make your
    SOA simpler and easier to manage
  • Service Component Architecture (SCA) Gives you a
    single API for packaging, using and assembling
    components
  • Service Data Objects (SDO) Gives you a single
    API for accessing data sources

31
OSOA.org
  • A group of 17 companies taking SOA
    interoperability to the next level

32
A glimpse at the future
  • If youre using these technologies, or would like
    to know more about them, please contact
    medtidwell_at_us.ibm.com

33
Resources
34
Resources
  • IBM developerWorks
  • ibm.com/developerworks/xml
  • Steven Pembertons XForms presentation on the W3C
    site
  • w3.org/2007/Talks/05-15-steven-xforms11/
  • The XForms spec
  • w3.org/TR/2007/WD-xforms11-20070222/ Last call
    draft

35
Resources
  • FormFaces
  • formfaces.com
  • Chiba
  • See chiba.sourceforge.net
  • Orbeon Presentation Server
  • Available at orbeon.com, open-sourced under the
    GPL

36
Resources
  • MozzIE
  • sourceforge.net/projects/mozzie
  • Uses the Mozilla Gecko rendering engine
  • Firefox XForms add-on
  • Select Tools?Add-ons, then click Get Extensions,
    search for XForms
  • https//addons.mozilla.org/ en-US/firefox/addon/8
    24

37
Resources
  • Visual XForms Designer
  • ibm.com/alphaworks/tech/vxd
  • XML Forms Generator
  • ibm.com/alphaworks/tech/xfg
  • Open Service-Oriented Architecture group
  • osoa.org

38
Summary
39
Summary
  • Weve covered several important topics
  • XForms, an open standard for forms
  • Generating data models and applications from
    business process models
  • Generating Rich Internet Applications from data
    models
  • Keeping the back-end and the front-end of an
    application synchronized

40
Doug TidwellStrategist, IBM Software
Groupdtidwell_at_us.ibm.com
Thanks!
Write a Comment
User Comments (0)
About PowerShow.com