You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2007/04/07 21:29:26 UTC
DO NOT REPLY [Bug 42069] New: - datagrid is getting the ArrayList object as string
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: mansour77@yahoo.com
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: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 42069] - datagrid is getting the ArrayList object as string
Posted by bu...@apache.org.
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
------- Additional Comments From bayard@apache.org 2007-04-08 09:47 -------
*** Bug 42068 has been marked as a duplicate of this bug. ***
--
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: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org