Re: New Article "10 Best Java Frameworks to Use in 2021"

2021-03-09 Thread Thomas Broyer
On Tuesday, March 9, 2021 at 4:10:44 PM UTC+1 aka...@gmail.com wrote: > BTW, > @Thomas you didn't start a flame war it was just a flame, I got to learn > few things from this conversation so why not flame the rest of the list? > Really? Let's go. Spring: I think the thing I dislike the mos

Re: New Article "10 Best Java Frameworks to Use in 2021"

2021-03-09 Thread Thomas Broyer
On Tuesday, March 9, 2021 at 8:29:33 AM UTC+1 Craig Mitchell wrote: > Indeed it's a joke, cannot be otherwise: it says you should use Hibernate >> in 2021! (in the conclusion, it even says you should learn it) >> (I won't give my opinion on the others in the list, don't want to start a >> flam

Re: Can I create GWT Widget in javascript code?

2021-03-02 Thread Thomas Broyer
I would: 1. create a new *.gwt.xml with a new EntryPoint that won't launch the GWT app but instead expose a function (using JsInterop) to "run" your module 2. that function would use receive an element ID and use RootPanel.get(id) to put the GWT UI inside (that's not the only way, bu

Re: gwt-places annotation processor in Eclipse

2021-02-28 Thread Thomas Broyer
nd why it's now maintained by the Diffplug team) On Sunday, February 28, 2021 at 5:19:39 PM UTC+1 Thomas Broyer wrote: > +1, and if you don't want to impose that plugin to all users (if you're > contributing to an open source project for example), try applying it from > an init sc

Re: gwt-places annotation processor in Eclipse

2021-02-28 Thread Thomas Broyer
+1, and if you don't want to impose that plugin to all users (if you're contributing to an open source project for example), try applying it from an init script dropped into your ~/.gradle/init.d/ (add the dependency to the buildscript, and apply the plugin to the project; see https://docs.grad

Re: Guava version which is compatible with GWT 2.9.0

2021-02-26 Thread Thomas Broyer
It looks like you're not using any tooling to resolve your dependencies (Maven, Gradle, Ivy, Coursier , you name it), so you have to grab the transitives manually (and resolve version conflicts). Compare the dependencies block (lower right) between https://search.maven.

Re: deserialize GWT response

2021-02-25 Thread Thomas Broyer
Fwiw, the GWT-RPC protocol is documented here: https://docs.google.com/document/d/1eG0YocsYYbNAtivkLtcaiEE5IOF5u4LUol8-LL0TIKU/view On Thursday, February 25, 2021 at 1:35:23 PM UTC+1 et wrote: > I'm working on a project where I need to convert the gwt response to an > xml format. Is there a si

Re: gwt compilation issues while upgrading from GWT 2.7.0 to GWT 2.9.0

2021-02-24 Thread Thomas Broyer
IIRC, gwtx replaces/shadows some emulated classes; it's likely that it's the one causing issues here. Try compiling with -failOnError, and/or look at the beginning of the compiler output for early problems that will cascade and cause everything else to fail. On Tuesday, February 23, 2021 at 3:0

Re: GWT 2.9, java 11, tomcat 10.0.2 - standard gwt example having RPC error, 404

2021-02-23 Thread Thomas Broyer
Indeed, this is a result of the Jakarta EE fiasco. >From https://tomcat.apache.org/download-10.cgi: “Users of Tomcat 10 onwards should be aware that, as a result of the move from Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse Foundation, the primary package for all imple

Re: GWT -> Scale compilation permutations horizontally

2021-02-16 Thread Thomas Broyer
This may be what you had in mind: https://github.com/gwtproject/old_google_code_wiki/blob/master/DistributedBuilds.wiki.md You could also use a custom PermutationWorkerFactory to automate that, that would send the necessary files to another machine, run the CompilePerms there, then get the res

Re: PWA integeration with GWT

2021-02-14 Thread Thomas Broyer
You have many things to take care of here: - getting the app to load while offline: I'd recommend using Workbox to help generate the Service Worker and to more easily handle caching. - getting the app to work offline: you'd have to st

Re: How do we make GWT accept dynamic domain name?

2021-02-10 Thread Thomas Broyer
This means you somehow hard code the URL into your code. GWT itself doesn't do that, so it either come from your code or a third-party. If it's coming from your code: - why do you do that? is the client code deployed to a different domain than the APIs it calls? - there are likely other

Re: Datatrans payment system with JSinterop

2021-01-21 Thread Thomas Broyer
You could probably also use a non-native type: public class DatatransOption { @JsProperty public String transactionId; @JsMethod public void opened() { Window.alert("payment form opened"); } } On Thursday, January 21, 2021 at 1:07:34 PM UTC+1 pierre...@gmail.com wrote: > I was a

Re: Our 10+ year journey with GWT (+ job opening)

2021-01-20 Thread Thomas Broyer
Why did you bet on GWT 10 years ago and wouldn't bet on TypeScript nowadays? (fwiw, TypeScript is already 8 years old; Vue.js is 6 years old, React is 7) On Tuesday, January 19, 2021 at 5:26:38 PM UTC+1 lofid...@gmail.com wrote: > @swas... > > > Yes, almost 10 years for me too and production app

Re: GWT built in History and HTML5 pushstate

2021-01-11 Thread Thomas Broyer
Are you using Places? Have a look at https://gist.github.com/tbroyer/1883821 Otherwise (using plain com.google.gwt.user.client.History), you'd have to migrate your code to use something else, possibly based on elemental2-dom: https://javadoc.io/doc/com.google.elemental2/elemental2-dom/latest/ele

Re: CodeServer looks for (not required?) source

2021-01-11 Thread Thomas Broyer
On Sunday, January 10, 2021 at 10:29:06 PM UTC+1 Gordan Krešić wrote: > On 10. 01. 2021. 21:58, lofid...@gmail.com wrote: > > Actually you have following options for the transpiler with Maven > plugin. > > Maybe it is the same with the Gradle? > > > > -logLevel > > INFO > > This changes l

Re: CodeServer looks for (not required?) source

2021-01-11 Thread Thomas Broyer
Fwiw, there are and

Re: How to enable automatic dev mode recompile (again)

2020-11-19 Thread Thomas Broyer
Could it be a caching issue of the *.nocache.js file in your browser? Does a force-reload fixes it? (it might also be a caching issue in your server BTW) Which version of GWT are you using? And how are you running GWT? (both compilation and dev mode) On Thursday, November 19, 2020 at 8:40:48 PM

Re: GWT adds empty cells when using rowspan

2020-11-16 Thread Thomas Broyer
Because the cell on row=1,col=0 spans to the following rows, the cell that visually appears at row=2,col=1 is actually row=2,col=0 → you need to shift your columns down by 1. Think of the HTML being generated: lit-11… 2… 2… On Monday, November 16,

Re: How to pass a build number to a gwt app?

2020-11-05 Thread Thomas Broyer
On Thursday, November 5, 2020 at 8:36:49 AM UTC+1, Joker Joker wrote: > > I want to share solution for gradle based project. > This solution allows to get any build's properties on client/server. > > *1) Add to build.gradle* > ... > task createProperties(dependsOn: processResources) { > doLast {

Re: A new article about GWT and IndexedDB with well known Design Patterns

2020-10-29 Thread Thomas Broyer
On Wednesday, October 28, 2020 at 11:11:24 PM UTC+1, lofid...@gmail.com wrote: > > A new article about GWT and IndexedDB with known Design Patterns, enjoy > reading: http://bit.ly/GwtIndexedDBDesignPatterns Shouldn't your repository be async? Maybe returning promises? (fwiw, I use https://gith

Re: GWT and JDK questions

2020-10-28 Thread Thomas Broyer
On Wednesday, October 28, 2020 at 1:30:33 PM UTC+1, Martin Nguyen wrote: > > Hi, > > I have some questions regarding version upgrades, hopefully anyone can > help me with some answers. > > 1. Am i correct in thinking that GWT2.9.0 does not support the syntax of > JDK9 or higher? > No. You can

Re: GWT 2.4.0 source code

2020-10-20 Thread Thomas Broyer
GWT 2.4.0 source code is here https://gwt.googlesource.com/gwt/+/refs/tags/2.4.0 (and mirrored here in GitHub: https://github.com/gwtproject/gwt/tree/2.4.0) On Tuesday, October 20, 2020 at 10:23:37 AM UTC+2, XD chen wrote: > > Hi All, > > Is there GWT 2.4.0 source code. I found the 2.6 and onwa

Re: Including a submodule of a gwt project in maven

2020-10-19 Thread Thomas Broyer
On Monday, October 19, 2020 at 4:43:26 PM UTC+2, Elhanan wrote: > > what's the difference between > warDir, webappDirectory, workDir,workingDirectory, codeServerWorkDir , > devModeWorkDir, tempDir? > i mean it's hard to follow all those around. > I'm assuming you're using autocompletion in yo

Re: Including a submodule of a gwt project in maven

2020-10-19 Thread Thomas Broyer
he output is just gwt compiled code with no > static html or css resources, if i use war in the pom type, the output is > just the static resources. i want the entire artifact to be considered as > both html and gwt javascript. > > On Mon, Oct 19, 2020 at 12:50 PM Thomas Broyer wr

Re: Including a submodule of a gwt project in maven

2020-10-19 Thread Thomas Broyer
I haven't followed the whole discussion, but if you don't have a need for shared and server modules (what I call a "standalone" app), then you can put your HTML file (and associated resources) into your module's public path

Re: Share Header, Footer, ... in different views with UIBinder

2020-10-08 Thread Thomas Broyer
If *all* your "views" share the same header/footer/nav, then they should be part of your "shell", with your ActivityManager only managing the "main" part of the screen. See https://blog.ltgt.net/gwt-21-activities/ and https://blog.ltgt.net/gwt-21-activities-nesting-yagni/ (wow, 10 years old!)

Re: GWT history with push state

2020-10-05 Thread Thomas Broyer
On Saturday, October 3, 2020 at 1:00:32 PM UTC+2, jhon tonini wrote: > > Is possible to use push state in GWT history (Es. /users, /newuser) > instead of "#" ? Not GWT History directly, but if you're using Places then you can use a Historian that uses pushState *instead* of GWT History: ht

Re: Is it possible to implement a web worker with GWT?

2020-10-02 Thread Thomas Broyer
It is, through a linker: http://www.gwtproject.org/doc/latest/DevGuideLinkers.html It might work with the D8ScriptLinker shipped in GWT (https://github.com/gwtproject/gwt/blob/2.9.0/dev/core/src/com/google/gwt/core/linker/D8ScriptLinker.java); you'll have to declare it in a *.gwt.xml though (de

Re: consuming a non standard promise in java

2020-10-01 Thread Thomas Broyer
There are performance implications (AFAICT) but you should be able to access all arguments through Js.arguments(). …or you could use your own Promise interface mapping to their specific API. On Thursday, October 1, 2020 at 11:58:56 AM UTC+2, Elhanan wrote: > > hi...i'm consuming cockpit api pro

Re: New Presentation about Modern GWT Webapp Development

2020-10-01 Thread Thomas Broyer
On Wednesday, September 30, 2020 at 10:48:34 PM UTC+2, lofid...@gmail.com wrote: > > Thanks a lot for the info. > > I added the Gradle plugin, wow we have 3 Gradle plugins is it not > better just to have one? 😉 > > The check on page 42 is about the "values", so the input param 😉 > > I will

Re: Eclipse Version

2020-10-01 Thread Thomas Broyer
On Wednesday, September 30, 2020 at 9:58:33 PM UTC+2, lofid...@gmail.com wrote: > > Yes, this is nice, since GWT home page is developed (in small part) with > GWT... 😀 > > To the Debugging with Chrome: > >- Actually you still could read the variable name because it is >readable... and

Re: Eclipse Version

2020-09-30 Thread Thomas Broyer
On Wednesday, September 30, 2020 at 12:25:17 PM UTC+2, viny...@gmail.com wrote: > > Yes! you are right NetBeans is not supporting Super Dev Mode yet. That is > why we need to change the IDE on this stage if need to be get upgraded. our > team has expertise on NetBeans and we don't want to cha

Re: Why Don’t You Use Java for Programming the Client-Side Web Apps on Web Browser?

2020-09-29 Thread Thomas Broyer
On Tuesday, September 29, 2020 at 12:08:36 AM UTC+2, lofid...@gmail.com wrote: > > OK, now I understand you 😉 > > Yes, we always have to separate the Client and the Server part. This is > also GWT best practice. > > But if you are using JavaScript on browser you lose the advantages like: > >

Re: Hierarchical data with Editor

2020-09-27 Thread Thomas Broyer
IIRC, the editor framework works by static analysis, so it doesn't work "well" with polymorphism (i.e. you'll have ValueAwareEditor or even LeafValueEditor all over the place, and in setValue/getValue/flush manually handle each subclass specificity). This also means, IIRC and AFAICT, you cannot

