Seam Remoting Problem - Cannot pass HashMap
-------------------------------------------
Key: JBSEAM-2939
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2939
Project: Seam
Issue Type: Bug
Components: Remoting
Affects Versions: 2.0.0.GA
Environment: Windows XP
Reporter: P C
Assigned To: Shane Bryzak
I have a problem where when I pass a HashMap parameter from client js to the server, the
server (SEAM) doesn't seem to be able to convert/decode the HashMap properly. I have
the following exception in seam:
Caused by: org.jboss.seam.remoting.wrapper.ConversionException: Could not create value of
type [java.util.HashMap<java.lang.String, java.lang.String>]
at
org.jboss.seam.remoting.wrapper.MapWrapper.convert(MapWrapper.java:101)
.....
Here what I have done to pass the HashMap in javascript:
var testM = new Seam.Remoting.Map()
testM.put("0","0");
testM.put("1","1");
Seam.Component.getInstance("event").testMap(testM,callback);
Someone mentioned a bug like that in the past, but doesn't look like it is resolved
(JBSEAM-1202)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira