|
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>; ]' F( d* D6 Q1 E( r7 i2 {
<html>
+ M2 d8 U# j! J! ^ <head>
: t' ^$ L/ m0 P! |) O& l <title>A Simple JavaServer Faces Application</title>
% s% z) [9 M: y1 G+ } </head>3 {! O6 ~( i# ^+ k
" a, P8 [% f5 S( O) R( N0 f <body>
5 A) B2 w" b$ D2 d' o# U3 A/ R <%@ taglib uri='http://java.sun.com/j2ee/html_basic/' prefix='faces' %>
: u4 t" n% p* X- g2 _' A3 q8 ]7 ~% ^7 u& A5 ~- |- X! h
<font size='4'>Please enter your name and password</font>
7 I q% i( E# F, J# i4 @6 A0 n2 Y' x- x# W; J( v
<faces:usefaces>5 J' k# g8 D: d3 P6 ~, O9 P/ W& h
<faces:form id='simpleForm' formName='simpleForm'>
, T: W. Y) Q5 y) w) |4 y <table>
' Y7 c# U$ y o! c! O/ [- u w <tr> W% ]7 ]4 @4 I2 H
<td>Name:</td>6 ^* U r6 D$ P- Y j
<td># c4 ~3 I. F3 e3 q3 c m! Z
<faces:textentry_input id='name'>
9 r, i1 h- ~5 u) N <faces:validator 6 A$ ^- @3 \4 X( s
className='com.sabreware.validators.NameValidator'/>/ Q( a J/ e* T3 z
<faces:validator
1 P w4 |$ c) J3 b, z' O" x className='javax.faces.validator.LengthValidator'/> c$ q% N7 R+ D2 M8 H ^' w F
<faces:attribute # Q! Y7 V& P8 l) M& U3 r
name='javax.faces.validator.LengthValidator.MINIMUM'
; Q+ b/ m' h# s2 v H9 Q3 w* x value='3'/> M/ h+ w- i) h& q* ]9 E
</faces:textentry_input>
n1 m7 A* h3 x4 J {; T </td>" }- M0 I8 ?* `# h! s
t3 M3 L$ e2 a( d# G1 a& D6 F* y
<td>1 @8 I; Z1 I4 h- j/ G
<faces:validation_message comp/>
7 T' C& ~+ _- K8 G6 y2 g% h </td>
. `. l( C* {% o" ^$ }) {9 \7 ]1 U @ </tr>
& v5 o' _6 ]1 B d: Y+ w4 a' y$ R& Y. \6 C
<tr> P) u0 M! N/ Y+ X, U$ x% D
<td>Password:</td>
# ~8 | f1 W3 n, p <td>4 y9 D+ _" _0 u. E9 [
<faces:textentry_secret id='password'/> 3 a0 y5 L8 H; d7 O# [; f" u; A3 z
</td>
2 ~( o5 z- a$ T% x. _ e </tr>( x5 Y" S* l$ |" r0 I! t
</table>
" @2 S5 I3 j3 J. d9 x
: k& w( B7 C- Q. j$ n* K <p><faces:command_button id='submit' commandName='Log In'/>+ Y( H0 P, S& {9 e& f) i7 c
</faces:form>9 ?6 n; b" P) Q* m6 K, f7 ], ~
</faces:usefaces>
+ O$ r1 `3 Y6 H0 f! ] </body>& } W9 b6 X9 G
</html> |
|