Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=utf-8"
- pageEncoding="utf-8"%>
- <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
- <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Login</title>
- </head>
- <body>
- <f:view locale="#{facesContext.externalContext.request.locale}">
- <h:form>
- <p>
- <h:outputText value="#{kom.uzytkownik}: "/>
- <h:inputText
- id="username"
- value="#{loginBean.username}"
- required="true"
- label="Użytkownik">
- <f:validator validatorId="emailValidator"/>
- </h:inputText>
- <br/>
- <h:message for="username" />
- </p>
- <p>
- <h:outputText value="#{kom.haslo}: "/>
- <h:inputSecret
- id="password"
- value="#{loginBean.password}"
- required="true"
- label="Hasło"
- validator="#{loginBean.validateAlpha}">
- <f:validateLength minimum="4" maximum="10" />
- </h:inputSecret>
- <br/>
- <h:message for="password" />
- </p>
- <h:commandButton
- value="#{kom.login}"
- id="submitButton"
- binding="#{loginBean.submitButton}"
- action="#{loginBean.register}"
- disabled="true"/>
- <h:selectBooleanCheckbox
- id ="selectBooleanCheckbox1"
- binding="#{loginBean.selectBooleanCheckbox1}"
- valueChangeListener="#{loginBean.checkbox1Changed}"
- onchange="submit()"
- immediate="true"/>
- Tak, mam ukończone 18 lat!
- </h:form>
- </f:view>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement