Advertisement
Guest User

index.xhtml

a guest
Oct 17th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 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://xmlns.jcp.org/jsf/core">
  6. <h:head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  8. <title>Change Address</title>
  9. <h:outputStylesheet library="css" name="style.css"/>
  10. </h:head>
  11. <h:body>
  12. <h1>Change address</h1>
  13. <h:form>
  14. <h:panelGrid columns="3" columnClasses="rightalign,leftalign"></h:panelGrid>
  15. <h:outputLabel value="First name" for="firstname" />
  16. <h:inputText id="firstname" label="First name" required="true" style="width:300px" value="#{indexController.firstname}"/>
  17. <h:message for="lastname" class="error-message"/>
  18. <h:outputLabel value="Last name" for="lastname" />
  19. <h:inputText id="lastname" label="Last name" required="true" style="width:300px" value="#{indexController.lastname}"/>
  20. <h:message for="lastname" class="error-message"/>
  21. <h:outputLabel value="First name" for="firstname" />
  22. <h:inputText id="address" label="Address" required="true" style="width:300px" value="#{indexController.address}"/>
  23. <h:message for="address" class="error-message"/>
  24. <h:outputLabel value="Zip code" for="code" />
  25. <h:inputText id="code" label="Zipcode" required="true" style="width:300px" value="#{indexController.code}"/>
  26. <f:validateLength minimum="4" maximum="4"/>
  27. </h:inputText>
  28. <h:message for="code" class="error-message"/>
  29.  
  30. <h:outputLabel value="City" for="city"/>
  31. <h:inputText id="city" label="City" required="true" style="width:300px" value="#{indexController.city}"/>
  32. <h:message for="city" class="error-message"/>
  33.  
  34. <h:outputLabel value="Email address" for="email"/>
  35. <h:inputText id="email" label="Email address" required="true" style="width:300px" value="#{indexController.email}"/>
  36. <h:message for="email" class="error-message"/>
  37.  
  38. <h:outputLabel value="Change Date" for="date"/>
  39. <h:inputText id="date" label="Date" required="true" style="width:300px" value="#{indexController.date}"/>
  40. <f:validator validatorId ="dateValidator"/>
  41.  
  42. <h:outputLabel value="Job title" for="title"/>
  43. <h:inputText id="title" label="Title" required="false" style="width:300px" value="#{indexController.title}"/>
  44.  
  45. <h:panelGroup/>
  46. <h:commandButton value ="Send" action="#{indexController.add()}"/>
  47. <h:panelGrid>
  48. <a href="list.xhtml">Show address</a>
  49. </h:panelGrid>
  50. </h:form>
  51. </h:body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement