Menu
  • HOME
  • TAGS

Remote debugging with screen capture

user-interface,gwt,tomcat7

First of all I guess it's possible, but you have to program a solution yourself ( I don't know any existing solution) : To catch every client side Exception, use setUncoughtExceptionHandler. At this point I can recommend gwt-log, which is easily set up and can be used to send all...

Market share of GWT versions

gwt

There are GWT surveys available for 2012, 2013 and 2015. Question 4.2 this year was "What version of GWT are you using?" This was the result: Keep in mind that this is based on the responses of just over 1000 developers. So you can decide how representative this result is....

GWT elements are not visible

gwt,intellij-idea,ext-gwt

It looks like a problem with missing styles - please double check that gxt-all.css is available from where you reference it in your host page. Use your browser's developer tools to see if it's not throwing a 404. It seems that the missing resources are mentioned in Step 1 in...

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

java,gwt,gwt-rpc,celltable,asynccallback

Your CellTable has a height of zero. This is why you don't see it. You either have to set height of your CellTable in code, or you should add it to a widget that implements ProvidesResize interface, like a LayoutPanel....

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

java,html,gwt,grid,uibinder

You create your ticketTable and your links with UiBinder (createAndBindUi) and then you create a new Grid (re-assigning the ticketTable field BTW) and move your links to it (setWidget), but you never actually use that Grid anywhere. So, basically, you've moved your links to somewhere that's never displayed, so they...

List servlets in a java webapp (running in tomcat)

java,tomcat,servlets,gwt

I would write a simple JSP or ServletContextListener to read all the ServletRegistratioins from the servlet context and display them. So your JSP/ServletContextListener would read the data from servletContext.getServletRegistrations(); and just display it. Edit @WebServlet(urlPatterns = "/mappings") public class TestServlet extends HttpServlet { private static final long serialVersionUID = -7256602549310759826L;...

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

java,eclipse,maven,gwt,jrebel

The client side doesn't need anything special. The server side though requires the RequestFactory and all its RequestContext and proxies hierarchy to be processed by the validation tool. From the command line, in the context of the archetypes, that means launching the process-classes phase on the *-server module, e.g. mvn...

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

java,internet-explorer,gwt

IE 11 isn't officially supported in GWT 2.5.1 (I couldn't even tell which permutation is selected in this case; and it depends on X-UA-Compatible). Try updating to GWT 2.7.0, where IE11 has been tested, and should select the gecko1_8 permutation....

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

gwt,activity-manager,gwt-activities

When an ActivityMapper returns the exact same Activity instance (reference equality, i.e. ==, not equals()) as previously, then the activity is not restarted, and the region is not touched. This is a deliberate optimization for those cases of regions that don't change often (e.g. headers or menus, or a master...

How to transform elements to widgets?

java,gwt,gwt-widgets

try with something like FlowPanel panel = new FlowPanel(); HTML wrap = new HTML().wrap(myElement); panel.add(wrap); RootPanel.get().add(panel); note : the FlowPanel is not strictly necessary. It adds a <div> around your elements (and HTML.wrap() will add one too). A panel could be helpful if you want to group elements/widgets together....

Changing tree node font color

java,css,gwt,gxt

A ValueProvider isn't meant for styling - it passes the value to be shown (or processed). So if you pass an HTML element, by default it will be printed out as you described. One possible solution is to set a custom cell. Change your Tree to Tree<SubmissionMenuData, SubmissionMenuData> and return...

How do I deploy my LibGDX game to my website?

java,html5,gwt,libgdx,game-engine

Using gradlew html:superDev is not appropriate, if you want to distribute the game on a public webserver. The wiki article Gradle on the Commandline has a section, which tells you how to package your app when you want to distribute it. For the HTML backend this is done via gradlew...

GWT Designer. Does it work with later versions?

eclipse,google-app-engine,gwt,swt,xulrunner

GWT Designer is no longer maintained (in part because of those SWT Browser issues). That also implies that it doesn't work with GWT 2.7 (it didn't work with 2.6.0, and 2.6.1 temporarily reintroduced the code that GWT Designer needed, but GWT Designer was never updated so it stopped working with...

GWT FlowPanel not adding widget

css,gwt,datagrid,flowpanel

You tell DataGrid to take all available space inside the FlowPanel. Then you tell Grid widget to do the same. The result is that your Grid has a height of zero, since there was no space left for it after the DataGrid took 100% of the FlowPanel height. You either...

MGWT AnimatingActivityManager

java,gwt,mgwt

In general with any GWT 2.6 to 2.7 conversion, make sure you do not have any straggling references to GWT 2.6. There was one 2.6 JAR file in my 2.7 implementation.

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

gwt,web-applications,server

You could try with a ServletContextListener. Check this : http://www.mkyong.com/servlet/what-is-listener-servletcontextlistener-example/ . In short, you define a context listener that gets triggered when the webapp starts up, and there you can initialize your server-side logic. Here's an example : public class MyServletContextListener implements ServletContextListener{ @Override public void contextInitialized(ServletContextEvent ctxEvt) { System.out.println("this...

GWT - Could not get type signature for class

java,gwt

I have tried changing the type declaration, adding Serialization, switching to IsSerializible, and nothing works! You missed one: you must have a default (zero-arg) constructor, or a new instance can't be created. The deserialization process creates an object then assigns the fields. I believe you can make this constructor...

Lazy Loading on a List of Objects using Java?

java,gwt,lazy-loading

You don't need a plugin or a component. You simply attach an event handler to a widget that triggers additional loading requests. It can be a ScrollPanel if you lazy load on scroll down, or a Button/Label (e.g. "Show more"), etc. When this event is triggered, you load and display...

Is it possible to use widgets in a GWT ToggleButton?

gwt,uibinder

ToggleButton's g:downFace takes an ImageResource as an image= attribute: – Source: http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/CustomButton.html But you cannot use both an image and text that way. AFAICT, you can however use an image and text through HTML (but without widget): <g:downFace>downFace Text <img src="{res.wantedImage.getSafeUri}" /></g:downFace> or through a @sprite in a CssResource: <g:downFace>downFace...

Reload web page in GWT

javascript,gwt

A GWT application is a single page application. So if you reload the web page you get your start page, unless you use the history tokens. See http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsHistory.html When you have a history token the page is still reloaded, but based on the history token you can open the page...

GWT Arrays.asList not working on interface types

gwt

GWT 2.7's Super Dev Mode (and from the _g$ in your class literal field, I think that is what you are using) has been observed having other issues like this, but when compiled the issues go away. If this is indeed what you are seeing, the issue seems to be...

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

java,eclipse,gwt,gwt-2.7

gwt-dev-windows.jar is an old dependency from pre-2.0 GWT (you should have already removed it when updating to 2.0 a while ago), and it conflicts here with the newer gwt-dev-2.7.0.jar. BTW, unless you want to continue using "classic DevMode", you'll also need gwt-codeserver-2.7.0.jar. Last, but not least, you'll likely have to...

How to update gwt-maven-plugin Archetype?

java,eclipse,maven,gwt,maven-archetype

It looks like the archetype catalog is out of date in your Eclipse. I don't know how to update it (I don't even know how Maven does it outside of Eclipse), but an easy workaround is to use the Add Archetype… button to add org.codehaus.mojo:gwt-maven-plugin:2.7.0. That being said, despite the...

PlayN and Firefox issues

facebook,firefox,gwt,game-engine,playn

Ok, here is why TextLayout is moved up: FF bugzilla Also after a lot of googling it seems that drawing on canvas has performance issues in FF....

Get HTML elements in GWT

html,user-interface,gwt,uibinder

Got the right answer :- Button button = Button.wrap(Document.get().getElementById("submit")); is working for me....

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

android,cordova,gwt,mgwt

I am Looking for the same solution. For now I found the following options. It seems the dev are working on feature that will enable it safely. If you cant wait there is another way. Update - My temp solution until CB-3360 is out To change the User Agent I...

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

gwt,jsni

Make sure that your iframe's contentWindow is not losing focus. IE can't deal with these situations as elegantly as others. Try: // windowEl is the contentWindow of an iframe protected native Element insertImage(String src, String title, String cssClassname, Element windowEl) /*-{ var result = null; windowEl.focus(); // ***** add this...

Polymer core-drawer-panel throws exception at loading

java,dom,gwt,polymer,gwt-polymer

GWT-Polymer uses a new feature in GWT called JsInterop, so I think the error you are getting is because you are not using the compiler flag to enable it. Try to add to your compiler the option: -XjsInteropMode JS BTW, gwt-polymer is using gwt-2.8.0-SNAPSHOT which have last features, so probably...

Gwt NavigableSet no source found

java,gwt,treemap

I don't have enough rep for a comment... sorry. What version of GWT are you using? It looks like there is a bug here: https://code.google.com/p/google-web-toolkit/issues/detail?id=4236 Fixed in 2.7.0 RC1...

Duplicate title error after redirecting with 301 [closed]

.htaccess,redirect,gwt,seo

Don't block the 301 redirected links with robots.txt. Google needs to reprocess those links/pages to take your latest modifications into account. Does it effect, if we redirect more then one link in single page? No, there is no issue with that. Does I need to remove 301 redirection to solve...

How to group fields to get one change value handler

java,gwt

I think you can achieve more or less the same behavior by registering the same handler on both filterItemName and filterItemAmount : ChangeHandler handler = new ChangeHandler() {...} this.display.getFilterItemAmount().addChangeHandler(handler); this.display.getFilterItemName().addChangeHandler(handler); ...

Servlet not found from a GWT web application

java,tomcat,servlets,gwt

One likely difference is the webapp's context path. In dev, the web app is deployed at root (contextPath=/) whereas in Tomcat it's using the name of your war file by default (contextPath=/mywebapp/). Your form always posts to http://<server>:<port>/upload but in Tomcat your servlet is at http://<server>:<port>/mywebapp/upload. You'll want to use:...

ListGrid / ListGridField - Hover message while editing

gwt,smartgwt

You should be able to manipulate the properties of the editor that is created when you enter edit mode for a field through an appropriate FormItem and the ListGridField.setEditorProperties(FormItem editorProperties) method. For example, if your field is storing texts, you shall create a TextItem and define the hover text using...

Adding same widget to two panel causing issue

java,gwt

Your panel subVP isn't added to anything, and when the box is added to subVP, it is removed from mainVP. Widgets can only be one place at a time. -- (adding more detail for the comment posted) This is part of the basic assumption of how a widget works -...

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

java,html,css,gwt,web-development-server

There are two ways to do that. First, you can define the rule in CSS. You do need to learn HTML and CSS for web development - no way around that. Second, you can set a particular CSS property directly in your code: loader.getElement().getStyle().setFontSize(24, Unit.PX); ...

GWT syncProxy: createProxy MethodNotSupportedException

java,eclipse,gwt,gwt-syncproxy

Just to verify, you are creating a Java eclipse project (not Android)? Assuming as much, then make sure you also include the gwt-user-2.7.0 and gwt-dev-2.7.0 jar's in your classpath. In regard's to Lev's answer, the MethodNotSupportedException class is actually in the gwt-dev-2.7.0 jar, so you do not necessarily need to...

GXT MessageBox with scrollable content

html,css,gwt,gxt

It turns out that I was quite near to a solution : the idea is to let the MessageBox adapt its size to the content, and then to fix the size of the ScrollPanel like this : HTML content = new HTML(StacktraceTemplate.RENDERER.render(stackTrace)); ScrollPanel container = new ScrollPanel(content); container.setHeight("700px"); HTMLPanel panel...

ofy() appengine Date search query

java,google-app-engine,gwt

You will need to specify a custom index to support this query as it combines multiple filters on different properties. As per the documentation: Other forms of query require their indexes to be specified in the index configuration file, including: ... Queries with one or more inequality filters on a...

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

gwt,app-engine-ndb

No source code is available GWT transliterate Java to Javascript, reading it's source code and there a limited language support. What you're trying to achieve is a Server only operation and you're adding this operation within the client code, which will run on a browser. Neither GAE allow this or...

Need to validate GXT DateFields dateTo must be older than dateFrom

validation,date,gwt,gxt

The solution to the problem is here: @UiHandler("dateFrom") void dateFromChange(ValueChangeEvent<Date> event){ dateFrom.addValidator(new MaxDateValidator(dateTo.getValue())); } ...

Upgrading Java 7 to Java 8 using GWT 2.6

java,maven,gwt

[ERROR] Source level must be one of [auto, 1.6, 1.7]. […] [ERROR] -sourceLevel Specifies Java source level (defaults to auto:1.7) Set -sourceLevel to 1.7 (or 1.6) explicitly. That can be done using either <sourceLevel>1.7</sourceLevel> in the configuration for the org.codehaus.mojo:gwt-maven-plugin, or setting the maven.compiler.source property to 1.7 (this will...

GWT i18n changing locale

java,gwt,internationalization

The default value for the locale.searchorder configuration property is queryparam,cookie,meta,useragent, so a query-string parameter will override the user-agent's locale (i.e. what you, and most people, would expect).

cannot debug GWT native code within gwtmockito

gwt,gwtmockito

After digging in the GwtMockito code, it seems there are a certain set of classes that are stubbed and some methods' body is removed. Therefore it's not possible to debug those methods. The question that remains is that somehow GWTMockito breaks the code coverage tool(EclEmma) which shows less code covered...

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

GWTP 0.6.1 is quite old. For eclipse Luna you need to install the newest version of the plugin. Install it from http://arcbees.github.io/gwtp-eclipse-plugin/

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

javascript,google-maps,gwt,google-maps-api-3

I have solved my problem by using method (on branflake2267/GWT-Maps-V3-Api version 3.8.1) void com.google.gwt.maps.client.MapWidget.setControls(ControlPosition controlPosition, Widget widget) First, i create a textbox private TextBox placeSearchTextField = new TextBox(); and use setControls: mapWidget.setControls(ControlPosition.TOP_LEFT, placeSearchTextField ); add autocomple private void drawAutoComplete() { Element element = placeSearchTextField.getElement(); AutocompleteType[] types = new AutocompleteType[2]; types[0]...

Replacement for GWT

java,gwt,client-server

Check OpenXava it's easy to use. http://www.openxava.org/ate/gwt-alternative

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

hibernate,ssl,gwt

When you use -server :ssl then you no longer use the AppEngineLauncher, so class loading is different; with a parent class loader using the classpath (AppEngine only uses WEB-INF/{classes,lib}); this is what causes the ClassCastException. Try removing your server dependencies from the DevMode classpath as a starting point; leaving them...

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

gwt

The click on the X triggers a 'input' event. So one way to catch it is to sink the input event to the textbox and overwrite the onBrowserEvent. TextBox box = new TextBox(){ @Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if("input".equals(event.getType())) do something } }; box.sinkBitlessEvent("input"); ...

Filtering for UI developed using GWT

java,java-ee,gwt,filtering

We have a GWT app that supports sorting and paging of large tables. Both is done in the backend. First, I'd say it depends on how fast your backend can handle these requests. If it's about 20ms or less per roundtrip you could do it in the backend. Another point...

Set log4j.properties for GWT

eclipse,gwt,log4j

GWT doesn't create anything in WEB-INF/classes; it only generates JavaScript (and possibly CSS, PNG, etc.) files in a subfolder (named after your compiled module) of the output directory (generally where the WEB-INF/classes also is, but that's just because several things are configured with the same output directory). The log4j.properties you...

Shrink browser content to browser window size

java,gwt,highcharts,uibinder

Without specific code examples a specific answer is difficult to give. But to react to browser resize you need to implement the onResize() method. The layout panels you name call this method on children that implement the interface RequireResize. So the panel with the chart should implement the onResize(), and...

Is it possible to shadow Vaadin Applicaitons

java,gwt,vaadin

well, although it could be possible to have this feature in Vaadin, it is not implemented right now, nor planed. Vaadin RPC mechanism maintains synchronised set of states between the user session in server side and javascript in client side. In theory it could be possible to code some kind...

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

java,google-app-engine,gwt,google-cloud-storage,blobstore

Since the Blobstore is near to the permanent shutdown, you need to starts using Google Cloud Storage. The Google Cloud Storage Client Library is fully integrated for App Engine, making easy the migration to another API. After you saved an object to Cloud Storage, you can generated a BlobKey starting...

SoycDashboard$FormatException on GWT Compilation

gwt

SOLUTION After testing and debugging GWT Compilation process it appears to be a SAXParser problem. I´ve specified the default SAXParser for gwt compilation jvm using -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl and the issue was solved....

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

java,image,gwt

After a lot of trial and error I found that I needed to add to: public void onLoad(PreloadedImage existingImage) { The following: existingImage.setWidth("100%"); Regards, Glyn...

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

javascript,jquery,firefox,gwt,web-scraping

var jq = document.createElement('script'); jq.onload = function() { jQuery.noConflict(); // Our stuff... (function ($) { $('table').find('tr') .each(function(j, rowitem) { var line = '' $(rowitem).find('div').each(function(i, item) { var o = $(item).find('option[selected]'); if (o.length > 0) { line += $(o).text(); } else { line += $(item).text(); } line += ';'; }); console.log(line);...

Using tag-specific CSS selectors in GWT CssResources

gwt

Okay, now that I've tested a little, as Igor Klimer requested, I found out that the tag-specific selectors work the way they should and that pseudo-selectors can also be used. I hope that will be useful for someone googling this question in the future. Edit: Even CSS3 Animations work perfectly...

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

java,user-interface,gwt,smartgwt

Have you used method setGroupByMaxRecords(int groupByMaxRecords) on your grid? It's default value is 1000 so i belive that might be the cause of your problem. Try setting it for a number bigger than 1000, for example: ListGrid.setGroupByMaxRecords(2500); ...

Difference between a GWT Generator and a Java Annotation Processor?

java,javascript,gwt,annotation-processing

GWT generators not only generate code, they also tell GWT to use it; whereas annotation processors only generate code that then needs to be used by some other code (either referenced directly in the code, or loaded through reflection – something that's not possible in a GWT environment though). The...

Why Intellij deletes obsolete files when trying to run DevMode?

java,gwt,intellij-idea

After sending a request to Intellij support team, they gave me the following answer: Adding the following two lines to the IDEA_HOME/bin/idea.properties file: idea.gwt.clear.unit.cache.before.run=false idea.gwt.clean.files.created.by.dev.mode=false Which makes sense, because the only thing I need is to prevent Intellij from deleting my local cached files. Problem solved....

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

google-chrome,gwt,libgdx,html5-canvas,webgl

are you setting the crossOrigin attribute on your img before requesting it? var img = new Image(); img.crossOrigin = "anonymous"; img.src = "https://graph.facebook.com/1387819034852828/picture?width=150&height=150"; It's working for me var img = new Image(); img.crossOrigin = "anonymous"; // COMMENT OUT TO SEE IT FAIL img.onload = uploadTex; img.src = "https://graph.facebook.com/1387819034852828/picture?width=150&height=150"; function uploadTex()...

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

java,eclipse,gwt,import

With GWT you cannot use all Java libraries available for server side Java. You are restricted to a small JRE emulation subset. As a consequence you cannot use any librariy using standard Java classes outside of the emulation subset. Often there are special GWT libraries for the same purpose. You...

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

java,gwt

Strings != String. Your example new String() is a creation of a new String value. Strings is something different. In short it will bind text from property file with the Strings interface due to the fact it extends Constants. See the GWT documentation about how this works for a more...

Alternative GWT Designer for Eclipse

eclipse,gwt,designer,uibinder,gwt-2.7

For Native GWT there is nothing. For GWT from other vendors Vaadin -> https://vaadin.com/designer GXT -> Nothing ...

Not possible to trigger GWT listbox ChangeHandler using CasperJS

javascript,gwt,phantomjs,casperjs

The jQuery way seems to work in such cases: casper.fillSelect = function(selectSelector, id){ this.evaluate(function(sel, id) { var select = jQuery(sel); select[0].selectedIndex = id; select.change(); }, selectSelector, id); }; casper.fillSelect('#id_of_select', 1); To make that work, you can simply load jQuery into the page by either adding a local copy to options.clientScripts...

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

gwt,vaadin,vaadin7

Try Vaadin Addon - Wrapper for CK Editor. Here you can find online demo. It automaticaly localizes to my browser language. You can find more information on official CKEditor site....

Specify Library Target of Maven

xml,eclipse,maven,gwt

It looks like you're trying to bend Maven to do things differently than what it expects you to do (e.g. here use war both as input and output folder). As a rule of thumb, never try to fight with Maven, you'll lose eventually. Follow the (almost-undocumented) Maven Way™ or just...

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

You could use geometry library isLocationOnEdge(point:LatLng, poly:Polygon|Polyline, tolerance?:number) To determine whether a point falls on or near a polyline, or on or near the edge of a polygon, pass the point, the polyline/polygon, and optionally a tolerance value in degrees to google.maps.geometry.poly.isLocationOnEdge(). The function returns true if the distance between...

Get all objects from a GWT CellTable

java,gwt,gwt-celltable

CellTable has method getKeyProvider, which returns object containing data under ProvidesKey interface. You create ListDataProvider and pass it to cell table, so you can get that provider from cell table again at any time: ListDataProvider provider = (ListDataProvider)cellTable.getKeyProvider(); provider.getList().get(0); // get first Keyword ...

How to use GWTs JSNI with Xtend

gwt,jsni,xtend

With xtend you can't. As workaround move jsni part to java class https://bugs.eclipse.org/bugs/show_bug.cgi?id=430929

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

java,gwt,google-plugin-eclipse

Both errors (missing gwt-codeserver, and unknown argument) hint that the Google Plugin for Eclipse didn't properly detect the version of the GWT SDK you're using. GWT 2.3 is now really old, so I'd suggest trying with GWT 2.7. As you're beginning with GWT, it's also better to start right with...

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

java,hibernate,maven,gwt

Maven Eclipse plugin will by default add your dependencies to the Eclipse project classpath. It is not aware of any custom build/packaging/deployment scenarios unless you explicitly configure it for the use cases you need. Maybe this question can be helpful in your use case. This article explains how to configure...

How to append a link to gwtbootstrap 3 InputField

gwt,gwtbootstrap3

The HasText bit is about InputGroupAddon, not Anchor. "Text-only context" (implied by implementing HasText) means you can only put, well, text into that widget. Either through the text property (<b:InputGroupAddon text='Name' />) or inside the tags (<b:InputGroupAddon>Name</b:InputGroupAddon>) - those declarations are equivalent. You can't put unescaped HTML or widgets in...

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

java,gwt,jar

GWT provides the information in several ways: gwt-dev.jar contains a com/google/gwt/dev/About.properties you can launch the gwt-dev.jar (java -jar gwt-dev.jar, or java -cp gwt-dev.jar com.google.gwt.dev.Compiler, and it'll give you the version information) the version is also available into the generated JS, and/or accessible from client code using GWT.getVersion() ...

How to select the specific element using HtmlUnit with java?

java,gwt,xpath,htmlunit

You are looking for a div element instead of span. Change your xpath to this: //span[@class='x-tree3-node-text'] Furthermore if you want to find an element by its value use this xpath: //span[text()="OCP"] ...

change font of gwtbootstrap3 app

gwt,fonts,gwtbootstrap3

This might be one of those infrequent cases where you want to use !important, i.e.: body{ font-family:tahoma !important; } Before you do, however, read When Using !important is the Right Choice....

How to create an API REST?

rest,gwt

As far as I understand, you want to implement a RESTful service (Web API). GWT targets the Web UI to be able to build it using Java and compile it into JavaScript. I think that it's not what you expect. Here is a link that provides you hints about concepts...

How to update Eclipse GWT Plugin 2.6.0 to higher version

eclipse,gwt

You need to download and unzip the SDK manually, then tell Eclipse where to find it: https://developers.google.com/eclipse/docs/using_sdks#adding-sdks …but GWT Designer is deprecated and won't work with newer versions of GWT. 2.6.1 is the last that works....

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

css,gwt,web-applications,grid,cell

You can use a simple FlowPanel as a container, and add each image with a float set to "left". Alternatively, you can use a flex-box model with flex-flow: row wrap on a container. You don't need any widgets for this. This is simple CSS, and it will give you the...

GWT Greeting-Example not working / strange behavior

java,eclipse,gwt

The GWT DevMode browser plugins are deprecated; they no longer work in Firefox for more than a year, and in Chrome for a few months (depending on your OS); the only supported browser still is IE. (in case you wonder: Firefox has been cutting access to some APIs needed by...

GwtMockito - click handlers for many buttons

java,gwt,gwtmockito

Let's read that code together: whenever getClearButton() or getChangeStatusButton() is called, return this.button; that is, the very same button for both method calls, which means you won't be able to tell which is which: it's just the same. whenever addClickHandler is called on that mock button, store the click handler...

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

java,date,gwt,datebox

The simplest way: Date currentDate = new Date(); int daysBetween = CalendarUtil.getDaysBetween(myDatePicker.getValue(), currentDate); ...

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

I didn't find any documentation but I succeeded to get started. Here are the things that I had to do: I actually didn't have to change my launcher/dev mode code at all. Eclipse *.launch file had to be modified to add -nosuperDevMode argument. I could not get the super dev...

Button action with @UiHandler not being hit

java,button,gwt,uibinder

Fixed the issue- my .xml file was not named the same as my .java class file although the xml UiField and java variable names did match. Changing the name of the .xml file to JobViewImpl.ui.xml and class name to JobViewImpl.java. This resolved the issue

Set focus to an Input in a gwtbootstrap3 Modal

gwt,twitter-bootstrap-3,gwtbootstrap3

You should be listening on the ModalShownEvent (note: Shown, not Show). ModalShowEvent is fired when the modal is requested (for example, programmatically) to be shown. ModalShownEvent is fired when the modal is actually shown. This somewhat confusing naming is based on the events of the native Bootstrap Modal's events: show.bs.modal...

GWT UiBinder I18n

java,gwt

Anywhere HTML is accepted (such as within upFace), you can use <ui:msg>, <ui:text> and <ui:safehtml> (and anywhere plain text is expected, you can use <ui:msg> and <ui:text>). So in your case: <ui:with type="havis.ui.shared.resourcebundle.ConstantsResource" field="lang"></ui:with> <g:ToggleButton ui:field="observeButton"> <g:upFace><ui:text from="{lang.observe}"/></g:upFace> <g:downFace>Observing</g:downFace> </g:ToggleButton> See...

GWT: Retrieve generated classname

java,gwt

This is the whole point (well, one of them) of CssResource: that the same class name in sources is turned into different ones once compiled, so you never fear name conflicts. Generated names depend on the fully-qualified name of the CssResource interface, so you have to use the exact same...

How enable production mode in GWT 2.7 application

gwt,gwt-super-dev-mode,gwt-maven-plugin

Ok thank you very much for your comment. Indeed, my problem concerned the *.nocache.js and *.devmode.js files. I started my project (my first one in GWT) in 2.6 version and these files were created (by dev and super-dev-mode) and versionned by my fault. So, when my jenkins deployed my project,...

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

The details depend on your build tool and/or IDE, but the goal is to have all server-side classes in the webapp's WEB-INF (either in WEB-INF/classes, which is probably the case for your GWT project, or in a JAR in WEB-INF/lib). This will be necessary anyway when deploying the webapp to...

gwt-maven-plugin fails with NullPointerException

java,maven,gwt

Caused by: java.lang.NullPointerException at org.codehaus.mojo.gwt.ClasspathBuilder.buildClasspathList(ClasspathBuilder.java:71) That line would mean that the logger hasn't been initialized. Which Maven version are you using? The plugin has been built and validated with Maven 3.2 (and was developed with 3.0), and I just tried with Maven 3.3 and integration tests pass too; but...