Re: Accessing "basic" JS Object in JsInterop callback

2017-08-13 Thread Vassilis Virvilis
I had this problem with DataTables Config. DataTables is a nice javascript library for tables https://datatables.net/ and Config is the initialization object like yours. So here is what I did: @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") public static class

How to configure GWT project in eclipse to export war?

2017-08-13 Thread Pool Petter Hijuela Florian
Hi. Creating the project: GDT Pulldown >> New Web Application project (use GWT 2.7 and do not use AppEngine) ... Right click on the project >> Export >> Web >> WAR file >> Web Project ... This is where I have the problem. The name of my GWT project does not appear. Currently I generate the

Accessing "basic" JS Object in JsInterop callback

2017-08-13 Thread Andrea Martino
Hi all, I have recently started testing JsInterop for our GWT 2.8.1 application and I have encountered a situation I could not solve without using the old style JSNI approach. Consider the following minimal JS library I would like to use in Java/GWT: (function (window, document, undefined) {