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.ELErrorsTag</code> class. It is
29 * needed to override the default mapping of custom tag attribute names to
30 * class attribute names.
31 */
32 public class ELErrorsTagBeanInfo extends SimpleBeanInfo {
33 public PropertyDescriptor[] getPropertyDescriptors() {
34 ArrayList proplist = new ArrayList();
35
36 try {
37 proplist.add(new PropertyDescriptor("bundle", ELErrorsTag.class,
38 null, "setBundleExpr"));
39 } catch (IntrospectionException ex) {
40 }
41
42 try {
43 proplist.add(new PropertyDescriptor("footer", ELErrorsTag.class,
44 null, "setFooterExpr"));
45 } catch (IntrospectionException ex) {
46 }
47
48 try {
49 proplist.add(new PropertyDescriptor("header", ELErrorsTag.class,
50 null, "setHeaderExpr"));
51 } catch (IntrospectionException ex) {
52 }
53
54 try {
55 proplist.add(new PropertyDescriptor("locale", ELErrorsTag.class,
56 null, "setLocaleExpr"));
57 } catch (IntrospectionException ex) {
58 }
59
60 try {
61 proplist.add(new PropertyDescriptor("name", ELErrorsTag.class,
62 null, "setNameExpr"));
63 } catch (IntrospectionException ex) {
64 }
65
66 try {
67 proplist.add(new PropertyDescriptor("prefix", ELErrorsTag.class,
68 null, "setPrefixExpr"));
69 } catch (IntrospectionException ex) {
70 }
71
72 try {
73 proplist.add(new PropertyDescriptor("property", ELErrorsTag.class,
74 null, "setPropertyExpr"));
75 } catch (IntrospectionException ex) {
76 }
77
78 try {
79 proplist.add(new PropertyDescriptor("suffix", ELErrorsTag.class,
80 null, "setSuffixExpr"));
81 } catch (IntrospectionException ex) {
82 }
83
84 PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
85
86 return ((PropertyDescriptor[]) proplist.toArray(result));
87 }
88 }