building ajax enabled jsf components

18
Building AJAX Enabled JSF Components ajax and the dojo - myfaces integration Bill Dudney Virtuas Open Source Solutions Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 1

Upload: sampetruda

Post on 28-May-2015

526 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Building AJAX Enabled JSF Components

Building AJAX Enabled JSF Componentsajax and the dojo - myfaces integration

Bill DudneyVirtuas Open Source Solutions

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 1

Page 2: Building AJAX Enabled JSF Components

AJAX

hysteria, hype or real stuff?

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 2

Page 3: Building AJAX Enabled JSF Components

Stats

157,000,000 hits (google ‘ajax’)

102,000 hits (google ‘ajax library’)

40,400 hits (google ‘ajax conference’)

21,800 hits (google ‘ajax component’)

154,000,000 hits (google `ajax !cleaner`)

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 3

Page 4: Building AJAX Enabled JSF Components

AJAX?

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 4

Page 5: Building AJAX Enabled JSF Components

Compare

Java - WebStart

Thin Client

RCP (Eclipse)

Platform (NetBeans)

Flex

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 5

Page 6: Building AJAX Enabled JSF Components

JSF

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 6

Page 7: Building AJAX Enabled JSF Components

JSP

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 7

Page 8: Building AJAX Enabled JSF Components

Bean

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 8

Page 9: Building AJAX Enabled JSF Components

Configuration

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 9

Page 10: Building AJAX Enabled JSF Components

RequestFaces Servlet Restore View

Apply Request Values

Process Validations

Update Model Values

Invoke Application

Render Response

Response

Each of these phases can optionally skip to

Render Response

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 10

Page 11: Building AJAX Enabled JSF Components

Custom Components

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 11

Page 12: Building AJAX Enabled JSF Components

<<UIComponent>>HtmlFishEyeNavigationMenu

<<tag>>HtmlFishEyeNavigationMenuTag

<<render>>HtmlFishEyeNavigationMenuRenderer

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 12

Page 13: Building AJAX Enabled JSF Components

<<render>>HtmlFishEyeNavigationMenuRenderer

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 13

Page 14: Building AJAX Enabled JSF Components

<<UIComponent>>HtmlFishEyeNavigationMenu

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 14

Page 15: Building AJAX Enabled JSF Components

<<tag>>HtmlFishEyeNavigationMenuTag

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 15

Page 16: Building AJAX Enabled JSF Components

dojo

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 16

Page 17: Building AJAX Enabled JSF Components

dojo <=> MyFaces

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 17

Page 18: Building AJAX Enabled JSF Components

MyFaces Fisheye

Demo

Colorado Software Summit: October 22 – 27, 2006 © Copyright 2006, Virtuas Open Source Solutions

Bill Dudney — Building AJAX Enabled JSF Components — ajax and the dojo - myfaces integration Page 18