1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.strutsel.taglib.html;
22
23 import java.beans.IntrospectionException;
24 import java.beans.PropertyDescriptor;
25 import java.beans.SimpleBeanInfo;
26
27 import java.util.ArrayList;
28
29 /**
30 * This is the <code>BeanInfo</code> descriptor for the
31 * <code>org.apache.strutsel.taglib.html.ELTextareaTag</code> class. It is
32 * needed to override the default mapping of custom tag attribute names to
33 * class attribute names. <p> This is because the value of the unevaluated EL
34 * expression has to be kept separately from the evaluated value, which is
35 * stored in the base class. This is related to the fact that the JSP compiler
36 * can choose to reuse different tag instances if they received the same
37 * original attribute values, and the JSP compiler can choose to not re-call
38 * the setter methods, because it can assume the same values are already set.
39 */
40 public class ELTextareaTagBeanInfo extends SimpleBeanInfo {
41 public PropertyDescriptor[] getPropertyDescriptors() {
42 ArrayList proplist = new ArrayList();
43
44 try {
45 proplist.add(new PropertyDescriptor("accesskey",
46 ELTextareaTag.class, null, "setAccesskeyExpr"));
47 } catch (IntrospectionException ex) {
48 }
49
50 try {
51 proplist.add(new PropertyDescriptor("alt", ELTextareaTag.class,
52 null, "setAltExpr"));
53 } catch (IntrospectionException ex) {
54 }
55
56 try {
57 proplist.add(new PropertyDescriptor("altKey", ELTextareaTag.class,
58 null, "setAltKeyExpr"));
59 } catch (IntrospectionException ex) {
60 }
61
62 try {
63 proplist.add(new PropertyDescriptor("bundle", ELTextareaTag.class,
64 null, "setBundleExpr"));
65 } catch (IntrospectionException ex) {
66 }
67
68 try {
69 proplist.add(new PropertyDescriptor("cols", ELTextareaTag.class,
70 null, "setColsExpr"));
71 } catch (IntrospectionException ex) {
72 }
73
74 try {
75 proplist.add(new PropertyDescriptor("dir", ELTextareaTag.class,
76 null, "setDirExpr"));
77 } catch (IntrospectionException ex) {
78 }
79
80 try {
81 proplist.add(new PropertyDescriptor("disabled",
82 ELTextareaTag.class, null, "setDisabledExpr"));
83 } catch (IntrospectionException ex) {
84 }
85
86 try {
87 proplist.add(new PropertyDescriptor("errorKey",
88 ELTextareaTag.class, null, "setErrorKeyExpr"));
89 } catch (IntrospectionException ex) {
90 }
91
92 try {
93 proplist.add(new PropertyDescriptor("errorStyle",
94 ELTextareaTag.class, null, "setErrorStyleExpr"));
95 } catch (IntrospectionException ex) {
96 }
97
98 try {
99 proplist.add(new PropertyDescriptor("errorStyleClass",
100 ELTextareaTag.class, null, "setErrorStyleClassExpr"));
101 } catch (IntrospectionException ex) {
102 }
103
104 try {
105 proplist.add(new PropertyDescriptor("errorStyleId",
106 ELTextareaTag.class, null, "setErrorStyleIdExpr"));
107 } catch (IntrospectionException ex) {
108 }
109
110 try {
111 proplist.add(new PropertyDescriptor("indexed", ELTextareaTag.class,
112 null, "setIndexedExpr"));
113 } catch (IntrospectionException ex) {
114 }
115
116 try {
117 proplist.add(new PropertyDescriptor("lang", ELTextareaTag.class,
118 null, "setLangExpr"));
119 } catch (IntrospectionException ex) {
120 }
121
122 try {
123 proplist.add(new PropertyDescriptor("name", ELTextareaTag.class,
124 null, "setNameExpr"));
125 } catch (IntrospectionException ex) {
126 }
127
128 try {
129 proplist.add(new PropertyDescriptor("onblur", ELTextareaTag.class,
130 null, "setOnblurExpr"));
131 } catch (IntrospectionException ex) {
132 }
133
134 try {
135 proplist.add(new PropertyDescriptor("onchange",
136 ELTextareaTag.class, null, "setOnchangeExpr"));
137 } catch (IntrospectionException ex) {
138 }
139
140 try {
141 proplist.add(new PropertyDescriptor("onclick", ELTextareaTag.class,
142 null, "setOnclickExpr"));
143 } catch (IntrospectionException ex) {
144 }
145
146 try {
147 proplist.add(new PropertyDescriptor("ondblclick",
148 ELTextareaTag.class, null, "setOndblclickExpr"));
149 } catch (IntrospectionException ex) {
150 }
151
152 try {
153 proplist.add(new PropertyDescriptor("onfocus", ELTextareaTag.class,
154 null, "setOnfocusExpr"));
155 } catch (IntrospectionException ex) {
156 }
157
158 try {
159 proplist.add(new PropertyDescriptor("onkeydown",
160 ELTextareaTag.class, null, "setOnkeydownExpr"));
161 } catch (IntrospectionException ex) {
162 }
163
164 try {
165 proplist.add(new PropertyDescriptor("onkeypress",
166 ELTextareaTag.class, null, "setOnkeypressExpr"));
167 } catch (IntrospectionException ex) {
168 }
169
170 try {
171 proplist.add(new PropertyDescriptor("onkeyup", ELTextareaTag.class,
172 null, "setOnkeyupExpr"));
173 } catch (IntrospectionException ex) {
174 }
175
176 try {
177 proplist.add(new PropertyDescriptor("onmousedown",
178 ELTextareaTag.class, null, "setOnmousedownExpr"));
179 } catch (IntrospectionException ex) {
180 }
181
182 try {
183 proplist.add(new PropertyDescriptor("onmousemove",
184 ELTextareaTag.class, null, "setOnmousemoveExpr"));
185 } catch (IntrospectionException ex) {
186 }
187
188 try {
189 proplist.add(new PropertyDescriptor("onmouseout",
190 ELTextareaTag.class, null, "setOnmouseoutExpr"));
191 } catch (IntrospectionException ex) {
192 }
193
194 try {
195 proplist.add(new PropertyDescriptor("onmouseover",
196 ELTextareaTag.class, null, "setOnmouseoverExpr"));
197 } catch (IntrospectionException ex) {
198 }
199
200 try {
201 proplist.add(new PropertyDescriptor("onmouseup",
202 ELTextareaTag.class, null, "setOnmouseupExpr"));
203 } catch (IntrospectionException ex) {
204 }
205
206 try {
207 proplist.add(new PropertyDescriptor("onselect",
208 ELTextareaTag.class, null, "setOnselectExpr"));
209 } catch (IntrospectionException ex) {
210 }
211
212 try {
213 proplist.add(new PropertyDescriptor("property",
214 ELTextareaTag.class, null, "setPropertyExpr"));
215 } catch (IntrospectionException ex) {
216 }
217
218 try {
219 proplist.add(new PropertyDescriptor("readonly",
220 ELTextareaTag.class, null, "setReadonlyExpr"));
221 } catch (IntrospectionException ex) {
222 }
223
224 try {
225 proplist.add(new PropertyDescriptor("rows", ELTextareaTag.class,
226 null, "setRowsExpr"));
227 } catch (IntrospectionException ex) {
228 }
229
230 try {
231 proplist.add(new PropertyDescriptor("style", ELTextareaTag.class,
232 null, "setStyleExpr"));
233 } catch (IntrospectionException ex) {
234 }
235
236 try {
237 proplist.add(new PropertyDescriptor("styleClass",
238 ELTextareaTag.class, null, "setStyleClassExpr"));
239 } catch (IntrospectionException ex) {
240 }
241
242 try {
243 proplist.add(new PropertyDescriptor("styleId", ELTextareaTag.class,
244 null, "setStyleIdExpr"));
245 } catch (IntrospectionException ex) {
246 }
247
248 try {
249 proplist.add(new PropertyDescriptor("tabindex",
250 ELTextareaTag.class, null, "setTabindexExpr"));
251 } catch (IntrospectionException ex) {
252 }
253
254 try {
255 proplist.add(new PropertyDescriptor("title", ELTextareaTag.class,
256 null, "setTitleExpr"));
257 } catch (IntrospectionException ex) {
258 }
259
260 try {
261 proplist.add(new PropertyDescriptor("titleKey",
262 ELTextareaTag.class, null, "setTitleKeyExpr"));
263 } catch (IntrospectionException ex) {
264 }
265
266 try {
267 proplist.add(new PropertyDescriptor("value", ELTextareaTag.class,
268 null, "setValueExpr"));
269 } catch (IntrospectionException ex) {
270 }
271
272 PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
273
274 return ((PropertyDescriptor[]) proplist.toArray(result));
275 }
276 }