11 © Copyright 2008 IBM Corporation. XForms: The Perfect Front-End to Your Composite Application Doug Tidwell, IBM

Slides:



Advertisements
Similar presentations
© 2002 D & D Enterprises 1 Linking Images For Navigation & Clickable Image Maps.
Advertisements

XForms for Metadata Creation Winona Salesky University of Vermont Michael Park Brown University.
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Integrating SOA and the Application Development Framework Shaun O’Brien Principal Product Manager – Oracle JDeveloper / ADF.
Assignment 1 Pointers ● Be sure to use all tags properly – Don't use a tag for something it wasn't designed for – Ex. Do not use heading tags... for regular.
Chapter 1 Understanding the Web Design Environment
XML October 24, Unit 6. What is XML? Stands for eXtensible Markup Language It is a markup language, like HTML But, –XML is designed to markup data –HTML.
Dreamweaver 8 Concepts and Techniques Introduction Web Site Development and Macromedia Dreamweaver 8.
XML File Format Used By LOR2 to Save Sequences The XML format used by LOR2 makes it easier for users to view and edit a sequence file outside of LOR with.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
THE BASICS OF THE WEB Davison Web Design. Introduction to the Web Main Ideas The Internet is a worldwide network of hardware. The World Wide Web is part.
Multimedia Enabling Software. The Human Perceptual System Since the multimedia systems are intended to be used by human, it is a pragmatic approach to.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Software and Multimedia
Creating and publishing accessible course materials Practical advise you can replicate.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
Web Design Software Alyssa Lagimoniere. Adobe Dreamweaver Pros Relatively low-cost price ($99) Produces very "clean" HTML code; easy to transport and.
Creating a Web Page HTML, FrontPage, Word, Composer.
Lesson 8 Creating Forms with JavaScript
Reasonable Sakai Widgets Aaron Zeckoski Gonzalo Silverio Antranig Basman
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 2: Working with Webpage Files.
Chapter 1 Variables in the Web Design Environment
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
Chapter 3 Dreamweaver: Part I The Web Warrior Guide to Web Design Technologies.
XForms: A case study Rajiv Shivane & Pavitar Singh.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
HTML presentation Embedding Graphics in Web Pages n HTML uses an empty tag called the (image tag) n n n or n n n Note: all web production tools do insert.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Instructors begin using McGraw-Hill’s Homework Manager by creating a unique class Web site in the system. The Class Homepage becomes the entry point for.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Essentials of HTML Class 4 Instructor: Jeanne Hart
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
Lesson 8. Test 1 Topics Browser incompatibility Design Tips Site Navigation Browser- safe color Monitor resolution Content Copyright Use of tables vs.
Using Xcode A Beginner’s Tutorial Erin Green. This tutorial will walk you through Xcode, a software development tool for Apple’s iOS applications – We.
IT: Web Technologies: Web Animation 1 Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Designing Web Site Layout Using.
Videos. Adding Videos to a Web Page Videos can make our pages more interesting and engaging. Most video-hosting services, such as YouTube, will provide.
1 Type in the URL to access the WEBSPACE Control Panel HOW TO MAKE CHANGES AND UPDATES TO YOUR WEBSITE.
11 © Copyright 2008 IBM Corporation. The All-Singing, All-Dancing Composite Application Doug Tidwell, IBM
Tutorial 3 Adding and Formatting Text with CSS Styles.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
M1G Introduction to Programming 2 3. Creating Classes: Room and Item.
Session 2: Basic HTML HTML Coding Spring 2009 The LIS Web Team Presents.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
+ Publishing Your First Post USING WORDPRESS. + A CMS (content management system) is an application that allows you to publish, edit, modify, organize,
® IBM Software Group © 2007 IBM Corporation Module 3: Creating UML Diagrams Essentials of Modeling with IBM Rational Software Architect, V7.5.
APACHE STRUTS ASHISH SINGH TOMAR ast2124. OUTLINE Introduction The Model-View-Controller Design Pattern Struts’ implementation of the MVC Pattern Additional.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
Data Virtualization Tutorial: XSLT and Streaming Transformations
Software and Multimedia
Software and Multimedia
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

11 © Copyright 2008 IBM Corporation. XForms: The Perfect Front-End to Your Composite Application Doug Tidwell, IBM

2 © Copyright 2008 IBM Corporation. The problem We need interfaces to create, edit and update XML documents. –XML documents are at the heart of tens of thousands of Web services applications. –XML documents are at the heart of every human interaction with a business process (BPEL). –It’s easier to create XML than it is to create some other document format and then convert it to XML. We need some way to create interfaces for XML documents.

3 © Copyright 2008 IBM Corporation. Some approaches to this problem We could edit the XML by hand in emacs, vi, Notepad, or some equally unfriendly tool. –Very error-prone, particularly for complicated XML document types –Acceptable to geeks only We could write a graphical application that used various kinds of controls to edit the XML behind the scenes. –Very high cost of development –We still have to write the code to map values selected in each control to something in the XML document –Difficult to maintain as the XML document structure changes

4 © Copyright 2008 IBM Corporation. Some approaches to this problem We could write an HTML page with our favorite AJAX library. –Faster than building a graphical application, but… –We still have to write the code to map values selected in each control to something in the XML document –Difficult to maintain as the XML document structure changes We could use XForms. –Similar development time compared to AJAX –XForms has a built-in data model (unlike everything else we’ve mentioned) –Interface controls are tied directly to the XML –Much easier to maintain as the XML structure changes.

5 © Copyright 2008 IBM Corporation. The paradigm When you need to create a user interface for XML data, use XForms.

66 © Copyright 2008 IBM Corporation. Our Sample Application: Bracketology

7 © Copyright 2008 IBM Corporation. Bracketology Our XML document represents a sixteen-team, single-elimination tournament. We’ll choose between competitors until only one is left. We’ll use XForms to display the competitors, update the XML data and generate the matchups for the later rounds of the tournament.

8 © Copyright 2008 IBM Corporation. The XML document structure The Santa Clara Smackdown...

9 © Copyright 2008 IBM Corporation. A contestant <contestant seed="1" image="images/sca-sdo.jpg"> SCA-SDO The seed determines the matchups in the first round. The image attribute is used as a URL. The text of the element is what appears in the bracket.

10 © Copyright 2008 IBM Corporation. A result <result round="1" firstSeed="1" secondSeed="16" winnerSeed="1"/> The round attribute indicates in which of the four rounds this result occurred. The firstSeed and secondSeed attributes indicate which contestants faced each other. The winnerSeed attribute indicates who won. They move on to the next round.

11 © Copyright 2008 IBM Corporation. Complications The seedings of the contestants determine the matchups for the first round. We don’t know who’s involved in the second round until the first round is completed. It’s confusing. For example: –The winner of the first matchup in the first round is the first contestant in the first matchup of the second round. –The winner of the second matchup in the first round is the second contestant in the first matchup of the second round.

12 © Copyright 2008 IBM Corporation. Assembly with SCA winnerSeed="1" winnerSeed="9"... firstSeed="1" secondSeed="9" We can define these relationships in XForms. When we move from one round to the next, we’ll use to update the results correctly.

13 © Copyright 2008 IBM Corporation. Choosing between contestants

14 © Copyright 2008 IBM Corporation. XHTML page layout

15 © Copyright 2008 IBM Corporation. The bracket display

16 © Copyright 2008 IBM Corporation. Demo time Let the games begin!

17 © Copyright 2008 IBM Corporation. Summary

18 © Copyright 2008 IBM Corporation. Summary We’ve used an XForms document to display and manipulate a complicated XML document format. All of the data manipulation is done in XForms, yet we get nice AJAX-like effects as we move between rounds, panels, etc. The result is a sophisticated interface that is built around our XML document type, generates valid XML data and is easily maintained.

19 © Copyright 2008 IBM Corporation. Bracketology articles at developer Works Using XSLT to generate the bracket from the XML: –Uses new features from XSLT 2.0/XPath 2.0: The to operator, sequences and – ibm.com/developerworks/xml/library/ x-xslt20xpath20/ Use an XForms document as a custom XML editor: –Covers the entire XForms document we’ve demonstrated here –Uses XSLT 2.0 to refactor the XForms code, leaving a 70% smaller document to maintain – ibm.com/developerworks/library/x-xformsxslt/ Host your own tournament!

20 © Copyright 2008 IBM Corporation. One more time When you need to create a user interface for XML data, use XForms.

21 © Copyright 2008 IBM Corporation. oasis-opencsa.org/sca-roadshow/

22 © Copyright 2008 IBM Corporation. Thanks! Doug Tidwell, IBM