|
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>4 N, h; |3 l% k+ R" p n, U/ S, E
<html>
; A* {+ F; {, f+ P+ D- ` <head>
: B( P% x- S" k! @9 O <title>A Simple JavaServer Faces Application</title>
* T) h0 S7 ]0 P' X. D! N# j) A </head>; f2 Y0 e- t' G: P0 I6 L
1 U/ a; n4 w3 g8 X: ^ <body>. r0 P. b: D7 _0 M4 a
<%@ taglib uri='http://java.sun.com/j2ee/html_basic/' prefix='faces' %>' Y0 W0 l2 u& }
) D/ l, ~& r) x# e <font size='4'>Please enter your name and password</font>/ ?' A/ G3 H9 [8 ~& `4 k
- }* `' V+ k9 z+ }; l2 W- Q; {
<faces:usefaces>) I+ G _) W, G
<faces:form id='simpleForm' formName='simpleForm'>2 p5 G5 V' H5 E' |- v/ s! [
<table>
3 _" R, A+ m8 c, B7 K) L <tr>
) z! s9 n* T3 T/ R8 U7 G7 ^/ C <td>Name:</td>
% e& n! K/ q9 O <td>
6 Q1 o8 U# W3 D7 o <faces:textentry_input id='name'> : i) V8 p" s7 o7 S" H
<faces:validator # u3 _/ i- A2 r4 b0 ^
className='com.sabreware.validators.NameValidator'/>
D' @) c, c& K) | <faces:validator
# C+ i% M* t! q# m6 c" C' k className='javax.faces.validator.LengthValidator'/> f/ C4 K' P& l& _
<faces:attribute
( ^( V8 `: z$ Z1 R0 ?! o name='javax.faces.validator.LengthValidator.MINIMUM'
; U/ x4 e2 v. Z' g: j value='3'/>' D0 {6 ]/ @/ n( l
</faces:textentry_input>
5 l! Q' H2 w/ B </td>3 z0 H9 E N9 [1 u; Y2 I$ W
; V @+ ]8 a Q4 g8 U% v <td>
: p" j4 o% |& d+ M/ r <faces:validation_message comp/>2 d+ g. L7 p+ P3 l: I
</td>4 b* E6 Q7 {5 E2 r* |2 q
</tr>/ U0 Z9 B6 \( C- i" Y5 Y
% M1 d( f" }: o5 Z# F- p
<tr>
3 l' u6 v% q8 ^# l8 N& R1 y! @ <td>Password:</td>
i5 ^3 U. _) r! f" i2 y <td>% X! k0 [. P- |% @1 w; }* _* S' z
<faces:textentry_secret id='password'/>
1 f: l5 }3 A# S/ \, U </td>
5 G, \) Z F+ k( j, ` </tr>" y5 f3 }9 `# Q9 ` v
</table> z' |1 X F. P' J0 f- o2 W: v
, U/ f( E3 g5 M8 k" ]
<p><faces:command_button id='submit' commandName='Log In'/>
( i# L' m& P" Q2 [" i1 d) P </faces:form>
2 a, t$ F, Y. c </faces:usefaces>; B: Q/ O4 M, j, @6 _! y+ f. x: V
</body>3 U) r/ s9 M1 P! B& U( ]4 k
</html> |
|