[ http://mc4j.org/jira/browse/STS-301?page=comments#action_10510 ] 
            
Tim Fennell commented on STS-301:
---------------------------------

Oh, how I wish the array classes implemented Iterable, but it's actually not 
the case.  The following test program:

public class Test{
        public static void main(String [] argv) {
            Class c = argv.getClass();
            System.out.println(Iterable.class.isAssignableFrom(c));
            System.out.println(Arrays.toString(c.getInterfaces()));
        }
}

prints:
false
[interface java.lang.Cloneable, interface java.io.Serializable]


> Support for Iterable in options-collection
> ------------------------------------------
>
>                 Key: STS-301
>                 URL: http://mc4j.org/jira/browse/STS-301
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Tag Library
>    Affects Versions: Release 1.4.1
>            Reporter: Andy
>         Assigned To: Tim Fennell
>            Priority: Trivial
>
> Currently the options-collection tag requires the value of the collection= 
> attribute to be a Collection.
> But it only needs to iterate the collection.
> If the type of the collection= attribute is changed to Iterable, the tag will 
> support arrays :)
> (Both arrays and Collection implement Iterable.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to