Below is a code snippet. I am trying to load a Tree selection into a
frame.
Working with menu options the frame loads ok.
Working with Tree items, the resulting link takes over the whole
browser window and exits the application. IE the module unloads.
I tried the cancel bubble event before and after the frame load try.
Any suggestions would be appreciated.
BTW: This solution is only temporary until the legacy code can be
converted to work with JSON..
staticTree.addSelectionHandler(new SelectionHandler() {
@Override
public void onSelection(SelectionEvent event) {
DOM.eventCancelBubble(DOM.eventGetCurrentEvent(), true);
url =
parseNavPadCommand(event.getSelectedItem().toString()).replaceAll("&",
"&");
MyFrame.setUrl(URL.encode(url));
//
DOM.eventCancelBubble(DOM.eventGetCurrentEvent(), true);
}
});
Ed
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment