Elemental2 RC1: RegExp disappeared?

2018-02-05 Thread Thomas Broyer
Native types have been renamed with a Js prefix: https://static.javadoc.io/com.google.elemental2/elemental2-core/1.0.0-RC1/elemental2/core/JsRegExp.html -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiv

Re: Migrating from GWT 2.5.1 to 2.8.2 - Problem with Super dev mode

2018-02-05 Thread Thomas Broyer
h; could be a typo, or maybe you forgot to include a classpath > entry for source? > > > Ludovit > > Le dimanche 4 février 2018 22:43:57 UTC+1, Thomas Broyer a écrit : >> >> Try package instead of prepare-package then (my bad, you should never use >> a phase e

Re: Migrating from GWT 2.5.1 to 2.8.2 - Problem with Super dev mode

2018-02-04 Thread Thomas Broyer
Try package instead of prepare-package then (my bad, you should never use a phase earlier than package in a multi-module Maven project, as a rule if thumb --there are few exceptions, as always, depends on the project though) -- You received this message because you are subscribed to the Google

Re: Migrating from GWT 2.5.1 to 2.8.2 - Problem with Super dev mode

2018-02-03 Thread Thomas Broyer
mvn prepare-package -pl web-client -am -DskipTests ? (you don't just want to gwt:compile, you want to compile the shared module, process ressources, compile the web-client module, and gwt:compile it) -- You received this message because you are subscribed to the Google Groups "GWT Users" group

Re: Migrating from GWT 2.5.1 to 2.8.2 - Problem with Super dev mode

2018-02-03 Thread Thomas Broyer
You can also use Super Dev Mode with bookmarklets (without -launcherDir), or setup a reverse proxy. -- 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-tool

Re: Migrating from GWT 2.5.1 to 2.8.2 - Problem with Super dev mode

2018-02-01 Thread Thomas Broyer
On Thursday, February 1, 2018 at 6:11:51 PM UTC+1, Martones wrote: > > Hi everyone, and Thomas especially :p > > I'm migrating a larger legacy project to the actual GWT standards. I'm > running into many problems but I'm sure they are all due to my > misunderstanding of how to wire modules betw

Re: What is Wrong With GWT Widgets

2018-01-23 Thread Thomas Broyer
On Monday, January 22, 2018 at 11:09:27 PM UTC+1, Mutaz Alghafary wrote: > > What is exactly the problem with GWT Widgets, I am new to GWT and I have > been watching some sessions about the future of GWT , it seems everyone > agrees that you should not be using GWT Widgets, and use things like

Re: JUnit changes from 2.7 to 2.8

2018-01-17 Thread Thomas Broyer
On Wednesday, January 17, 2018 at 5:07:46 PM UTC+1, Byron Ludwig wrote: > > Hi, > > Could someone please explain how GWT now compiles and runs JUnit test > cases as I have just upgraded my code base from 2.7 to 2.8.2 and now none > of my GWT test cases work. > What has changed between releases?

Re: Chrome debug crash with super devmode

2018-01-16 Thread Thomas Broyer
IIRC, some (many?) people aren't using source maps at all, using -style PRETTY to get readable JS code. That might be an acceptable workaround in your case. On Tuesday, January 16, 2018 at 10:49:16 AM UTC+1, Joffrey Diebold wrote: > > Hi, > I can't use super devmode with Chrome for debugging bec

Re: GWT 2.8.2 release

2018-01-16 Thread Thomas Broyer
On Tuesday, January 16, 2018 at 10:47:51 AM UTC+1, Jörg Pfründer wrote: > > Dear GWT-Team, > > thank you that you have done a great job in the past. We have a large > codebase strongly relying on GWT. However the last release has caused big > pain to me: > > I have tried to update from version

Re: @FunctionalInterface VS @JsFunction

2018-01-15 Thread Thomas Broyer
Which is not possible due to the many contraints of JsFunction, that would break a whole lot of apps. -- 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-to

Re: @FunctionalInterface VS @JsFunction

2018-01-15 Thread Thomas Broyer
On Monday, January 15, 2018 at 4:03:11 PM UTC+1, Jan Blok wrote: > > Hi, > > Would it be possible for GWTc to handle java.lang.FunctionalInterface as > if it was jsinterop.annotations.JsFunction ? > No, if only because JsFunction has many constraints: http://www.gwtproject.org/javadoc/latest/

Re: Which GWT plugin for Eclipse?

2018-01-15 Thread Thomas Broyer
There's no "official" plugin. All I can say (not being an Eclipse user) is that https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html is the only one receiving updates, so this is the recommended one (and likely the only one that actually supports recent versions of Eclip

Re: Debugging GWT Client side code

2018-01-09 Thread Thomas Broyer
On Tuesday, January 9, 2018 at 8:06:26 AM UTC+1, Monika Yadav wrote: > > Hi All, > > I am trying to debug the GWT client code while redirecting from a > FreeMarker screen to a GWT screen. I am not able to do this using eclipse > due to missing gwt.codesvr agrument while launching the GWT screen

Re: JsInterop Array

2017-12-19 Thread Thomas Broyer
This is not "garbage", they are "expando properties". It shouldn't be a problem in practice for any well-coded JS lib. If your JS lib fails here, it probably means it iterates over the array using a for…in loop: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...i

Veracode Reporting Vulnerabilities on GWT-generated nocache.js

2017-12-04 Thread Thomas Broyer
See https://groups.google.com/forum/#!topic/google-web-toolkit/Tx29wSZ8SZQ for the first one. Second snippet looks like the code to install GWT *.cache.js into the hidden iframe. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from

Re: How to slide out a panel (similar to gwtproject.org front page)

2017-12-03 Thread Thomas Broyer
On Friday, December 1, 2017 at 5:10:29 PM UTC+1, Ahmad Bawaneh wrote: > > Why not to checkout the gwt project site and see how it is done there? Fwiw: https://gwt.googlesource.com/gwt-site-webapp/ -- You received this message because you are subscribed to the Google Groups "GWT Users" group

Re: JsInterop: annotations not found

2017-12-03 Thread Thomas Broyer
On Sunday, December 3, 2017 at 8:00:29 AM UTC+1, Bob Woodbury wrote: > > I am learning to use jsinterop, and I am stuck at square one -- javac > won't recognize the @JsType annotation. > > I'm using the jdk1.8.0_102 and apache-ant-1.10.1 and gwt-2.8.2 on Linux > (Fedora). > > My project compile

Re: JsInterop - How to access window object

2017-11-29 Thread Thomas Broyer
On Wednesday, November 29, 2017 at 4:44:22 PM UTC+1, grebesche wrote: > > Hi, > I want to use JsInterop to interact with a library that define a global > object in the window (`window.gantt`). > I have defined the @JsType interface for this object `gantt`. > > But now, how can I access this objec

Re: compilerArgs setProperty multi values - [ERROR] Unable to parse JavaScript

2017-11-29 Thread Thomas Broyer
> Nov 29, 2017 9:22:19 PM com.gargoylesoftware.htmlunit.WebClient > printContentIfNecessary > INFO: > > > Error 404 Not Found > > HTTP ERROR 404 > Problem accessing /com.learnkeeper.App.JUnit/undefined.cache.js. Reason: > Not FoundPowered by > Jetty:// > > > > >

Re: compilerArgs setProperty multi values - [ERROR] Unable to parse JavaScript

2017-11-29 Thread Thomas Broyer
I would say that you're not supposed to set compiler.stackMode to anything but a single value, because it doesn't have a property-provider; and that's exactly the problem with the generated JS: the snippet where the error occurs is a property provider, but because there's no for that property,

Re: Code Scanner Reporting Vulnerabilities on GWT-generated code

2017-11-24 Thread Thomas Broyer
On Friday, November 24, 2017 at 3:13:08 AM UTC+1, Aleks wrote: > > Hi, > > we are currently going through a security audit and as part of that doing > static code scans. The scanner has returned two issues with the > GWT-generated .nocache.js files. > > We can't really fix these as they are gen

Re: JsInterop Shared Model + REST API

2017-11-18 Thread Thomas Broyer
On Saturday, November 18, 2017 at 9:52:09 AM UTC+1, Chris L wrote: > > I'm trying to create a shared model in my GWT 2.8.2 application that I can > use both at the server and in GWT client code. > > My research/Google Fu tells me that this might be possible with JsInterop > but since I'm new to

Re: Editors

2017-11-17 Thread Thomas Broyer
So you're getting "some data changed" events bubble up to the root, which flushes editors (i.e. get all the data up from all editors), to compute fields and edit again (i.e. push data down again to all editors)? That's pretty inefficient. With that info, I think I wouldn't use EditorDriver mech

Re: Editors

2017-11-16 Thread Thomas Broyer
And in case you think "errors" are not a good fit, I think you can do it all by yourself using EditorVisitor⋅s (this is how errors actually work IIRC), and probably custom interfaces for your editors (fwiw, to determine the isDirty flag, the EditorDriver does a first visit using an EditorVisito

Re: Deploying symbolMaps in a production build

2017-11-15 Thread Thomas Broyer
The gwt-site-webapp also has such configuration; it's used for the menu/navigation at http://www.gwtproject.org https://gwt.googlesource.com/gwt-site-webapp (see pom.xml and *.gwt.xml files) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsu

Re: Dynamic values in json parsing with GWT

2017-11-15 Thread Thomas Broyer
On Wednesday, November 15, 2017 at 11:19:56 AM UTC+1, Jens wrote: > > > Thanks for the early response. Can you give an example of getData(String >> key) method. >> > > Sure, assuming your values are only strings you can do > > public native String getData(String key) /*-{ > return this.data[ke

Re: Datepicker don't closes after picking same date GWT

2017-11-13 Thread Thomas Broyer
Fwiw, I updated my StackOverflow answer: https://stackoverflow.com/a/47236713/116472 On Monday, November 13, 2017 at 6:04:42 PM UTC+1, Ameen Malhans wrote: > > > > down votefavorite > > >

Re: Incremental GWT compiles when running in Google Cloud Platform

2017-11-12 Thread Thomas Broyer
On Sunday, November 12, 2017 at 11:40:39 PM UTC+1, Craig Mitchell wrote: > > Thanks Freddy. I'm not using Maven. Your tip on launcherDir lead me to > find the GWT Code Server, which is what I need (didn't actually need to set > the launcherDir value). > > So, I now need to run two servers: >

Re: XMLHttpRequest getResponse instead of getResponseText to get arraybuffer data

2017-11-09 Thread Thomas Broyer
ts when you access, for example, a > google drive image. > One could use these urls as permalinks to their drive images. (Not what > Google want I guess). > > Ian > > On Monday, 4 June 2012 23:59:35 UTC+10, Thomas Broyer wrote: >> >> >> >> On Monday, June 4, 2

Re: GWT Update widget in DOM when logical contents changed

2017-11-08 Thread Thomas Broyer
On Wednesday, November 8, 2017 at 2:37:07 PM UTC+1, Paul Topley wrote: > > Hi, > > This should be a fairly straight forward question. Ive been relentlessly > googling trying to find an answer to this but surprisingly I have found > nothing. > > I add a widget to a LayoutPanel, which is subseque

Re: GWT multilanguage and fix direction

2017-11-08 Thread Thomas Broyer
On Wednesday, November 8, 2017 at 12:04:53 PM UTC+1, Amir Norozi wrote: > > > > Hi guys! > I've a GWT project that is many language like french,english and specially

Re: GWT Maven Plugin (tbroyer) on windows in combination with Jetty

2017-11-08 Thread Thomas Broyer
On Tuesday, November 7, 2017 at 11:52:16 AM UTC+1, DavidN wrote: > > Thanks Thomas: the first example works! > > Maybe you should include it in your maven archetypes ? (Or maybe that is > already the case - I don't have access to the latest versions from my dev > env) > Done. Anyone on Windo

Re: GWT Maven Plugin (tbroyer) on windows in combination with Jetty

2017-11-07 Thread Thomas Broyer
See https://www.eclipse.org/jetty/documentation/9.4.x/troubleshooting-locked-files-on-windows.html In DevMode, we're setting the (undocumented afaict) webappcontext's init-param (https://github.com/gwtproject/gwt/blob/2.8.2/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java#L539-L541

GWT project build settings

2017-11-06 Thread Thomas Broyer
The BUILD files are actually Blaze build files, not Bazel ones; they're the ones Google uses internally. Outside Google, we're using Ant to build GWT (as explained in the README) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from

Re: Migrating from GWT 2.5.1 to 2.8.2 - Problem with Super dev mode

2017-10-31 Thread Thomas Broyer
On Tuesday, October 31, 2017 at 10:31:39 AM UTC+1, Martones wrote: > > Hey guys, > > I'm trying to migrate my app which looks like this : > GWT 2.5.1 front, PHP back, no maven -> GWT 2.8.2 front, PHP back, maven > with gwt-maven-plugin. > > I manage to *mvn gwt:compile* and *mvn gwt:run-codeser

cast Element to Elemental2

2017-10-18 Thread Thomas Broyer
You should be able to cast a JSO to a JsType (native ones only?) And in this case they indeed represent the same kind of objects so this is safe. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emai

Re: Issue compiling a GWT project that uses Dagger 2.5

2017-10-14 Thread Thomas Broyer
But really, use Dagger 2.12 (or at least 2.11, as 2.12 has had a number of bugs reported) ;-) -- 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+un

Re: Custom Events and Elements with Elemental 2

2017-10-13 Thread Thomas Broyer
r polymer elements, so no need to be out >> of Java world for most cases. >> >> >> On Thursday, October 12, 2017 at 7:08:05 AM UTC-4, nikola wrote: >>> >>> Ok, Thanks! I'll try with web components. As a java programer I'v been >>> tryin

Re: Custom Events and Elements with Elemental 2

2017-10-12 Thread Thomas Broyer
> *HTMLElement > parent = Js.*cast*(DomGlobal.*document*.createElement(*"div"*)); > parent.appendChild(element); > parent.removeChild(element); > } > } > > This way we are adding events directly and there is no additional > synchronization w

Re: Custom Events and Elements with Elemental 2

2017-10-12 Thread Thomas Broyer
On Wednesday, October 11, 2017 at 4:12:14 PM UTC+2, nikola wrote: > > > Users would expect to have events with source from where event was > fired. That was source field in GWT events. In your implementation we will > need to intercept DOM event and fire new event with source field of custom

Re: Contributing: eclipse README outdated?

2017-10-11 Thread Thomas Broyer
On Wednesday, October 11, 2017 at 11:13:45 AM UTC+2, Freddy Boucher wrote: > > I'm working on https://gwt-review.googlesource.com/c/gwt/+/14430 > > I rebased the original commit and makes some changes. > But now when I want to push, I get "*you have no 'forge author' > permission"* > > remote:

Re: Contributing: eclipse README outdated?

2017-10-11 Thread Thomas Broyer
On Wednesday, October 11, 2017 at 11:09:27 AM UTC+2, Jens wrote: > > For IntelliJ I once did create a patch to add project files for IntelliJ > > https://gwt-review.googlesource.com/c/gwt/+/12380 > > But I guess these files are slightly outdated as well nowadays. That's the reason I'd prefer

Re: Exposing GWT components based on Elemental2 to TypeScript ?

2017-10-11 Thread Thomas Broyer
On Wednesday, October 11, 2017 at 10:43:06 AM UTC+2, DavidN wrote: > > Is there any tentative release date for j2cl ? I was not present at the > GWTCon, maybe it was mentioned there ? Or is it the typical “It will be > released when it is ready” approach ? > It's a Google project, so we'd have

Re: Contributing: eclipse README outdated?

2017-10-11 Thread Thomas Broyer
On Wednesday, October 11, 2017 at 10:34:56 AM UTC+2, Freddy Boucher wrote: > > As always, you spotted it right! (except for the blacklist: only > **/EmulatedCharset.java is necessary) > > I will submit a patch for .eclipse/user/.classpath. > Great! > But just to know, Google doesn't use Eclip

Re: Issue compiling a GWT project that uses Dagger 2.5

2017-10-11 Thread Thomas Broyer
I repeat: the problem I believe (haven't tried) is having dagger-compiler as a *dependency*. Remove it as a dependency, and add the annotationProcessorPaths back. On Wednesday, October 11, 2017 at 9:19:46 AM UTC+2, zakaria amine wrote: > > I have updated github. It did not work either way. > >

Re: Exposing GWT components based on Elemental2 to TypeScript ?

2017-10-10 Thread Thomas Broyer
On Tuesday, October 10, 2017 at 5:12:51 PM UTC+2, DavidN wrote: > > I'm currently investigating how to expose a GWT based component (that uses > JsInterop and Elemental2) to JavaScript and TypeScript. > The goal is that this component should be reusable in an Angular 4 > application, but also in

Re: Contributing: eclipse README outdated?

2017-10-10 Thread Thomas Broyer
It's highly probable that the provided Eclipse configuration (in this case eclipse/user/.classpath) is outdated. It looks like you'd have to add "core/super/com/google/gwt/emul" ("core" being "user" actually on disk) as a source root but only whitelist javaemul/internal/**/*.java , and blacklist

Re: Issue compiling a GWT project that uses Dagger 2.5

2017-10-07 Thread Thomas Broyer
IIRC, dagger-compiler 2.5 bundles JDT (obviously in a different version than the one used by GWT). dagger-compiler should ideally never be in your compile classpath (use a separate processorpath; i.e. maven-compiler-plugin's annotationProcessorPaths) You can also try a more recent version (2.11)

Re: How to use JsInterop in GWT

2017-10-06 Thread Thomas Broyer
On Friday, October 6, 2017 at 4:32:47 PM UTC+2, Daneel Yaitskov wrote: > > Hi, > > > I just started playing with Gwt and want to try JsInterop. > > This is very important feature for me. > > I have a big part of java 8 code needs to be translated to JavaScript. > > > > I copied a demo project w

Re: application compiles in 2.8 but does not run

2017-10-02 Thread Thomas Broyer
Do you mean that the class (or superclass) had a public void onModuleLoad() method but no implements EntryPoint? I know that the mere presence of an onModuleLoad method (even a static one) was enough to turn any class into an entry point, and it's possible that it changed at some point; but that

Re: GWT 2.8.1 NoClassDefFoundError OptionJsInteropMode

2017-09-29 Thread Thomas Broyer
More precisely, you probably have a gwt-codeserver.jar from 2.7 (or a backwards compatible equivalent) and a gwt-dev.jar from 2.8. Actually, gwt-codeserver is useless starting with GWT 2.7, as it's merged into gwt-dev at build time. -- You received this message because you are subscribed to the

Re: Problems moving JsInterop from GWT 2.7 to 2.8

2017-09-29 Thread Thomas Broyer
On Friday, September 29, 2017 at 11:09:42 AM UTC+2, Jürgen Beringer wrote: > > Hey, > > currently I tried the 2. time to move our application from gwt 2.7 to gwt > 2.8, but I have big problems with the changes of JsInterop. > > The application contains a serverside java part, running in a jetty

Plurals (using 2 plural forms in one paragraph not working -> bug in GWT compiler?)

2017-09-25 Thread Thomas Broyer
Question solved on SO: https://stackoverflow.com/questions/46417401/gwt-i8n-plurals-using-2-plural-forms-in-one-paragraph-not-working-bug-in-gwt -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emai

WebAssembly a good fit for the future of GWT?

2017-09-22 Thread Thomas Broyer
GWT is moving in the opposite direction: more interop with JS, less of a black box. If you want to compile Java to webasm, there are other projects (I believe), but this is not GWT. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe f

Re: What are the changes done in gwt related to strict csp and how we can code to be in comliance with strict csp policies . #content securoty policy ...

2017-09-21 Thread Thomas Broyer
On Thursday, September 21, 2017 at 9:34:01 PM UTC+2, Sahil Aggarwal wrote: > > What are the changes done in gwt related to strict csp and how we can code > to be in comliance with strict csp policies . #content securoty policy ... > > What are techniques or coding guildline for csp . > > Is gwt

Re: elemental.json confusion/error

2017-09-21 Thread Thomas Broyer
On Thursday, September 21, 2017 at 11:29:31 AM UTC+2, Vassilis Virvilis wrote: > > Hi, > > On Wed, Sep 20, 2017 at 5:18 PM, Thomas Broyer wrote: > >> >> You might also want to have a look at elemental2-core: >> https://javadoc.io/doc/com.google.elemen

Re: Problem compiling GWT code with Java9

2017-09-21 Thread Thomas Broyer
Fwiw, I confirm that HEAD-SNAPSHOT works with Java 9: https://travis-ci.org/tbroyer/gwt-maven-plugin/jobs/277854932 On Wednesday, September 20, 2017 at 10:06:51 AM UTC+2, Thomas Broyer wrote: > > There have been some changes [1,2] to make it (at least partially) work > with a Java 9 VM

Re: elemental.json confusion/error

2017-09-20 Thread Thomas Broyer
On Wednesday, September 20, 2017 at 12:49:21 PM UTC+2, max.d...@corussoft.de wrote: > > Hi there > > I recently started using elemental.json. But I recently stumbled upon > strange (expected?) behaviour. Is there any good documentation? The javadoc > is quiet lacking, at least in this regard.

Re: SuperDevMode recompiles RPC since they are unchanged

2017-09-20 Thread Thomas Broyer
On Wednesday, September 20, 2017 at 11:25:45 AM UTC+2, Ignacio Baca Moreno-Torres wrote: > > Eh! the bookmark (or similar tool > https://gist.github.com/ibaca/1dc87a58ee542840a5f90c5ff2931329) are still > useful if you use only the codeserver. > If you mean "only the codeserver", without an H

Re: Problem compiling GWT code with Java9

2017-09-20 Thread Thomas Broyer
There have been some changes [1,2] to make it (at least partially) work with a Java 9 VM; you can try HEAD-SNAPSHOT (from https://oss.sonatype.org/content/repositories/google-snapshots/) until we release 2.8.2 with the changes. [1] https://github.com/gwtproject/gwt/commit/87f27659af55d7d549521

Re: SuperDevMode recompiles RPC since they are unchanged

2017-09-20 Thread Thomas Broyer
On Tuesday, September 19, 2017 at 5:30:11 PM UTC+2, Jens wrote: > > IMHO it is preferable to launch SuperDevMode and your server (be it jetty > or anything else) separately so you can restart them separately. We do that > at work and only rarely restart SuperDevMode. > I wholeheartedly agree,

Re: Test Strategies for Modern GWT (i.e. Elemental2 etc)

2017-09-19 Thread Thomas Broyer
On Tuesday, September 19, 2017 at 9:02:45 AM UTC+2, Peter Donald wrote: > > Excellent - I will look into it. I had always assumed as the modern code > did not use GWT.create() anymore that GwtMockito was no longer necessary > but I guess it must have other goodies in there ;) > > Anyhoo - will

Re: Java syntax question.

2017-09-14 Thread Thomas Broyer
On Thursday, September 14, 2017 at 5:48:26 PM UTC+2, Ananchai Srirochanakul wrote: > > Thank you so much. I understand it now. > > On Thursday, September 14, 2017 at 12:46:58 AM UTC-7, Jens wrote: >> >> https://docs.oracle.com/javase/tutorial/extra/generics/wildcards.html > > > BTW, the *only* sp

Re: Iframe = multithreading ???

2017-09-14 Thread Thomas Broyer
On Thursday, September 14, 2017 at 12:09:37 PM UTC+2, Paul Porombka wrote: > > Hi Ben, > > I see the time when you've posted the message and see the answers here, so > I codn;t stop to write something here. > I will answer YES to your question, but it depends. > > Generally, IFrame under the sam

Re: How do you use GWT "Genertor" class?

2017-09-13 Thread Thomas Broyer
On Wednesday, September 13, 2017 at 6:17:07 AM UTC+2, Ananchai Srirochanakul wrote: > > Hi there, > > I have questions about this "Generator" class below. The code below is the > one that generate the GWT Sample page, that you can see here > http://samples.gwtproject.org/samples/Showcase/Showc

GWT Syntax question.

2017-09-11 Thread Thomas Broyer
This is not gwt-specific, it's stand Java syntax. It defines a generic method. -- 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...@google

GWT splitting modules

2017-09-11 Thread Thomas Broyer
Yes you can, and you should! You need to package the sources of the shared module and make sure the client module has them in it's dependencies. Have a look at the modular-webapp archetype in https://github.com/tbroyer/gwt-maven-archetypes for an example of such setup. -- You received this me

JavascriptObject.createObject().cast() ClassCastException

2017-09-08 Thread Thomas Broyer
Do you have any other class implementing the failing interface? When there's only one implementation, the compiler can "tighten" the types and consider/replace every use of the interface as/with the implementing class. The class then extends JSO so GWT knows it doesn't need any cast (actually, it

Re: divide by zero error from com.google.gwt.logging.client.LogConfiguration.

2017-09-07 Thread Thomas Broyer
It looks like the error is in a setProgress method, probably your code (or a third party dependency). Maybe the browser doesn't give you the size of the file you're uploading (for whatever reason) and you're doing a division by 0 as a result when computing progress ratio. -- You received this

Re: Weird behavior from JsInterop for uninitialized fields/attributes.

2017-08-29 Thread Thomas Broyer
On Tuesday, August 29, 2017 at 12:36:11 PM UTC+2, zakaria amine wrote: > > Hello, > > This is a minor remark, and it does affect the functioning of JsInterop, > as far as I experienced, but may be worth looking into by GWT folks. I have > the following Js object that I am wrapping in Java: > >

Re: ClassCastException in generics

2017-08-23 Thread Thomas Broyer
On Wednesday, August 23, 2017 at 3:02:08 PM UTC+2, Kirill Prazdnikov wrote: > > >> >>> Then my next question: >>> >>> if GWT generates checkckast as "yze_g$(fileBuffer_0_g$, >>> $wnd.ArrayBuffer)", where "$wnd.ArrayBuffer" is a type >>> how can I ask GWT to generate checkckast to ArrayBuffer,

Re: ClassCastException in generics

2017-08-23 Thread Thomas Broyer
On Wednesday, August 23, 2017 at 2:31:20 PM UTC+2, Kirill Prazdnikov wrote: > > public static native FileReader newFileReader() /*-{ >> return new *$wnd*.FileReader(); >> }-*/; >> >> > This will not help, fileReader.resultArrayBuffer()returns not a instance > of $wnd.ArrayBuffer anyway. > O

Re: ClassCastException in generics

2017-08-23 Thread Thomas Broyer
On Wednesday, August 23, 2017 at 2:15:32 PM UTC+2, Kirill Prazdnikov wrote: > > instanceOfArrayBuffer for file = false >> instanceOfArrayBuffer for good copy = true >> >> Uncaught Error: java.lang.ClassCastException >> > > I think that it is a problem for generics. > GWT will fail its

Re: ClassCastException in generics

2017-08-23 Thread Thomas Broyer
On Wednesday, August 23, 2017 at 1:29:51 PM UTC+2, Kirill Prazdnikov wrote: > > Is the FileReader "instanceof $wnd.FileReader"? (Walk up the chain) > > > What is interesting, FileReader created with JSNI *is not* > isInstanceOfFileReader, > > public static native FileReader newFileReader() /*-{

Re: ClassCastException in generics

2017-08-22 Thread Thomas Broyer
Is the FileReader "instanceof $wnd.FileReader"? (Walk up the chain) -- 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.

Re: ClassCastException in generics

2017-08-22 Thread Thomas Broyer
If isInstanceOfArrayBuffer is false, then this is likely the root issue. And using name="Object" or name="?" is likely the only workaround until you can fix the ArrayBuffer provenance. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscrib

Re: ClassCastException in generics

2017-08-22 Thread Thomas Broyer
Could it possibly be that the ArrayBuffer is coming from another browsing context? (iframe) What would the following output? private native boolean isInstanceOfArrayBuffer(Object x) /*-{ return x instanceof $wnd.ArrayBuffer; }-*/; On Tuesday, August 22, 2017 at 2:04:30 PM UTC+2, Kirill Prazdni

Re: has anyone tried building a gwt application using buck ?

2017-08-21 Thread Thomas Broyer
On Monday, August 21, 2017 at 9:54:09 AM UTC+2, deba...@ainosoft.com wrote: > > Is there any effort you know for creating a gradle gwt plugin on similar > lines to your gwt-maven-plugin ? > There's IMO no point in creating a Gradle plugin "on similar lines", because it's so easy to just use a

Re: has anyone tried building a gwt application using buck ?

2017-08-21 Thread Thomas Broyer
re is a better option ? > > thanks a ton in advance. > > On Sunday, August 20, 2017 at 11:40:10 PM UTC+5:30, Thomas Broyer wrote: >> >> >> On Sunday, August 20, 2017 at 2:37:51 PM UTC+2, Debasish Padhy wrote: >>> >>> Many thanks for such a detailed e

Re: GWT 2.6.1 BigInteger

2017-08-20 Thread Thomas Broyer
On Monday, August 21, 2017 at 1:13:42 AM UTC+2, Łukasz Bączek wrote: > > W dniu 21.08.2017 o 00:27, Thomas Broyer pisze: > > > > Like in any Java environment, as long as you only use the part of the > > API that's emulated in GWT: > > >

Re: GWT 2.6.1 BigInteger

2017-08-20 Thread Thomas Broyer
On Sunday, August 20, 2017 at 10:58:27 PM UTC+2, Łukasz Bączek wrote: > > W dniu 20.08.2017 o 21:16, Jens pisze: > > Because only the source (BigInteger.java) is inside the jar file but > > Eclipse only shows *.class files inside library jars. So it appears as > > if the package is empty, but i

Re: has anyone tried building a gwt application using buck ?

2017-08-20 Thread Thomas Broyer
On Sunday, August 20, 2017 at 2:37:51 PM UTC+2, Debasish Padhy wrote: > > Many thanks for such a detailed explanation but I am perplexed at your > understanding of the subject although you have never used it. > I have a (not so) secret interest in build tools ;-) (see most recent –though already

Re: ClassCastException in generics

2017-08-20 Thread Thomas Broyer
On Friday, August 18, 2017 at 4:01:47 PM UTC+2, Kirill Prazdnikov wrote: > > Hi, I`m always getting ClassCastException if I use @JsType(isNative = > true) object as a generic template argument. Is it possbile to do something with that ? > Is it possbile to avoid check-cast generation if the g

Re: has anyone tried building a gwt application using buck ?

2017-08-20 Thread Thomas Broyer
On Sunday, August 20, 2017 at 6:19:47 AM UTC+2, Debasish Padhy wrote: > > any advantages vs. troubles summary ? > > any links to guides for setting up ? > Even though this is not documented on buckbuild.com, Buck has built-in support for GWT with the gwt_binary rule. You can find an example in

Re: visibilitychange event

2017-08-08 Thread Thomas Broyer
You're misusing $entry(): it takes a function as argument and returns a function; it should be used to wrap the function(){}. -- 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

visibilitychange event

2017-08-07 Thread Thomas Broyer
In addition to $doc vs document, you should wrap your callback with $entry() -- 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...@googlegr

Re: GWT Plugin v3.0 and tbroyer maven integration with requestfactory

2017-08-02 Thread Thomas Broyer
On Wednesday, August 2, 2017 at 7:24:53 PM UTC+2, Sheldon Damons wrote: > > Hi Guys, > > I have been investigating migrating our current GWT Project to use > gwt-eclipse-plugin-v3 > together > with gwt-maven-plugin

Re: Upgrading to GWT 2.8.1 - GWTP Servlet Error

2017-07-21 Thread Thomas Broyer
You may want to use Maven rather than IntelliJ, or use the CodeServer (no idea how to do it, or if it's even possible) -- 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

Re: GWT 2.8.0 RC2 is here!

2017-07-21 Thread Thomas Broyer
the > IntelliJ module and > get it working, but that appears to not be the case. So I assume that to > *run* them separately > would have to mean splitting the client and server sides into separate > pom.xml within the project > and splitting the dependencies. Correct? >

Re: Upgrading to GWT 2.8.1 - GWTP Servlet Error

2017-07-20 Thread Thomas Broyer
Are you using AppEngine? How are you launching DevMode? Your Jetty 6 likely comes from the AppEngine SDK (it has only recently been upgraded to Jetty 9 AFAIK) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: SerializationException when application is modified

2017-07-19 Thread Thomas Broyer
On Tuesday, July 18, 2017 at 6:15:23 PM UTC+2, Óscar Frías Barranco wrote: > > Hi. > > When we modify the code of our GWT application, in particular the classes > that travel through GWT calls, these exceptions are generated for many > users for a few hours: > > com.google.gwt.user.client.rpc.S

Re: Deploying GWT application on a web server

2017-07-19 Thread Thomas Broyer
Just replace gwt-exporter's @Export with JsInterop annotations: https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit?usp=sharing On Wednesday, July 19, 2017 at 8:47:00 AM UTC+2, Frank wrote: > > https://github.com/manolo/gwt-exporter/wiki/Exporting-GWT-to-JS > > O

Re: Can I remove compile permutations for the default language

2017-07-18 Thread Thomas Broyer
You could try (though I'd been told years ago that it could cause some issues to "disable" the "default" locale) On Tuesday, July 18, 2017 at 8:50:16 AM UTC+2, Frank wrote: > > We are using our own I18N system with GWT based on dynamic string > internationalization. > So we actaully should not

Re: GWT SuperDev mode issue after migrating from 2.7.0 to 2.8.1 with application that uses Spring Framework

2017-07-17 Thread Thomas Broyer
On Monday, July 17, 2017 at 5:07:37 PM UTC+2, Ignacio Baca Moreno-Torres wrote: > > But this is not a multimodule project (means this is not a tbroyer > archetype multimodule project), you need a shared lib, and the client > should Not depend on the server, but if you continue with this layout

Re: GWT SuperDev mode issue after migrating from 2.7.0 to 2.8.1 with application that uses Spring Framework

2017-07-17 Thread Thomas Broyer
Pull request making the proposed changes (and a bit more): https://github.com/AndrewAni/GwtDev/pull/1 On Monday, July 17, 2017 at 11:45:06 AM UTC+2, Thomas Broyer wrote: > > > > On Monday, July 17, 2017 at 11:11:46 AM UTC+2, Andrei Anishchenko wrote: >> >> Hi, >>

Re: GWT SuperDev mode issue after migrating from 2.7.0 to 2.8.1 with application that uses Spring Framework

2017-07-17 Thread Thomas Broyer
On Monday, July 17, 2017 at 11:11:46 AM UTC+2, Andrei Anishchenko wrote: > > Hi, > > I have a Maven multi-module project that uses Spring Framework in the > backend. Everything was working fine until I tried to migrate from GWT > 2.7.0 to 2.8.1. Supposedly production mode works fine (never trie

Re: How to contact www.gwtproject.org Website?

2017-07-11 Thread Thomas Broyer
On Tuesday, July 11, 2017 at 12:42:19 PM UTC+2, salk31 wrote: > > I think Bob has a point. I don't think HTTPS helps that much. Isn't the > issue that somebody could generate a new binary that has a SHA1 that > matches the real binary? > Yes, but if you download the SDK through HTTPS, you know

Re: Unable to parse CSS - gwt 2.7 - Using DataGrid

2017-07-09 Thread Thomas Broyer
On Monday, July 10, 2017 at 2:36:00 AM UTC+2, Rohan Sachdeva wrote: > > Hi All, > > I am using GWT DataGrid in some application and facing following issue:- > > [ERROR] Unable to parse CSS > org.w3c.css.sac.CSSException: @def rules must specify an identifier and > one or more v

Re: Type Corruption migrating from GWT 2.6.1 => 2.7.0

2017-07-06 Thread Thomas Broyer
On Thursday, July 6, 2017 at 11:59:01 AM UTC+2, bobbit...@gmail.com wrote: > > OK, it looks like we have two "apps" each with its own entry point, but > they share the content of $wnd, which contains a JS Framework. So the > problem is that JS calls can enter either "app" and each "app" appears

<    1   2   3   4   5   6   7   8   9   10   >