1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.uif.view;
17
18 import org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.datadictionary.parse.BeanTags;
21
22
23
24
25
26
27
28 @BeanTags({@BeanTag(name = "formView-bean", parent = "Uif-FormView"),
29 @BeanTag(name = "formView-knsTheme-bean", parent = "Uif-FormView-KnsTheme"),
30 @BeanTag(name = "incidentReportView-bean", parent = "Uif-IncidentReportView"),
31 @BeanTag(name = "initiatedDocumentView-bean", parent = "InitiatedDocumentView"),
32 @BeanTag(name = "initiatedDocumentView-KNS-bean", parent = "InitiatedDocumentView-KNS")})
33 public class FormView extends View {
34 private static final long serialVersionUID = -3291164284675273147L;
35
36 private boolean renderForm;
37 private boolean validateServerSide;
38 private boolean validateClientSide;
39
40 private String formPostUrl;
41
42 public FormView() {
43 renderForm = true;
44 validateServerSide = true;
45 validateClientSide = true;
46 setApplyDirtyCheck(true);
47 }
48
49
50
51
52
53
54
55
56
57
58 @BeanTagAttribute(name = "renderForm")
59 public boolean isRenderForm() {
60 return this.renderForm;
61 }
62
63
64
65
66
67
68 public void setRenderForm(boolean renderForm) {
69 this.renderForm = renderForm;
70 }
71
72
73
74
75
76
77
78
79
80 @BeanTagAttribute(name = "validateServerSide")
81 public boolean isValidateServerSide() {
82 return this.validateServerSide;
83 }
84
85
86
87
88
89
90 public void setValidateServerSide(boolean validateServerSide) {
91 this.validateServerSide = validateServerSide;
92 }
93
94
95
96
97
98
99
100 @BeanTagAttribute(name = "validateClientSide")
101 public boolean isValidateClientSide() {
102 return validateClientSide;
103 }
104
105
106
107
108
109
110 public void setValidateClientSide(boolean validateClientSide) {
111 this.validateClientSide = validateClientSide;
112 }
113
114
115
116
117
118
119
120
121
122
123
124
125 @BeanTagAttribute(name = "formPostUrl")
126 public String getFormPostUrl() {
127 return this.formPostUrl;
128 }
129
130
131
132
133
134
135 public void setFormPostUrl(String formPostUrl) {
136 this.formPostUrl = formPostUrl;
137 }
138
139 }