Guest User

Untitled

a guest
Sep 27th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 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:h="http://xmlns.jcp.org/jsf/html"
  5. xmlns:f="http://java.sun.com/jsf/core">
  6.  
  7. <h:head>
  8. <title>Academic Management - Update Student</title>
  9. </h:head>
  10. <h:body>
  11. <h:form>
  12.  
  13. <h:panelGrid columns="3">
  14.  
  15. <h:outputLabel for="username" value="Username: " />
  16. <h:outputText
  17. id="username"
  18. value="#{administratorManager.currentStudent.username}" />
  19. <h:message for="username" errorStyle="color:red" />
  20.  
  21. <h:outputLabel for="password" value="Password: " />
  22. <h:inputSecret
  23. id="password"
  24. size="20"
  25. required="true"
  26. requiredMessage="Error: password cannot be empty"
  27. value="#{administratorManager.currentStudent.password}" />
  28. <h:message for="password" errorStyle="color:red" />
  29.  
  30. <h:outputLabel for="name" value="Name: " />
  31. <h:inputText
  32. id="name"
  33. size="20"
  34. required="true"
  35. requiredMessage="Error: Name cannot be empty"
  36. value="#{administratorManager.currentStudent.name}" />
  37. <h:message for="name" errorStyle="color:red" />
  38.  
  39. <h:outputLabel for="email" value="Email: " />
  40. <h:inputText
  41. id="email"
  42. size="20"
  43. required="true"
  44. requiredMessage="Error: Email cannot be empty"
  45. value="#{administratorManager.currentStudent.email}" >
  46. <f:validateRegex pattern="[\w\.-]*[a-zA-Z0-9_]@[\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]" />
  47. </h:inputText>
  48. <h:message for="email" errorStyle="color:red" />
  49.  
  50. <br></br>
  51.  
  52. <h:commandButton
  53. id="submit"
  54. value="Update"
  55. action="#{administratorManager.updateStudent}" />
  56. <h:message for="submit" errorStyle="color:red" />
  57.  
  58. </h:panelGrid >
  59.  
  60. </h:form>
  61.  
  62. </h:body>
  63. </html>
Add Comment
Please, Sign In to add comment