|
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
& [$ x6 T3 [& g8 ~. W<html>
* n3 k* \' h9 G5 R2 K <head>
8 W' b$ X& W, b+ N/ ]* {: e <title>A Simple JavaServer Faces Application</title># {& o; j, x% P
</head># G! { g3 e8 f3 B8 c1 h G
0 m) O2 y* e; x9 K
<body>
/ X6 k8 |: X, l& L! y <%@ taglib uri='http://java.sun.com/j2ee/html_basic/' prefix='faces' %>, ?: l5 y/ q# g8 r! J4 R/ V v8 @
0 _& ]( l0 T* ~3 [ <font size='4'>Please enter your name and password</font>
& t' n1 ]% ~" c8 A
+ T. Q' i- J$ P: u <faces:usefaces>
: y; ?" m! J" y3 j& T+ u <faces:form id='simpleForm' formName='simpleForm'>6 f0 z& |: Q7 w
<table>3 ~" `8 d, K9 o7 j% {0 j
<tr>( Q# [/ p, n2 E" Q9 ~$ J
<td>Name:</td>
& k+ a2 Q V* p8 j <td>
- D% d# S% m( X; W/ K9 @7 f- S: l <faces:textentry_input id='name'> , i4 n0 s+ D8 @: P( P
<faces:validator
, ? q) `7 }% h className='com.sabreware.validators.NameValidator'/>- m) O, ~, g) H' g5 R
<faces:validator 4 {% y/ @% |5 N* d& r0 A
className='javax.faces.validator.LengthValidator'/>
% }7 j4 _( ~# [ <faces:attribute 5 N& @4 b5 U' W0 R1 x+ d8 t* a
name='javax.faces.validator.LengthValidator.MINIMUM'
7 S0 }2 J" x& q) X" Q value='3'/>& [; l- ^" D0 g I8 Y1 B3 h3 q- a
</faces:textentry_input>
' z8 B8 i. w6 o9 {2 R) W/ _! Y3 [ </td>: L" _" O7 {, Z) D
6 ^' P% i2 } T" M <td>
/ @8 Z6 N' k# E( K) L- U; T <faces:validation_message comp/>+ s; C2 g7 j* n1 h/ @+ [% |8 J
</td>: N% c' E3 T" n7 ^& ~
</tr> t" V5 q [5 u9 k9 Z
4 Y5 l3 Q1 |5 ^+ t. @' X1 ^9 Z <tr>3 H! D$ S/ ~; `: Z0 g" I1 t
<td>Password:</td>1 y/ a" {5 p$ K' r9 L* N
<td>9 [3 ^5 h1 q6 L/ j6 N" T4 A; T" s
<faces:textentry_secret id='password'/> 4 L6 C3 u" [9 F: K Y+ c
</td>6 R( l+ w* P2 Q* j8 u: ?9 t
</tr>; H' X# H: P z8 s
</table>0 F+ X7 A2 Q! _" f4 `1 v6 _
/ d/ x5 _6 f1 L& I b/ L, k <p><faces:command_button id='submit' commandName='Log In'/>) Y1 [& r/ S4 R2 `7 ~0 U
</faces:form>7 E* N& P5 X5 ~1 d- Y
</faces:usefaces>
3 j d m. q" C9 \/ { d; P8 l </body>! i) \6 V6 K1 n3 M
</html> |
|