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...
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....
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...
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....
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...
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;...
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...
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....
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...
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....
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...
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...
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...
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...
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.
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...
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...
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...
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...
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 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...
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...
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...
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....
html,user-interface,gwt,uibinder
Got the right answer :- Button button = Button.wrap(Document.get().getElementById("submit")); is working for me....
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...
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...
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...
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...
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...
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); ...
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:...
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...
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 -...
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); ...
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...
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...
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...
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...
The solution to the problem is here: @UiHandler("dateFrom") void dateFromChange(ValueChangeEvent<Date> event){ dateFrom.addValidator(new MaxDateValidator(dateTo.getValue())); } ...
[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...
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).
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...
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/
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]...
Check OpenXava it's easy to use. http://www.openxava.org/ate/gwt-alternative
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...
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"); ...
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...
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...
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...
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...
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...
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....
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...
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);...
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...
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); ...
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...
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....
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()...
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...
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...
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...
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....
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...
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...
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 ...
With xtend you can't. As workaround move jsni part to java class https://bugs.eclipse.org/bugs/show_bug.cgi?id=430929
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...
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...
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...
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() ...
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"] ...
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....
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...
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....
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...
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...
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...
The simplest way: Date currentDate = new Date(); int daysBetween = CalendarUtil.getDaysBetween(myDatePicker.getValue(), currentDate); ...
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...
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
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...
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...
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...
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,...
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...
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...