<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<head>
<title>Login JSF</title>
</head>
<body>
<h:form>
Kullanıcı Adı : <h:inputText value="#{loginBean.username}" id="username"
required="true" requiredMessage="Kullanıcı adı giriniz"></h:inputText>
<br/>
<h:message for="username" style="color:red;font-size:x-small"></h:message>
<br/><br/>
Şifre : <h:inputSecret value="#{loginBean.password}" id="password"
required="true" requiredMessage="Şifre giriniz"></h:inputSecret>
<br/>
<h:message for="password" style="color:red;font-size:x-small"></h:message>
<br/><br/>
<h:commandButton action="#{loginBean.login}" value="Gir"></h:commandButton>
<br/>
<h:messages></h:messages>
</h:form>
</body>
</html>
Dosyayı İndir