My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<jsp:directive.include file="/WEB-INF/jsp/includes.jsp"/>
<jsp:directive.include file="/WEB-INF/jsp/header.jsp"/>
<script type="text/javascript">dojo.require("dijit.TitlePane");</script>
<div dojoType="dijit.TitlePane" style="width: 100%" title="Create New Person">
<form:form action="/FinanceManager/person" method="POST" modelAttribute="person">
<div>

<label for="firstName">First Name:</label>
<form:input cssStyle="width:250px" maxlength="30" path="firstName" size="30"/>
<form:errors path="firstName" cssClass="errors"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "firstName", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter First Name", required : true}})); </script>
</div>
<br/>
<div>
<label for="lastName">Last Name:</label>
<form:input cssStyle="width:250px" maxlength="30" path="lastName" size="30"/>
<form:errors path="lastName" cssClass="errors"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "lastName", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Last Name", required : true}})); </script>
</div>
<br/>
<div>
<label for="email">Email:</label>
<form:input cssStyle="width:250px" maxlength="30" path="email" size="30"/>
<form:errors path="email" cssClass="errors"/><br/>
<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>
</div>
<br/>
<div>
<label for="streetName">Street Name:</label>
<form:input cssStyle="width:250px" maxlength="30" path="address.streetName" id="streetName" size="30"/>
<form:errors path="address.streetName" cssClass="errors"/><br/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "streetName", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Street Name", required : true}})); </script>
</div>
<br/>
<div>
<label for="streetNumber">Street Number:</label>
<form:input cssStyle="width:250px" maxlength="30" path="address.streetNumber" id="streetNumber" size="30"/>
<form:errors path="address.streetNumber" cssClass="errors"/><br/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "streetNumber", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Street Number", required : true}})); </script>
</div>
<br/>
<div>
<label for="city">City:</label>
<form:input cssStyle="width:250px" maxlength="30" path="address.city" id="city" size="30"/>
<form:errors path="address.city" cssClass="errors"/><br/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "city", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter City", required : true}})); </script>
</div>
<br/>
<div>
<label for="zipCode">Zip Code:</label>
<form:input cssStyle="width:250px" maxlength="30" path="address.zipCode" id="zipCode" size="30"/>
<form:errors path="address.zipCode" cssClass="errors"/><br/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "zipCode", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Zip Code", required : true}})); </script>
</div>
<br/>
<div>
<label for="state">State:</label>
<form:input cssStyle="width:250px" maxlength="30" path="address.state" id="state" size="30"/>
<form:errors path="address.state" cssClass="errors"/><br/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "state", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter State", required : false}})); </script>
</div>
<br/>
<div>
<label for="country">Country:</label>
<form:input cssStyle="width:250px" maxlength="30" path="address.country" id="country" size="30"/>
<form:errors path="address.country" cssClass="errors"/>
<script type="text/javascript">Spring.addDecoration(new Spring.ElementDecoration({elementId : "country", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : {promptMessage: "Enter Country", required : false}})); </script>
</div>
<br/>
<div class="submit">
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));</script>
<input id="proceed" type="submit" value="Save"/>
</div>
</form:form>
</div>
<jsp:directive.include file="/WEB-INF/jsp/footer.jsp"/>

Change log

r11 by stsmedia on Apr 2, 2009   Diff
Tagging the 0.2 release of the 'Spring
Finance Manager' project.
Go to: 
Project members, sign in to write a code review

Older revisions

r8 by stsmedia on Apr 1, 2009   Diff
Committing initial work for release
0.2
r7 by stsmedia on Mar 29, 2009   Diff
Switching from Hibernate Validator 3.x
to JSR 303 Bean validation API &
Hibernate Validator 4.0.0.Alpha3 RI
r2 by stsmedia on Mar 21, 2009   Diff
Version 0.1 of Spring Finance Manager
code base
All revisions of this file

File info

Size: 5529 bytes, 76 lines
Powered by Google Project Hosting