Questions tagged [gwt-elemental]

Elemental a GWT abstraction layer that exposes the raw browser api's defined in the browser IDLs. So, Elemental is a 'to the metal' way of programming the browser using GWT Java.

GWT Reference Guide - https://developers.google.com/web-toolkit/articles/elemental

Elemental includes every HTML5 feature, including DOM access of course, but also bleeding edge features like WebGL, WebAudio, WebSockets, WebRTC, Web Intents, Shadow DOM, the File API, and more. We can do this because we generate Java code directly from the WebIDL files used by JavaScript engines.

Elemental also includes high-performance collections and a new JSON library. These libraries work equally well in a browser or in a server (JVM) environment.

20 questions
6
votes
1 answer

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" when attempting to either open the IndexedDB or…
Jason Washo
  • 536
  • 6
  • 22
6
votes
1 answer

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:…
hadiafifi
  • 109
  • 6
2
votes
1 answer

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 another browser window. I'll found this question:…
El Hoss
  • 3,767
  • 2
  • 18
  • 24
2
votes
1 answer

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 = documentRange.createRange(); // Never reaches here When I…
ᴇʟᴇvᴀтᴇ
  • 12,285
  • 4
  • 43
  • 66
1
vote
1 answer

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("0"); …
1
vote
1 answer

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 like: elemental2.dom.Document elementalDoc =…
Casey Jordan
  • 1,204
  • 1
  • 20
  • 39
1
vote
1 answer

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.
matt.hallman
  • 141
  • 1
  • 6
1
vote
0 answers

How to use the rear camera in a mobile navigator using Gwt-Elemental 2.8

I am using gwt-elemental 2.8. I followed this example to take a photo using the active web-cam: https://github.com/henrikerola/FaceLogin It works fine, but now I need to use the rear camera when the page is visited by a mobile device. I have done…
Pablo Chvx
  • 1,809
  • 18
  • 31
1
vote
1 answer

GWT Websockets with Elemental

I would like to use websockets technology in a GWT web application. I know that there are some implementations using Commet and Atmospere, but i would like to avoid them as they are actually a long lived HTTP request to the server. I have my own…
nikkatsa
  • 1,751
  • 4
  • 26
  • 43
1
vote
2 answers

Is it possible to use the GWT Elemental collections in a non-elemental app?

Is it possible to use the Elemental collections (elemental.util.Collections, elemental.util.ArrayOfInt, elemental.util.MapFromStringTo, etc) in a non-elemental GWT app. I'm using these modules already: