Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
  4. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>Login</title>
  10. </head>
  11. <body>
  12. <f:view locale="#{facesContext.externalContext.request.locale}">
  13. <h:form>
  14. <p>
  15. <h:outputText value="#{kom.uzytkownik}: "/>
  16. <h:inputText
  17. id="username"
  18. value="#{loginBean.username}"
  19. required="true"
  20. label="Użytkownik">
  21. <f:validator validatorId="emailValidator"/>
  22. </h:inputText>
  23. <br/>
  24. <h:message for="username" />
  25. </p>
  26. <p>
  27. <h:outputText value="#{kom.haslo}: "/>
  28. <h:inputSecret
  29. id="password"
  30. value="#{loginBean.password}"
  31. required="true"
  32. label="Hasło"
  33. validator="#{loginBean.validateAlpha}">
  34. <f:validateLength minimum="4" maximum="10" />
  35. </h:inputSecret>
  36. <br/>
  37. <h:message for="password" />
  38. </p>
  39.  
  40. <h:commandButton
  41. value="#{kom.login}"
  42. id="submitButton"
  43. binding="#{loginBean.submitButton}"
  44. action="#{loginBean.register}"
  45. disabled="true"/>
  46.  
  47. <h:selectBooleanCheckbox
  48. id ="selectBooleanCheckbox1"
  49. binding="#{loginBean.selectBooleanCheckbox1}"
  50. valueChangeListener="#{loginBean.checkbox1Changed}"
  51. onchange="submit()"
  52. immediate="true"/>
  53. Tak, mam ukończone 18 lat!
  54.  
  55. </h:form>
  56. </f:view>
  57. </body>
  58. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement