dmkarr 2002/10/23 22:08:06
Modified: contrib/struts-el/src/share/org/apache/strutsel/taglib/logic
ELIterateTagBeanInfo.java
Log:
Removed reflection-based property descriptor (just to be consistent).
Provided both getter and setter names, although getter is null (as we don't
need that for this).
Revision Changes Path
1.4 +21 -22
jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELIterateTagBeanInfo.java
Index: ELIterateTagBeanInfo.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELIterateTagBeanInfo.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ELIterateTagBeanInfo.java 1 Oct 2002 04:25:51 -0000 1.3
+++ ELIterateTagBeanInfo.java 24 Oct 2002 05:08:06 -0000 1.4
@@ -89,27 +89,26 @@
PropertyDescriptor[] result = new PropertyDescriptor[9];
try {
- Method collectionGetter =
- ELIterateTag.class.getMethod("getCollectionExpr", new Class[0]);
- Method collectionSetter =
- ELIterateTag.class.getMethod("setCollectionExpr",
- new Class[]{String.class});
-
result[0] =
- new PropertyDescriptor("collection",
- collectionGetter, collectionSetter);
+ new PropertyDescriptor("collection", ELIterateTag.class,
+ null, "setCollectionExpr");
- result[1] = new PropertyDescriptor("id", ELIterateTag.class);
- result[2] = new PropertyDescriptor("indexId", ELIterateTag.class);
- result[3] = new PropertyDescriptor("length", ELIterateTag.class);
- result[4] = new PropertyDescriptor("name", ELIterateTag.class);
- result[5] = new PropertyDescriptor("offset", ELIterateTag.class);
- result[6] = new PropertyDescriptor("property", ELIterateTag.class);
- result[7] = new PropertyDescriptor("scope", ELIterateTag.class);
- result[8] = new PropertyDescriptor("type", ELIterateTag.class);
- }
- catch (NoSuchMethodException ex) {
- ex.printStackTrace();
+ result[1] = new PropertyDescriptor("id", ELIterateTag.class,
+ null, "setId");
+ result[2] = new PropertyDescriptor("indexId", ELIterateTag.class,
+ null, "setIndexId");
+ result[3] = new PropertyDescriptor("length", ELIterateTag.class,
+ null, "setLength");
+ result[4] = new PropertyDescriptor("name", ELIterateTag.class,
+ null, "setName");
+ result[5] = new PropertyDescriptor("offset", ELIterateTag.class,
+ null, "setOffset");
+ result[6] = new PropertyDescriptor("property", ELIterateTag.class,
+ null, "setProperty");
+ result[7] = new PropertyDescriptor("scope", ELIterateTag.class,
+ null, "setScope");
+ result[8] = new PropertyDescriptor("type", ELIterateTag.class,
+ null, "setType");
}
catch (IntrospectionException ex) {
ex.printStackTrace();
--
To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>