I'm trying to use JSNI to wrap Actate's JSAPI and have GWT control my BI
environment. I've done searches and read the docs. I've seen the
scriptaculous stuff and browsed the Tatami code for samples.
However, I'm still having problems getting an Actuate javascript constructor
to work properly.
*method and class names have been altered to protect the innocent :)
The base javascript code was pulled directly from a working hand coded
javascript and html file.
public native void someMethod(String url, String userId, String pword) /+{
$wnd.actuate.initialize(url, usdrId, pword,
[email protected]::otherMethod()();
);
}+/;
public native otherMethod() /+ {
[email protected]::varViewer = new
$wnd.actuate.Viewer("myDivId");
}+/;
I have put alert() messages everywhere, so I know that it gets into
otherMethod when it is supposed to.
The problem is that new $wnd.actuate.Viewer("myDivId"); throws some type of
constructor not found error.
Strangely, when doing the same function (new actuate.Viewer("myDivId") )
from a plane javascript/html file and not using JSNI, it works just fine.
Anyone have any ideas on this one?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/9Hv9wOrA4wsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.