Newest gwt Questions

Q&A for professional and enthusiast programmers

GWT Polymer UiBinder Vaadin Elements addEventListener Event KeysPressedEvent

I'm trying to follow the basic hello world examples that use GWT Polymer with the UiBinder Elements. The basic GWT example stub generated code handles the key to specify input. I thought it would be ...

Using GWT JSNI to integrate with js files

I am currently working on a GWT project and it now needs to used by an external JavaScript file. I am creating a test prototype right now to ensure both sides are working properly. When I run and ...

How to click/trigger a GWT Custom Button with Javascript

What I am trying to do is to trigger the click event on a GWT Custom Button using Javascript. (Trying to automate a task for a GWT application.) I have tried activating the button using: .click() ...

GWT Super Dev does not work in IE 11

After compiler my application in GWT Super Dev Mode, Run: "http://localhost:9876/" in IE 11, see the followings, GWT Code Server 1.Drag these two bookmarklets to your browser's bookmark bar: Dev ...

Launching GWT dev mode in eclipse debugger

This is for GWT 2.7.0 and Google App Engine 1.9.34 I have a GWT application that works fine launching the app using Super Dev Mode in an ANT build script from within Eclipse. This is the ANT task: &...

keyboard buttons in selenium

I am trying to multi-select rows from grid and I did it with the code below: public void selectMultipleRows(Integer... indeces) { for (int i = 0; i < indeces.length; i++) { keyboard()....

GWT Maven Multi Module

I have created a GWT Maven Multi Module project with the following structure. Core Module [contains activities, presenters, shared resources] core.gwt.xml with entry point core.gwt.xml <...

JSON Web Token (JWT)

I have a general question regarding JSON Web Token (JWT). If the JWT is stolen from the client (say, it was stored as a cookie or the app's database) by hacking or physical access, it can be used to ...

Logging in GWT to console

According to the documentation I can log to the browser console with # In your .gwt.xml file <inherits name="com.google.gwt.logging.Logging"/> # In your .java file Logger logger = ...

Use Properties File from IBM WAS server in GWT Project

We have a GWT project written in java. We have a logout URL that is specific to environment (https://example-dev.net/logoff.htm, https://example-sit.net/logoff.htm, ...). This works fine when we add ...

Customizing GWT DateBox

I am working on customizing GWT 2.5.1's DateBox. My requirements are: I cannot allow dates past 31/12/9999, I need the date parsing to be strict, always (that is, I need allow dates only in format DD/...

Libgdx publish project on server

I want to get the Libgdx example project on a HTML Website. So I created the HTMLLauncher package de.thiste.mtvlibgdx.client; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx....

Embed RichTextEditor in IFrame displays but no editing available

I'm trying to attach a smartgwt RichTextEditor into a div element in an iframe. The external html source loads up, the RichTextEditor is created and the content added to it and it also displays on the ...

Set text field size in GXT4.0 through CSS

Currently I am new to gxt 4.0 and implementing triton theme in my project. There is one issue related to text field.By implementing triton theme, the height of text field is 30px, I have to set it to ...

How to know when Lib-GDX HTML has loaded?

How can I know through javascript that my Lib-GDX game has loaded. I would like to display stuff in the html before it loads. This is because the loading screen takes a couple seconds to load. Is ...

Add or Remove HTML elements into view using data model in angular 2 with type script without using innerHTML and standard structural directive

In smartGWT, there are various widget classes, which can be extended and create the required layouts. At runtime, these layouts will be added to html. Now, I want to perform similar operations using ...

Get dates with GWT / Java?

In GWT/Java how can we get the first day with the first hour, minute and seconds and the last day with last hour, last minute and last second of the current week? And how to format the data this way: ...

Show pager relative to the datagrid content

I want to show pager relative to the datagrid in gwt. I want to do 1.Display pager relative to the last row of the datagrid 2. If scroll comes within data grid then (with large amount of data) show ...

calculate the depth of a tree in java

guys i am testing a gwt tree .. i already expanded the not expanded node .. and i want to calculate its depth .. here is my code private void expandElements(List<Item> items) { for (Item ...

gwt maven plugin(tbroyer) doesn't find CodeServer class?

I've a project with following structure: project-parent - project-WAR - project-lib Did following: created a new plugin codeserverext that extends the CodeServerMojo from Thomas Broyer's maven-gwt-...

java.lang.NoClassDefFoundError: _GwtInternal_groovy$_run_closure5_closure32_closure33

I am currently new to GWT and is in the process of trying it out. I am able to set everything up nicely until the point when I try to create a page using the command: create-gwt-page. Would appreciate ...

enhancing java code to be more efficient

I am trying to expand a GWT tree using selenium and i did successfully with that code for (int i = 0; i < elem.size(); i++) { if (!elem.get(i).isExpanded() || !elem.get(i).isLeaf()) { elem.get(...

Class wrapper extending different base class

I have a Java project and now I also want to use this code for a GWT project so I don't have to write the same code twice. The problem is that some classes are not available in gwt, for example java....

How to inject into “@Context SecurityContext sc” from GWT?

I'm implementing which is using Java Jersey SecurityContext (https://jersey.java.net/documentation/latest/security.html) on the server side. And Google Web Toolkit (GWT) on the client side. The ...

creating a span element in gwt on the fly

I need to create a span element inside a div as soon as user starts typing in the div . I have set the contenteditable property of div as true , but due to this the entered text is becoming part of ...

how to make maven not package gwt super sources in final war

For a GWT project with following structure: src /java ... /super /java /text /DecimalFormat.java Is it possible to include the DecimalFormat.java only in the project-...

Clear() method on GWT Widgets doesn't remove the child Widgets' ClickHandler

I suspect an issue regarding a Widget's ClickHandler. Is it the case that removing a ClickHandler-added-Widget from its parent by calling clear() method of the parent Widget results in live ...

Access/generate java enums in/from javascript

I have a some amount of Java code in my Project (more specificaly GWT) I have decided to start using react for future features Now the problem is that i need to access some Java enum in React to ...

GWT LIstGrid to show in new page

I have a listGrid with data in smartGWt.Window, and a pushbutton("Export"). when I press the button the listGrid shows in new page. how to write the actionlistener for the button to open new page ...

Why can't I compile the HTML platform of my libgdx project?

why can't I compile the HTML platform of my libgdx project? I'm trying to compile it with the gradle task html:dist, but I get the following error, while gradle is trying to compile it with GWT: 00:...

how to create selectable popup panel in gwt

I need to create a popup panel in gwt that has selection functionality for example : the suggestion popup that appears when @ is typed in facebook's create post box . Is it possible to create such a ...

How to put the FaceBook share and twitter twit button in GWT [closed]

I want to share my page URL on facebook or twitter . How can i put the button in my gwt app to share my page URL on facebook and twitter . I am using plain gwt approach , where I want to share my ...

Add a separator in GWT flextable row

I have a flex table in GWT , it has 3 rows . Now I want to draw a line / separator after every row .(just separator between rows, Not for column) can i acheive this .. here's the current screen You ...

Referring to gwt module with new `module.gwt.xml` file

Using the new maven archetypes for gwt in https://github.com/tbroyer/gwt-maven-archetypes I found that gwt modules .gwt.xml files can be left outside the java folder in the standard maven hierarchy. ...

GWT comboBox multiSelect

I try to make my comboBox multiple selection and this my code: this multiSelectComboBox: import java.util.List; import com.extjs.gxt.ui.client.data.ModelData; import com.extjs.gxt.ui.client.event....

GWTP using RestAction with GIN

I'm trying to call a external Rest service from my presenter but I can't inject my UserResource interface. Any suggestion? [ERROR] Error injecting xxx.xxx.xxx.UserResource: Unable to create or ...

Customizing operator or/and condition in smartgwt FilterBuilder

I'm using smartgwt FilterBuilder. One of my fields I'd like to filter (inside my ListGrid) has a text type but I store there years separated by comma (2016, 2015, 2017, 2010). I can easily use "...

GWT redirect is not working properly

I want to redirect user to different website if condition satisfies. it works in some cases and not in some cases.code is like below : if(condition){ redirect(url) } ...some ...

Permission denied to access property 'castableTypeMap$' in firefox

I am having an issue creating widget in GWT. I am keep getting this permission denied to access property error. I am using JQuery-UI Datatable with GWT to create a table and execution of below line ...

Plugin with id 'gwt' not found

Building libgdx project First time i got error re-download dependencies and sync project each time i build my project. Then i got the solution from this POST I did change the following from as ...

GWT twitter share button

I followed the twitter share API - normal text from here https://dev.twitter.com/web/tweet-button Tried this Button twitterButton = new Button(); twitterButton.setHTML("<a href=\"https://...

classified ads website google indexing [closed]

we have a large classified ads website we have good sitemap and robots.txt we have good content google crawl us 4 times per second buuuuuuut.... we dont get index in google and our new advertisement ...

Java API for manipulating html/Javascript DOM elements in a desktop application?

The existing HTML elements are given here under H: https://developer.mozilla.org/de/docs/Web/API The available JAVA API classes are shown here: https://xerces.apache.org/xerces2-j/javadocs/api/org/...

Pass javascript callback as java method argument

In my GWT application I have 3rd party react module I need to pass success/failure callback from javascript to java where i will fill it with data JS PART function() { var reactCallback = { ...

Java --> libGdx project --> Html --> gwt exception --> GWT reflection?

Edited #2 I compiled my libGDX project using gradlew.bat html:dist and got a dist folder with all my assets, html.index, and other files. I put the dist folder in a zip and uploaded it to itch.io, ...

First double click is recognized as single click in GWT [closed]

First double click is recognized as single click in GWT. Second double click works fine.

How to check if the uploaded file is image or other file with image file extenstion?

I am trying to upload an image and i need to check if the file is image. I am using Fileupload to send it to backend. I am not able to use BufferedImage image = ImageIO.read(new File(Filename())); as ...

Liferay portal integration with SmartGWT Isomorphic or GWT

Can we integrate liferay portal with smartGWT or GWT ? We are using liferay as CMS but need to develop additional custom UI using smartGWT as enforced by Clients. Would appreciate quick help.

Suggest box handler executes multiple times

Why does suggest box's keyup handler executes multiple times? I have used event.stoppropagation.Still it happens multiple times. Based on user input that many suggest box is created. For each suggest ...

TinyMCE dropdown not working in GWT Popup

I have encountered a problem, that the TinyMCE editor it's not working inside a GWT popup panel. After some research I found similar problems with JQuery and BootStrap modal dialogs (see: TinyMCE ...
Translating... 0%