SlideShare une entreprise Scribd logo
1  sur  45
1

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSockets
JSF 2.2
HTML5
Edward Burns
@edburns
http://slideshare.net/edburns/
Consulting Member of Staff, Oracle
My plan for your time investment
 HTML5: Why all the fuss?
– What’s in a name?
– Putting it in context
– HTML5 in JSF 2.2

 WebSockets
– What’s in a name
– Under the covers

3

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Speaker Qualifications – Ed Burns
And non-qualifications
 Involved with JSF since 2002
 Spec lead since 2003
– Most fun part of the job: cleanly integrating other people’s great ideas into

JSF (and hopefully improving on the in the process)
– Not an expert in applying JSF in practice

 Author of four books for McGraw-Hill

4

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Speaker Qualifications – Ed Burns
Gaming credentials
 Classic Game Fan
 Collection
– Atari 2600 VCS, Intellivision, NES, Sega Master System, TI-99/4A

 Had David Crane autograph my Pitfall! and Pitfall II manuals
 Ran into Warren Robinett at SFO airport

 Maintain fan site for TI-99/4A Game Tunnels of Doom

http://ridingthecrest.com/edburns/classic-gaming/tunnels/

5

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
The following is intended to outline our general product direction. It is intended
for information purposes only, and may not be incorporated into any contract.
It is not a commitment to deliver any material, code, or functionality, and should
not be relied upon in making purchasing decisions. The
development, release, and timing of any features or functionality described for
Oracle’s products remains at the sole discretion of Oracle.

6

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML4
What’s in a name?
 What do people mean when they say HTML4?
– IE6
– Not very high performance JavaScript
– Lots of browser tricks
– Use of native plugins is common

7

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5
What’s in a name?
 What do people mean when they say HTML5?
– “Modern” browsers
– A gigantic collection of related technologies
 Canvas
 Markup
 Input controls
 Offline storage
 Web components
 EventSource
 Application Cache
 DOM
 WebSocket
 JavaScript
 JSON
 CSS3
8

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

 Geolocation
 XMLHttpRequest Level 2
HTML5
Is it really a big deal?
 The rise of Chrome and the end of polyfill
 Standards have finally won
– How good is your standards body?
 W3C, ECMA, IETF

– HTML5: Microsoft, Google, Apple, what about Mozilla?

 Aside:
– Is HTML5 a bloated specification?

– Is JavaEE a bloated specification?
– What is bloat? A indicator of how old something is.
– http://mir.aculo.us/2010/10/19/standards-bloat-and-html5/
9

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5
Is it really a big deal?
 The death of the browser plugin: April 2010

http://www.apple.com/hotnews/thoughts-on-flash/
 Where does the tension remain?
– Take advantage of the power in the client
– Minimize the complexity of distributing and maintaining the software

10

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5
Putting it in context
 HTML5 is a marketing term that describes a way of building the UI for a

distributed system.
– UI processing task resides entirely in the browser

11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5
Putting it in context
 For JSF 2.2, HTML5 means just the markup piece
 For JavaEE7 it means WebSocket and JSON

12

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
The best part of Wicket comes to JSF
 This is a JSF page
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:myNS="http://xmlns.jcp.org/jsf”>
<form myNS:id="form">
<input name="textField" type="text" myNS:value="#{bean.text1}" />
<input type="submit" myNS:id="submitButton" value="submit" />
<p>submitted text: #{bean.text1}.</p>
</form>
</html>

13

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Let’s get back to basics
 JSF Views are written in a View Declaration Language (VDL).
 The standard Facelet VDL is an XML application with two kinds of

elements
– HTML Markup
– JSF Components

 HTML Markup is passed through straight to the browser
 JSF Components take some action on the server, during the lifecycle

14

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Let the elegance of HTML shine through
 Before JSF 2.2
– JSF tags hide complexity of underlying HTML+script+css+images
– JSF “Renderer”:
 encode: markup to browser
 decode: name=value from browser

<html>…
<my:colorPicker value=“#{colorBean.color2}” />
<my:calendar value=“#{calendarBean.date1}” />
</html>
 Context: Missing feature in browser? Write a JSF component.
