Bug 42069 - datagrid is getting the ArrayList object as string
Summary: datagrid is getting the ArrayList object as string
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Sandbox Taglibs (show other bugs)
Version: 1.2.0
Hardware: Other Linux
: P2 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
: 42068 (view as bug list)
Depends on:
Reported: 2007-04-07 12:29 UTC by Mansour
Modified: 2009-07-10 00:41 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Mansour 2007-04-07 12:29:26 UTC
public void setItems (String value) throws JspException
    Object obj;

    obj = ExpressionLanguageHelper.evalObject ("items", value, this, pageContext);
    if      (obj instanceof Iterator)
      items = (Iterator) obj;
    else if (obj instanceof Object [])
      items = Arrays.asList ((Object []) obj).iterator ();
    else if (obj instanceof Collection)
      items = ((Collection) obj).iterator ();
    else if (obj instanceof Map)
      items = ((Map) obj).values ().iterator ();
      throw (new IllegalArgumentException ());

This code is always throwing an exception. The list I am trying to process works
fine with forEach.  
I am using tomcat 6 , JSTL 1.2.
Comment 1 Henri Yandell 2007-04-08 09:47:34 UTC
*** Bug 42068 has been marked as a duplicate of this bug. ***
Comment 2 Henri Yandell 2009-07-10 00:41:21 UTC
This taglib has been deprecated, so I don't expect to see this worked on.