Re: Do browser permutations matter with JsInterop?

2020-09-25 Thread Thomas Broyer
Actually, even Core uses permutations, for exception stacktraces collection: https://github.com/gwtproject/gwt/blob/master/user/src/com/google/gwt/core/CoreWithUserAgent.gwt.xml Fwiw, if everything compiled down to the same code, there'd be a single *.cache.js output, so it wouldn't matter much

Re: New Presentation about Modern GWT Webapp Development

2020-09-21 Thread Thomas Broyer
Fwiw, without plugin (Kotlin DSL): val gwtOutputDir = file("$buildDir/gwtc/war") tasks { val gwtCompile by registering(JavaExec::class) { val companionOutputDir = file("$buildDir/gwtc") val deployDir = file("$companionOutputDir/extra") val extraDir = deployDir v

Re: New Presentation about Modern GWT Webapp Development

2020-09-16 Thread Thomas Broyer
On Wednesday, September 16, 2020 at 6:49:36 PM UTC+2, lofid...@gmail.com wrote: > > Hi Thomas, > > ... actually I feel that doing platform specific stuffs in my code it's > not the way. > > It is comparable to GWT vs. jsweet. In GWT you have everything in Java > semantic. In jsweet you actually

Re: New Presentation about Modern GWT Webapp Development

2020-09-16 Thread Thomas Broyer
l which Gradle Plugin should we propose? > @Thomas Broyer? > I don't use any plugin for GWT in Gradle (configuring JavaExec and Test tasks "by hand"). One thing that no plugin seems to have done yet, is use Gradle variants <https://docs.gradle.org/current/userguide/varian

Re: Unknown argument: -superDevMode

2020-09-13 Thread Thomas Broyer
If you want to use SuperDevMode in GWT 2.5 or 2.6, then you have to use the CodeServer entrypoint (rather than DevMode). I don't know if the Eclipse plugin has built-in support for it; you might have to create a launch configuration from scratch. (why would you want to use such an old GWT versio

Re: GWT with PHP

2020-09-03 Thread Thomas Broyer
GWT can be used with PHP the same as jQuery, Angular, React, Babel, TypeScript, etc. can be used with PHP. You won't be able to use GWT-RPC or RequestFactory to communicate with your server, but most people have moved away from these for new projects anyway: you can use GWT's RequestBuilder, ra

Re: Experiences using event bus

2020-08-29 Thread Thomas Broyer
WeakMap and WeakSet aren't iterable, you cannot discover what they contain, you have to know and can only check if it's in the map/set and for a map get its associated value. This is of no use for an event bus wanting to keep weak references to its handlers. A WeakRef would be the only way, oth

Re: CustomEvent examples

2020-08-28 Thread Thomas Broyer
On Friday, August 28, 2020 at 7:29:37 PM UTC+2, Gordan Krešić wrote: > > Are there any examples/best cases of using elemental2.dom.CustomEvent in > GWT > 2.9? > https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events The second example would be coded as: Cust

Re: Is there any way to use GWT 2.9 with Java 11 using Eclipse GWT plugin?

2020-08-28 Thread Thomas Broyer
That one's "easy": don't use the embedded Jetty of DevMode; run your own servlet container instead, along with either DevMode in -noserver mode, or CodeServer. On Thursday, August 27, 2020 at 8:30:45 PM UTC+2, Shahram Zadeh wrote: > > after a long time and hard work we were able to make it work

Re: How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread Thomas Broyer
On Tuesday, August 25, 2020 at 5:49:38 PM UTC+2, Hari wrote: > > Thank you all for the quick response, from all the responses its general > that it will not be complete re-write, which is a relief for sure. > > Also I forgot to mention we were using GXT 2.2.1 and as per this doc > https://docs

Re: How to start with GWT upgrade from version 2.1.0 to 2.9.0, (java 1.6 to java 1.8)

2020-08-25 Thread Thomas Broyer
On Tuesday, August 25, 2020 at 1:01:47 PM UTC+2, Hari wrote: > > Hi Team, > > (Apologies if the answers to my question are based on individuals opinion > based, but i am in dire need of your help) > > I am currently stuck with an old GWT 2.1.0 application written in Java 1.6 > which needs to be

Re: Pbs with Debug GWT application with Eclipse

2020-08-25 Thread Thomas Broyer
On Monday, August 24, 2020 at 7:50:40 PM UTC+2, Guillen Antonio wrote: > > Hi all > I use the last 2020-06 version of eclipse, with the modelling tools (EMF), > I use the Eclipse plugin define in the picture below.The application work > fine, but just for the fun if I want try to debug it: > >

Re: Does GWT "know" which event type was fired for overloaded events?

2020-08-23 Thread Thomas Broyer
On Sunday, August 23, 2020 at 12:56:46 PM UTC+2, Oliver Yasuna wrote: > > For example, the onscroll > event could have > been passed an Event or > UIEvent

Re: How to access non standard objects in Elemental2?

2020-08-16 Thread Thomas Broyer
On Sunday, August 16, 2020 at 11:41:18 PM UTC+2, Michael Harray wrote: > > Hello, I'm currently working on PWA functionality in our GWT app, trying > to utilise Elemental2 / JSInterop where possible instead of writing > javascript. To detect if the app is launched in PWA mode on IOS, this is >

Re: GWT Server and debug

2020-07-08 Thread Thomas Broyer
On Wednesday, July 8, 2020 at 6:46:28 AM UTC+2, Jasper Suijker wrote: > > Ok, > I removed -nosuperDevMode and started the server via debug of eclipse. > I made some breakpoints in the code, but somehow they are not triggered. > With the plugin and using internet explorer i see a "unknown" tab s

Re: GWT Server and debug

2020-07-06 Thread Thomas Broyer
gwt.codesrv is a sign that you're using the deprecated so-called "classic" DevMode, that relies on a browser plugin, that indeed only works in Internet Explorer nowadays. If you haven't already, then first upgrade to at least GWT 2.7.0 (of course 2.9.0 would be a lot better), then you'll be able

Re: Security Vulnerabilities with GWT

2020-06-29 Thread Thomas Broyer
On Monday, June 29, 2020 at 12:57:41 PM UTC+2, Priya Kolekar wrote: > > > Hi All, > > Security Vulnerability have been detected in gwt-dev.jar & > gwt-servlet.jar(in release 2.8.2) & are reported by Dependency checker > tool . > > Below are the det

Re: Security Vulnerabilities with GWT

2020-06-29 Thread Thomas Broyer
On Monday, June 29, 2020 at 3:36:11 PM UTC+2, Colin Alworth wrote: > > 1. No, these dependencies were not updated as part of the 2.9.0 release > 2. An update would come either in a 2.9.x bugfix release, or in 2.10 - the > 3.x release is going to be structured in a different enough of a way that

Re: StyleInjector chokes on startup

2020-06-19 Thread Thomas Broyer
Yes, we can probably consider that a bug in GWT. I'd also call this pattern of doing real work in a static initializer a code smell: http://misko.hevery.com/code-reviewers-guide/flaw-constructor-does-real-work/ While still a flaw considering the above link, it's however a common practice to call

Re: GWTC 2.9.0 has problems compiling my generics

2020-05-29 Thread Thomas Broyer
Log of the error in our project: Tracing compile failure path for type 'org.waveprotocol.wave.model.supplement.WaveletBasedSupplement' [ERROR] Errors in 'jar:file:/home/tbr/.gradle/caches/modules-2/files-2.1/org.waveprotocol.waveinabox/waveinabox-model/0.3-atolcd-1206559-patched-4/4a2a46

Re: Issue with GWT 2.9.0 and Annotations/Predicates emulation

2020-05-29 Thread Thomas Broyer
On Friday, May 29, 2020 at 1:55:42 PM UTC+2, David Nouls wrote: > > > Now I have a second problem, this time with some generics that is accepted > by javac or IntelliJ but GWTC seems to not support it. > Same here (on a third-party lib that hasn't been maintained for nearly 2 years 😭) -- You

Re: Old documentation for GWT 2.6

2020-05-22 Thread Thomas Broyer
You can find the history of the GWT website (including the javadoc) at https://github.com/gwtproject/gwt-site, it apparently goes back to GWT 2.5.1. Something like a git checkout master@{2014-05-22} will give you the content of the website from 6 years ago. On Friday, May 22, 2020 at 12:28:15 P

Re: Conflict between gwt-dev.jar and the Java 11 Module system still exists in GWT 2.9.0.

2020-05-19 Thread Thomas Broyer
plest form would be listing your dependencies with their version, possible exclusions and overrides for transitive dependencies, then use a tool, like Coursier or Ivy, to resolve all those files and warn you of version conflicts). > > On Monday, May 18, 2020 at 4:24:56 PM UTC-7, Thomas Broyer

Re: Conflict between gwt-dev.jar and the Java 11 Module system still exists in GWT 2.9.0.

2020-05-18 Thread Thomas Broyer
> that I can plugin to that Eclipse dialogue? > > On Monday, May 18, 2020 at 10:42:42 AM UTC-7, Thomas Broyer wrote: >> >> The gwt-dev.jar from the ZIP distribution is an uber-jar with all >> dependencies needed to run GWT (so you only need gwt-dev.jar and >> gwt-us

Re: Conflict between gwt-dev.jar and the Java 11 Module system still exists in GWT 2.9.0.

2020-05-18 Thread Thomas Broyer
The gwt-dev.jar from the ZIP distribution is an uber-jar with all dependencies needed to run GWT (so you only need gwt-dev.jar and gwt-user.jar in your classpath, and any third-party dependency you're using), so this is expected. Use gwt-dev from the Central Repository (aka Maven Central) instea

Re: Issues with Maven Plugin for GWT

2020-05-16 Thread Thomas Broyer
On Saturday, May 16, 2020 at 2:49:06 AM UTC+2, Rogelio Flores wrote: > > I tried using the Maven Plugin for GWT ( > https://tbroyer.github.io/gwt-maven-plugin/) with an existing project > that I just upgraded to use GWT 2.9.0. > > When I try running mvn run:codeserver, I get this: > > [DEBUG] Ar

Re: how to run gwt newer version in netbeans

2020-05-16 Thread Thomas Broyer
On Saturday, May 16, 2020 at 12:44:45 PM UTC+2, Gordan Krešić wrote: > > On 16. 05. 2020. 00:23, Dr. Lofi Dewanto wrote: > > I would prefer just using: > > > > [...] > > (3) Best practice, never mix client- and server-side. Make a stand-alone > > Maven project for your client-based webapp /

Re: determine what table rows and columns are *actually* visible? (for scrollIntoView purposes.)

2020-05-14 Thread Thomas Broyer
You can get the actual element using getRowElement() and compute everything from there, based on the element's offsetParent, offsetTop and offsetLeft. BTW, depending on the browsers you need to support, you might be able to "just" use scrollIntoView with an options dictionary to center the cel

Re: [ANN] JRS gwt-time 1.4.8 release

2020-05-14 Thread Thomas Broyer
On Thursday, May 14, 2020 at 7:30:11 AM UTC+2, foal wrote: > > Hi, > > Yes, I have and not happy with it. Can I ask how to emulate some Java > methods that required Locale as a parameter? The GWT version is not enough. > My version can cause problems. At least I need to describe it correctly on

Re: New Presentation about Modern GWT Webapp Development

2020-05-12 Thread Thomas Broyer
Great deck, there are a few inaccuracies though: - Slide 18: “Most browsers will allow a maximum of two simultaneous connections for fetching resources.” This has been wrong for some time; limit has been bumped to 6 since IE8, Firefox 3.6 ( https://developer.mozilla.org/en-US/docs/

Re: [ANN] JRS gwt-time 1.4.8 release

2020-05-11 Thread Thomas Broyer
I see you provide your own version of java.util.Locale; please don't, this is a recipe for disaster (behavior depends on the order of entries in the classpath and/or gwt.xml, will break as soon as GWT's JavaEmul updates its version, etc.) We've seen it recently: https://github.com/gwtproject/gwt

Re: automatically refresh data in web page

2020-05-11 Thread Thomas Broyer
On Sunday, May 10, 2020 at 4:42:37 PM UTC+2, Marteijn Nouwens wrote: > > Hi Thomas > > For my information. What would you use on the gwt side for EventSource. > elemental2-dom? or hand-written JsInterop, as the API is really small: https://html.spec.whatwg.org/multipage/server-sent-events.html#

Re: automatically refresh data in web page

2020-05-09 Thread Thomas Broyer
Fwiw, WebSocket is for bidirectional communication. Have a look at Server-Sent Events (aka EventSource), https://caniuse.com/#feat=eventsource, it might be easier to integrate in your server stack (it's HTTP, whereas WebSocket is a whole different protocol that needs support at the web server l

Re: Is the UI Binder DocType Broken?

2020-04-30 Thread Thomas Broyer
There's no DTD for UiBinder (because it's by essence impossible), and no XML Schema either (for similar reasons, though at least it would work well with XML Namespaces). That DOCTYPE you have here is only there to declare named entities like you have in XHTML ( , &eacirc;, etc.) rather than havi

Re: GWT DataGrid getRowElement throwing IndexOutOfBoundsException after manually setting the page

2020-03-05 Thread Thomas Broyer
It's probably a timing issue: all (most) changes to an AbstractCellTable are actually deferred to the end of the event loop (through Scheduler.scheduleFinally), so you have to defer the second part of your code (the one that calls getVisibleRange and getRowElement). Did you try to step-by-step d

Re: Veracode detected 5 XSS issues in nocache.js

2020-02-23 Thread Thomas Broyer
On Monday, February 24, 2020 at 1:10:06 AM UTC+1, Craig Mitchell wrote: > > I thought the .nocache.js file just did the loading of the > cache.js files, and the user didn't have much control over what went in > this file. > You do have full control: you can chose the linker being used (default

Re: i18n Failing

2020-01-31 Thread Thomas Broyer
You'll want to The reason for this set-property is to remove the "default" value from the available values (the locale property is defined with a single "default" initial value, you later extend it to add en and es, so it's now default,en,es, and then you overwrite it with this set-property to

Re: Custom Post Linker and Super Dev Mode

2020-01-28 Thread Thomas Broyer
On Monday, January 27, 2020 at 10:39:01 PM UTC+1, Geoffrey Wiseman wrote: > > On Wednesday, January 15, 2020 at 3:49:34 AM UTC-5, Thomas Broyer wrote: >> >> IIRC, with Super Dev Mode, public artifacts aren't generated in the >> launcher dir; you need t

Re: Need help debugging 2.0.3 (IE/Chrome - Eclipse Neon)

2020-01-17 Thread Thomas Broyer
Back in the days, DevMode used to require a browser plugin and actually ran the code in Java (rather than compiling it to JS as SuperDevMode does nowadays). You can find the plugin for IE at https://gwt.googlesource.com/gwt-plugins/+/refs/heads/master/ie/prebuilt/ (plugins for other browsers n

Re: Custom Post Linker and Super Dev Mode

2020-01-15 Thread Thomas Broyer
IIRC, with Super Dev Mode, public artifacts aren't generated in the launcher dir; you need to build your path relative to GWT.getModuleBaseForStaticFiles() rather than GWT.getModuleBase

Re: Adding u2f to js.identifier.blacklist

2019-11-30 Thread Thomas Broyer
On Saturday, November 30, 2019 at 1:34:19 AM UTC+1, Axel wrote: > > The obfuscator does not have "u2f" as a blacklisted identifier. In > conjunction with a Firefox that now (>=67) has U2F enabled by default (see > about:config, security.webauth.u2f) the identifier "window.u2f" is made > availa

Re: Where to get HEAD-SNAPSHOT builds from

2019-11-06 Thread Thomas Broyer
On Wednesday, November 6, 2019 at 3:53:18 PM UTC+1, Paul Stockley wrote: > > Where can I download HEAD-SNAPSHOT builds from? > They're deployed to https://oss.sonatype.org/content/repositories/google-snapshots/ (see https://github.com/gwtproject/gwt/blob/master/maven/push-gwt.sh) -- You rece

Re: Client only applications

2019-10-24 Thread Thomas Broyer
On Wednesday, October 23, 2019 at 10:25:08 AM UTC+2, nikola wrote: > > What is the recommended way of making client only applications in GWT? > There are archetypes here > but all with server > side. > We want to use java as we use typescript t

Re: Is it possible to use the new Clipboard API in a GWT app? It depends on document.hasFocus being true.

2019-10-16 Thread Thomas Broyer
Have you tried with $wnd.navigator.clipboard? On Tuesday, October 15, 2019 at 10:40:04 PM UTC+2, Jim Douglas wrote: > > Ok, there are a few moving parts to this. Keeping it as short as possible, > this is the new Clipboard API: > > https://developer.mozilla.org/en-US/docs/Web/API/Clipboard > > Su

Re: ClassCastException in some browser, but not others (

2019-10-06 Thread Thomas Broyer
On Saturday, October 5, 2019 at 3:36:26 PM UTC+2, Shawn wrote: > > Hi, > > I get a ClassCastException under Safari, Safari on IOS and Chrome on IOS > but not in Chrome. > Just a small note: all browsers on iOS are forced to use Safari's engine (except IIRC they don't have access to some JS en

Re: Annotations on Java8 default are not available in Generator

2019-10-03 Thread Thomas Broyer
This is a known (and on-purpose) limitation; see https://github.com/gwtproject/gwt/issues/9371 (tl;dr: exposing the method like any other would have been a breaking change for all existing generators, which would have wanted to implement the method, unless they are updated to recognize them as

Re: GWT CSP compliance ('unsafe-inline' rule)

2019-09-09 Thread Thomas Broyer
On Monday, September 9, 2019 at 3:36:00 PM UTC+2, Yuriy Ostapyuk wrote: > > Hello. > > I'm struggling with GWT vs CSP problem, specifically 'unsafe-inline' rule. > > I have an application with several deferred modules, which are compiled > and linked with 'xsiframe' or 'direct_install' linkers.

Re: Building a GWT project in Eclipse 2019-03+ with Java 11.

2019-08-01 Thread Thomas Broyer
trieve all the JARs, and continue using your current setup for the rest. > > On Wednesday, July 24, 2019 at 8:40:21 AM UTC-7, Thomas Broyer wrote: >> >> >> >> On Wednesday, July 24, 2019 at 5:14:42 PM UTC+2, Jim Douglas wrote: >>> >>> > Sure. U

Re: JSNI method compilation error with javascript regular expression

2019-07-30 Thread Thomas Broyer
Looking at https://github.com/gwtproject/gwt/blob/4d36d55d26aabc12e4429faf0603c539a54a13cd/dev/core/src/com/google/gwt/dev/js/rhino/TokenStream.java#L1251-L1265 which parses the regexp, it looks like you'd have to escape the '/' so it's not mistaken for the end of the regexp: from: var reg = /^

Re: Building a GWT project in Eclipse 2019-03+ with Java 11.

2019-07-24 Thread Thomas Broyer
On Wednesday, July 24, 2019 at 5:14:42 PM UTC+2, Jim Douglas wrote: > > > Sure. Use a build tool of your choice and use the maven dependencies. > > I don't know what that means. As far as I've ever known, developing a GWT > application in Eclipse implies installing the GWT Plugin for Eclipse an

Re: Building a GWT project in Eclipse 2019-03+ with Java 11.

2019-07-24 Thread Thomas Broyer
Ideally, people should stop using the "GWT SDK" uberjars to begin with; because the JAR that's deployed to the Central Repository does not have these packages: https://github.com/gwtproject/gwt/blob/4d36d55d26aabc12e4429faf0603c539a54a13cd/maven/lib-gwt.sh#L109 On Wednesday, July 24, 2019 at 9:

Re: Using Java 11 on the server to implement GWT-RPC services

2019-07-17 Thread Thomas Broyer
This is again a case where splitting client and server code into separate Maven modules will help (see https://github.com/tbroyer/gwt-maven-archetypes/). The problem here is (probably) that GWT tries to load the compiled classes, and can't because it doesn't understand Java 11 bytecode. So you'l

Re: Help: Error in Call RPC - GWT , 404 the server responded with a status of 404 (Not Found)

2019-07-10 Thread Thomas Broyer
com.emp.mid.web.wkf.Wkf is the name of your GWT module (here, probably the name of your gwt.xml file: com/emp/mid/web/wkf/Wkf.gwt.xml; though most of the time, I believe, people rename it to a shorter name, through the rename-to="" attribute in the gwt.xml file) You can change the service URL on

Re: A Short GWT JsInterop Article for Beginners

2019-06-05 Thread Thomas Broyer
On Tuesday, June 4, 2019 at 6:38:44 PM UTC+2, Jamal Romero wrote: > > Thanks for sharing this!I would love to see also pointer or a reference > available somewhere about the workings of Super Dev Mode in conjunction > with the GWT compiler. Just a high level schematic or flowchart showing the

Re: GWT project data grid double scroll issue in edge browser

2019-05-29 Thread Thomas Broyer
As you can see in your screenshots, columns are not aligned with their headers. This is the reason GWT (tries to) hide the native scrollbars, and "replaces" them with translucent ones (the one you've hidden). This apparently only happens in right-to-left locales; compare http://samples.gwtproje

Re: IE11 Compatibility Mode not supported. How to handle it?

2019-03-11 Thread Thomas Broyer
See https://stackoverflow.com/questions/28727070/gwt-2-7-warn-users-they-are-using-an-unsupported-browser (beware that those properties use eval() so are possibly unsafe and/or won't work under a strict CSP; you could customize the CrossSiteIframeLinker with a different processMetas.js that do

Re: Question about SuperDevMode/codeserver

2019-03-06 Thread Thomas Broyer
It would indeed work (most of the time I believe), but then you need to make sure to force the GWT compiler to compile your code before deploying, because it's really easy to get false positives in the staleness check (if the superdevmode stub *.nocache.js modification time is more recent than

Re: Compilation failure when upgrade the GWT version from 2.7.0 to 2.8.2

2019-03-05 Thread Thomas Broyer
This is not normal. Given that you have no third-party dependency, and that Locale.ROOT was added in GWT 2.7, I'd say that your gwt-user JAR is probably corrupt. Try downloading it again (delete it and re-run Maven). On Tuesday, March 5, 2019 at 2:17:50 PM UTC+1, Periyasamy Ramachandran wrote:

Re: Tips on libraries

2019-02-25 Thread Thomas Broyer
On Monday, February 25, 2019 at 3:08:35 PM UTC+1, Ramon Flamia wrote: > > Thanks Thomas, I imagined this answer :-) > > As I wrote in the initial post, my biggest concern is being updated with > the UI, so I'm waiting for someone to show me his experience with other UI > libraries, maybe even

Re: Tips on libraries

2019-02-25 Thread Thomas Broyer
On Monday, February 25, 2019 at 12:33:23 PM UTC+1, Ramon Flamia wrote: > > Hi everyone, > having to start a new GWT project, on average complex, which framework / > technologies you recommend for the following points: > > - MVP architecture (currently using GWTP) > - dependency injection (current

Re: Seeking advice, migrating from Ant to Maven for GWT App build

2019-02-23 Thread Thomas Broyer
On Saturday, February 23, 2019 at 12:55:17 PM UTC+1, Ralph Roland wrote: > > I'm considering migrating an existing application from being built with > Ant, to being built with Maven. > I've been doing a lot of reading and experimenting with the > net.ltgt.gwt.maven gwt-maven-plugin but can't seem

Re: Annotation processing in Eclipse

2019-02-23 Thread Thomas Broyer
On Friday, February 22, 2019 at 8:40:27 PM UTC+1, Lars wrote: > > Dagger does not play well with the incremental compiler of eclipse - see > https://stackoverflow.com/questions/41178320/does-dagger2-annotation-processor-supports-the-eclipse-incremental-compiler > Background is, that the standard

Re: upgrade GWT project from 2.5 to 2.7

2019-02-11 Thread Thomas Broyer
On Sunday, February 10, 2019 at 1:41:52 PM UTC+1, Jenny Jin wrote: > > Hello, > > I'm working on upgrading our application from gwt 2.5 to gwt 2.7 in order > to take advantage of the Super Dev mode. I installed new GWT plugin in > Eclipse 4.4 in order to get gwt 2.7 library. > However, it has be

Re: upgrade GWT project from 2.5 to 2.7

2019-02-11 Thread Thomas Broyer
On Monday, February 11, 2019 at 10:40:19 AM UTC+1, Frank wrote: > > > > If I remember correctly, superDevMode was introduced in 2.7 ? > And made a lot easier in 2.8. > SDM was introduced in 2.5, made a lot easier in 2.7 (and replacing legacy devmode by default), and made faster in each release

Re: upgrade gwt 2.7 to gwt 2.8.1 not working

2019-02-02 Thread Thomas Broyer
On Friday, February 1, 2019 at 10:31:01 PM UTC+1, Thad Humphries wrote: > > Thanks! You answered this question over a year and a half ago, but I just > hit this very problem while converting an app from 2.7.0 to 2.8.2. (Why > now? With Oracle cutting off Java 8, we moved to Amazon Corretto, and

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