We have a simple GWT (2.5.1) and GXT (3.0.6) application which has a menu built from anchors. The anchors are defined like:
-- <a href="javascript:launchMenuEvent('PAGE'');" class="menuClass">
Where the launchMenuEvent function is defined as:
private final native void exportMenuClickMethod() /*-{
$wnd.launchMenuEvent = $entry(@our.package.ui.NavigationContainer::handleMenuEvent(Ljava/lang/String;));
}-*/;
When we run the compiled application in any of the supported browsers, this functionality works as designed; a user can select a menu item and fire-off the corresponding event. However, when we run this in DevMode, we simply get "null" returned and the code behind NavigationContainer.handleMenuEvent is never called. It seems like the launchMenuEvent is never being defined in the browser when running in DevMode, even though we can step through the code and see that exportMenuClickMethod is called.
I feel like I've overlooked something simple, but can't figure out why this isn't working in DevMode. Any help would be greatly appreciated.
Thanks!
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment