Hi Frank, You should be able to make a call to GWT methods in JavaScript from within the WebRenderer Swing browser, and that would be through something called a JSNI bridge method call (JavaScript Native Interface).
The idea is to call your GWT method from within a JSNI method, and bind GWT method to the $wnd variable (which represents the standard window object). Instead of going into all the detail here, check it out in our docs :-) It should help get you on your way: See "Calling a Java method from handwritten JavaScript": http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaFromJavaScript Before trying that, though, is there any reason why you couldn't just pass in the Maps data coordinates through the URL. Is it because the size of the URL would surpass some browser URL size limits? Hope that helps, -Sumit Chandel On Sat, Sep 27, 2008 at 7:05 PM, frankmontyne <[EMAIL PROTECTED]>wrote: > > Hi I'm currently creating an application that makes use of google > maps. Using the GWT toolkit I created a application that shows a > location on a map when a coordinate is passed. The application is > hosted on glassfish. I also created a java swing applcation that > contains a panel hosting the "Webrenderer Webbrowser (Swing edition)" > swing component. Instead of having a few fields in the GWT app where > people can fill in a coordinate and get an updated map I actually want > to pass the coordinate to the GWT app from within the java > application. The simple solution was to pass the data as parameters on > the url but that becomes impossible once you want to pass a set of > coordinates. Is there a way to get access to the javascript methods > generated by GWT from within the webrenderer swing browser? That way I > could implement a javascript function that would allow me to pass the > parameters. > > Any suggestions, help is welcome. > > Thanks, > Frank > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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 -~----------~----~----~----~------~----~------~--~---
