1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.strutsel.taglib.html;
19
20 import java.beans.IntrospectionException;
21 import java.beans.PropertyDescriptor;
22 import java.beans.SimpleBeanInfo;
23
24 import java.util.ArrayList;
25
26 /***
27 * This is the <code>BeanInfo</code> descriptor for the
28 * <code>org.apache.strutsel.taglib.html.ELFormTag</code> class. It is needed
29 * to override the default mapping of custom tag attribute names to class
30 * attribute names.
31 */
32 public class ELFormTagBeanInfo extends SimpleBeanInfo {
33 public PropertyDescriptor[] getPropertyDescriptors() {
34 ArrayList proplist = new ArrayList();
35
36 try {
37 proplist.add(new PropertyDescriptor("action", ELFormTag.class,
38 null, "setActionExpr"));
39 } catch (IntrospectionException ex) {
40 }
41
42 try {
43 proplist.add(new PropertyDescriptor("disabled", ELTextTag.class,
44 null, "setDisabledExpr"));
45 } catch (IntrospectionException ex) {
46 }
47
48 try {
49 proplist.add(new PropertyDescriptor("enctype", ELFormTag.class,
50 null, "setEnctypeExpr"));
51 } catch (IntrospectionException ex) {
52 }
53
54 try {
55 proplist.add(new PropertyDescriptor("focus", ELFormTag.class, null,
56 "setFocusExpr"));
57 } catch (IntrospectionException ex) {
58 }
59
60 try {
61 proplist.add(new PropertyDescriptor("focusIndex", ELFormTag.class,
62 null, "setFocusIndexExpr"));
63 } catch (IntrospectionException ex) {
64 }
65
66 try {
67 proplist.add(new PropertyDescriptor("method", ELFormTag.class,
68 null, "setMethodExpr"));
69 } catch (IntrospectionException ex) {
70 }
71
72 try {
73 proplist.add(new PropertyDescriptor("name", ELFormTag.class, null,
74 "setNameExpr"));
75 } catch (IntrospectionException ex) {
76 }
77
78 try {
79 proplist.add(new PropertyDescriptor("onreset", ELFormTag.class,
80 null, "setOnresetExpr"));
81 } catch (IntrospectionException ex) {
82 }
83
84 try {
85 proplist.add(new PropertyDescriptor("onsubmit", ELFormTag.class,
86 null, "setOnsubmitExpr"));
87 } catch (IntrospectionException ex) {
88 }
89
90 try {
91 proplist.add(new PropertyDescriptor("readonly", ELTextTag.class,
92 null, "setReadonlyExpr"));
93 } catch (IntrospectionException ex) {
94 }
95
96 try {
97 proplist.add(new PropertyDescriptor("scope", ELFormTag.class, null,
98 "setScopeExpr"));
99 } catch (IntrospectionException ex) {
100 }
101
102 try {
103 proplist.add(new PropertyDescriptor("scriptLanguage",
104 ELFormTag.class, null, "setScriptLanguageExpr"));
105 } catch (IntrospectionException ex) {
106 }
107
108 try {
109 proplist.add(new PropertyDescriptor("style", ELFormTag.class, null,
110 "setStyleExpr"));
111 } catch (IntrospectionException ex) {
112 }
113
114 try {
115 proplist.add(new PropertyDescriptor("styleClass", ELFormTag.class,
116 null, "setStyleClassExpr"));
117 } catch (IntrospectionException ex) {
118 }
119
120 try {
121 proplist.add(new PropertyDescriptor("styleId", ELFormTag.class,
122 null, "setStyleIdExpr"));
123 } catch (IntrospectionException ex) {
124 }
125
126 try {
127 proplist.add(new PropertyDescriptor("target", ELFormTag.class,
128 null, "setTargetExpr"));
129 } catch (IntrospectionException ex) {
130 }
131
132 try {
133 proplist.add(new PropertyDescriptor("type", ELFormTag.class, null,
134 "setTypeExpr"));
135 } catch (IntrospectionException ex) {
136 }
137
138 try {
139 proplist.add(new PropertyDescriptor("acceptCharset",
140 ELFormTag.class, null, "setAcceptCharsetExpr"));
141 } catch (IntrospectionException ex) {
142 }
143
144 PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
145
146 return ((PropertyDescriptor[]) proplist.toArray(result));
147 }
148 }