PageRenderTime 84ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/finance-manager/src/main/webapp/WEB-INF/jsp/wizard/createNewPerson.jsp

http://jasoet.googlecode.com/
JavaServer Pages | 142 lines | 119 code | 23 blank | 0 comment | 0 complexity | 8e403d9e144ee6158711c676959de131 MD5 | raw file
  1. <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
  2. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
  3. <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  5. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  6. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  7. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  10. <style type="text/css" media="screen">
  11. @import url("<c:url value="/resources/dojo/resources/dojo.css"/>");
  12. @import url("<c:url value="/resources/dijit/themes/tundra/tundra.css"/>");
  13. @import url("<c:url value="/static/styles/finance.css"/>");
  14. </style>
  15. <script djconfig="parseOnLoad: true" src="<c:url value="/resources/dojo/dojo.js"/>" type="text/javascript"></script>
  16. <script type="text/javascript" src="<c:url value="/resources/spring/Spring.js" />"></script>
  17. <script type="text/javascript" src="<c:url value="/resources/spring/Spring-Dojo.js" />"></script>
  18. <script type="text/javascript">dojo.require("dojo.parser");</script>
  19. <title>Spring Finance</title>
  20. </head>
  21. <body class="tundra spring">
  22. <div id="wrap">
  23. <div id="menu">
  24. <%@ include file="/WEB-INF/jsp/menu.jsp" %>
  25. </div>
  26. <div id="main">
  27. <div id="body">
  28. <script type="text/javascript">dojo.require("dijit.TitlePane");</script>
  29. <div dojoType="dijit.TitlePane" style="width: 100%" title="Create New Person">
  30. <form:form modelAttribute="person">
  31. <div>
  32. <label for="firstName">First Name:</label>
  33. <form:input cssStyle="width:250px" maxlength="30" path="firstName" size="30"/>
  34. <form:errors path="firstName" cssClass="errors"/>
  35. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "firstName", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter First Name", required : true}})); </script>
  36. </div>
  37. <br/>
  38. <div>
  39. <label for="lastName">Last Name:</label>
  40. <form:input cssStyle="width:250px" maxlength="30" path="lastName" size="30"/>
  41. <form:errors path="lastName" cssClass="errors"/>
  42. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "lastName", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Last Name", required : true}})); </script>
  43. </div>
  44. <br/>
  45. <div>
  46. <label for="email">Email:</label>
  47. <form:input cssStyle="width:250px" maxlength="30" path="email" size="30"/>
  48. <form:errors path="email" cssClass="errors"/><br/>
  49. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "email", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {invalidMessage: "Enter Email (numbers only)", regExp: "[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", required : true}})); </script>
  50. </div>
  51. <br/>
  52. <div>
  53. <label for="streetName">Street Name:</label>
  54. <form:input cssStyle="width:250px" maxlength="30" path="address.streetName" id="streetName"
  55. size="30"/>
  56. <form:errors path="address.streetName" cssClass="errors"/><br/>
  57. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "streetName", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Street Name", required : true}})); </script>
  58. </div>
  59. <br/>
  60. <div>
  61. <label for="streetNumber">Street Number:</label>
  62. <form:input cssStyle="width:250px" maxlength="30" path="address.streetNumber" id="streetNumber"
  63. size="30"/>
  64. <form:errors path="address.streetNumber" cssClass="errors"/><br/>
  65. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "streetNumber", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Street Number", required : true}})); </script>
  66. </div>
  67. <br/>
  68. <div>
  69. <label for="city">City:</label>
  70. <form:input cssStyle="width:250px" maxlength="30" path="address.city" id="city" size="30"/>
  71. <form:errors path="address.city" cssClass="errors"/><br/>
  72. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "city", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter City", required : true}})); </script>
  73. </div>
  74. <br/>
  75. <div>
  76. <label for="zipCode">Zip Code:</label>
  77. <form:input cssStyle="width:250px" maxlength="30" path="address.zipCode" id="zipCode"
  78. size="30"/>
  79. <form:errors path="address.zipCode" cssClass="errors"/><br/>
  80. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "zipCode", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Zip Code", required : true}})); </script>
  81. </div>
  82. <br/>
  83. <div>
  84. <label for="state">State:</label>
  85. <form:input cssStyle="width:250px" maxlength="30" path="address.state" id="state" size="30"/>
  86. <form:errors path="address.state" cssClass="errors"/><br/>
  87. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "state", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter State", required : false}})); </script>
  88. </div>
  89. <br/>
  90. <div>
  91. <label for="country">Country:</label>
  92. <form:input cssStyle="width:250px" maxlength="30" path="address.country" id="country"
  93. size="30"/>
  94. <form:errors path="address.country" cssClass="errors"/>
  95. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "country", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Country", required : false}})); </script>
  96. </div>
  97. <br/>
  98. <div class="submit buttonGroup">
  99. <input type="submit" id="cancel" name="_eventId_cancel" value="Cancel"/>&#160;
  100. <input type="submit" id="person" name="_eventId_person" value="Create Another Person"/>&#160;
  101. <input type="submit" id="product" name="_eventId_product" value="Proceed"/>&#160;
  102. <script type="text/javascript">
  103. Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'product', event:'onclick'}));
  104. Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'person', event:'onclick'}));
  105. </script>
  106. </div>
  107. </form:form>
  108. </div>
  109. </div>
  110. <table class="footer">
  111. <tr>
  112. <td><a href="<c:url value="/" />">Home</a></td>
  113. <td align="right"><a href="http://stsmedia.net" alt="StSMedia.net">StSMedia.net</a></td>
  114. </tr>
  115. </table>
  116. </div>
  117. </div>
  118. </body>
  119. </html>