Re: Browser.getWindow().newXMLHttpRequest()

2016-11-16 Thread Ignacio Baca Moreno-Torres
I have two partial examples, one  to create and send a formdata
programmatically
https://github.com/intendia-oss/autorest/blob/gwt-jsinterop/gwt/src/main/java/com/intendia/gwt/autorest/client/XhrResourceBuilder.java
and other to get the datafile that can be added to a formdata
https://github.com/ibaca/dndfiles-gwt/blob/ceda44a6aa5b3497808a7d33ed7ed40b12cc9027/src/main/java/dndfiles/client/DndFiles.java#L45.
Not sure if this will help you, but... this is all you need to know
https://www.html5rocks.com/en/tutorials/file/xhr2/ 😊👌.

El mié., 16 de noviembre de 2016 18:05, P.G.Taboada 
escribió:

> Hi,
>
> I want to upload a file using ajax/ elemental.
>
> I already have the file. How do I get a formdata populated and sent?
>
> bgds,
>
> Papick
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with GWT 2.8

2016-11-16 Thread Kevin Langille
Additional information

Running superdev mode from Intellij failed to show the error, only once our 
product was compiled is the error visible. I tested using log statements to 
show the values of the expressions.

I am testing on Windows 10, Chrome, JDK 1.8.0_111. I also reproduced the 
issue in Firefox, edge and IE11.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with GWT 2.8

2016-11-16 Thread Kevin Langille
Sorry I should have mentioned. I was unable to see it using superdev mode 
in Intellij. Only once compiled did the error show.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Internal GWT 2.8.0 compiler exception

2016-11-16 Thread Jens
Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.
UiBinderWriter.(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/
lang/String;Ljava/lang/String;Lcom/google/gwt/core/ext/typeinfo/TypeOracle;
Lcom/google/gwt/uibinder/rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind
/FieldManager;Lcom/google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/
google/gwt/uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/
UiBinderContext;ZZLjava/lang/String;Lcom/google/gwt/dev/resource/
ResourceOracle;Lcom/google/gwt/resources/rg/GssResourceGenerator$GssOptions
;)V

Looks like you have a wrong version of 
com.google.gwt.uibinder.rebind.UiBinderWriter on classpath. If you are sure 
you have no GWT 2.7 dependency on classpath anymore then some 3rd party GWT 
library your app is using probably has a copy of that (outdated) class 
bundled.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Internal GWT 2.8.0 compiler exception

2016-11-16 Thread Michael Joyner (NewsRx)

Have you tried increasing the allocated ram?


On 11/16/2016 12:41 PM, jgindin wrote:
I'm trying to update my project from GWT 2.7.0 to 2.8.0. However, I'm 
getting the following error during the GWT compilation.


