Advertisement
Guest User

index

a guest
Aug 20th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4. xmlns:ui="http://java.sun.com/jsf/facelets"
  5.  
  6. xmlns:h="http://xmlns.jcp.org/jsf/html"
  7. xmlns:f="http://xmlns.jcp.org/jsf/core"
  8. xmlns:p="http://primefaces.org/ui">
  9. <h:head>
  10. </h:head>
  11. <h:body>
  12. <ui:composition template="templates/homeTemplate.xhtml">
  13. <ui:define name="title">Login </ui:define>
  14. <ui:define name="content">
  15. <h:form>
  16. <table border="0">
  17. <tbody>
  18. <tr>
  19. <td><p:outputLabel for="user" value="Username:"/></td>
  20. <td><p:inputText value="#{login.username}" id="user" >
  21. <p:ajax event="blur" update="@this"/>
  22. </p:inputText></td>
  23.  
  24. </tr>
  25. <tr>
  26. <td><p:outputLabel for="pass" value="Password:"/></td>
  27. <td><p:password value="#{login.password}" id="pass" >
  28. <p:ajax event="blur" update="@this"/>
  29. </p:password> </td>
  30. </tr>
  31. <tr>
  32. <td> <p:commandButton value="Log In" action="#{login.signin()}">
  33. <p:ajax listener="#{login.check()}" update="message"/>
  34. </p:commandButton></td>
  35. <td> <h:outputText id="message" styleClass="errorMessage" value="#{login.poruka}"/></td>
  36. <td></td>
  37. </tr>
  38. </tbody>
  39. </table>
  40.  
  41. <table border="0">
  42. <tbody>
  43. <tr>
  44. <td> <p:commandLink value="Change password" action="#{login.moveToCP()}">
  45. <p:ajax listener="#{login.check()}" update="message"/>
  46. </p:commandLink></td>
  47. </tr>
  48. </tbody>
  49. </table> <br/>
  50. <p:fieldset id="fs" legend="Don't have an account?" styleClass="fieldset">
  51.  
  52. <h:panelGrid columns="1" border="0">
  53. <p:commandLink value="Sign Up" ajax="false" action="registration"/>
  54. <p:commandLink value="Continue as a guest" ajax="false" action="guest"/>
  55. </h:panelGrid>
  56. </p:fieldset>
  57. </h:form>
  58.  
  59. </ui:define>
  60. </ui:composition>
  61. <br />
  62.  
  63. </h:body>
  64. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement