Documente Academic
Documente Profesional
Documente Cultură
0
The Complete Tour
Ed Burns
Sun Microsystems, Inc.
Ed Burns
Oracle America, Inc.
JavaServer Faces 2.0
The Complete Tour
Java Developer Conference
Agenda
$hat is it%
a!e Flo)
erformance
Securit#
@ser FriendlinessA
<e&eloper
End @ser
Java Developer Conference
Comple1it* $ust -ive
Some2here
2hoosin! JSF BB
2hoosin! an Architecture
<esi!ned -# industr#
experts
$idel# <eplo#ed in
roduction
Java Developer Conference
JSF 2.0 From T2o
3ie2points
7ie)
,odel Inte!ration
+a&i!ation
"ifec#cle
JS is deprecated
Still )or5s
*)o st#les
:-ac5in! -ean; D
OJO
OJO
Java Developer Conference
In#ersion o* /ontro!
In#ersion o* /ontro!
Java Developer Conference
5avigation
JSF'.( Implicit
+a&i!ation
+o C,"
4i!hl# <#namic
"ots of C,"
Redeplo# Required
Java Developer Conference
4emo: 8mplicit 5avigation
Java Developer Conference
In#ersion o* /ontro!
In#ersion o* /ontro!
Java Developer Conference
-ifec*cle
JSF =.(
hase"isteners: the
onl# )a# to o-ser&e
into the "ifec#cle
JSF '.(
4andles 7ie)
<eclaration Request D
Resource Requests
Excellent, )ell
inte!rated support for
A8ax
Foundational
Large
Medium
Small
JSF 2.0 3ision for Compnents
*his...
$ake components eas* to develop
Becomes this...
Or ma#-e this...
G if #ou )ant to !et fanc#
multi.select components on a
JSF pa!e
press a :componenti6e;
-utton
HI
"esources
4
A&oid need for separate Filter or Ser&let.
4
Resources are lo!icall# related to components, treat
them that )a#.
4
"oad from 2lasspath, or files#stem
4
Full support for :"i-rar#; concept, I=>+, 7ersionin!
R
H>
Resource
Renderer outputs
URL to resource
R
HJ
"esources: Java A,8
4
@ResourceDependency or @ResourceDependencies
annotation on
5
UIComponent, Renderer, Validator, Converter,
ClientBehavior
4
attri-utes for resource name, li-rar# name
4
attri-ute for tar!et: head, -od#, form
4
Built in support for 2SS, Ima!e, Ja&aScript resources
R
K(
"esources: $arkup A,8
4
<h:head>, <h:body>
4
<h:outputScript>, <h:outputStylesheet>
4
Similar attributes for resource name, library name
4
Similar attri-ute for tar!et: head, -od#, form
R
Java Developer Conference
F
o
u
n
d
a
t
i
o
n
a
l
5
e
2
F
e
a
t
u
r
e
s
-
a
r
g
e
5
e
2
F
e
a
t
u
r
e
s
0igh -evel Categories
of Features
K'
3ie2 ,arameters
4
Inspired -# a!e arameters from JBoss Seam
4
ro&ides a )a# to map request parameters to special
components )ithin the &ie)
4
:f:metadata;:f:vie2,aram;:>f:metadata;
4
?83ie2,arameter extends ?88nput
4
All attached o-8ects &alid for ?88nput are &alid
4
Brea5s the t#rann# of OS*
4
Ena-les Boo5mar5a-le pa!es
R
Java Developer Conference
F
o
u
n
d
a
t
i
o
n
a
l
5
e
2
F
e
a
t
u
r
e
s
-
a
r
g
e
5
e
2
F
e
a
t
u
r
e
s
0igh -evel Categories
of Features
KK
S*stem vents
E
4
Influenced -# JSF*emplatin!
4
u-lishLSu-scri-e e&ent -us for thin!s that happen
durin! the JSF "ifec#cle, not application specific
4
Inspired -# Solaris <trace, "inux strace, truss, etc.
4
"isteners can -e re!istered at three scopes
5
component UIComponent.subscribeo!vent"#
5
view UIVie$Root.subscribeo!vent"#
5
application %pplication.subscribeo!vent"#
4
u-lish is al)a#s )ith Application.pu/lishvent<=
KF
S*stem vents: Standard vent T*pes
E
Java Developer Conference
F
o
u
n
d
a
t
i
o
n
a
l
5
e
2
F
e
a
t
u
r
e
s
-
a
r
g
e
5
e
2
F
e
a
t
u
r
e
s
0igh -evel Categories
of Features
Java Developer Conference
F
o
u
n
d
a
t
i
o
n
a
l
5
e
2
F
e
a
t
u
r
e
s
-
a
r
g
e
5
e
2
F
e
a
t
u
r
e
s
0igh -evel Categories
of Features
Java Developer Conference
F
o
u
n
d
a
t
i
o
n
a
l
5
e
2
F
e
a
t
u
r
e
s
-
a
r
g
e
5
e
2
F
e
a
t
u
r
e
s
0igh -evel Categories
of Features
Java Developer Conference
F
o
u
n
d
a
t
i
o
n
a
l
5
e
2
F
e
a
t
u
r
e
s
-
a
r
g
e
5
e
2
F
e
a
t
u
r
e
s
0igh -evel Categories
of Features
Java Developer Conference
JavaServer Faces 2.0
The Complete Tour
Ed Burns
&rac!e America, Inc.