15

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Let the elegance of HTML shine through
 With JSF 2.2
– Pure HTML+script+css+images in the JSF page
– JSF Renderer handles decode from browser
 Leverage the strength of the JSF lifecycle
 Leverage the expressiveness of HTML5

<html>…
<input type=“color” jsf:value=“#{colorBean.color2}”/>
<input type=“date” jsf:value=“#{calendarBean.date1}” />
</html>
 Context: New feature in browser? Use “pass through elements”
16

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Pass Through Attributes
 HTML5 users need data-* attributes (and other non-standard

attributes)
 Two styles
– nested attribute
– namespaced attribute

17

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Pass Through Attributes: nested attribute
<h:outputText value="Simple outputText">
<f:passThroughAttributes value="#{bean.passThroughAttrs}" />

</h:outputText>

 #{bean.passThroughAttrs} is assumed to be a map
 Each entry in the map is output as a name=“value” pair on the

enclosing element.

18

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Pass Through Attributes: nested attribute
<h:outputText value="Simple outputText">
<f:passThroughAttribute name=“data-required”
value=”true" />
</h:outputText>

 Attribute data-required=“true” rendered on markup of enclosing

component.

19

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Pass Through Attributes: namespaced attribute
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough">
<h:form>
<h:inputText id="email" value="#{personPage.selectedPerson.email}"

pt:type="email" pt:placeholder="Enter email">
</h:inputText>
</h:form>
</html>

20

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Pass Through Attributes: nested attribute
 Attributes type=“email” placeholder=“Enter email” rendered on markup

of enclosing component

21

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
HTML5 Friendly Markup
Let the elegance of HTML shine through
 DEMO

22

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSockets

23

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSockets
What’s In a name?
 Several moving parts, each with its own standard!
– Client: W3C JavaScript API http://dev.w3.org/html5/websockets/
– Transport: IETF RFC 6455 http://www.ietf.org/rfc/rfc6455.txt
– Server: JSR-356: http://jcp.org/en/jsr/detail?id=356

 Even with all these parts, it’s still very understandable
– Client: 17 page downs
– Transport: 86 page downs (about a third of which you can skip)
– Server: 43 pages

24

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSockets

25

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSocket
Big Picture
 It really is a Socket for the Web
– It just works over proxies

 Lets you do TCP easily in a web app
– Establish the connection
– Send messages both ways
– Send messages independent of timing
– Close the connection

 Two basic types: text and binary

26

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSocket
Establish the connection

27

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSocket
TCP over HTTP, use the Upgrade: header

28

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSocket
TCP over HTTP, use the Upgrade: header

29

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSocket
TCP over HTTP, use the Upgrade: header

30

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSocket
Browser Support – caniuse.com

31

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
JavaScript/Browser Client
JavaScript WebSocket Object
 Minimal Lifecycle
– new WebSocket(url)
– pass in some functions
 onopen
 onmessage
– call send()
– call close()

 Can connect to arbitrary servers, other than the page origin
 Server may enforce use of Origin header

32

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
JavaScript/Browser Client
JavaScript WebSocket Object
 [Clamp] if value is

out of
range, truncate it to
closest in-range
value for that
primitive type.

33

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
JavaScript/Browser Client
Examine JavaScript client portion of Roger’s matrix demo
 Traverse connection

lifecycle

34

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java Server
Java Endpoint
 Minimal Lifecycle
– Handshake
– Messaging
– Close

 All methods that deal with communication to the other endpoint are

passed a javax.websocket.Session.
 Has nothing to do with javax.servlet.http.HttpSession.
 HttpSession can be obtained from HandshakeRequest
35

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java Server
Java Endpoint
 Passing Parameters

 example URI “/bookings/JohnSmith”: guestID is “JohnSmith”
 Strings and primitives supported

36

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java Server
Java Endpoint
Two Styles
 Annotated
– The most commonly used

– Very easy to get started
– Throw it in the WAR and you’re done

 Programmatic
– If you don’t want to bake config into your .class files
– Must use Java inheritance

