Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 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. xmlns:h="http://java.sun.com/jsf/html"
  6. xmlns:p="http://primefaces.org/ui"
  7. xmlns:f="http://java.sun.com/jsf/core">
  8. <body>
  9.  
  10. <ui:composition template="./myTemplate.xhtml">
  11.  
  12. <ui:define name="content">
  13. <f:view>
  14. <h:form>
  15. <p:growl id="warn" showDetail="true" autoUpdate="false" redisplay="false"/>
  16. <center>
  17. <h:outputLabel value="User Log In" style="font-size: 11pt;font-weight: bold;font-variant: small-caps;"/>
  18.  
  19. <h:panelGrid columns="1" cellpadding="3" cellspacing="0" border="0" id="pgg">
  20. <p:spacer height="10px;"/>
  21. <p:outputLabel value="Username :"/>
  22. <p:inputText value="#{loginBean.userName}" id="unam" required="true" requiredMessage="Please enter valid username" style="width: 122px;"/>
  23. <p:spacer height="3px;"/>
  24. <p:outputLabel value="Password :"/>
  25. <p:password value="#{loginBean.password}" id="pss" required="true" requiredMessage="Please enter valid password" style="width: 122px;"/>
  26.  
  27. <p:spacer height="7px;"/>
  28. <p:commandButton value="log in" action="#{loginBean.doLogin()}" update="warn, pgg" style="margin-left: 35px;font-size: 9pt;" disabled="#{loginBean.showLogout}"/>
  29. </h:panelGrid>
  30. </center>
  31. </h:form>
  32. </f:view>
  33.  
  34. </ui:define>
  35. </ui:composition>
  36. </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement