-
Notifications
You must be signed in to change notification settings - Fork 1
/
testedit.gsp
95 lines (73 loc) · 2.56 KB
/
testedit.gsp
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
<%@ page import="ajaxdependancyselectexample.MyContinent" %>
<%@ page import="ajaxdependancyselectexample.MyCountry" %>
<%@ page import="ajaxdependancyselectexample.MyCity" %>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName" value="${message(code: 'myContinent.label', default: 'MyContinent')}" />
<title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>
<a href="#create-myContinent" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content…"/></a>
<form method=post action=example5>
<g:selectPrimary id="MyCountry1" name="MyCountry1"
domain='ajaxdependancyselectexample.MyCountry'
searchField='countryName'
collectField='id'
domain2='ajaxdependancyselectexample.MyCity'
bindid="mycountry.id"
searchField2='cityName'
collectField2='id'
noSelection="['': 'Please choose Country']"
setId="MyCity1"
value='4'
secondaryValue='10'
/>
<g:select name="MyCity1" id="MyCity1" optionKey="id" optionValue="cityName" from="[]" required="required" noSelection="['': 'Please choose Country']" />
<input type=submit value=go>
</form>
<form method=post action=example5>
<g:selectPrimary id="MyContinent2" name="MyContinent2"
domain='ajaxdependancyselectexample.MyContinent'
searchField='continentName'
collectField='id'
domain2='ajaxdependancyselectexample.MyCountry'
bindid="mycontinent.id"
searchField2='countryName'
collectField2='id'
hidden="hiddenNew"
noSelection="['': 'Please choose Continent']"
setId="MyCountry11"
value='2'
secondaryValue='2'
/>
<g:selectSecondary id="MyCountry11" name="MyCountry11"
domain2='ajaxdependancyselectexample.MyCity'
bindid="mycountry.id"
searchField2='cityName'
collectField2='id'
noSelection="['': 'Please choose Continent']"
setId="MyCity11"
value="2"
secondaryValue='6'
/>
<g:selectSecondary name="MyCity11" id="MyCity11"
optionKey="id" optionValue="name"
domain2='ajaxdependancyselectexample.MyShops'
bindid="mycity.id"
searchField2='shopName'
collectField2='id'
setId="MyShop12"
noSelection="['': 'Please choose Country 1111']"
value='6'
secondaryValue='10'
/>
<g:select name="MyShop12" id="MyShop12"
optionKey="id" optionValue="shopName"
from="[]" required="required" noSelection="['': 'Please choose City']"
/>
<input type=submit value=go>
</form>
</body>
</html>