FAQ Database Discussion Community


The import javax.ws cannot be resolved with GWT on Eclispe

java,eclipse,gwt,import
I want to use some javax annotation on a GWT app. I download javax.ws.rs-api-2.0.jar here, and then include it in my project (Project/Properties/Java Build Path/Libraries/Add External Jars). I clean my project, then I refresh my project and build it. But when I launch the Run as button, I got following...

MGWT AnimatingActivityManager

java,gwt,mgwt
Environment: MGWT 2.0.0 GWT-PhoneGap 3.5.0.0 GWT 2.7.0 Java 1.7 Error Message: "The constructor PlaceController(SimpleEventBus) is undefined" How: I converted my project from GWT 2.6.0 to GWT 2.7.0. Issue: Looks like com.googlecode.mgwt.mvp.client.AnimatingActivityManager is expecting a com.google.web.bindery.event.shared.EventBus, however the only way to instantiate PlaceController (com.google.gwt.place.shared.PlaceController) in GWT 2.7.0 is using com.google.gwt.event.shared.SimpleEventBus, which...

GWT FlowPanel not adding widget

css,gwt,datagrid,flowpanel
I have a class that extends FlowPanel. I add a DataGrid widget and a Grid widget like this: dataGrid.setWidth("100%"); dataGrid.setHeight("100%"); grid.setWidth("100%"); grid.setHeight("100%"); this.add(dataGrid); this.add(grid); this.setWidth("100%"); this.setHeight("100%"); Only the DataGrid widget appears. I've tried both switching from FlowPanel to VerticalPanel and wrapping the Grid in a FlowPanel, with no joy. I...

GWT: How do I initialize the back-end before the server starts listening? [duplicate]

gwt,web-applications,server
This question already has an answer here: “Servlet” (server-side) initialization code in GWT 2 answers I'm writing a web application in GWT. Currently the only server-side logic I have are some RPC calls contained in a class that extends RemoteServiceServlet. The structure of this class looks like this: public...

Replacing the FileService Api to create a Blob file in server side

java,google-app-engine,gwt,google-cloud-storage,blobstore
I am using the FileService Api to save files to the Blobstore from server side like this: FileService fileService = FileServiceFactory.getFileService(); AppEngineFile file = null; file = fileService.createNewBlobFile(contentType, fileName); boolean lock = true; FileWriteChannel writeChannel = null; writeChannel = fileService.openWriteChannel(file, lock); ByteBuffer bb = ByteBuffer.wrap(FILE_BYTES); writeChannel.write(bb); writeChannel.closeFinally(); BlobKey blobKey =...

How can I replace GWT.create with an Annotation Processor?

java,gwt,annotations,annotation-processing
I want to create an Annotation Processor which replaces the call to GWT.create. With an annotation processor, you'd have to generate both classes and then dynamically (at runtime) select among them, depending on the context (you could generate a factory to help doing that, but you'd still have to somehow...

How to disable the virtual keyboard in GWT based application?

gwt,virtual-keyboard
Were are developing a kiosk application in GWT and for that, we are using custom virtual keyboard and we want to disable the default virtual keyboard. Thanks in advance.

How to use GWTs JSNI with Xtend

gwt,jsni,xtend
I'm creating a GWT application and using Xtend. It seems that when Xtend compiles to Java, it removes comments, so when I try to use JSNI, it turns this: def native void publish() /*-{ // do some javascript stuff through JSNI }-*/; into this: public native void publish(); How can...

Using tag-specific CSS selectors in GWT CssResources

gwt
My question is whether it's possible to use CSS selectors for typical HTML elements (e.g. "p" or "table") in CssResource stylesheets. And btw can pseudo-selectors like :hover be used? Or does the compiler just obfuscate everything?

HibernateException: Could not instantiate dialect class when using HTTPS for GWT

hibernate,ssl,gwt
I don't know if this really has something to do with the fact that I let the server use SSL but this is the only change I made. Here are the two argument lists: without SSL: -superDevMode -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -startupUrl index.html -logLevel INFO -codeServerPort 9997 -port 8888 -server com.google.appengine.tools.development.gwt.AppEngineLauncher -war...

Difference between a GWT Generator and a Java Annotation Processor?

java,javascript,gwt,annotation-processing
GWT uses Generator to create code before everything is translated into JavaScript. Java on the other hand has an annotation processor which generates code before everything is translated into byte code. What is the difference between a GWT Generator and a Java Annotation Processor?...

ofy() appengine Date search query

java,google-app-engine,gwt
I want to search a list of employee between two dates ie. 1 jan 2014 to 31 Dec 2014 using GAE ofy(objectify) for a branch.How do I do that? ulist=ofy().load().type(Employee.class).filter("branch", branch).filter("date >=", fromdate).filter("date <=", toDate).list(); There are 2 fields -Branch is auto generated field. -For date I have taken 2...

Why Intellij deletes obsolete files when trying to run DevMode?

java,gwt,intellij-idea
I'm currently working on a GWT project in my company. Although DevMode works perfectly fine in eclipse, I still want to use Intellij Ultimate Edition for development. But after all setups were done (Facet, Run/Debug configuration) I'm getting this weird processing window saying "Deleting Obsolete Files..." when I run the...

How to get gwt jars version information if it is not available in manifest file?

java,gwt,jar
I have gwt-user.jar and gwt-dev.jar in my application. I want to know which version of gwt jar is used in my application. I looked into the Manifest.mf file inside jar file but there is no version info available there. So, is there any other way to know the version for...

GWT 2.7 Super Dev Mode not working while testing on the same network

gwt,gwt-super-dev-mode
I recently began using GWT 2.7 in Eclipse Luna and I was running my projects seamlessly while testing them in localhost:8888, the thing is, when I tried to test them (any of them, even a new app with only the autogenerated content) with another device on the same local network...

Is it possible to shadow Vaadin Applicaitons

java,gwt,vaadin
We have an enterprise web application built in Vaadin. It would be useful to be able to provide remote training on a number of devices by shadowing the users browser. Would it possible to build this sort of functionality in to the application itself? Maybe there are tools out there...

Modify CordovaWebView user agent string in android 4.4 (Cordova 4.3) GWT

android,cordova,gwt,mgwt
I use the below code as many posts suggest to modify the user agent string the CordovaWebView will use. However I never receive this user agent string in any of the http requests to the server. I get the usual user agent string. public class MainActivity extends CordovaActivity { @Override...

Alternative GWT Designer for Eclipse

eclipse,gwt,designer,uibinder,gwt-2.7
Is there anyone who knows an alternative for the GWT Designer in Eclipse or maybe a good workflow to design UI’s? The GWT Designer is no longer supported, since GWT version 2.7. Thanks a lot!...

GWT - [ERROR] Line 265: Failed to resolve 'org.AwardTracker.client.RichTextToolbar.Strings' via deferred binding

java,gwt
I am using the GWT showcase: http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwRichText and google-web-toolkit: https://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/samples/showcase/src/com/google/gwt/sample/showcase/client/content/text/RichTextToolbar.java to create a rich text area to enter and display to. The issue I have is that when I compile I get the error: [ERROR] Errors in 'org/AwardTracker/client/RichTextToolbar.java' [ERROR] Line 265: Failed to resolve...

GWT: Retrieve generated classname

java,gwt
GWT: 2.7 with GSS I would like to retrieve the parent (not the first one in the hierarchy) of an element using his classname. To do this, I hoped to use the generated css classname from a CssResources but it doesn't give me the same classname as the one used...

How to detect or check whether a Poly Line was Inside Another Poly Line or Overlap with Other Poly Line Using Google Maps

javascript,google-maps,gwt,google-maps-api-3
I was using Google Maps Javascript API (GWT Maps V3 API) to some poly line in Google Maps. There are some poly line that overlap each other like in this picture: As we can see from the picture above, there are two poly line blue and purple that overlap each...

Getting Exception in thread “main” java.lang.VerifyError: class com.google.gwt.dev.HostedModeBase$ArgHandlerNoServerFlag

java,eclipse,gwt,gwt-2.7
I am trying to upgrade my application from GWT 2.0 to 2.7.0 and getting below exception. I am using the below mentioned jars. What is the reason for this exception ? Is there any migration guide or document that i can refer for upgrading to 2.7 gwt version ? Exception...

SoycDashboard$FormatException on GWT Compilation

gwt
I´m experiencing this error when compiling my GWT project on GWT 2.5.1 version. The same project compiles withou error on Windows, but when I thy to compile on linux this issue is reported: [exec] [INFO] Validating units: [exec] [INFO] Ignored 5 units with compilation errors in first pass. [exec] [INFO]...

How to select the specific element using HtmlUnit with java?

java,gwt,xpath,htmlunit
I am using Java+HtmlUnit to test my Java-GWT project. I have an element like this: <span unselectable="on" class="x-tree3-node-text">OCP</span> in the source code of my generated html page. How can I select it using XPath (or with any another method)? I've found something like this from documentation about how to use...

GWT i18n changing locale

java,gwt,internationalization
I want GWT to first determine the locale of the user by using <set-configuration-property name="locale.useragent" value="Y"/> The URL should be appended with that locale value. Then I'd like to let the user change the language with a listbox and change the URL accordingly. Is this approach possible and does a...

Grid with rows in anchor not visible in GWT (UIBinder)

java,html,gwt,grid,uibinder
In my GWT application in a composite class I am creating a Grid UI binder. In each cell of the grid I am adding an anchor UI Binder. When I load this page in the application, I see a table created but the anchor not visible. When I insert text...

GWT - Could not get type signature for class

java,gwt
I am working on an application GWT which searches files on different servers. I have my searching code in the server package in a class called Search. To help Search locate the servers, I have the server locations in a class called Login, which is in the shared package. Login...

Market share of GWT versions

gwt
Is there any resource that estimates what percentage of GWT-using web sites are built with each version of GWT? As providers of a GWT-compatible library, we're trying to decide which minimum version to require.

List servlets in a java webapp (running in tomcat)

java,tomcat,servlets,gwt
I am trying to re-package a relatively big java webapp which I did not code and for which the project configuration was lost. I setup a first packaging, and deployed it in tomcat. Now to understand it, I'd like to get a list of the servlets that started successfully or...

The error creating app Engine's DataStore Entity within GWT app

gwt,app-engine-ndb
I try to create the entity like this: DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); Entity stock = new Entity("Stock", 1); stock.setProperty("Stock", "FCB"); ds.put(stock); but keep getting the error: No source code is available for type com.google.appengine.api.datastore.DatastoreService; did you forget to inherit a required module? ...

Adding same widget to two panel causing issue

java,gwt
I have created two VerticalPanel(mainVP,subVP) and one TextBox(box).TextBox(box) is added to mainVP as well as subVP but i am adding mainVP only to RootPanel here If i lauch my application nothing is visible even though i have added TextBox(box) to VerticalPanel(mainVP) which is added to main Rootpanel. VerticalPanel mainVP=new VerticalPanel();...

GWT - image displaying to large when retrieved; however existing images are displayed correctly

java,image,gwt
When I display an existing image it display's the correct size (400px wide); whereas when I import a new image it display's at the original size (i.e., very large or small). How can I get the imported image to behave in the same manner as when I display an existing...

change font of gwtbootstrap3 app

gwt,fonts,gwtbootstrap3
I'm using gwtbootstrap3 for my app and I want to change font of all my app, I want to do something like this: body{ font-family:tahoma; } I tried to customise widget, but I have to do this fo all my widgets and I don't think it's very optimal. So how...

Shrink browser content to browser window size

java,gwt,highcharts,uibinder
am wondering, if there is a solution for shrinking a charts within browser window, i.a if i resize my browser window my application with highcharts do it well to, it's also resized to the browser window size, but if i shrink my browser window, the app with charts doesn't shrink...

Gwt NavigableSet no source found

java,gwt,treemap
The following error appear when I'm using NavigableSet to get the decending key set of a TreeMap: [ERROR] [workflow] - Line 159: No source code is available for type java.util.NavigableSet<E>; did you forget to inherit a required module? [ERROR] [workflow] - Line 159: The method descendingKeySet() is undefined for the...

“Tainted canvases may not be loaded” Cross domain issue with WebGL textures

google-chrome,gwt,libgdx,html5-canvas,webgl
I've learnt a lot in the last 48 hours about cross domain policies, but apparently not enough. Following on from this question. My HTML5 game supports Facebook login. I'm trying to download profile pictures of people's friends. In the HTML5 version of my game I get the following error in...

Polymer core-drawer-panel throws exception at loading

java,dom,gwt,polymer,gwt-polymer
I'm in dead end doing my own version of this GWT-Polymer project hosted at GitHub. Its fully working in the IDE, but at devsever it throws following error. if (src != null && !canCast(src, dstId)) { throw new ClassCastException(); } canCast() returns false, because core-drawer-panel is not a JavaString (look...

How do I handle the event from the TextBox clear icon in GWT?

gwt
I have a GWT TextBox acting as a filter that responds instantly to an text added to it or removed from it. My problem is the little x at the end of the TextBox in IE10 that clears all of the text from the TextBox. I have yet to find...

In GWT project CellTable created with using AsyncDataProvider, isn't showed

java,gwt,gwt-rpc,celltable,asynccallback
My problem is that I have just created a cellTable but it doesn't work because I see this on my broswer The red border is of the FlowPanel that contains the table that has a black border, on side there is the GWT.log Now I've tried everything but I don't...

Scrape/Retrieve Data from Data Grid - DOM to CSV console output

javascript,jquery,firefox,gwt,web-scraping
I want to scrape the Cell Widgets -> Data Grid on this page: http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwDataGrid Ideally I am looking for csv style string output like (first line and last line example) ;Corey;Jenkins;63;Coworkers;438 Techwood St; .... (many rows here) ;Yvonne;Morris;55;Family; 483 Third Pkwy; (I am working with Firefox)...

Is it possible to get non-random names for Cache Files from GWT Compile

java,gwt,gxt,gwt-compiler
When I try to load the war file for my project in the Lighthttp server, I get "filename too long" error from the server for the generated JS files such as this : "733C57A6999C647D009A3EBA1F5CEF9C.cache.js" When I compile I am using the collapse all property so only one JS file gets...

Button action with @UiHandler not being hit

java,button,gwt,uibinder
I am currently having issues implementing a button event with the @UiHandler annotation. In my .xml file I have my button defined as ui:field="clearAllButton". In the class (ServerTaskSchedulingViewImpl.java) which I am trying to set up the action I have the following: interface ServerTaskSchedulingViewImplUiBinder extends UiBinder<Widget, ServerTaskSchedulingViewImpl> {} private static final...

What Cell,Table can I use to create a grid of only images in every cell, in GWT?