We're using dagger and guava 20. I've validated that:

  * dagger-compiler is *NOT* in the classpath when compiling. (We're
using gradle and the "net.ltgt.apt" gradle plugin to use the "apt"
configuration (which is where the dagger-compiler dependency is
listed).
  * there are no gwt 2.7 artifacts in my classpath


|
Starting process 'command '/opt/devtools/java/jdk1.8.0_102/bin/java''. 
Working directory: /home/myusername/src/mycompany/myproduct/ui/studio 
Command: /opt/devtools/java/jdk1.8.0_102/bin/java -Xmx2g 
-Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en 
-Duser.variant -cp 
/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.guava/guava-gwt/20.0/a77ac8a237301c629e3304c3cb3e2d540e79d0a8/guava-gwt-20.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.8.0/f160a61272c5ebe805cd2d3d3256ed3ecf14893f/gwt-dev-2.8.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/1.3.9/40719ea6961c0cb6afaeb6a921eaa1f6afd4cfdf/jsr305-1.3.9.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.errorprone/error_prone_annotations/2.0.12/8530d22d4ae8419e799d5a5234e0d2c0dcf15d4b/error_prone_annotations-2.0.12.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.j2objc/j2objc-annotations/1.1/976d8d30bebc251db406f2bdb3eb01962b5685b3/j2objc-annotations-1.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/20.0/89507701249388e1ed5ddcf8c41f4ce1be7831ef/guava-20.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.6.2/f1bc476cc167b18e66c297df599b2377131a8947/gson-2.6.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/dcc2193db20e19e1feca8b1240dbbc4e190824fa/asm-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-util/5.0.3/1512e5571325854b05fb1efce1db75fcced54389/asm-util-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-commons/5.0.3/a7111830132c7f87d08fe48cb0ca07630f8cb91c/asm-commons-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/colt/colt/1.2.0/abc984f3adc760684d49e0f11ddf167ba516d4f/colt-1.2.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/ant/ant/1.6.5/7d18faf23df1a5c3a43613952e0e8a182664564b/ant-1.6.5.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.2/8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5/commons-collections-3.2.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.4/b1b6ea3b7e4aa4f492509a4952029cd8e48019ad/commons-io-2.4.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.ibm.icu/icu4j/50.1.1/c1267563fd08f2885bc1f934ddaca15d19c3d888/icu4j-50.1.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/tapestry/tapestry/4.0.2/e855a807425d522e958cbce8697f21e9d679b1f7/tapestry-4.0.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/net.sourceforge.htmlunit/htmlunit/2.19/230f011fa87e96ff4115cd8c9d1572572d718b3e/htmlunit-2.19.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-webapp/9.2.14.v20151106/773f1c45f6534bff6313997ab3bdbe25533ee255/jetty-webapp-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-servlets/9.2.14.v20151106/a75c78a0ee544073457ca5ee9db20fdc6ed55225/jetty-servlets-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-annotations/9.2.14.v20151106/bb7030e5d13eaf9023f38e297c8b2fcae4f8be9b/jetty-annotations-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/apache-jsp/9.2.14.v20151106/756745c6efff964ae8d183866b962a534f20e30/apache-jsp-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/5.0.3/287749b48ba7162fb67c93a026d690b29f410bed/asm-tree-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/xalan/xalan/2.7.2/d55d3f02a56ec4c25695fe67e1334ff8c2ecea23/xalan-2.7.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.4/5fe28b9518e58819180a43a850fbc0dd24b7c050/commons-lang3-3.4.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.5.1/7e3cecc566df91338c6c67883b89ddd05a17db43/httpclient-4.5.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.5.1/96823b9421ebb9f490dec837d9f96134e864e3a7/httpmime-4.5.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.10/4b95f4897fa13f2cd904aee711aeafc0c5295cd8/commons-codec-1.10.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/net.sourceforge.htmlunit/htmlunit-core-js/2.17/4316d68f449d42f69faf4ee255aa31b03e4f7dd5/htmlunit-c

Help modifying celltable styles with gss

2016-11-16 Thread Raymond Hawkins
I'm in the process of updating to GWT 2.8, and I have the following code 
from 2.7:
public interface DataGridResource extends DataGrid.Resources {
  public interface Style2 extends Style {}

  @Source({DataGrid.Style.DEFAULT_CSS, "MaterialDataGrid.css"})
  Style2 dataGridStyle();
}

Following the instructions on 
http://www.gwtproject.org/articles/gss_migration.html, I'm trying to switch 
to using all gss. however, when I try to change MaterialDataGrid.css 
to MaterialDataGrid.gss, I get the following error: "[ERROR] Only either 
css files or gss files are supported on one interface".

I assume this is because "You cannot mix css and gss on the same method 
(@Source annotation)." and DataGrid.Style.DEFAULT_CSS points 
to com/google/gwt/user/cellview/client/DataGrid.css. 

If I manually use "com/google/gwt/user/cellview/client/DataGrid.gss", it 
works fine, but there doesn't appear to be a constant for the gss path. Am 
I missing anything here, or should I just either use the full path in my 
code or replace ".css" with ".gss" on DataGrid.Style.DEFAULT_CSS?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can't build maven sample GWT app, generated by webAppCreator

2016-11-16 Thread vitrums
I made another clean project with command prompt and ran into the same 
issue. Using fresh installations of jdk1.8.0_111 and apache-maven-3.3.9. 
M2_HOME, JAVA_HOME are set properly. gwt-2.8.0 folder was added to PATH. 
Btw, here's the only related topic I found so far 
https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/fdWmFBtKvGA
 


webAppCreator -out foo -templates maven,sample,readme com.example.foo.Foo

I ran "mvn clean" - no warnings. Then "mvn package" gives the same result:

[INFO] Scanning for projects...
[INFO] 

[INFO] 

[INFO] Building com.example.foo.Foo 1.0-SNAPSHOT
[INFO] 

[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Foo 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
c:\temp\mvnSampleGwtApp\foo\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Foo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-sources (default) @ Foo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) 
@ Foo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
c:\temp\mvnSampleGwtApp\foo\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
Foo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-test-sources (default) @ Foo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ Foo ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:test (default) @ Foo ---
[INFO] GWT tests report directory: 
c:\temp\mvnSampleGwtApp\foo\target\surefire-reports

---
 T E S T S
---
Running com.example.foo.FooSuite
Starting Jetty on port 0
   [WARN] ServletContainerInitializers: detected. Class hierarchy: empty
Loading inherited module 'com.example.foo.FooJUnit'
   Loading inherited module 'com.example.foo.Foo'
  Loading inherited module 'com.google.gwt.user.User'
 Loading inherited module 'com.google.gwt.event.Event'
Loading inherited module 'com.google.gwt.dom.DOM'
   Loading inherited module 'com.google.gwt.safehtml.SafeHtml'
  Loading inherited module 'com.google.gwt.http.HTTP'
 Loading inherited module 'com.google.gwt.user.Timer'
[ERROR] Line 19: Unexpected exception while 
processing element 'source'
java.lang.NoClassDefFoundError: org/apache/tools/ant/types/ZipScanner
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getScanner(DefaultFilters.java:240)
at 
com.google.gwt.dev.resource.impl.DefaultFilters$4.(DefaultFilters.java:371)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getCustomFilter(DefaultFilters.java:370)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.customJavaFilter(DefaultFilters.java:301)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackageImpl(ModuleDef.java:257)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackage(ModuleDef.java:246)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:860)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:817)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__source_end(ModuleDefSchema.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
com.google.gwt.dev.util.xml.HandlerMethod.invokeEnd(HandlerMethod.java:272)
at 
com.google.gwt.dev.util.xml.ReflectiveParser$Impl.endElement(ReflectiveParser.java:174)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Con

Internal GWT 2.8.0 compiler exception

2016-11-16 Thread jgindin
I'm trying to update my project from GWT 2.7.0 to 2.8.0. However, I'm 
getting the following error during the GWT compilation.

We're using dagger and guava 20. I've validated that:

   - dagger-compiler is *NOT* in the classpath when compiling. (We're using 
   gradle and the "net.ltgt.apt" gradle plugin to use the "apt" configuration 
   (which is where the dagger-compiler dependency is listed).
   - there are no gwt 2.7 artifacts in my classpath


Starting process 'command '/opt/devtools/java/jdk1.8.0_102/bin/java''. 
Working directory: /home/myusername/src/mycompany/myproduct/ui/studio 
Command: /opt/devtools/java/jdk1.8.0_102/bin/java -Xmx2g 
-Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant 
-cp 
/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.guava/guava-gwt/20.0/a77ac8a237301c629e3304c3cb3e2d540e79d0a8/guava-gwt-20.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.8.0/f160a61272c5ebe805cd2d3d3256ed3ecf14893f/gwt-dev-2.8.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/1.3.9/40719ea6961c0cb6afaeb6a921eaa1f6afd4cfdf/jsr305-1.3.9.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.errorprone/error_prone_annotations/2.0.12/8530d22d4ae8419e799d5a5234e0d2c0dcf15d4b/error_prone_annotations-2.0.12.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.j2objc/j2objc-annotations/1.1/976d8d30bebc251db406f2bdb3eb01962b5685b3/j2objc-annotations-1.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/20.0/89507701249388e1ed5ddcf8c41f4ce1be7831ef/guava-20.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.6.2/f1bc476cc167b18e66c297df599b2377131a8947/gson-2.6.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/dcc2193db20e19e1feca8b1240dbbc4e190824fa/asm-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-util/5.0.3/1512e5571325854b05fb1efce1db75fcced54389/asm-util-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-commons/5.0.3/a7111830132c7f87d08fe48cb0ca07630f8cb91c/asm-commons-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/colt/colt/1.2.0/abc984f3adc760684d49e0f11ddf167ba516d4f/colt-1.2.0.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/ant/ant/1.6.5/7d18faf23df1a5c3a43613952e0e8a182664564b/ant-1.6.5.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.2/8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5/commons-collections-3.2.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.4/b1b6ea3b7e4aa4f492509a4952029cd8e48019ad/commons-io-2.4.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/com.ibm.icu/icu4j/50.1.1/c1267563fd08f2885bc1f934ddaca15d19c3d888/icu4j-50.1.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/tapestry/tapestry/4.0.2/e855a807425d522e958cbce8697f21e9d679b1f7/tapestry-4.0.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/net.sourceforge.htmlunit/htmlunit/2.19/230f011fa87e96ff4115cd8c9d1572572d718b3e/htmlunit-2.19.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-webapp/9.2.14.v20151106/773f1c45f6534bff6313997ab3bdbe25533ee255/jetty-webapp-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-servlets/9.2.14.v20151106/a75c78a0ee544073457ca5ee9db20fdc6ed55225/jetty-servlets-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/jetty-annotations/9.2.14.v20151106/bb7030e5d13eaf9023f38e297c8b2fcae4f8be9b/jetty-annotations-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.eclipse.jetty/apache-jsp/9.2.14.v20151106/756745c6efff964ae8d183866b962a534f20e30/apache-jsp-9.2.14.v20151106.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/5.0.3/287749b48ba7162fb67c93a026d690b29f410bed/asm-tree-5.0.3.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/xalan/xalan/2.7.2/d55d3f02a56ec4c25695fe67e1334ff8c2ecea23/xalan-2.7.2.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.4/5fe28b9518e58819180a43a850fbc0dd24b7c050/commons-lang3-3.4.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.5.1/7e3cecc566df91338c6c67883b89ddd05a17db43/httpclient-4.5.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.5.1/96823b9421ebb9f490dec837d9f96134e864e3a7/httpmime-4.5.1.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.10/4b95f4897fa13f2cd904aee711aeafc0c5295cd8/commons-codec-1.10.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/net.sourceforge.htmlunit/htmlunit-core-js/2.17/4316d68f449d42f69faf4ee255aa31b03e4f7dd5/htmlunit-core-js-2.17.jar:/home/myusername/.gradle/caches/modules-2/files-2.1/xerces/xercesImpl/2.11.0

Missing Custom Linker Output Files when using GWT Eclipse Plugin

2016-11-16 Thread bobbitdiddle
When using the GWT 2.7 Eclipse Plugin and a custom linker, if I create a 
new artifact, foo.js, inside the linker, it doesn't show up when I try to 
load it from the main web page of my application.  I need to create this 
file to dynamically load certain script files.  I already observed that the 
.nocache.js that's served to the browser is different from the one 
that I actually emit in the linker - so this is an attempt to work around 
that.

Is this a known limitation, that any files you create are just thrown away 
and not served back to the application?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Browser.getWindow().newXMLHttpRequest()

2016-11-16 Thread P.G.Taboada
Hi,

I want to upload a file using ajax/ elemental.

I already have the file. How do I get a formdata populated and sent?

bgds,

Papick

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can't build maven sample GWT app, generated by webAppCreator

2016-11-16 Thread Thomas Broyer


On Wednesday, November 16, 2016 at 4:10:04 PM UTC+1, vitrums wrote:
>
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WebApp ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 5 source files to 
> C:\temp\mvnSampleGwtApp\WebApp\target\WebApp-1.0-SNAPSHOT\WEB-INF\classes
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
> header (bad signature)
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
> invalid LOC header (bad signature)
>

Looks like you have corrupted JARs. Try re-downloading them (delete them 
and re-run Maven) 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Can't build maven sample GWT app, generated by webAppCreator

2016-11-16 Thread vitrums
[INFO] Scanning for projects...
[INFO] 

[INFO] 

[INFO] Building com.example.webapp.WebApp 1.0-SNAPSHOT
[INFO] 

[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
WebApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
C:\temp\mvnSampleGwtApp\WebApp\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WebApp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to 
C:\temp\mvnSampleGwtApp\WebApp\target\WebApp-1.0-SNAPSHOT\WEB-INF\classes
[WARNING] error reading 
C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
header (bad signature)
[WARNING] error reading 
C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
invalid LOC header (bad signature)
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-sources (default) @ WebApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) 
@ WebApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
C:\temp\mvnSampleGwtApp\WebApp\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
WebApp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to 
C:\temp\mvnSampleGwtApp\WebApp\target\test-classes
[WARNING] error reading 
C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
header (bad signature)
[WARNING] error reading 
C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
invalid LOC header (bad signature)
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-test-sources (default) @ WebApp 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ WebApp ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:test (default) @ WebApp ---
[INFO] GWT tests report directory: 
C:\temp\mvnSampleGwtApp\WebApp\target\surefire-reports

---
 T E S T S
---
Running com.example.webapp.WebAppSuite
Starting Jetty on port 0
   [WARN] ServletContainerInitializers: detected. Class hierarchy: empty
Loading inherited module 'com.example.webapp.WebAppJUnit'
   Loading inherited module 'com.example.webapp.WebApp'
  Loading inherited module 'com.google.gwt.user.User'
 Loading inherited module 'com.google.gwt.event.Event'
Loading inherited module 'com.google.gwt.dom.DOM'
   Loading inherited module 'com.google.gwt.safehtml.SafeHtml'
  Loading inherited module 'com.google.gwt.http.HTTP'
 Loading inherited module 'com.google.gwt.user.Timer'
[ERROR] Line 19: Unexpected exception while 
processing element 'source'
java.lang.NoClassDefFoundError: org/apache/tools/ant/types/ZipScanner
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getScanner(DefaultFilters.java:240)
at 
com.google.gwt.dev.resource.impl.DefaultFilters$4.(DefaultFilters.java:371)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getCustomFilter(DefaultFilters.java:370)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.customJavaFilter(DefaultFilters.java:301)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackageImpl(ModuleDef.java:257)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackage(ModuleDef.java:246)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:860)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:817)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__source_end(ModuleDefSchema.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
com.google.gwt.dev.util.xml.HandlerMethod.invokeEnd(HandlerMethod.java:272)
at 
com.google.gwt.dev.util.xml.ReflectiveParser$Impl.endElement(ReflectiveParser.java:174)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parse

Re: Problem with GWT 2.8

2016-11-16 Thread vitrums
Math.abs(Double.NaN) < 0.0001 = false
!(Math.abs(Double.NaN) < 0.0001) = true
tested with jdk1.8.0_111, IDE Eclipse neon, gwt2.8.0, superdev mode, 
browser Chrome

On Wednesday, November 16, 2016 at 10:13:26 AM UTC+3, Kevin Langille wrote:
>
> Hi everyone,
>
> I have discovered a strange behavior in GWT 2.8. We were experiencing a 
> bug in our code and I have boiled it down to one line in the client side 
> code.
>
> The following line returns false which is expected.
>
> Math.abs(Double.NaN) < 0.0001
>
> But applying not operator to the same line also returns false.
>
> !(Math.abs(Double.NaN) < 0.0001)
>
> We are able to avoid this situation with additional checks but its seems 
> like a bug to me. Is anyone else able to confirm this issue? This was 
> working as expected in 2.7.
>
> Thanks,
> Kevin
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.