|
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>% D0 x A5 t9 }8 I8 l4 v
<html>
5 b. f1 v+ z! B7 T! s6 N, h) g <head>6 w3 `+ m! K! n# z& }1 T% T5 c. C% a, {* z
<title>A Simple JavaServer Faces Application</title>& ]2 c6 X. h* ]: W
</head>
2 R/ {" x7 L$ P8 I6 h; s; U* W; m1 R5 r5 V5 Y8 s( Y
<body>- J+ E ~& ~- |1 N/ L. a8 d# _9 i
<%@ taglib uri='http://java.sun.com/j2ee/html_basic/' prefix='faces' %>1 \. r" ?# M( t$ B
" o% W; W$ E: ?3 V <font size='4'>Please enter your name and password</font>
d* d5 |) e% R8 \1 w4 j1 \ q! U, q* t. v" R: s1 z: i* g6 i
<faces:usefaces>
& V5 I! V* O1 v& \! V, A0 J( R/ f5 X <faces:form id='simpleForm' formName='simpleForm'>
! N) H* ^3 t* @1 W6 L" r <table>
4 u* j7 _; E" R/ \4 ?8 ~) ~9 j: ` <tr>- G) T- Z& ]& Y: ]
<td>Name:</td>
( B) P8 p0 s4 ]5 o1 b: l <td>
; ~: u9 b5 q$ U3 j1 G8 ? <faces:textentry_input id='name'>
) a2 a$ W, ]% | Q/ I4 O. o5 \' V6 c <faces:validator
* g" I, ]$ r& `! D( O1 M8 S className='com.sabreware.validators.NameValidator'/>3 l& t+ D( H4 G9 v/ p( h
<faces:validator
2 _4 q q( Z8 _; ^5 Y: p className='javax.faces.validator.LengthValidator'/>1 A2 V: K( d1 b3 [2 V' l. u
<faces:attribute
# k7 I; B+ y8 K w1 K6 Y7 X name='javax.faces.validator.LengthValidator.MINIMUM'8 ]4 X5 c S9 i( _2 B# r% y* E, |
value='3'/>
# _0 W( O4 ]* r </faces:textentry_input>1 H- Z5 J% i- | `
</td>* V6 s* r7 s' J4 H1 c0 }
: p# O! ]) a, j7 u& D+ |
<td>5 c# t* f# J- U* S7 p5 `0 _# O* S
<faces:validation_message comp/>
+ L: |" K0 p/ R7 G' G( Y5 ? </td>' P" A8 {' X7 w" C* N
</tr>
) c( T N9 ]. Q4 p: K7 W/ y: z- R t2 i# s9 V A. g$ A
<tr>
) r$ v1 w' |+ l+ {& h! |) e <td>Password:</td>
4 Z2 ?& l2 ^& v4 L0 v! H <td>& x+ A+ P! N7 I% b
<faces:textentry_secret id='password'/>
& f; z2 v3 V. I# L/ E </td>
0 `; r" j: [9 [; @ </tr>% z* q) g6 ^; k% n3 ^3 s
</table>* W: T+ {8 o: [& ]3 n6 @! C
+ J( M b3 c2 Q. M0 Z" \. X% [
<p><faces:command_button id='submit' commandName='Log In'/>
2 r6 d; s$ C# r( w R </faces:form>
: l' x0 w2 C' T9 h2 X, z& u/ W- b1 l </faces:usefaces>; c! Y: d k# \+ F: ]
</body>- Y) q4 A: j, }9 \6 s2 V; Z# k+ @
</html> |
|