37

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java Server
Programmatic Endpoint
 Must bootstrap via ServletContextListener
– Look up the javax.websocket.server.ServerContainer attribute
– It will be an instance of javax.websocket.server.ServerContainer
– Call addEndpoint(), two variants
 takes a class that is the annotated endpoint class
 takes a ServerEndpointConfig instance

38

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java Server
Annotated Endpoint

39

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java Server
Annotated Endpoint

40

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java Server
Programmatic Endpoint
 The ServerEndpointConfig instance
– getEndpointClass() returns
 annotated endpoint
 class that extends javax.websocket.Endpoint
– getPath() returns the path, may contain url-template content

41

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
WebSocket
Flexible Message Processing
 Send or receive text or binary messages
– As complete messages
– As sequence of partial messages

– Using traditional blocking I/O

 Send or receive WebSocket messages as pure Java Objects (kinda

like Serialization)
– Using encode/decode mechanism
– Encoder/decoder for all primitive types built in

 Send and receive messages synchronously or asynchronously

42

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Questions?

Ed Burns
@edburns

43

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
The preceding is intended to outline our general product direction. It is intended
for information purposes only, and may not be incorporated into any contract.
It is not a commitment to deliver any material, code, or functionality, and should
not be relied upon in making purchasing decisions. The
development, release, and timing of any features or functionality described for
Oracle’s products remains at the sole discretion of Oracle.

44

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
45

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Contenu connexe

Tendances

EJB and CDI - Alignment and Strategy
EJB and CDI - Alignment and StrategyEJB and CDI - Alignment and Strategy
EJB and CDI - Alignment and StrategyDavid Delabassee
 
CON5898 What Servlet 4.0 Means To You
CON5898 What Servlet 4.0 Means To YouCON5898 What Servlet 4.0 Means To You
CON5898 What Servlet 4.0 Means To YouEdward Burns
 
Java EE 8 - An instant snapshot
Java EE 8 - An instant snapshot Java EE 8 - An instant snapshot
Java EE 8 - An instant snapshot David Delabassee
 
Batch Applications for Java Platform 1.0: Java EE 7 and GlassFish
Batch Applications for Java Platform 1.0: Java EE 7 and GlassFishBatch Applications for Java Platform 1.0: Java EE 7 and GlassFish
Batch Applications for Java Platform 1.0: Java EE 7 and GlassFishArun Gupta
 
