Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Thomas Broyer
A status code of 0 is generally indicative of a cross origin request without CORS (or an aborted request or network error) -- 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

Re: GWT 2.8.0 released

2016-11-08 Thread Thomas Broyer
Basically, either you use "managed dependencies" (Maven, Gradle, Ivy, etc.) and it should resolve all dependencies for you; or you use the GWT SDK that you can download from the project website which bundles (almost) everything into 2 JARs. If you download from a Maven repo, then you'll need

Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Thomas Broyer
JsonpRequestBuilder has a default timeout of 10 seconds, whereas RequestBuilder doesn't have a timeout by default. http://www.gwtproject.org/javadoc/latest/com/google/gwt/jsonp/client/JsonpRequestBuilder.html#setTimeout(int) Anyway, if you can setup CORS on your server

Re: GWT Logger: your best practices, tips and reasonings.

2016-11-08 Thread Thomas Broyer
On Tuesday, November 8, 2016 at 4:36:20 AM UTC+1, vitrums wrote: > > Recently I found, that some log4j-like functionality in my client's code > could be handy. So with the GWT logging module I can pretty much have a > shared logging code, which is very convenient to use on both sides. The >

Re: GWT 2.7.0 Compile Errors

2016-11-08 Thread Thomas Broyer
On Tuesday, November 8, 2016 at 8:20:58 AM UTC+1, Majdi ABDELMOULA wrote: > > Thank you for your reponse. > >> the problem GXT is not free now. I will lost two old projects (projects >> since 6 years). I will use smart GWT for a new project, so i must start >> from zero, but i worry that

Re: GWT 2.8.0 released

2016-11-08 Thread Thomas Broyer
On Monday, November 7, 2016 at 11:17:10 PM UTC+1, Zeeshan Chughtai wrote: > > Hi, > > Thanks for this, really happy to have it around. > > We were using 2.8.0-beta1 version for a while without any major fuss. > > While upgrading to 2.8.0 released version, we get stuck with codeserver >

Re: GWT 2.7.0 Compile Errors

2016-11-07 Thread Thomas Broyer
On Monday, November 7, 2016 at 3:53:01 PM UTC+1, Majdi ABDELMOULA wrote: > > I have Compile an old GWT project under the plugin GWT 2.7.0 , but i have > some errors because the incompatibility between the old version and the new > version of the GWT. > What is the solution for this error ??? >

How to store configuration outside the database?

2016-11-06 Thread Thomas Broyer
Externalize into a JNDI Resource? https://tomcat.apache.org/tomcat-8.0-doc/jndi-resources-howto.html#JDBC_Data_Sources -- 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: Can a GWT Dev Mode plugin be rewritten for Chrome using NACL?

2016-11-06 Thread Thomas Broyer
On Sunday, November 6, 2016 at 10:55:56 AM UTC+1, Max Fromberger wrote: > > From my point of view the only future proof (because never to be > deprecated) way of debugging is debugging in JS, i.e. super dev mode. This > is going to work until the end of browsers. > I still believe one could

Re: Bug in Audio addEndedHandler

2016-11-06 Thread Thomas Broyer
On Sunday, November 6, 2016 at 6:10:08 AM UTC+1, Craig Mitchell wrote: > > If you want to listen for the end of an audio track, calling > MediaBase.addEndedHandler won't work, as it is using BrowserEvents.ENDED > which is set to "ended". > > The correct event is actually "onended". Ref: >

Re: Can a GWT Dev Mode plugin be rewritten for Chrome using NACL?

