|
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>' d/ w. |) Q6 w1 L( `8 N/ N5 |
<html>0 R: w" `/ n( n1 `
<head>0 \- I `. H5 O2 R" Y
<title>A Simple JavaServer Faces Application</title>
# N! @* @( m2 W/ X- y </head>
- u9 t% r) s* a! k7 I
- k6 M9 `6 ^; G. d, }% k, H <body>
& X1 u- M1 f U' @' \ <%@ taglib uri='http://java.sun.com/j2ee/html_basic/' prefix='faces' %>
5 \0 ^- O& ]! e1 I6 ^" T. L; k* a" A2 c
<font size='4'>Please enter your name and password</font>
+ i3 n) O. c0 R6 q" U5 ]' B
% c; z. }! Y7 ~0 n$ v <faces:usefaces>4 a, k- \. E; C* U5 n, E
<faces:form id='simpleForm' formName='simpleForm'>, [) R2 c3 _; H" Q2 R9 c
<table>% `* Z4 r: }4 n) R5 G
<tr>
: S0 g4 y- k s% m <td>Name:</td>
! Y/ F# B& E! w& |2 n, j <td>
6 p1 J% e) _$ e' A9 k <faces:textentry_input id='name'> 7 F) w- Y& P4 { Q% j, @* Y
<faces:validator
- o' _% f9 |: Y. O className='com.sabreware.validators.NameValidator'/>3 a. @0 t; `7 \& g) h5 K# U
<faces:validator
; V% T" e: T# n' N3 R className='javax.faces.validator.LengthValidator'/>. H. K+ M/ w! Q5 D( Z& O% U
<faces:attribute ; {# d r- b. b& T. y( C; |/ I
name='javax.faces.validator.LengthValidator.MINIMUM'/ m! l7 ?9 s/ z( l. Q& Z9 ^
value='3'/> G) u! Y" M+ }; c4 L# x( ?8 }
</faces:textentry_input>
1 ~) _0 ]( J. u- L8 ~; E# C </td>' [4 u2 m3 q4 Y" E: z; v
) C9 I1 \7 y3 E6 G( \0 ` <td>/ U+ _# ?& B/ Z- x* Y0 }; p" N5 W
<faces:validation_message comp/>$ \8 @& K& b6 J/ r1 H; R
</td>" W7 j1 z* T- V8 c: m
</tr>
& s/ e4 i5 d0 n
; q3 }- M; v; a7 n <tr>2 H" f1 n! t; [7 H9 s% n0 R; @1 p/ u1 D
<td>Password:</td>
( Q, V, a, T3 A) q <td>
$ Z0 [: m8 T4 a* F <faces:textentry_secret id='password'/> ! J) L2 R8 r0 ~: ]% ^) w" f
</td>
0 o/ i; o4 {3 E: Z </tr>7 O5 J" P" W! G" o& ^5 ]- o9 v$ K
</table>
3 B. d/ f+ H3 v7 z/ A$ _
6 y$ }' ~8 Y- Z v# N <p><faces:command_button id='submit' commandName='Log In'/>% ~( @% ]7 b$ k6 ^8 i) C
</faces:form>! C% y0 y* Z, b3 ^" x5 f% _
</faces:usefaces>
9 m+ J: E! b" K# K& z( S: p </body>9 m7 k& Y! t, @) Y) |$ `$ e# u
</html> |
|