css,gwt,web-applications,grid,cell
I need to create a GWT application that handle the buying of films. So I have to show in a grid (not in a list, I don't like the view) these cell containing image and info about the film like this:( http://static.ipaditalia.com/wp-content/uploads/2012/11/mzl.sckskoqz.480x480-75.jpg ). I think that I need of a...

How to transform elements to widgets?

java,gwt,gwt-widgets
I'm working on a GWT website generated with elements: DivElement footerElement = Document.get().createDivElement(); footerElement.setAttribute("id", "mainFooter"); HeadingElement headingElement = Document.get().createHElement(2); headingElement.setInnerText("This is a footer block"); RootPanel.get().add(footerElement ); I want to test some layout panels disposals, but I read that I can only add widgets to layout panels. Are they some way...

How enable production mode in GWT 2.7 application

gwt,gwt-super-dev-mode,gwt-maven-plugin
I would like to deploy my GWT 2.7 application on my server through gwt-maven-plugin and jenkins. But, after compile process, when I launch my application, I've this error message : Couldn't load APPLICATION_NAME from Super Dev Mode server at http://MY_IP:9876. Please make sure this server is ready. Indeed, the super...

Get all objects from a GWT CellTable

java,gwt,gwt-celltable
Simple question: I have a CellTable filled with Keyword objects. Now, I would like to retrieve all the Keywords in that CellTable. Is this possible? If not, why? Surely there must be a way... I can not understand how this is so hard (well maybe it isn't but I just...

Lazy Loading on a List of Objects using Java?

java,gwt,lazy-loading
I am using Java and GWT. I have a list of objects that loads dynamically (onPageLoad) and I want to show this list of objects using lazy loading. I don't know if there is such GWT component, or I have to use some js plug-in. I checked this post: http://www.appelsiini.net/projects/lazyload...

History token fires twice if the URLhas a special character in IE

java,internet-explorer,gwt
I have a code that is working perfectly fine in firefox and chrome, but not very well in IE. I am using GWT 2.5.1 . The issue is that i am sending a string to query via the URL. If that string contains special character like % or ^ or...

Is there a single DateTime Picker component for gwt?

java,date,datetime,gwt
I need to use a single date time picker component. Currently, I am using DateBox but I need to pick hours also. As far as I can see, with DateBox I can specify Input Date Format like "MM/dd/yyyy/hh/mm" and I can edit the hours and the minutes with the keyboard....

PlayN and Firefox issues

facebook,firefox,gwt,game-engine,playn
I am working on a pet project of a Facebook game. I've had a couple of problems until now on Firefox browser. CPU runs wild when you start a game on FF. TextLayout gets moved a few pixels up. Caching ruins reloading of resources Anyone had these kind of problems?...

How should I set a custom style on a object that is a gwt component?

java,html,css,gwt,web-development-server
I am using Java (Eclipse) and for the web development I use gwt. The object that I want to change (loader) has a default font-size. It also has a method named setHtml(String). I have almst no knowledge on on HTML and CSS and how should I integrate such files in...

Binding Ui to java interface using UiBinder in GWT

java,gwt,uibinder
Let's say I have an interface A which is implemented by classes B and C. public class B implements A extends Composite {} public class C implements A extends Composite {} I created another class D which binds to Ui using UiBinder in GWT. public class D { public A...

Not possible to trigger GWT listbox ChangeHandler using CasperJS

javascript,gwt,phantomjs,casperjs
I'm writing tests using CasperJS for legacy GWT (2.3) code. I can change the selected value of a ListBox. document.querySelector('#id_of_select').selectedIndex = 1; But this does not trigger the onChange() method of a change handler on the ListBox. I have tried manually dispatching a change event on the select element (jquery...

GXT MessageBox with scrollable content

html,css,gwt,gxt
I have to show a stacktrace using a GXT AlertMessageBox, and I would like to have a fixed-size box with the content being scrollable (at least vertically). Unfortunately I am not able to achieve that. What I've done so far is the following : use an @XTemplate like this @XTemplate(value...

GWT Eclipse: using classes from other projects cause "Server class … could not be found in the web app, but was found on the system classpath

java,eclipse,gwt
I'm newbie in developing with GWT. I started to maintain a GWT (2.7) application and need to revise the logging. So I decided to make use of MDC (MappedDiagnosticContext) and wrote a servlet Filter to put the user name in MDC, like this: public class MDCServletFilter implements Filter { /*...

GWTP - An error occured for ClassEnhancer “ASM” when trying to call the method “org.datanucleus.enhancer.asm.ASMClassEnhancer”

google-app-engine,gwt,gwtp,gwt-platform
I am trying to setup GWTP in eclipse and create a simplest possible POC. I have installed Google plugin with GWT 2.6, Appengine 1.9.18 and GWTP plugin 0.6.1. I am using Windows 7, and Eclipse luna 4.4 I have two java versions installed on my machine for different versions!!! On...

How to append a link to gwtbootstrap 3 InputField

gwt,gwtbootstrap3
I want to do this in html: <div class="input-group" id="name"> <input type="text" class="form-control" name="name" placeholder="Name"> <span class="input-group-addon"><a href="#" class="none" id="name">None</a></span> </div> I try this in GWT Bootstrap: <b:InputGroup> <b:TextBox b:id="name" placeholder="Name"/> <b:InputGroupAddon> <b:Anchor ui:field="noName" text="None"/> </b:InputGroupAddon> </b:InputGroup> But thus I get the error: Illegal child <b:Anchor...

ListGrid / ListGridField - Hover message while editing

gwt,smartgwt
Is there a way to show a hover message on an editable cell/ListGridField while in Edit mode? Was able to have a hover message over a cell in non-edit mode by : cusipField.setShowHover(true); cusipField.setHoverCustomizer(getCusipHoverCustomizer()); Thank you...

How can I localize the text used as tool tips of vaadin richtext area?

gwt,vaadin,vaadin7
In the official documentation they suggested to use css for localizing the tool tips of vaadin richtext area and it says: Localizing RichTextArea Toolbars The rich text area is one of the few components in Vaadin that contain textual labels. The selection boxes in the toolbar are in English and...

Get HTML elements in GWT

html,user-interface,gwt,uibinder
Like there is a getElementById() in JavaScript to get a HTML tag and in Android to attach to UI Element , is there a way in GWT do all the stylings in basic HTML and CSS and just use GWT for event handling ? In other words, If I have...

SearchBox in GWT Maps V3 Api (branflake2267/GWT-Maps-V3-Api version 3.8.1)

javascript,google-maps,gwt,google-maps-api-3
I am develop an app using GWT Maps Api V3. I try create Place search box like example of Google Maps JavaScript API(link Place search box - Google Maps JavaScript API ) I have viewed the javascript code, they create SeachBox by using google.maps.places.SearchBox But in GWT Maps Api V3...

Specify Library Target of Maven

xml,eclipse,maven,gwt
How can I tell Maven to copy the dependencies into a specific location? Side story: I am having a GWT project in Eclipse that is also a Maven Module for a larger project. This GWT project has dependencies to some libraries and I need them to be copied into <project-dir>/war/WEB-INF/lib....

GWT Arrays.asList not working on interface types

gwt
Working on a GWT project (2.7.0), i have experienced a very odd client code behaviour. The following code throws the error "SEVERE: (ReferenceError) : Ljava_io_Serializable_2_classLit_0_g$ is not definedcom.google.gwt.core.client.JavaScriptException: (ReferenceError) : Ljava_io_Serializable_2_classLit_0_g$ is not defined". The error occurs, when calling Arrays.asList() with a parameter, that has an interface type. Is this...

Remote debugging with screen capture

user-interface,gwt,tomcat7
I wanted to know if there is java libray or framework to enables remote debugging via screen capture . The application is developped in GWT running on tomcat. What i want is , whenever any exception happens a screen shot is taken of the UI where the error is located...

“Development mode is loading…” and “Waiting for launch URLs” in GWT

java,gwt,google-plugin-eclipse
I am a beginner in GWT and trying to run a sample HelloWorld program from http://www.vogella.com/tutorials/GWT/article.html. I installed the GWT plugin for Eclipse Kepler 4.3 and downloaded GWT SDK 2.3. While configuring SDK in eclipse, i was getting error that "gwt-codeserver.jar is missing" so i downloaded "gwt-codserver-2.5" jar and copied...

Changing tree node font color

java,css,gwt,gxt
Here is my problem: I use a Tree to render a data structure and I also have a list of objects that gives extra information between two objects of the tree (that are not especially liked by the tree structure). What I want to do is to highlight the two...

GWT/Hibernate: java.lang.NoClassDefFoundError: org/hibernate/Interceptor

java,hibernate,maven,gwt
I am trying to initialize a Hibernate session in my project-web-server. For that I am using a library I wrote project-data-model that is linked as dependency in maven: project-web-server pom.xml: <dependency> <groupId>com.preoject.server</groupId> <artifactId>project-data-model</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> HibernateSession.java is therefore in project-data-model; this is how I use it in project-web-server: public class...

window.getSelection() Does Not Work When Run Via JSNI and On IE

gwt,jsni
The following code works on Chrome and Firefox via JSNI and on all browsers in pure JavaScript, but not on IE via JSNI. GWT JSNI: // windowEl is the contentWindow of an iframe protected native Element insertImage(String src, String title, String cssClassname, Element windowEl) /*-{ var result = null; var...

GWT Greeting-Example not working / strange behavior

java,eclipse,gwt
I am sorry for that vague title but I really don't have any idea what the problem is and where else I could look after it. I am creating a project named test and let Eclipse generate the default server-greeting example. Everything works if I create a GWT project, right-click...

Set focus to an Input in a gwtbootstrap3 Modal

gwt,twitter-bootstrap-3,gwtbootstrap3
I want to set the focus to a certain field (org.gwtbootstrap3.client.ui.Input) in a dialog (org.gwtbootstrap3.client.ui.Modal) before the dialog shows up. The use case seem quite common, if you have a dialog with a single field like the Upload text or Add feed dialogs right here. However I could not figure...

Filtering for UI developed using GWT

java,java-ee,gwt,filtering
I am developing an application using GWT as the front end technology stack. Backend stack is Struts, Spring, mybatis We have a requirement to support column level filtering. for instance, if the client enters 'am', all words containing 'am' are filtering in the column. For GWT, to support filtering, what...

GWT syncProxy: createProxy MethodNotSupportedException

java,eclipse,gwt,gwt-syncproxy
I want to perform simple unit tests in Java for my server using GWT-RPC. I have created a GWT project (GWT 2.7) in Eclipse (with the default GreetingService). It works and I can start it as a servlet in a Tomcat server. Next I have created an Eclipse project to...

Packaging a GWT app to run completely offline NOT installed via a “marketplace”

gwt,desktop-application,offline
Theres a few questions similar to this, so I'll try to be clear as possible. We have an existing, fairly large and complex, GWT webgame I have been asked to make work offline. It has to be offline in pretty much the strictest sense. Imagine we have been told to...

GWT UiBinder I18n

java,gwt
As the title says I need some help with GWT's i18n in use with UiBinder. I want to internationalize my application using static i18n. The book I use for learning only presents a way of internationalizing ui.xml files by having the compiler generate keys for Constants/Messages and a default file,...

GWT Designer. Does it work with later versions?

eclipse,google-app-engine,gwt,swt,xulrunner
I'm starting a project in Eclipse Luna using GWT and GAE. I wanted to ask you if it is possible to run the GWT Designer(to make UI graphically) in GWT SDK 2.6 version. UIBinder works fine, I mean the xml way. But when I try to make some UI with...

gwt-maven-plugin fails with NullPointerException

java,maven,gwt
I've downloaded GWTP samples from github. I've tried to build it using Maven(mvn clean install), but I've got: [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project gwtp-sample-basic-spring: Execution default of goal org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile failed. NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project gwtp-sample-basic-spring: Execution default...

How to configure mvn/Jrebel/wtp/gwt/eclipse to work smoothly with changes on the service interface

java,eclipse,maven,gwt,jrebel
I started to investigate the guice-rf-activities artifact with the new maven gwt plugin from Thomas Broyer. I played a little bit with the code and added a function on the GreetingService on the serverside. I followed down the path and added the required bits and bytes until the code was...

Progress percentage from browser on POST multipart request. GWT

post,gwt,upload,progress-bar,progress
I looking for approaches to implement Progress Bar for POST multipart file upload from GWT app. I already known about open-source GWTUpload lib and GWT AJAX-requests. But I can't make any changes for server side, just client side. I found out that Chrome somehow handles such progress (http://oi58.tinypic.com/2w22ekm.jpg). How I...

Servlet not found from a GWT web application

java,tomcat,servlets,gwt
I am struggling since few days with a problem concerning my GWT application and the servlets called from the application. I am actually coding a web app with Java and GWT for my research institute. The goal is to produce an XML file containing metadata from user inputs, after flight...

Replacement for GWT

java,gwt,client-server
I built an application using GWT in 2012 and it has worked fine until now when a major functionality upgrade is required. I used GWT because my background is Java and having worked in MVP type projects prior to that it was a good fit. Today, any problem I encounter...

How to update gwt-maven-plugin Archetype?

java,eclipse,maven,gwt,maven-archetype
I would like to create maven managed gwt project with Eclipse IDE. I am using GWT 2.7. But when I create a project from File > New > Maven Project and choose gwt as Archetype , please find the image below - The Version is 2.1.0-1 and generated pom.xml was...

How to create an API REST?

rest,gwt
I want to reach the data saved in a mysql server for an Android phone. I thought about to connect directly the phone to the mysql but it is a bad practice because someone can get the user/pass of the DB. However the REST architecture maybe it's a solution for...

How do I deploy my LibGDX game to my website?

java,html5,gwt,libgdx,game-engine
The furthest I've gotten is running it on the browser through the command line. I went into the appropriate directory and used the ./gradlew html:superDev command and then went to the URL localhost:8080 and was able to play my game. However, what i need to do is put this game...

java.lang.NoSuchMethodError: com.google.gwt.util.tools.Utility.versionCompare - Google Web Toolkit SDK 2.6.0

java,gwt,eclipse-plugin
My project using gwt maven plugin 2.5.1 and gwt 2.5.1. My Eclipse IDE have installed Google Web Toolkit SDK 2.6.0. When i debug my project with Super Dev Mode i get error java.lang.NoSuchMethodError: com.google.gwt.util.tools.Utility.versionCompare I have checked the error. This error is caused by class int enum com.google.gwt.dev.util.arg.SourceLevel , this...

Set log4j.properties for GWT

eclipse,gwt,log4j
GWT compiles and creates thereby log4j.properties in WEB-INF/classes. The problem is that I can't change the settings as it gets generated and overwritten all the time. How can I set log4j settings in Eclipse using a GWT project?...

Need to validate GXT DateFields dateTo must be older than dateFrom

validation,date,gwt,gxt
Need to validate GXT DateFields dateTo must be older than dateFrom. As I'm thinking for solution to the problem it should be date Validator created for this purpose. Any ideas, samples?...

ActivityMapper, dealing with regions which don't change a lot

gwt,activity-manager,gwt-activities
I'm new with GWT and recently I've added Actvivities, Places and ActivityMappers to my code. I have one ActivityManager-ActivityMapper per each region. Regions like the header or the menu dont't change a lot so I have to write a lot of boilerplate code in the ActivityMapper for load the same...

GWT elements are not visible

gwt,intellij-idea,ext-gwt
I have already asked such a question here but haven't got a reply which could work out. It is really important for me to resolve the problem. So, I try to develop an app using ExtGWT 2.3.0 / GWT 2.5.1 but faced the problem that widgets (both GWT and GXT)...

GwtMockito - click handlers for many buttons

java,gwt,gwtmockito
I have problem with GwtMock and click handlers. In my unit test I have a field with ClickHandler and Button: @GwtMock private ClickHandler clickHandler; My setUp method looks like: @Before public void setUp() { when(this.display.getClearButton()).thenReturn(this.button); when(this.display.getChangeStatusButton()).thenReturn(this.button); } And my test looks like: @Test public void shouldClearFilterAfterClickClearFilterButton() { // given when(this.button.addClickHandler(any(ClickHandler.class))).thenAnswer(new...

How to group fields to get one change value handler

java,gwt
I have a Presenter like this: public class ItemPresenter { public interface Display { TextBox getFilterItemName(); TextBox getFilterItemAmount(); } public ItemPresenter() { addChangeValueHandlers(); private void addChangeValueHandlers() { this.display.getFilterItemName().addChangeHandler(new ChangeHandler() { @Override public void onChange(ChangeEvent event) { display.reload(getItemList(display.getFilterBaseVersionName() .getText())); } }); this.display.getFilterItemAmount().addChangeHandler(new ChangeHandler() { @Override public void...

Can't add selectonHandler to TabPanel in Gwt

java,gwt
SelectionHandler<Widget> handler = new SelectionHandler<Widget>() { @Override public void onSelection(SelectionEvent<Widget> event) { TabPanel panel = (TabPanel) event.getSource(); Widget w = event.getSelectedItem(); } }; TabPanel content = new TabPanel(); content.addSelectionHandler(handler); content.add(vpanel, "Normal"); widget = new VerticalPanel(); widget.setSpacing(10); widget.add(content); addSelectionHandler com.google.gwt.event.logical.shared.SelectionHandler>java.lang.Integer> can not be applied to...

Reload web page in GWT

javascript,gwt
After a user logged and press my page url in this page if user press confirm button i want to relaod my page not the home page Window.alert(ConstantesMessage.MESSAGE_MSG004); eventBus.goToMyPage(); Window.Location.reload(); this solution work but it's reload the home page not my page ...

Is it possible to use widgets in a GWT ToggleButton?

gwt,uibinder
I would like to know if it is somehow possible to use widgets in a ToggleButton, because I have an image on the downFace of a ToggleButton and want to use the Image widget, so that I can define a resource property. Code looks like this (or should look like...

Duplicate title error after redirecting with 301 [closed]

.htaccess,redirect,gwt,seo
let you explain every point: I have duplicate title issue with 404 error pages, I have redirect all pages with 301 redirection with use of WordPress Plugin. And it works and decrease the error, After that I have update plugin sitemap-index, and all error are back. I have checked some...

cannot debug GWT native code within gwtmockito

gwt,gwtmockito
I have a GwtMockitoTestCase and the debugger seems not to enter inside any vanilla GWT class like Widget, ResizeLayoutPanel, etc. However, when running the same code inside DevMode, the debugger steps correctly through that code. Does this have to do with GWT running inside a JRE? If not, could it...

How to migrate a a custom sublass of GWT DevMode to GWT 2.7.0 Super dev mode

gwt,google-plugin-eclipse,gwt-super-dev-mode,gwt-2.7
For a long while we were running our GWT-based application in Eclipse using custom subclasses of com.google.gwt.core.ext.ServletContainerLauncher and com.google.gwt.dev.DevMode. This was to allow us to run our custom (newest) Jetty and, over time, it gave us some other control, i.e. launching the server just a bit differently in Eclipse so...

Upgrading Java 7 to Java 8 using GWT 2.6

java,maven,gwt
While Upgrading Java 7 to Java8 with GWT 2.7,I am Getting the below Exception.Can any one help me to solve this error [ERROR] Source level must be one of [auto, 1.6, 1.7]. [ERROR] Google Web Toolkit 2.6.1 [ERROR] Compiler [-logLevel level] [-workDir dir] [-[no]compileReport] [-X[no]checkCasts] [-X[no]classMetadata] [-[no]draftCompile] [-[no]checkAssertions] [-X[no]closureCompiler] [-XfragmentCount...

How to calculate difference in days between two dateboxes in GWT? [duplicate]

java,date,gwt,datebox
This question already has an answer here: Java, Calculate the number of days between two dates [duplicate] 10 answers I have 1 datebox (datebox1) in my GWT application, which allows users to set the date in past. Datebox1 is set to following format (not that it probably matters): datebox1.setFormat(new...

How to update Eclipse GWT Plugin 2.6.0 to higher version

eclipse,gwt
There seems to be an annoying bug with GWT 2.6.0. Since The current version in the repository for Eclipse is 2.6.0 I was wondering how I could update to 2.6.1 or 2.7.0 myself. Is there a way to do that? The error I am dealing with: java.lang.NoSuchMethodError: com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(Lcom/google/gwt/core/ext/TreeLogger;Ljava/lang/String;Z)Lcom/google/gwt/dev/cfg/ModuleDef; at com.google.gwt.dev.shell.designtime.HostedModeSupportImpl.loadModule(HostedModeSupportImpl.java:85)...

Smart gwt grid grouping doesn't work when records are over 1000

java,user-interface,gwt,smartgwt
Smart gwt grid grouping doesn't work when records are over 1000. Below 1000 grouping works fine. It's a multi-field grouping. Any idea why's that happening? ...