This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!

Vincent Rogel

Greenhorn
+ Follow
since Apr 10, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vincent Rogel

I have a question regarding using JSNI to expose one of my GWT methods.

I have am trying to expose a method in one of my GWT classes that fires a message to other UI components.

In my application entry point I expose it with



class_a updates one of its fields, and then calls a static method from class_b.



class_b calls many other classes and static methods to process the msg


Basically, all I need to do is pass off a string and call a GWT method. The method (when called from GWT and not handwritten JS) works perfectly. I have also verified that the exposed method will fire a simple alert. I believe the problem lies in calling the other classes' methods.

I get: "(TypeError) Unable to get property 'hv' of undefined or null reference description."

Is there a way to pass off a string to the original GWT method without having to go an expose the countless other methods that it will eventually run through?
8 years ago
GWT