Hi,
I was playing a bit with the new JsInterop on trunk build. After some 
conversation with Goktug, I was to write some of issues I've found. It was 
April 3 build, sorry didn't check if anything changed since then. So, here 
it goes:

   1. @JsFunction exported to JS doesn't have apply() and call()
    operations. Apply() is used by JQuery (2.1.3) to call callbacks, so 
   basically it wasn't possible to add handlers using JQuery. See other thread 
   on 
   this: https://groups.google.com/forum/#!topic/google-web-toolkit/PHtfLTSAJDM 
   2. js() function is not yet available.
   3. I wasn't able to call methods on jQuery object returned from JSNI 
   when using just @JsType annotation. It only worked when I used 
   @JsType(prototype="jQuery")
   4. @JsProperty set on methods were not available in JS. 
   5. Couldn't access class with @JsExport annotation from JS.

I've workarounded the @JsFunction issue by adding .apply() in JS, so I've 
made it work. And I must tell, the new JsInterop is really GREAT!

I also used @JsType with @JsProperty to access a JSON returned from server. 
I just used JSON.safeEval() and casted to @JsType interface. It worked 
great! I hope it could be a replacement for me of AutoBeans, if only the JS 
arrays and Java collections were unified. 

Regards,
Marcin Okraszewski

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/af52b996-9bec-41d0-9768-934e0371270a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to