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 

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 

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 

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 

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.