VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 Replies Last post: Oct 30, 2009 12:25 PM by BlueDevilDan  

Passing JavaScript Array to a Plugin posted: Oct 29, 2009 1:12 PM

Click to view BlueDevilDan's profile Novice 18 posts since
Jun 17, 2009

I have a Java Object in my plugin with an attribute that is a java.util.List. How can I set this value from the Java Script

I tried to use a JavaScript array type but get this error. Cannot convert org.mozilla.javascript.NativeArray@271636 to java.util.List

But I don't know how to make something of the java.util.List type within the scripting context. I guess this is a general question about dealing with plugin object attributes that are collection types.

Developer Social Media

Communities