-
Notifications
You must be signed in to change notification settings - Fork 0
/
PersonActionTest-testCreatePerson.xml
112 lines (112 loc) · 4.72 KB
/
PersonActionTest-testCreatePerson.xml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<action xmlns="http://www.appng.org/schema/platform" id="createPerson" eventId="personEvent" async="false">
<config>
<title id="person.create">New Person</title>
<description id="Enter a new person here.">Enter a new person here.</description>
<permissions>
<permission ref="person.create" mode="set"></permission>
</permissions>
<labels>
<label id="search">Search position</label>
<label id="go.to.marker">Got to marker</label>
<label id="delete.marker">Delete marker</label>
<label id="enter.address">enter search-address</label>
</labels>
<params>
<param name="form_action">createPerson</param>
</params>
<meta-data bindClass="org.appng.application.personregister.model.Person">
<field name="lastname" type="text" readonly="false" binding="lastname">
<label id="lastname">Lastname</label>
<validation>
<notNull>
<message ref="lastname" class="ERROR">Field must not be empty</message>
</notNull>
</validation>
</field>
<field name="name" type="text" binding="name">
<label id="name">Name</label>
<validation>
<notNull>
<message ref="name" class="ERROR">Field must not be empty</message>
</notNull>
</validation>
</field>
<field name="gender" type="list:radio" binding="gender">
<label id="gender">Gender</label>
</field>
<field name="birthDay" type="date" format="MM/dd/yyyy" binding="birthDay">
<label id="birthday">Birthday</label>
</field>
<field name="cashAmount" type="decimal" format="#,000.00##" binding="cashAmount">
<label id="cashAmount">Cash Amount</label>
</field>
<field name="picture" type="file" binding="picture">
<label id="picture">Picture</label>
<validation>
<fileUpload minCount="0" maxCount="1" minSize="0" maxSize="10" unit="MB" fileTypes="jpg,png,jpeg">
<message ref="picture" class="ERROR">Please upload a file of the following types: jpg,png,jpeg</message>
</fileUpload>
</validation>
</field>
<field name="location" type="coordinate" binding="location">
<label id="coordinate">coordinate</label>
<field name="latitude" type="decimal" format="#0.0000000" binding="location.latitude">
<label id="latitude">latitude</label>
</field>
<field name="longitude" type="decimal" format="#0.0000000" binding="location.longitude">
<label id="longitude">longitude</label>
</field>
</field>
</meta-data>
</config>
<condition expression="${'createPerson' eq form_action}"/>
<messages>
<message ref="createPerson" class="OK">Person has been created!</message>
</messages>
<datasource id="person">
<params>
<param name="id">-1</param>
</params>
</datasource>
<data>
<selection id="gender">
<title id="gender">Gender</title>
<option value="MALE" name="Male" selected="false"/>
<option value="FEMALE" name="Female" selected="false"/>
<option value="OTHER" name="Other" selected="true"/>
</selection>
<result>
<field name="lastname" type="text">
<value></value>
</field>
<field name="name" type="text">
<value></value>
</field>
<field name="gender" type="list:radio">
<value></value>
</field>
<field name="birthDay" type="date">
<value></value>
</field>
<field name="cashAmount" type="decimal">
<value></value>
</field>
<field name="picture" type="file">
<value></value>
</field>
<field name="location" type="coordinate">
<field name="latitude" type="decimal">
<value>50.1163020</value>
</field>
<field name="longitude" type="decimal">
<value>8.6844770</value>
</field>
<value></value>
</field>
</result>
</data>
<bean id="personAction">
<option name="action" id="create"/>
</bean>
</action>