PageRenderTime 34ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/finance-manager/src/main/webapp/WEB-INF/jsp/person/update.jsp

http://jasoet.googlecode.com/
JavaServer Pages | 145 lines | 123 code | 22 blank | 0 comment | 0 complexity | 556372d668355e05352f5aa71bea80df 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="Update Person">
  30. <form:form action="/person/${person.id}" method="PUT" 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"/>
  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="password">Password:</label>
  54. <form:password cssStyle="width:250px" maxlength="30" path="password" size="30"/>
  55. <form:errors path="password" cssClass="errors"/><br/>
  56. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "password", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {invalidMessage: "Enter Account Password", required : true}})); </script>
  57. </div>
  58. <br/>
  59. <div>
  60. <label for="streetName">Street Name:</label>
  61. <form:input cssStyle="width:250px" maxlength="30" path="address.streetName" id="streetName"
  62. size="30"/>
  63. <form:errors path="address.streetName" cssClass="errors"/>
  64. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "streetName", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Street Name", required : true}})); </script>
  65. </div>
  66. <br/>
  67. <div>
  68. <label for="streetNumber">Street Number:</label>
  69. <form:input cssStyle="width:250px" maxlength="30" path="address.streetNumber" id="streetNumber"
  70. size="30"/>
  71. <form:errors path="address.streetNumber" cssClass="errors"/>
  72. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "streetNumber", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Street Number", required : true}})); </script>
  73. </div>
  74. <br/>
  75. <div>
  76. <label for="city">City:</label>
  77. <form:input cssStyle="width:250px" maxlength="30" path="address.city" id="city" size="30"/>
  78. <form:errors path="address.city" cssClass="errors"/>
  79. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "city", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter City", required : true}})); </script>
  80. </div>
  81. <br/>
  82. <div>
  83. <label for="zipCode">Zip Code:</label>
  84. <form:input cssStyle="width:250px" maxlength="30" path="address.zipCode" id="zipCode"
  85. size="30"/>
  86. <form:errors path="address.zipCode" cssClass="errors"/>
  87. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "zipCode", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Zip Code", required : true}})); </script>
  88. </div>
  89. <br/>
  90. <div>
  91. <label for="state">State:</label>
  92. <form:input cssStyle="width:250px" maxlength="30" path="address.state" id="state" size="30"/>
  93. <form:errors path="address.state" cssClass="errors"/>
  94. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "state", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter State", required : false}})); </script>
  95. </div>
  96. <br/>
  97. <div>
  98. <label for="country">Country:</label>
  99. <form:input cssStyle="width:250px" maxlength="30" path="address.country" id="country"
  100. size="30"/>
  101. <form:errors path="address.country" cssClass="errors"/>
  102. <script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "country", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Country", required : false}})); </script>
  103. </div>
  104. <br/>
  105. <div class="submit">
  106. <script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
  107. <input id="proceed" type="submit" value="Update"/>
  108. </div>
  109. <form:hidden path="id"/>
  110. <form:hidden path="version"/>
  111. </form:form>
  112. </div>
  113. </div>
  114. <table class="footer">
  115. <tr>
  116. <td><a href="<c:url value="/" />">Home</a></td>
  117. <td align="right"><a href="http://stsmedia.net" alt="StSMedia.net">StSMedia.net</a></td>
  118. </tr>
  119. </table>
  120. </div>
  121. </div>
  122. </body>
  123. </html>