|
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
# Q% H3 y1 [, l6 O. |6 l% n7 k<html>" H9 b9 ], `+ C0 y) ?
<head>2 N a' E# @/ _
<title>A Simple JavaServer Faces Application</title>! H7 r' a: Y1 R5 R
</head>
# P0 N/ m- r! C/ b+ {, p+ w' _( F. l/ W3 V) J
<body>
- X; N3 }* ~( R& G4 \ <%@ taglib uri='http://java.sun.com/j2ee/html_basic/' prefix='faces' %>
. P5 d8 h: C# F4 L# S" A! i x5 G' D& S
<font size='4'>Please enter your name and password</font>% `) f+ d5 T" }$ M- A% A- H, P
1 W8 ~: _9 D( Q3 s
<faces:usefaces>
6 A! V" X5 s* ^& E& _) U: ? K: z <faces:form id='simpleForm' formName='simpleForm'>: s) s+ f% P5 u- _
<table>
@) D7 M' y: ~* V <tr>( h8 a( {0 ~" j1 I# l: H
<td>Name:</td>: E5 m& F# j% _! M# Q: f! h# E
<td>& d" h2 Q% z3 c1 ?
<faces:textentry_input id='name'>
1 X- d7 D6 X% z, X) v2 [* _: q <faces:validator
+ v5 Z$ x! J3 W5 t/ H8 ^! h className='com.sabreware.validators.NameValidator'/>% q, ]! ^7 e: Q' h1 b2 q9 Z
<faces:validator
( O# a/ ]4 y1 e className='javax.faces.validator.LengthValidator'/>( |& O$ \. m4 h1 Y4 j
<faces:attribute
$ B( z. v& o4 z6 g' r& p name='javax.faces.validator.LengthValidator.MINIMUM'
$ m) f, K* l2 W& U value='3'/>+ Y7 b$ ?. b: V4 I
</faces:textentry_input>
; d x7 N, I% w" z6 Q7 G </td>) |+ D# z2 e* S: W
2 X1 N' w+ `$ y% w7 Q
<td>
) I; H% z& t( l' {7 A4 \+ ?4 t% a, H <faces:validation_message comp/>
( T+ X5 q" ^# s3 y7 w </td>
2 N+ a# Q; \ g8 f </tr>
" g' n* V0 h! ?# P
# |9 R4 U; u1 H( z <tr>' L& a; \$ ?( Z9 b$ u/ G ^. [
<td>Password:</td>) `# q7 _' J# X0 k* ]" |* h
<td>; _4 G9 h+ @& u4 U( d
<faces:textentry_secret id='password'/> # C9 x2 E( H7 O$ c+ K* [5 f, I
</td># u/ @6 Q7 W, C4 p8 z
</tr>
5 N. {, t3 l/ G </table>
/ @) t# K3 k/ E" g, x5 r5 }8 |7 u X7 [5 t
<p><faces:command_button id='submit' commandName='Log In'/>" B0 P9 \; S' J/ d
</faces:form>
1 ]2 [4 ]0 r6 f- g- ` </faces:usefaces>
; g5 {+ ^" c5 B# S. X. K# W! w% o. o </body>
8 \( @2 v1 w( ^/ u6 c. y8 m</html> |
|