|
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>* B _+ ]" {: d: o- F2 Z) k2 f
<html>
b* w* x; r' X+ H5 H <head>8 h0 B- ]# @# b; K, z3 u
<title>A Simple JavaServer Faces Application</title>
1 N- u# l& Z" X </head>
) l0 w p0 i7 U8 w2 l9 T7 I2 c* z" `" ^& c8 w7 x; w' k6 t/ o
<body> N# o$ z- v7 Z0 Z4 }8 r
<%@ taglib uri='http://java.sun.com/j2ee/html_basic/' prefix='faces' %>! T* \, m2 x2 y2 m" P
# u5 v, i& T0 E; c) ]" [* L' ` <font size='4'>Please enter your name and password</font>
. g: H0 B' ?( i4 D: E m# L1 q6 U- H- R; f) b+ L
<faces:usefaces>
. R6 f' u/ x z' |. P <faces:form id='simpleForm' formName='simpleForm'>6 f& A2 p2 c9 @. L; t, x
<table>
) T( K; I& z% ~, U$ k <tr>
# F+ b$ n) f- x3 n0 f& Z <td>Name:</td>% l& o o# v, M, } L
<td>
: k' i" k, j f- E <faces:textentry_input id='name'>
0 ?; L3 k" e& j6 A9 @ <faces:validator 1 \& {4 y& ^# N$ K" m) R
className='com.sabreware.validators.NameValidator'/>/ g7 R- H) B1 H2 C, t5 E" z( S
<faces:validator
& E2 L. X3 E6 _4 [ className='javax.faces.validator.LengthValidator'/>
+ T% ~& u9 K, m& `' @0 P/ @ <faces:attribute
! M3 ~/ e& e$ @) {" b$ ?3 Z# R9 b6 d name='javax.faces.validator.LengthValidator.MINIMUM'
& o+ M; A! K- E" E4 Z value='3'/>6 J4 x& Y# a* F. ^# e; y
</faces:textentry_input>3 r; ?8 L1 ^+ r/ U0 M* _$ s
</td>$ {* U2 Z! T, y
' }7 X& j" _# E: T2 Z. A' q6 }: X
<td>0 Z9 [2 N, X* O6 {( m3 X7 g
<faces:validation_message comp/>
3 N" `4 j, w* G$ h! e6 e/ \ </td>
5 d7 u {6 f/ C6 b. ] </tr>
+ @; y6 o4 u1 R: J+ j; a) E3 O$ R1 T5 R/ R$ c4 W' d1 K4 [: |4 @
<tr># m6 C' f7 j2 a& I( B4 n2 J$ c
<td>Password:</td>
9 ^+ a% f2 P( E+ X% w; g4 u1 T <td>
5 [* w1 G4 Y% R3 Y" X3 q0 s) g <faces:textentry_secret id='password'/>
$ k' O: w. U. @! n& f </td>
! ^; @( @. F! o, L3 j0 b, q </tr>
. P) \2 T# F( d+ s- T) ]& Z, ~- u; P </table>1 K+ b' n6 S, K7 t
2 A! X3 W+ {( c: j4 _
<p><faces:command_button id='submit' commandName='Log In'/>7 D5 e8 s# Q1 l( r# a) w
</faces:form>
+ ?: X$ D B# L! c1 W </faces:usefaces>
2 U/ h4 z. p8 x' u+ m/ F, W </body>4 [2 R: k0 ?2 Y. o! }
</html> |
|