DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42069>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42069

           Summary: datagrid is getting the ArrayList object as string
           Product: Taglibs
           Version: 1.2.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Sandbox Taglibs
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


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 ();
    else
      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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to