arron 02/05/27 00:14:47
Modified: src/share/org/apache/struts/taglib/nested/logic
NestedIterateTei.java
Log:
Used to trap the bad array coming out of its super
class, but now the super is fixed, it's just letting
them through. This class should now be flagged for
deletion if no-one has problems with a tag's tei in
the nested library references the logic tag's tei
directly.
Revision Changes Path
1.2 +12 -14
jakarta-struts/src/share/org/apache/struts/taglib/nested/logic/NestedIterateTei.java
Index: NestedIterateTei.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/nested/logic/NestedIterateTei.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NestedIterateTei.java 22 Jan 2002 03:15:50 -0000 1.1
+++ NestedIterateTei.java 27 May 2002 07:14:47 -0000 1.2
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/nested/logic/NestedIterateTei.java,v
1.1 2002/01/22 03:15:50 arron Exp $
- * $Revision: 1.1 $
- * $Date: 2002/01/22 03:15:50 $
+ * $Header:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/nested/logic/NestedIterateTei.java,v
1.2 2002/05/27 07:14:47 arron Exp $
+ * $Revision: 1.2 $
+ * $Date: 2002/05/27 07:14:47 $
* ====================================================================
*
* The Apache Software License, Version 1.1
@@ -68,27 +68,25 @@
* attribute optional, so that those who want to script can add it if they need
* it otherwise we can maintain the nice lean tag markup.
*
+ * @TODO - Look at deleting this class. Potentially a pointless existance now
+ * that the super class is towing the line. Left alone because it's not
+ * hurting anything as-is.
+ * Note: When done, it requires pointing the tei reference in the
+ * struts-nested.tld to org.apache.struts.taglib.logic.IterateTei
+ *
* @author Arron Bates
*
* @since Struts 1.1
- * @version $Revision: 1.1 $ $Date: 2002/01/22 03:15:50 $
+ * @version $Revision: 1.2 $ $Date: 2002/05/27 07:14:47 $
*/
public class NestedIterateTei extends IterateTei {
-
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
-
- VariableInfo[] superValue = super.getVariableInfo(data);
-
- /* If id's not set, return zero length array */
- if (data.getAttributeString("id") == null) {
- return new VariableInfo[0];
- } else {
- return superValue;
- }
+ /* It just lets the result through. */
+ return super.getVariableInfo(data);
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>