[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6
[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6
[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6Rakuten Group, Inc.
 
Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0
Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0
Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0David Delabassee
 
Ed presents JSF 2.2 at a 2013 Gameduell Tech talk
Ed presents JSF 2.2 at a 2013 Gameduell Tech talkEd presents JSF 2.2 at a 2013 Gameduell Tech talk
Ed presents JSF 2.2 at a 2013 Gameduell Tech talkEdward Burns
 
Seven Points for Applying Java EE 7
Seven Points for Applying Java EE 7Seven Points for Applying Java EE 7
Seven Points for Applying Java EE 7Hirofumi Iwasaki
 
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFishJava API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFishArun Gupta
 
Down-to-Earth Microservices with Java EE
Down-to-Earth Microservices with Java EEDown-to-Earth Microservices with Java EE
Down-to-Earth Microservices with Java EEReza Rahman
 
JavaScript Frameworks and Java EE – A Great Match
JavaScript Frameworks and Java EE – A Great MatchJavaScript Frameworks and Java EE – A Great Match
JavaScript Frameworks and Java EE – A Great MatchReza Rahman
 
WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015Pavel Bucek
 
How to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based MicroservicesHow to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based MicroservicesPavel Bucek
 
What's New in WebLogic 12.1.3 and Beyond
What's New in WebLogic 12.1.3 and BeyondWhat's New in WebLogic 12.1.3 and Beyond
What's New in WebLogic 12.1.3 and BeyondOracle
 
Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Edward Burns
 
JavaOne - 10 Tips for Java EE 7 with PrimeFaces
JavaOne - 10 Tips for Java EE 7 with PrimeFacesJavaOne - 10 Tips for Java EE 7 with PrimeFaces
JavaOne - 10 Tips for Java EE 7 with PrimeFacesMert Çalışkan
 
Java EE 6 Adoption in One of the World’s Largest Online Financial Systems
Java EE 6 Adoption in One of the World’s Largest Online Financial SystemsJava EE 6 Adoption in One of the World’s Largest Online Financial Systems
Java EE 6 Adoption in One of the World’s Largest Online Financial SystemsArshal Ameen
 
WebSockets in Enterprise Applications
WebSockets in Enterprise ApplicationsWebSockets in Enterprise Applications
WebSockets in Enterprise ApplicationsPavel Bucek
 

Tendances (20)

EJB and CDI - Alignment and Strategy
EJB and CDI - Alignment and StrategyEJB and CDI - Alignment and Strategy
EJB and CDI - Alignment and Strategy
 
CON5898 What Servlet 4.0 Means To You
CON5898 What Servlet 4.0 Means To YouCON5898 What Servlet 4.0 Means To You
CON5898 What Servlet 4.0 Means To You
 
Java EE 8 - An instant snapshot
Java EE 8 - An instant snapshot Java EE 8 - An instant snapshot
Java EE 8 - An instant snapshot
 
Batch Applications for Java Platform 1.0: Java EE 7 and GlassFish
Batch Applications for Java Platform 1.0: Java EE 7 and GlassFishBatch Applications for Java Platform 1.0: Java EE 7 and GlassFish
Batch Applications for Java Platform 1.0: Java EE 7 and GlassFish
 
[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6
[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6
[RakutenTechConf2013] [E-3] Financial Web System with Java EE 6
 
Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0
Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0
Java EE 8 Adopt a JSR : JSON-P 1.1 & MVC 1.0
 
Ed presents JSF 2.2 at a 2013 Gameduell Tech talk
Ed presents JSF 2.2 at a 2013 Gameduell Tech talkEd presents JSF 2.2 at a 2013 Gameduell Tech talk
Ed presents JSF 2.2 at a 2013 Gameduell Tech talk
 
Seven Points for Applying Java EE 7
Seven Points for Applying Java EE 7Seven Points for Applying Java EE 7
Seven Points for Applying Java EE 7
 
Java API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFishJava API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFish
 
Move from J2EE to Java EE
Move from J2EE to Java EEMove from J2EE to Java EE
Move from J2EE to Java EE
 
Down-to-Earth Microservices with Java EE
Down-to-Earth Microservices with Java EEDown-to-Earth Microservices with Java EE
Down-to-Earth Microservices with Java EE
 
JavaScript Frameworks and Java EE – A Great Match
JavaScript Frameworks and Java EE – A Great MatchJavaScript Frameworks and Java EE – A Great Match
JavaScript Frameworks and Java EE – A Great Match
 
WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015
 
How to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based MicroservicesHow to Thrive on REST/WebSocket-Based Microservices
How to Thrive on REST/WebSocket-Based Microservices
 
What's New in WebLogic 12.1.3 and Beyond
What's New in WebLogic 12.1.3 and BeyondWhat's New in WebLogic 12.1.3 and Beyond
What's New in WebLogic 12.1.3 and Beyond
 
JavaCro'15 - HTTP2 Comes to Java! - David Delabassee
JavaCro'15 - HTTP2 Comes to Java! - David DelabasseeJavaCro'15 - HTTP2 Comes to Java! - David Delabassee
JavaCro'15 - HTTP2 Comes to Java! - David Delabassee
 
Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013
 
JavaOne - 10 Tips for Java EE 7 with PrimeFaces
JavaOne - 10 Tips for Java EE 7 with PrimeFacesJavaOne - 10 Tips for Java EE 7 with PrimeFaces
JavaOne - 10 Tips for Java EE 7 with PrimeFaces
 
Java EE 6 Adoption in One of the World’s Largest Online Financial Systems
Java EE 6 Adoption in One of the World’s Largest Online Financial SystemsJava EE 6 Adoption in One of the World’s Largest Online Financial Systems
Java EE 6 Adoption in One of the World’s Largest Online Financial Systems
 
WebSockets in Enterprise Applications
WebSockets in Enterprise ApplicationsWebSockets in Enterprise Applications
WebSockets in Enterprise Applications
 

Similaire à Ed presents JSF 2.2 and WebSocket to Gameduell.

It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるSadaaki HIRAI
 
Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Estelle Weyl
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Sadaaki HIRAI
 
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.Sadaaki HIRAI
 
How Scala, Wicket, and Java EE Can Improve Web Development
How Scala, Wicket, and Java EE Can Improve Web DevelopmentHow Scala, Wicket, and Java EE Can Improve Web Development
How Scala, Wicket, and Java EE Can Improve Web DevelopmentBruno Borges
 
Apache Flex and the imperfect Web
Apache Flex and the imperfect WebApache Flex and the imperfect Web
Apache Flex and the imperfect Webmasuland
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Paxcel Technologies
 
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008Association Paris-Web
 
10 Tips for Java EE 7 with PrimeFaces - JavaOne 2013
10 Tips for Java EE 7 with PrimeFaces - JavaOne 201310 Tips for Java EE 7 with PrimeFaces - JavaOne 2013
10 Tips for Java EE 7 with PrimeFaces - JavaOne 2013Martin Fousek
 
112815 java ee8_davidd
112815 java ee8_davidd112815 java ee8_davidd
112815 java ee8_daviddTakashi Ito
 
Basic html5 and javascript
Basic html5 and javascriptBasic html5 and javascript
Basic html5 and javascriptwendy017
 
Oracle Plug-in For Open ModelSphere
Oracle Plug-in For Open ModelSphereOracle Plug-in For Open ModelSphere
Oracle Plug-in For Open ModelSpheremodelspherepro
 
Advanced Web Development
Advanced Web DevelopmentAdvanced Web Development
Advanced Web DevelopmentRobert J. Stein
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application developmentzonathen
 
Sandboxing JS and HTML. A lession Learned
Sandboxing JS and HTML. A lession LearnedSandboxing JS and HTML. A lession Learned
Sandboxing JS and HTML. A lession LearnedMinded Security
 

Similaire à Ed presents JSF 2.2 and WebSocket to Gameduell. (20)

It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考えるIt is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
It is not HTML5. but ... / HTML5ではないサイトからHTML5を考える
 
Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
HTML5ではないサイトを HTML5へ - Change HTML5 from Not HTML5.
 
How Scala, Wicket, and Java EE Can Improve Web Development
How Scala, Wicket, and Java EE Can Improve Web DevelopmentHow Scala, Wicket, and Java EE Can Improve Web Development
How Scala, Wicket, and Java EE Can Improve Web Development
 
Apache Flex and the imperfect Web
Apache Flex and the imperfect WebApache Flex and the imperfect Web
Apache Flex and the imperfect Web
 
Html5 guide
Html5 guideHtml5 guide
Html5 guide
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
HTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 TemplateHTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 Template
 
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
 
10 Tips for Java EE 7 with PrimeFaces - JavaOne 2013
10 Tips for Java EE 7 with PrimeFaces - JavaOne 201310 Tips for Java EE 7 with PrimeFaces - JavaOne 2013
10 Tips for Java EE 7 with PrimeFaces - JavaOne 2013
 
112815 java ee8_davidd
112815 java ee8_davidd112815 java ee8_davidd
112815 java ee8_davidd
 
Basic html5 and javascript
Basic html5 and javascriptBasic html5 and javascript
Basic html5 and javascript
 
Oracle Plug-in For Open ModelSphere
Oracle Plug-in For Open ModelSphereOracle Plug-in For Open ModelSphere
Oracle Plug-in For Open ModelSphere
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
 
Ibm
IbmIbm
Ibm
 
Advanced Web Development
Advanced Web DevelopmentAdvanced Web Development
Advanced Web Development
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application development
 
Sandboxing JS and HTML. A lession Learned
Sandboxing JS and HTML. A lession LearnedSandboxing JS and HTML. A lession Learned
Sandboxing JS and HTML. A lession Learned
 

Plus de Edward Burns

Developer Career Masterplan
Developer Career MasterplanDeveloper Career Masterplan
Developer Career MasterplanEdward Burns
 
Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​Edward Burns
 
Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!Edward Burns
 
How modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantageHow modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantageEdward Burns
 
Wie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE NutztWie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE NutztEdward Burns
 
Practical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with AzurePractical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with AzureEdward Burns
 
wls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdfwls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdfEdward Burns
 
Jakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu HauseJakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu HauseEdward Burns
 
Java on Your Terms with Azure
Java on Your Terms with AzureJava on Your Terms with Azure
Java on Your Terms with AzureEdward Burns
 
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
Wars I’ve SeenFrom Java EE to Spring and more, Azure has you coveredWars I’ve SeenFrom Java EE to Spring and more, Azure has you covered
Wars I’ve Seen From Java EE to Spring and more, Azure has you coveredEdward Burns
 
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...Edward Burns
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Edward Burns
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Edward Burns
 
Building a Serverless State Service for the Cloud
Building a Serverless State Service for the CloudBuilding a Serverless State Service for the Cloud
Building a Serverless State Service for the CloudEdward Burns
 
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckJSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckEdward Burns
 
Servlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute InfodeckServlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute InfodeckEdward Burns
 
JavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth SlidesJavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth SlidesEdward Burns
 
jsf2-composite-components
jsf2-composite-componentsjsf2-composite-components
jsf2-composite-componentsEdward Burns
 
Kids computer-programming
Kids computer-programmingKids computer-programming
Kids computer-programmingEdward Burns
 

Plus de Edward Burns (20)

Developer Career Masterplan
Developer Career MasterplanDeveloper Career Masterplan
Developer Career Masterplan
 
Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​
 
Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!
 
How modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantageHow modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantage
 
Wie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE NutztWie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE Nutzt
 
Practical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with AzurePractical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with Azure
 
wls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdfwls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdf
 
Jakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu HauseJakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu Hause
 
Java on Your Terms with Azure
Java on Your Terms with AzureJava on Your Terms with Azure
Java on Your Terms with Azure
 
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
Wars I’ve SeenFrom Java EE to Spring and more, Azure has you coveredWars I’ve SeenFrom Java EE to Spring and more, Azure has you covered
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
 
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?
 
Building a Serverless State Service for the Cloud
Building a Serverless State Service for the CloudBuilding a Serverless State Service for the Cloud
Building a Serverless State Service for the Cloud
 
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckJSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
 
Servlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute InfodeckServlet 4.0 Adopt-a-JSR 10 Minute Infodeck
Servlet 4.0 Adopt-a-JSR 10 Minute Infodeck
 
JavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth SlidesJavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth Slides
 
jsf2-composite-components
jsf2-composite-componentsjsf2-composite-components
jsf2-composite-components
 
JSF 2.2
JSF 2.2JSF 2.2
JSF 2.2
 
Kids computer-programming
Kids computer-programmingKids computer-programming
Kids computer-programming
 

Dernier

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

Ed presents JSF 2.2 and WebSocket to Gameduell.

  • 1. 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 3. My plan for your time investment  HTML5: Why all the fuss? – What’s in a name? – Putting it in context – HTML5 in JSF 2.2  WebSockets – What’s in a name – Under the covers 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 4. Speaker Qualifications – Ed Burns And non-qualifications  Involved with JSF since 2002  Spec lead since 2003 – Most fun part of the job: cleanly integrating other people’s great ideas into JSF (and hopefully improving on the in the process) – Not an expert in applying JSF in practice  Author of four books for McGraw-Hill 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 5. Speaker Qualifications – Ed Burns Gaming credentials  Classic Game Fan  Collection – Atari 2600 VCS, Intellivision, NES, Sega Master System, TI-99/4A  Had David Crane autograph my Pitfall! and Pitfall II manuals  Ran into Warren Robinett at SFO airport  Maintain fan site for TI-99/4A Game Tunnels of Doom http://ridingthecrest.com/edburns/classic-gaming/tunnels/ 5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 6. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 7. HTML4 What’s in a name?  What do people mean when they say HTML4? – IE6 – Not very high performance JavaScript – Lots of browser tricks – Use of native plugins is common 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 8. HTML5 What’s in a name?  What do people mean when they say HTML5? – “Modern” browsers – A gigantic collection of related technologies  Canvas  Markup  Input controls  Offline storage  Web components  EventSource  Application Cache  DOM  WebSocket  JavaScript  JSON  CSS3 8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.  Geolocation  XMLHttpRequest Level 2
  • 9. HTML5 Is it really a big deal?  The rise of Chrome and the end of polyfill  Standards have finally won – How good is your standards body?  W3C, ECMA, IETF – HTML5: Microsoft, Google, Apple, what about Mozilla?  Aside: – Is HTML5 a bloated specification? – Is JavaEE a bloated specification? – What is bloat? A indicator of how old something is. – http://mir.aculo.us/2010/10/19/standards-bloat-and-html5/ 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 10. HTML5 Is it really a big deal?  The death of the browser plugin: April 2010 http://www.apple.com/hotnews/thoughts-on-flash/  Where does the tension remain? – Take advantage of the power in the client – Minimize the complexity of distributing and maintaining the software 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 11. HTML5 Putting it in context  HTML5 is a marketing term that describes a way of building the UI for a distributed system. – UI processing task resides entirely in the browser 11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 12. HTML5 Putting it in context  For JSF 2.2, HTML5 means just the markup piece  For JavaEE7 it means WebSocket and JSON 12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 13. HTML5 Friendly Markup The best part of Wicket comes to JSF  This is a JSF page <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:myNS="http://xmlns.jcp.org/jsf”> <form myNS:id="form"> <input name="textField" type="text" myNS:value="#{bean.text1}" /> <input type="submit" myNS:id="submitButton" value="submit" /> <p>submitted text: #{bean.text1}.</p> </form> </html> 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 14. HTML5 Friendly Markup Let’s get back to basics  JSF Views are written in a View Declaration Language (VDL).  The standard Facelet VDL is an XML application with two kinds of elements – HTML Markup – JSF Components  HTML Markup is passed through straight to the browser  JSF Components take some action on the server, during the lifecycle 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 15. HTML5 Friendly Markup Let the elegance of HTML shine through  Before JSF 2.2 – JSF tags hide complexity of underlying HTML+script+css+images – JSF “Renderer”:  encode: markup to browser  decode: name=value from browser <html>… <my:colorPicker value=“#{colorBean.color2}” /> <my:calendar value=“#{calendarBean.date1}” /> </html>  Context: Missing feature in browser? Write a JSF component. 15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 16. HTML5 Friendly Markup Let the elegance of HTML shine through  With JSF 2.2 – Pure HTML+script+css+images in the JSF page – JSF Renderer handles decode from browser  Leverage the strength of the JSF lifecycle  Leverage the expressiveness of HTML5 <html>… <input type=“color” jsf:value=“#{colorBean.color2}”/> <input type=“date” jsf:value=“#{calendarBean.date1}” /> </html>  Context: New feature in browser? Use “pass through elements” 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 17. HTML5 Friendly Markup Pass Through Attributes  HTML5 users need data-* attributes (and other non-standard attributes)  Two styles – nested attribute – namespaced attribute 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 18. HTML5 Friendly Markup Pass Through Attributes: nested attribute <h:outputText value="Simple outputText"> <f:passThroughAttributes value="#{bean.passThroughAttrs}" /> </h:outputText>  #{bean.passThroughAttrs} is assumed to be a map  Each entry in the map is output as a name=“value” pair on the enclosing element. 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 19. HTML5 Friendly Markup Pass Through Attributes: nested attribute <h:outputText value="Simple outputText"> <f:passThroughAttribute name=“data-required” value=”true" /> </h:outputText>  Attribute data-required=“true” rendered on markup of enclosing component. 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 20. HTML5 Friendly Markup Pass Through Attributes: namespaced attribute <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"> <h:form> <h:inputText id="email" value="#{personPage.selectedPerson.email}" pt:type="email" pt:placeholder="Enter email"> </h:inputText> </h:form> </html> 20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 21. HTML5 Friendly Markup Pass Through Attributes: nested attribute  Attributes type=“email” placeholder=“Enter email” rendered on markup of enclosing component 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 22. HTML5 Friendly Markup Let the elegance of HTML shine through  DEMO 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 23. WebSockets 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 24. WebSockets What’s In a name?  Several moving parts, each with its own standard! – Client: W3C JavaScript API http://dev.w3.org/html5/websockets/ – Transport: IETF RFC 6455 http://www.ietf.org/rfc/rfc6455.txt – Server: JSR-356: http://jcp.org/en/jsr/detail?id=356  Even with all these parts, it’s still very understandable – Client: 17 page downs – Transport: 86 page downs (about a third of which you can skip) – Server: 43 pages 24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 25. WebSockets 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 26. WebSocket Big Picture  It really is a Socket for the Web – It just works over proxies  Lets you do TCP easily in a web app – Establish the connection – Send messages both ways – Send messages independent of timing – Close the connection  Two basic types: text and binary 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 27. WebSocket Establish the connection 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 28. WebSocket TCP over HTTP, use the Upgrade: header 28 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 29. WebSocket TCP over HTTP, use the Upgrade: header 29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 30. WebSocket TCP over HTTP, use the Upgrade: header 30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 31. WebSocket Browser Support – caniuse.com 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 32. JavaScript/Browser Client JavaScript WebSocket Object  Minimal Lifecycle – new WebSocket(url) – pass in some functions  onopen  onmessage – call send() – call close()  Can connect to arbitrary servers, other than the page origin  Server may enforce use of Origin header 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 33. JavaScript/Browser Client JavaScript WebSocket Object  [Clamp] if value is out of range, truncate it to closest in-range value for that primitive type. 33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 34. JavaScript/Browser Client Examine JavaScript client portion of Roger’s matrix demo  Traverse connection lifecycle 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 35. Java Server Java Endpoint  Minimal Lifecycle – Handshake – Messaging – Close  All methods that deal with communication to the other endpoint are passed a javax.websocket.Session.  Has nothing to do with javax.servlet.http.HttpSession.  HttpSession can be obtained from HandshakeRequest 35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 36. Java Server Java Endpoint  Passing Parameters  example URI “/bookings/JohnSmith”: guestID is “JohnSmith”  Strings and primitives supported 36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 37. Java Server Java Endpoint Two Styles  Annotated – The most commonly used – Very easy to get started – Throw it in the WAR and you’re done  Programmatic – If you don’t want to bake config into your .class files – Must use Java inheritance 37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 38. Java Server Programmatic Endpoint  Must bootstrap via ServletContextListener – Look up the javax.websocket.server.ServerContainer attribute – It will be an instance of javax.websocket.server.ServerContainer – Call addEndpoint(), two variants  takes a class that is the annotated endpoint class  takes a ServerEndpointConfig instance 38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 39. Java Server Annotated Endpoint 39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 40. Java Server Annotated Endpoint 40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 41. Java Server Programmatic Endpoint  The ServerEndpointConfig instance – getEndpointClass() returns  annotated endpoint  class that extends javax.websocket.Endpoint – getPath() returns the path, may contain url-template content 41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 42. WebSocket Flexible Message Processing  Send or receive text or binary messages – As complete messages – As sequence of partial messages – Using traditional blocking I/O  Send or receive WebSocket messages as pure Java Objects (kinda like Serialization) – Using encode/decode mechanism – Encoder/decoder for all primitive types built in  Send and receive messages synchronously or asynchronously 42 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 43. Questions? Ed Burns @edburns 43 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 44. The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 45. 45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Notes de l'éditeur

  1. It&apos;s called Web*SOCKET* for a good reason, it&apos;s really just a socket that goes over web protocols. 3. server: JCP: Java API for (by the way, you can use the same java API for client as well)
  2. I guess they thought that restriction from Applet was too constraining.I don’t like the attack vector this creates. Now if you fall victim to a cross site scripting attack, there is nothing stopping the aggressor code from opening up a socket to another server and sending it whatever data it wants.Maybe you should keep that old copy of NCSA Mosaic 1.0 around for when you make online purchases.Just posted a question on StackOverflow about this last night.