40 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
49
views
The highcmaps library does not work if I have imported the highcstock library before it
I'm working on a Java project where I'm using Highcharts v10.3.2 as my charting library, and I'm using the latest GWT as my client framework. To interact with Highcharts from Java, I've created a Java ...
0
votes
1
answer
118
views
Problem efficiently mapping a native JavaScript library variable parameter API with Elemental2 / GWT?
I want to use a specific native JavaScript library (DataTables) from GWT using Elemental2.
The initialization API for the library is of the type:
$('#example').DataTable({
paging: false,
...
1
vote
0
answers
92
views
Using GWT Jsinterop to change already existing object created with GWT Js wrapper
I'm using the GWT Highcharts wrapper created by moxiegroup and want to add/change functionality to my project but also slowly move away from the moxiegroup wrapper as it uses JSNI and isn't maintained ...
2
votes
1
answer
56
views
GWT / JSInterop / Eclipse Plugin / Production Build
I'm trying to use JSInterop. My project works perfectly in dev mode. But when I make a production build it does not work.
In production and dev mode, my GWT code can access native JavaScript via ...
0
votes
2
answers
306
views
Call Java object from JS
I'm trying to interact with a JS api, once a video is loaded/fails to load/is viewed I'd like to send back an event using EventSystem. I got the first part working, where I call the native JS apis:
@...
1
vote
3
answers
507
views
WebGPU JsInterop wrapper
I am trying to play around with WebGPU in GWT 2.9.0 using JsInterop and I face some problems trying to map all the WebGPU interfaces to Java. The definitions I refer to are located at https://www.w3....
0
votes
0
answers
101
views
How to access window.opener while using gwt.jsinterop
I want to access the javascript window.opener via gwt.jsinterop. So i defined my interface like this:
@JsType(isNative=true, namespace=JsPackage.GLOBAL, name="window")
public class Window {
...
1
vote
1
answer
1k
views
Javascript module function in GWT with JsInterop
Hoping this is way easier than I'm making it - I'm a Java coder, some inner Javascript aspects are a tad unfamiliar to me.
Trying to embed the great CodeJar library inside a GWT panel. There's a ...
2
votes
1
answer
1k
views
Should I stop using GSS etc. if I want to be ready for GWT 3?
I've ditched GWT Widgets in favor of JsInterop and Elemental2.
But I'm still using modules from "gwt-user.jar" for GSS, Resources, and I18N.
Are these modules likely to be supported in the ...
1
vote
2
answers
336
views
Controlling which classes GWT includes with -generateJsInteropExports
Can I control which classes are included when I use -generateJsInteropExports?
I'm finding that when I use the flag, the JS output includes a bunch of classes that I'm not using in the project, but ...
1
vote
0
answers
98
views
GWT - using compiled code (JsInterop) in a service worker
I am trying to use JsInterop to call compiled gwt code from a service worker. I am just trying to do a test using a tutorial class:
@JsType(name = "TestJsInterop", namespace = "evc"...
1
vote
1
answer
444
views
JsInterop for Java primitive object wrapper classes
GWT makes collection classes available via JsInterop out of the box, but the same is not true for Integer, Long, Char and so on (primitive object wrapper classes).
Is there a reason for that?
In order ...
2
votes
1
answer
293
views
How does Js.cast() perform its type checking?
I'm using GWT 2.9 with elemental2-1.0.0-RC1.
The following code throws a ClassCastException at runtime:
DocumentRange documentRange = Js.cast(DomGlobal.document); // Fails
Range range = ...
1
vote
1
answer
603
views
GWT JsInterop - extending a Java interface in JavaScript
So, we are trying to use JsInterop so that in our GWT application, we can use some modules created externally in JavaScript.
We have an interface that have some contract, some methods that must be ...
1
vote
0
answers
410
views
Wrap a GWT widget in a web component
I am trying to use gwt with web component, I'd like to reuse some widgets by wrapping them (and use them in a microfrontend scenario but one step a time). I am using jsinterop in a dummy project but I ...