22 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
39
views
ClassCastException when traversing childNodes in GWT Elemental2 during text highlighting implementation
Problem Description:
I'm implementing text highlighting functionality using GWT and Elemental2. When traversing through childNodes to process text nodes for highlighting, I'm encountering a ...
0
votes
1
answer
88
views
GWT No source code is available for type elemental2.dom.Element; did you forget to inherit a required module?
I'm trying to get a div element with ID="calendarJS" and pass it to a constructor.
import elemental2.dom.Document;
import elemental2.dom.Element;
.
.
.
Element calendarEl = new Document()....
2
votes
1
answer
973
views
Convert a byte[] into a JavaScript Blob using elemental2
I am doing a Domino-REST server call to create a PDF. The server creates the PDF and send the PDF as byte[] to the client. Now I want to download the byte[] to the client computer without opening ...
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,
...
0
votes
1
answer
124
views
Class Cast Exception when casting an elemental2.dom.Event to elemental2.dom.CustomEvent in GWT
I am using elemental2 (GWT) to register for a specific custom event of type CustomEvent - the listener gets called after I dispatch the event but I get a ClassCastException in the browser when I try ...
1
vote
1
answer
176
views
Is there a way to get an input value in Java - elemental2?
Is there a way to read an input value as in JavaScript using java - elemental2?
My entire code looks like this:
public void onModuleLoad() {
document.body.style.margin = MarginUnionType.of(...
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 = ...
6
votes
1
answer
1k
views
iOS 13 Safari Mobile - IndexedDB - AbortError - The Operation Was Aborted
Since upgrading to iOS 13.1.2, Mobile Safari (through Cordova as well) seems to dislike my implementation of IndexedDB. I'm specifically getting the error of "AbortError: The operation was aborted" ...
0
votes
1
answer
102
views
GWT elemental2.dom.PushSubscription Missing keys (p256dh and auth) in PushSubscription
elemental2.dom.PushSubscription (v2.25, July 2019) has endpoint but not p256dh and auth keys, anyone know how to access these?
Any help greatly appreciated.
Phil.
0
votes
2
answers
117
views
Bug? JsNumber toFixed returns different values in SuperDev and JS
I'm using GWT 2.8.2.
When I run the following code in SuperDev mode, it logs 123.456, which is what I expect.
double d = 123.456789;
JsNumber num = Js.cast(d);
console.log(num.toFixed(3));
When I ...
6
votes
1
answer
2k
views
How to use XMLHttpRequest in GWT?
XMLHttpRequest is an alternative for HTTP calls from GWT client side and allows the control over all aspects of requests/responses. But how to use it?
javadoc address: http://www.gwtproject.org/...
2
votes
1
answer
1k
views
Gwt elemental2: How can I convert between a gwt JavaScript object, and a JsInterop object?
Lets say I have a com.google.gwt.dom.client.Document gwtDocument node and I want to convert it to a elemental2.dom.Document?
Since Document extends JavaScriptObject I assumed I could do something ...
0
votes
1
answer
231
views
Does GWT elemental use JsType or JSNI Overlays?
I am looking into GWT elemental as a faster way to access the java dom in GWT. However when I look at the source code for the maven dependencies, all I see is js overlays. For instance:
public class ...
0
votes
1
answer
113
views
How to get a reference to elemental.html.FormData
I'm sure this is a simple problem... I am trying to use elementals FormData in gwt.
How do I get a reference to it? There is a JsFormData
public class JsFormData extends JsElementalMixinBase ...
1
vote
1
answer
520
views
GWT Elemental convert elements
Is it possible to convert a com.google.gwt.dom.client.Event to a elemental.dom.Element? Or vice versa?
Same question for events.