2016-11-05 Thread Thomas Broyer
On Saturday, November 5, 2016 at 11:23:33 AM UTC+1, Ariel Viera wrote: > > Is theoretically possible to port GWT Dev Mode plugin for Chrome using > PNACL or NACL > > No. Because communication between JS and NaCl is asynchronous, and DevMode MUST be blocking (and reentrant). (we've already had

Re: How do i return a proxied object from provider ?

2016-11-04 Thread Thomas Broyer
AFAIK, Guice doesn't create a proxy, it synthesizes a subclass that overrides matched methods and then instantiate them instead of the original class. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop

Re: GWT 2.8.0 is not compatible with java6

2016-11-04 Thread Thomas Broyer
With the exception of a few corner-cases, Java 6 source code is also Java 8 compliant; so the GWT Compiler should be able to process it even though it assumes Java 8 source code. But the question was about JVM requirements: gwt-servlet.jar is compiled as Java 7 bytecode in 2.8, so it requires

Re: How do i return a proxied object from provider ?

2016-11-04 Thread Thomas Broyer
Could you maybe create a Foo subclass? class SubFoo extends Foo { public SubFoo() { super(10); } } … bind(Foo.class).to(SubFoo.class); bindInterceptor(…)… On Friday, November 4, 2016 at 3:48:42 AM UTC+1, lei wang wrote: > > I want to add an interceptor to a 3rd party class. Since it does

[gwt-contrib] Re: About a proposed to change to SafeHtml's UriUtils

2016-11-03 Thread Thomas Broyer
On Thursday, November 3, 2016 at 5:33:31 PM UTC+1, Colin Alworth wrote: > > With 3.0 on the horizon, we've promised consistency of a sort in 2.x, and > without 3.0 actually in sight, 2.x is going to need to see active > development. Encouraging a third generation of url tools is not a bad >

Re: GWT 2.8.0 is not compatible with java6

2016-11-02 Thread Thomas Broyer
On Wednesday, November 2, 2016 at 2:38:38 PM UTC+1, Juan Pablo Gardella wrote: > > Hi all, > > At release notes is not mentioned that now it will support only java7. > Good catch! > I found tbroyer comment here: >

[gwt-contrib] About a proposed to change to SafeHtml's UriUtils

2016-11-02 Thread Thomas Broyer
[cc gwt-steering; please reply to gwt-contrib] Hi there, There's a patch currently in review of which I don't quite know what to do: https://gwt-review.googlesource.com/12940 It proposes a change to c.g.g.safehtml.shared.UriUtils to allow whitelisting URL schemes in addition to the default

Re: Strange error with streams

2016-11-01 Thread Thomas Broyer
IIRC, there are gotchas with method references in some cases, and using lambdas workarounds the problem. Colin or Andrei would know better as it was them that had such issues when implementing… the streams emulation. -- You received this message because you are subscribed to the Google Groups

Re: Closure compiler and GWT 2.8.0

2016-10-27 Thread Thomas Broyer
On Wednesday, October 26, 2016 at 11:21:02 PM UTC+2, Slava Pankov wrote: > > Integrated closure compiler was removed in 2.8.0 > So now I'm trying to use external (post-processing) call to closure > compiler. > SIMPLE mode is working just fine, but gives no improvement over standard > GWT

Unchanged transient field received as null on server using RequestFactory - how to force to send?

2016-10-27 Thread Thomas Broyer
Assuming an EntityProxy here, if the field is left unchanged, then it's not sent to the server. On the server side, the entity is loaded by the Locator and then the diff is applied. So if the Locator gets a null field, it'll be left null. You may have to use a ValueProxy here… -- You received

Re: How to bind essential singletons in multi-module GIN app and avoid duplicate binding

2016-10-26 Thread Thomas Broyer
I don't know if it's supported by GIN but Guice has a requireBinding to prevent the second case. And if the user of your lib has to use GIN it's not abnormal to ask them to bind a few things. You can provide GinModules that bind them if you like so they only have to compose them in their

Re: GWT launch client side application

2016-10-24 Thread Thomas Broyer
On Monday, October 24, 2016 at 6:31:19 PM UTC+2, Aaron Paluzzi wrote: > > In this case we're trying to launch excel. Although we might wind up > needing to launch any local binary. Even being able to launch a batch file > would be a help. > > The reason this is a GWT issue > The reason this

[gwt-contrib] Re: PROPOSAL: a devserver to replace devmode

2016-10-24 Thread Thomas Broyer
On Monday, October 24, 2016 at 11:23:07 AM UTC+2, Jens wrote: > > Hmm generally I like having build-in proxy with GWT, as I usually use a > proxy anyways at work just to mimic the production behavior (load balancers > serving static GWT app files and proxy certain requests to servlet >

[gwt-contrib] Re: PROPOSAL: a devserver to replace devmode

2016-10-24 Thread Thomas Broyer
On Monday, October 24, 2016 at 3:55:47 AM UTC+2, Brandon Donnelson wrote: > > I like the sounds on this, although my initial thoughts feel like it's > another layer. But I also know typically it takes me a bit longer to warm > up to new approaches. I have trying to think how I can cut the code

[gwt-contrib] PROPOSAL: a devserver to replace devmode

2016-10-23 Thread Thomas Broyer
Hi all, I've talked several times about using a Webpack-like devserver instead of DevMode, and with a better experience (in most cases) than CodeServer. I had described it in more details in https://github.com/gwtproject/gwt/issues/9437#issuecomment-250926589 I spent some time this week-end

Re: GWT 2.8.0 released

2016-10-23 Thread Thomas Broyer
On Saturday, October 22, 2016 at 8:31:43 PM UTC+2, zakaria amine wrote: > > Great! Elemental 2 is part of it ? > No. Elemental 2 will be released independently (along with its generator I believe) -- You received this message because you are subscribed to the Google Groups "GWT Users"

Re: Maven Compiler Plugin 3.5.1 bug

2016-10-22 Thread Thomas Broyer
This is not a bug, it's a bug fix! Bug introduced in 3.2, fixed in 3.5.1 (see release notes for that version). Your plugin should use its own output directory and add it as a source root. Le sam. 22 oct. 2016 23:18, Robert Patrick a écrit : > Periodically, I update

[gwt-contrib] Re: 2.8 (final) is released very silent!?

2016-10-21 Thread Thomas Broyer
On Friday, October 21, 2016 at 1:43:14 PM UTC+2, Lars wrote: > > Github show is a (final) 2.8 release (17 days ago) > https://github.com/gwtproject/gwt/releases/tag/2.8.0 > Why is nobody talking about? Waiting for release notes and a few documentation updates before making an official

Re: GWT cache.html files.

2016-10-21 Thread Thomas Broyer
On Friday, October 21, 2016 at 10:30:23 AM UTC+2, Jarek Suchanek wrote: > > Hi Everyone, > > I am working on converting old GWT project to the latest version. I have > no prior experience with GWT. My old project includes html, js, and xml > files. My problem is that when I rebuild that

Re: JS Interop + indexing

2016-10-20 Thread Thomas Broyer
On Thursday, October 20, 2016 at 5:32:11 PM UTC+2, Kirill Prazdnikov wrote: > > Hello all, this is an important topic, (despite no one wants to answer > for almost 2 month) > > Im trying to declare JsArray with interop but there are some issues: > > [INFO]Errors in

Re: Cannot Debug GWT with Eclipse

2016-10-20 Thread Thomas Broyer
On Thursday, October 20, 2016 at 10:39:34 AM UTC+2, Vassilis Virvilis wrote: > > Hi, > > Are we talking about debugging using SDBG plugin, setting breakpoints from > the IDE +that kind of thing? > > Because if you don't you don't need any reverse proxies for http. I am > using it all the time

Re: gwt test cases failing after migrating to GWT 2.7.0 only when building the project using maven install

2016-10-19 Thread Thomas Broyer
Have you updated gwt-test-utils accordingly? You apparently need 0.51 or 0.52 for use with GWT 2.7.0. Also, you may have better guidance in the gwt-test-utils forum: https://groups.google.com/forum/#!forum/gwt-test-utils-users On Wednesday, October 19, 2016 at 10:40:02 AM UTC+2, saritha rapolu

Re: Cannot Debug GWT with Eclipse

2016-10-17 Thread Thomas Broyer
Maybe try out the new GWT Eclipse Plugin, which (AFAICT) bundles everything together: http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/debugging/Debugging.html On Monday, October 17, 2016 at 12:48:38 AM UTC+2, Namline wrote: > > Jens, > > Actually, I took your advice and managed to

Re: best practices for modular GWT app

2016-10-14 Thread Thomas Broyer
On Friday, October 14, 2016 at 10:20:28 AM UTC+2, Kirill Prazdnikov wrote: > > Well, my suggestion was only two modules: > 1. GWT code - builds the client app > 2. platform independent code (jar) for some logic shared between, for > example, server app > > Is it incorrect ? > And so you

Re: [gwt-contrib] Re: Errors in com/google/gwt/emul/java/lang/String.java

2016-10-13 Thread Thomas Broyer
FTR, answered in gwt users forum: https://groups.google.com/d/topic/google-web-toolkit/OWaNMLLdwbQ/discussion On Thursday, October 13, 2016 at 7:41:26 PM UTC+2, Roberto Lublinerman wrote: > > You probably have a misconfigured class path. The symptoms are consistent > with trying to compile

Re: Errors in com/google/gwt/emul/java/lang/String.java

2016-10-13 Thread Thomas Broyer
The problem is that you have a mix of rc2 and rc3 libs in your classpath, and this is because org.codehaus.mojo:gwt-maven-plugin itself brings GWT dependencies (with the same version as the plugin, as a convention). See

Re: Replcaing GWT generators with APT - Annotation Processing Tool -

2016-10-08 Thread Thomas Broyer
On Saturday, October 8, 2016 at 12:14:29 AM UTC+2, Ahmad Bawaneh wrote: > > Dears, > We all know that GTW 3.0 will come with some major changes from the > current GWT, and so we find every were suggestions for how to be prepared > for these changes, and that is good, but here is my issue

Re: [gwt-contrib] GWT Eclipse Plugin (V3) Shortcuts/Launchers

2016-10-06 Thread Thomas Broyer
; I'll revise it some more and see if I can get closer. >> >> >> On Thursday, October 6, 2016 at 12:33:57 AM UTC-7, Thomas Broyer wrote: >>> >>> May I suggest "GWT Development Mode" and "GWT Legacy Development Mode"? >>> Maybe "G

Re: How to use devModeArgs in net.ltgt.gwt.maven Plugin ?

2016-10-06 Thread Thomas Broyer
You're trying to pass two arguments here, so you have to use two elements: -servercom.google.appengine.tools.development.gwt.AppEngineLauncher Note that Maven will accept both and , so I tend to use as it's much shorter. I like to also put both elements on the same line when they are

Re: GSS changes aren't recognized in SDM

2016-10-05 Thread Thomas Broyer
IIRC, Eclipse does it for you automatically on save. FWIW, this is because resources can be filtered (placeholders replaced with property values) and/or relocated, so using the "sources" directly could cause issues. -- You received this message because you are subscribed to the Google Groups

Re: GSS changes aren't recognized in SDM

2016-10-05 Thread Thomas Broyer
Do you "mvn process-resources" when you change something in src/main/resources? On Wednesday, October 5, 2016 at 2:12:07 PM UTC+2, N Troncoso wrote: > > I'm starting a new project using GWT 2.8-rc2, and am setting up my GSS > resources. It all works and the pages render correctly, but if I

Re: How to remove EventListener

2016-10-05 Thread Thomas Broyer
On Wednesday, October 5, 2016 at 12:59:53 PM UTC+2, Henrik wrote: > > Surprised at your reaction to this. I find myself doing the same more and > more as I'm using less and less widgets. Is there a better way when > dealing with non-widget elements? > Use JsInterop (and/or Elemental) to

Re: GWT RC2 with Polymer: Issue while calling click handler from Java.

2016-10-05 Thread Thomas Broyer
On Wednesday, October 5, 2016 at 12:59:29 PM UTC+2, GAURAV GUPTA wrote: > > Hi All, > > I am using below code for creating my custom element, > > package com.test; > > import jsinterop.annotations.JsConstructor; > import jsinterop.annotations.JsMethod; > import jsinterop.annotations.JsType; > >

Re: NoClassDefFoundError (HttpSessionIdListener) when launching SDM, after switching from gwt-2.8.0-beta1 to rc2

2016-10-05 Thread Thomas Broyer
Or maybe adjust the classpathScope to include provided dependencies? http://tbroyer.github.io/gwt-maven-plugin/devmode-mojo.html#classpathScope / http://tbroyer.github.io/gwt-maven-plugin/codeserver-mojo.html#classpathScope (see also the samples from the GWT SDK, or the POM generated by

Re: How to remove EventListener

2016-10-04 Thread Thomas Broyer
On Tuesday, October 4, 2016 at 1:04:06 AM UTC+2, David wrote: > > I use the following code to create an EventListener: > > Event.sinkEvents(divElement, Event.ONCLICK); > final EventListener listener = new EventListener() > {...}; >

[gwt-contrib] Re: Stop calling it GWT 3.0

2016-10-03 Thread Thomas Broyer
On Monday, October 3, 2016 at 3:12:08 PM UTC+2, sameepsingha...@drishti-soft.com wrote: > > I am not much concerned about name, but would like to know when the GWT > 3.0 will be released?? > Nobody knows. (and this is an official answer) (a little birdie told me that “j2cl is working out

GWT google crawler error undefined.cache.js

2016-09-30 Thread Thomas Broyer
Have you tried set-property-fallback? -- 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

Re: GWT 2.8 RC2 with Polymer : Creating custom element using JsInterop

2016-09-30 Thread Thomas Broyer
elements using Polymer. > > Regards, > Gaurav > > On Friday, 30 September 2016 17:46:41 UTC+5:30, Thomas Broyer wrote: >> >> JsExport has been replaced by JsType, JsConstructor, JsMethod and >> JsProperty; see >> https://docs.google.com/document/d/10fmlEYIHc

Re: GWT and Oracle

2016-09-30 Thread Thomas Broyer
On Friday, September 30, 2016 at 3:03:33 PM UTC+2, Eric Nissan wrote: > > Hey just curious, does Oracle contribute to GWT at all? I know they are > in a battle with Google over Java (android), but one would think they could > put that aside and contribute as GWT really does encourage Java

GWT 2.8 RC2 with Polymer : Creating custom element using JsInterop

2016-09-30 Thread Thomas Broyer
JsExport has been replaced by JsType, JsConstructor, JsMethod and JsProperty; see https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0 (link comes from 2.8 beta release notes) -- You received this message because you are subscribed to the Google Groups "GWT Users"

Re: [gwt-contrib] GWT 2.8.0 RC3 is here!

2016-09-30 Thread Thomas Broyer
https://github.com/gwtproject/gwt-site/pull/199 On Friday, September 30, 2016 at 11:54:41 AM UTC+2, Ali Jalal wrote: > > ​G​reat news! > Could you please update > ​GWT SDK download link in http://​ > gwtproject.org? > Many thanks. > > > On Thu, Sep 29, 2016 at 6:24 PM, 'Daniel Kurka' via GWT

Re: GWT Maven project made with WebAppCreator don't work in devmode

2016-09-28 Thread Thomas Broyer
I answered on SO: https://stackoverflow.com/a/39750766/116472 On Wednesday, September 28, 2016 at 3:51:20 PM UTC+2, Vit Vyaz wrote: > > Hi, all > > > I have created a GWT project with maven configuration on this way: > > webAppCreator -out HelloWorldGWT -templates sample,maven,readme >

Re: [GWT 2.8 SHNAPSHOT] missing stack trace for 'Should only call onDetach when the widget is attached to the browser's document'

2016-09-28 Thread Thomas Broyer
How about setting a breakpoint at the throw line in Widget onDetach then? -- 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

Re: SDM Class replacement problem

2016-09-27 Thread Thomas Broyer
Double check your classpath order, and/or possibly pass your source tree root folder as -src to SDM instead of adding it to the classpath. On Tuesday, September 27, 2016 at 3:44:44 PM UTC+2, Alexander Tarasov wrote: > > Hi. > I need to replace some abstact class from external library. > I've

Re: JsInterop and constants

2016-09-27 Thread Thomas Broyer
On Tuesday, September 27, 2016 at 1:36:13 PM UTC+2, Kirill Prazdnikov wrote: > > or you want a Java-only field in that interface (like you had in your JSO >> previously), and then you need to use @JsOverlay. >> > > Yes, I want Java-only scalars. Web GL constant pool has about 150 fields. >

Re: JsInterop and constants

2016-09-27 Thread Thomas Broyer
On Tuesday, September 27, 2016 at 11:03:17 AM UTC+2, Kirill Prazdnikov wrote: > > Hi, > > It is not clear why GWT disallow scalar and String constants in JsInterop > interfaces > Previously it was > > public final class MediaError extends JavaScriptObject { > public static final int

Re: How to debug server side code in Thomas Broyer GWT Maven Plugin

2016-09-26 Thread Thomas Broyer
On Monday, September 26, 2016 at 3:02:37 PM UTC+2, David wrote: > > Thomas, > > I am not very familiar with Maven in Eclipse. I use Eclipse 4.6. Once I > run "Debug as… → Maven", I see there are a lot of choices such as > Maven build > Maven build... > Maven clean > Maven generate-sources >

Re: How to debug server side code in Thomas Broyer GWT Maven Plugin

2016-09-26 Thread Thomas Broyer
On Monday, September 26, 2016 at 1:40:47 PM UTC+2, David wrote: > > Thomas, > > Once I run "mvnDebug tomcat7:run -pl *-server -am -Denv=dev" from a > command line, I just got the following message: >Listening for transport > dt_socket at address: 8000

Re: Trailing _0 in variable names and -generateJsInteropExports flag

2016-09-26 Thread Thomas Broyer
On Monday, September 26, 2016 at 11:50:22 AM UTC+2, Yann Vo wrote: > > Hello, > > I just raised https://github.com/gwtproject/gwt/issues/9431 for which I > had a quick rely (thanks for that!) but... it was closed and flagged > invalid. > > Rather than polluting the bug database further, I open

Re: How to debug server side code in Thomas Broyer GWT Maven Plugin

2016-09-26 Thread Thomas Broyer
On Monday, September 26, 2016 at 5:59:50 AM UTC+2, David wrote: > > I used Thomas Broyer GWT Maven Plugin to create a maven GWT project from a > command and imported into Eclipse 4.6. I can run Jetty and Tomcat and > application works fine. But I want to debug server side co

Re: Refresh of CellTable via data transmitted via WebSocket delayed

2016-09-23 Thread Thomas Broyer
On Friday, September 23, 2016 at 2:04:19 AM UTC+2, Kay Pac wrote: > > I have a somewhat complex problem related to a CellTable that updates > based on messages received over a WebSocket connection. The problem is as > follows: The table does not update in real-time, even though "setRowData" >

Re: Update conversation by displaying new messages when they are sent

2016-09-21 Thread Thomas Broyer
On Wednesday, September 21, 2016 at 4:43:45 PM UTC+2, JonL wrote: > > Others have suggested websockets, but there are several other options as > well. There is google cloud messaging and many other libraries to solve > this problem as well as ServerSent Events. > >

[gwt-contrib] Re: SNAPSHOT of 21 Sept breaks my build (invalid namespace

2016-09-21 Thread Thomas Broyer
On Wednesday, September 21, 2016 at 11:46:25 AM UTC+2, stuckagain wrote: > > It looks like some changes to JSInterop are breaking my build > > Compiling module com.swift.common.paging.PagingTest.JUnit >Ignored 1 unit with compilation errors in first pass. > Compile with -strict or with

Re: requireBinding for a BindingAnotation possible?

2016-09-19 Thread Thomas Broyer
You need to require the Map, not the raw Map class. requireBinding(Key.get(new TypeLiteral>(){}, MyMap)) On Monday, September 19, 2016 at 3:25:03 PM UTC+2, Steve Storck wrote: > > Some of my modules require a binding from another module. I want to set > up a

Re: GWT2.8RC2 : compile time user.agent value (safari) does not match the runtime user.agent value (gecko1_8) ?

2016-09-16 Thread Thomas Broyer
This will be the goal with GWT 3 I believe. But what do you mean by "default permutation"? Which user.agent value? -- 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

Re: jsinterop and Scheduler.scheduleFinally

2016-09-16 Thread Thomas Broyer
On Friday, September 16, 2016 at 2:54:20 PM UTC+2, Pavel Kakolin wrote: > > Imagine an @JsType(isNative = true) EventTarget (basically Element) with > @JsMethod addEventListener(final String type, final EventListener > listener). > > We have a "mousedown" event listener and inside that listener

Re: Strange (BAD?) code generated

2016-09-15 Thread Thomas Broyer
timization steps > > Jens, Thomas thanks a lot for the education. > >Vassilis > > > On Thu, Sep 15, 2016 at 11:44 AM, Thomas Broyer wrote: > >> Let me try: without -generateJsInteropExports, GWT acts as if >> @JsType(isNative=false) wasn't there at all.

Re: GWT2.8RC2 : compile time user.agent value (safari) does not match the runtime user.agent value (gecko1_8) ?

2016-09-15 Thread Thomas Broyer
On Thursday, September 15, 2016 at 11:07:42 AM UTC+2, Thomas Lacroix wrote: > > Hi, > I have an app that automatically reports "Uncaught exception" encountered > by users. > It has been compiled with GWT2.8RC2 and in prod for a few days and it has > been reporting a couple of "Uncaught

Re: Strange (BAD?) code generated

2016-09-15 Thread Thomas Broyer
Let me try: without -generateJsInteropExports, GWT acts as if @JsType(isNative=false) wasn't there at all. Why'd you want this? - when @JsType(isNative=false) is applied to types you didn't write yourself (third-party). For example, java.util.Collection, java.util.List, java.util.Map,

Guice Persist support for Neo4j

2016-09-13 Thread Thomas Broyer
Hi, A few years ago, I did a similar thing at https://github.com/tbroyer/guice-persist-neo4j Feel free to borrow some code, but IIRC it didn't do more than yours. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group

Re: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer
On Tuesday, September 13, 2016 at 5:27:50 PM UTC+2, Kirill Prazdnikov wrote: > > This means that the compiler must throw an error: > > If a type is not isNative=true > and the type is never instantiated > and the type is returned form JSNI\JsInterop > > right ? > No, just like the compiler

Re: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer
On Tuesday, September 13, 2016 at 4:08:38 PM UTC+2, Kirill Prazdnikov wrote: > > >> See https://github.com/gwtproject/gwt/issues/9330 >> You must be missing an isNative=true on ClientRect >> > > Ok, but what does it mean when a type has a @JsProperty but it is not > "isNative=true" ? > > Must

[gwt-contrib] Re: Missing JsInterop 1.0.0-SNAPSHOT

2016-09-13 Thread Thomas Broyer
Could it be because version 1.0.0 is already on Central? Should we try deploying 1.0.1-SNAPSHOT or 1.1.0-SNAPSHOT instead? Anyway, the workaround (given that jsinterop annotations haven't changed for months) is to force using 1.0.0 instead of 1.0.0-SNAPSHOT. The following seems to work for

Re: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer
On Tuesday, September 13, 2016 at 3:35:46 PM UTC+2, Kirill Prazdnikov wrote: > > I was trying to build with the latest master version, but it fails with > > Execution default of goal > org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT:resources failed: > Plugin

Re: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer
On Tuesday, September 13, 2016 at 3:30:49 PM UTC+2, Kirill Prazdnikov wrote: > > Hi, I have the following code: > > public static Vec2i elementSizeToDeviceSize(Element element) { >> float devicePixelRatio = devicePixelRatio(); >> ClientRect rect =

Re: jsinterop with browser-specific api

2016-09-12 Thread Thomas Broyer
I suppose it'll eventually be in a jsinterop util class but for now you have to use JSNI: https://github.com/gwtproject/gwt/issues/9364 On Monday, September 12, 2016 at 11:03:31 PM UTC+2, Zufar Fakhurtdinov wrote: > > Thank you for answer! Writing it by hand is annoying, but maybe later it >

Re: jsinterop with browser-specific api

2016-09-10 Thread Thomas Broyer
lScreen getMozCancelFullScreen(); @JsProperty(name = "msExitFullscreen") private native ExitFullScreen getMsExitFullscreen(); On Friday, September 9, 2016 at 11:16:05 PM UTC+2, Thomas Broyer wrote: > > > On Friday, September 9, 2016 at 8:32:08 PM UTC+2, Zufar Fakhurtdinov wrot

[gwt-contrib] Re: CodeServer with Bookmarklets not working in GWT 2.7 (2nd request)

2016-09-10 Thread Thomas Broyer
How about proxying through a local server that would intercept the nocache.js and route everything else to your external server? This is basically how webpack devserver and browserSync work in the JS land. -- You received this message because you are subscribed to the Google Groups "GWT

Re: jsinterop with browser-specific api

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 8:32:08 PM UTC+2, Zufar Fakhurtdinov wrote: > > Hi all. I'm trying to understand how can I effective work with jsinterop > and browser-specific api. > For example Fullscreen api is mostly work in latest browsers, but methods > are prefixed. > > Before jsinterop I

[gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-09 Thread Thomas Broyer
As we've delayed the release a bit, let's add another documentation fix: https://gwt-review.googlesource.com/16860 On Thursday, September 8, 2016 at 4:27:36 PM UTC+2, Daniel Kurka wrote: > > Hi all, > > I will be cutting rc3 tomorrow 1pm CEST, please respond to this email with > any outstanding

Re: GWT 2.8.rc2 doesn't work correctly for ie* values.

2016-09-09 Thread Thomas Broyer
AFAICT it worked the same with 2.7. With the default user.agent values, I get 3 permutations. The compilation-mappings.txt for the sample app created with webAppCreator and added collapse-property is: 45FECB51EB688981D36858C76F8E630A.cache.js user.agent ie10

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Thomas Broyer
The arrays are normalized to start on Sundays (you'd find the same oddity with the French locale, as weeks start on Monday too in France), you need to use firstDayOfTheWeek and adjust your indexes accordingly: for (int i = 0; i < 7; i++) { ….weekdaysFull()[(i + ….firstDayOfTheWeek()) % 7)];

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 4:34:02 PM UTC+2, Василий Старцев wrote: > > Great! But there is a bug: > *com.google.gwt.i18n.client.impl.cldr.DateTimeFormatInfoImpl_ru* still > have wrong weekdays order. > > @Override > public String[] weekdaysFull() { > return new String[] { >

Re: [gwt-contrib] Re: ScriptInjector seems to be broken (2.8-SNAPSHOT)

2016-09-09 Thread Thomas Broyer
Can you file an issue and ping Daniel (by mail or hangout) to delay the RC3 a bit? (if not already too late, as it's 4pm cest) On Friday, September 9, 2016 at 3:51:05 PM UTC+2, Jens wrote: > > Ok just tried it myself. > > Created a new, fresh project having world in my > host page using > >

Re: chrome 53 styleSheet insertRule not working

2016-09-09 Thread Thomas Broyer
Works for me (from the devtools console, but still). 53.0.2785.101 (64-bit) on Ubuntu 16.04. On Friday, September 9, 2016 at 11:41:12 AM UTC+2, fenyoapa wrote: > > hi, > it is maybe not a gwt issue, but it is in a gwt app. > This code snippet worked for years: > > >

Re: Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 9:31:27 AM UTC+2, Eddy wrote: > > Thank you for your first help Thomas ! > > What I had tried is to write a get method from the view/display interface, > which return the suggestBox object and which I had called from the > presenter on the onBind or

[gwt-contrib] Re: CodeServer with Bookmarklets not working in GWT 2.7 (2nd request)

2016-09-09 Thread Thomas Broyer
Doesn't CodeServer accept -setProperty? You could use that to pinpoint the property values so you only have one permutation when only user.agent is given. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and

Re: GWT 2.8.0 RC2 is here!

2016-09-09 Thread Thomas Broyer
First, you don't *have* to split your project, you have to *run* them separately (but then you'll probably have to tweak the classpath of each a bit). Then, GWT RPC isn't a blocker for splitting your project (see my modular-webapp archetype at https://github.com/tbroyer/gwt-maven-archetypes)

[gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-08 Thread Thomas Broyer
This is not a fix but a request for enhancement (unless I misremember). This is not "officially" supported, but it happens to work if you suppress validation for those methods. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To

[gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-08 Thread Thomas Broyer
Hi Daniel, On Thursday, September 8, 2016 at 4:27:36 PM UTC+2, Daniel Kurka wrote: > > Hi all, > > I will be cutting rc3 tomorrow 1pm CEST, >  > please respond to this email with any outstanding reviews that you want to > see included. > https://gwt-review.googlesource.com/16760 and

Re: UiBinder alternative

2016-09-08 Thread Thomas Broyer
On Thursday, September 8, 2016 at 3:00:36 PM UTC+2, Ahmad Bawaneh wrote: > > Hi > Is there any plans or suggestions for the UiBinder alternatives since > UiBinder will be removed from GWT 3.0? > *might* be removed would be more accurate. Let me repeat one more time: development on GWT 3.0 has

Re: Could not find artifact com.google.jsinterop:jsinterop-annotations

2016-09-08 Thread Thomas Broyer
See https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/2dJqK6FH2_c On Thursday, September 8, 2016 at 12:17:41 PM UTC+2, Kirill Prazdnikov wrote: > > After cleaning .m2 i`m getting this error: > > Failed to collect dependencies at >

gwt.user.rebind.SourceWriter vs gwt.codegen.server.SourceWriter

2016-09-08 Thread Thomas Broyer
> I've started to study GWT generators mechanism […] What package should I use? Neither. Don't start using a soon-to-be-deprecated technology. Use an annotation processor instead (pro tip: have a look at the Google auto-common, and Square JavaPoet projects) -- You received this message

Autocompletion with RPC under the MVP model : how to instanciate Suggestbox(suggestOracle) without refering any service into the view ?

2016-09-08 Thread Thomas Broyer
You could route the requestSuggestions to your presenter instead if directly to your service (the presenter simply behaving as a proxy/façade to the service). Or you could use a "proxy" Oracle where you can later set the "delegate" (coming from the presenter) -- You received this message

Re: Is GWT is Dead?

2016-09-07 Thread Thomas Broyer
On Wednesday, September 7, 2016 at 6:07:41 AM UTC+2, Gourab wrote: > > >> ok then gmail being written in GWT is urban myth. > > It was rewritten in GWT and later reverted back to it's original > implementation. > I think it's the first time I hear about this. Any source to back this claim?

Re: GWT2.8RC : onResize() calls changed

2016-09-05 Thread Thomas Broyer
On Monday, September 5, 2016 at 12:27:36 PM UTC+2, Thomas Lacroix wrote: > > > Hello, > I have a class that implements ResizeComposite and overrides onResize(). > A change I see migrating from 2.7 to 2.8RC2 is that the onResize() method > is called much more frequently (i.e. when the widget is

Re: DevMode woe

2016-09-04 Thread Thomas Broyer
On Sunday, September 4, 2016 at 5:27:36 PM UTC+2, Shawn wrote: > > > Is there a way to get it to execute code modification in the debugger? I > found my source and adding a logging statement but can’t save the file so > it doesn’t execute. Is there a good book on this … is any chrome

Re: DevMode woe

2016-09-04 Thread Thomas Broyer
On Sunday, September 4, 2016 at 3:08:46 PM UTC+2, Shawn wrote: > > > > Maybe the underlying confusion is that I am using an offline cache and it > loads from that… > > > Document was loaded from Application Cache with manifest > http://127.0.0.1:59047/offline.manifest > > > Then gives me

Re: DevMode woe

2016-09-04 Thread Thomas Broyer
On Sunday, September 4, 2016 at 12:47:01 PM UTC+2, Shawn wrote: > > Can’t get DevMode to work. > > Think it’s related to my app.gwt.xml using: > > > > Trying my page give me: > Error:Couldn’t load app from Super Dev Mode server at > http://127.0.0.1:9876. > > Am seeing (in Chrome brower dev

Re: Issue with request factory on 2.8

2016-09-02 Thread Thomas Broyer
On Friday, September 2, 2016 at 4:07:07 PM UTC+2, Michael Wiles wrote: > > I have observed some rather strange behaviour when using request factory > on gwt 2.8-RC-2 > > It boils down to the wrong method being invoked... > > I call method X on my client and the hash that is dispatched to the

<    4   5   6   7   8   9   10   11   12   13   >