I need to bridge a fairly procedural Javascript library consisting of some .js files containing functions to call from GWT.  There's already a nice utility called GWT-Exporter that does exactly the opposite (http://code.google.com/p/gwt-exporter/...
Really simple question: From within GWT I want to forward the user away from my GWT page to a certain URL. What is the best way to do this?...
I am creating a function that prevent the user when he reload the page or press a back space or press back button of Browser . i try the following code..  $wnd.beforeunload=function()  {     return "hello";  }   it is working with simply java...
Consider I have a function,   public static native void mymethod(CustomObj1 a, List<CustomObj2> list) /*-{     $wnd.MyApp.GWT.handleFile = $entry(@com.xxx.yyy.client::handleFile(Lcom/xxx/yyy/CustomObj1;));     $wnd.MyApp.FileReader.readF(a); }-...
I have done a simple Hello World GWT example using JSNI. It does nothing but display a message.  This is the code in an EntryPoint class:  public void onModuleLoad() {   // TODO Auto-generated method stub   alert("Hello World!");  }  native v...
I'm calling in JS some javaMethod(java.util.Date date).  I can't change code on java-side. How can I create java.util.Date object from JS-side (at least empty date)?...
Hi i need some guidance or pointer of how to do a wrapper of a javascript library.  I make a simple javascript "myTest.js" with a function:  function myFunction(num) {     if(num==1){         return "Hello World1!";     }else{...
Consider the following widget. I add two of them to my page. The first one gets the name "widget1", the second one the name "widget2". It just should give out its own name, but called from javascript. (The example makes no sense, but...
I have experience in GWT but know nothing about JSNI or Javascript . i am searching for few days for JSNI now but i am not able to understand how to implement JSNI in my GWT project.  where and how i will add a javascript file in my GWT project, wher...
How can I call from external JS with JSNI?   For example:   //Some external JS code           ...         this.onFeatureClick = function(event) {         ...         var name = "Batman";         passToJava(name); //Invoke java method and pass...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.