[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1202) seam remoting js->bag multiple dimension problem

Christoph Aigner (JIRA) jira-events at lists.jboss.org
Fri Apr 20 15:03:34 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1202?page=all ]

Christoph Aigner updated JBSEAM-1202:
-------------------------------------

    Workaround Description:   (was: not to user multidimensional arrays - its a pain, but working.)
               Description: 
there is an error when passing multidimensional Arrays from Javascript to a webRemote function. 

var csArr = new Array(); 
csArr[0] = 1; 

converts without problems to: 
ArrayList ssArr 

but 

js: 
var csArr = new Array(); 
csArr[0] = new Array(); 
csArr[0][0] = 11; 

ArrayList<ArrayList<integer>> ssArr 
is null on Serverside (although the seam-debugger shows that the array is transfered correctly) 

also tried it out with HashSet, and [] -> same result

it works from the serverside -> clientside though.



  was:

there is an error when passing multidimensional Arrays from Javascript to a webRemote function. 

var csArr = new Array(); 
csArr[0] = 1; 

converts without problems to: 
ArrayList ssArr 

but 

js: 
var csArr = new Array(); 
csArr[0] = new Array(); 
csArr[0][0] = 11; 

ArrayList<ArrayList<integer>> ssArr 
is null on Serverside (although the seam-debugger shows that the array is transfered correctly) 

also tried it out with HashSet and [] -> same result 

it works from the serverside -> clientside though.

                  Priority: Critical  (was: Minor)
                Workaround:   (was: [Workaround Exists])

tried out passin a javascript-Map() object to the serverside, - that would be some way to simulate multidimensional arrays, - but that's not working either: 
results in the following exception
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)
at org.jboss.seam.remoting.Call.convertParams(Call.java:164)
at org.jboss.seam.remoting.Call.execute(Call.java:148)
at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:87)
at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:110)



> seam remoting js->bag multiple dimension problem
> ------------------------------------------------
>
>                 Key: JBSEAM-1202
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1202
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Remoting
>    Affects Versions: 1.2.1.GA, 1.2.0.GA
>            Reporter: Christoph Aigner
>         Assigned To: Shane Bryzak
>            Priority: Critical
>   Original Estimate: 1 day
>  Remaining Estimate: 1 day
>
> there is an error when passing multidimensional Arrays from Javascript to a webRemote function. 
> var csArr = new Array(); 
> csArr[0] = 1; 
> converts without problems to: 
> ArrayList ssArr 
> but 
> js: 
> var csArr = new Array(); 
> csArr[0] = new Array(); 
> csArr[0][0] = 11; 
> ArrayList<ArrayList<integer>> ssArr 
> is null on Serverside (although the seam-debugger shows that the array is transfered correctly) 
> also tried it out with HashSet, and [] -> same result
> it works from the serverside -> clientside though.

-- 
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

        



More information about the seam-issues mailing list