Re: [gwt-contrib] GWT Java7 support

2019-10-23 Thread Jens
> Could someone send a patch? > I guess the steering group first needs to make the decision to finally drop java 7. Maybe ping here again: https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/tMR3Dv1YBBE -- J. -- You received this message because you are subscribed to

Re: Has anyone come up with an annotation processor that can mimic the functionary of resources?

2019-10-22 Thread Jens
Some projects are already moved to GitHub gwtproject organization. https://github.com/gwtproject -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Has anyone come up with an annotation processor that can mimic the functionary of resources?

2019-10-22 Thread Jens
> Do you know if there is a resource where all modules and its repository > are documented? I saw some google doc before, but I do not know if it is > the last resource with all github repo. > Only that google doc and ci.vertispan.com basically. -- J. -- You received this message because

Re: Has anyone come up with an annotation processor that can mimic the functionary of resources?

2019-10-22 Thread Jens
The migrated (J2CL / GWT3 ready) version of GWT Resources uses annotation processing: https://github.com/treblereel/gwt-resources/ -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails

[gwt-contrib] GWT Java7 support

2019-10-21 Thread Jens
It’s kept so long because of java 7 servers and the fact that gwt-servlet doesn’t have its own ant compile target. But I guess it should be fine to drop java 7, it is also holding back upgrading embedded jetty to a decent version. -- You received this message because you are subscribed to the

Re: ClassCastException in some browser, but not others (

2019-10-06 Thread Jens
> Actually I believe it is a bug in closures externs from which elemental2 > is generated. Without checking my guess is that IDBDatabase is annotated > with a @constructor tag rather than a @interface which is incorrect as > the spec defines it as an interface [1]. Unfortunately, this is a

Re: GWT Support for Touch Event

2019-09-08 Thread Jens
> So you are saying the browser fires a touchend event but the GWT event > handler isn't called as a result? > or touchmove -- 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

Re: GWT Support for Touch Event

2019-09-08 Thread Jens
> "Maybe you should log all events using an event preview handler to figure > out why your code does not work as expected." I did all these without any > success and coming to this forum only as a last resort for help. > So you are saying the browser fires a touchend event but the GWT event

Re: GWT Support for Touch Event

2019-09-08 Thread Jens
Touch devices usually emulate classic click / mouse move events as well, so if you have handlers for both they might interfere each other and breaking code assumptions. Other than that, GWT does not do any real magic when it comes to events. Touch events are handled the same as click events or

Re: Same cache file for all users

2019-08-18 Thread Jens
In web development, security is enforced on the server and not in the browser. Even if they would have different kind of cache files, an attacker could still "guess" URLs and download other files. Actually someone can simply login to your server and communicate with it without ever using your

Re: elemental2: Native maps with primitive types?

2019-08-14 Thread Jens
JsPropertyMap.set(key, value) is marked with @DoNotAutoBox, so I guess you should be able to use JsPropertyMap and set int, float, double into it without them being auto boxed. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To

Re: elemental2: Document.createEvent ?

2019-08-14 Thread Jens
> It would be great if there was some documentation that could compare > and spell the differences between > standard cast (), Js.cast(), Js.uncheckedCast() in various use cases > so we could have a list of dos and donts. > There is a whole section about instanceof/cast in

Re: elemental2: Document.createEvent ?

2019-08-12 Thread Jens
> final MyHTMLDocument doc = Js.cast(DomGlobal.document); <-- this crashes > final MyHTMLDocument doc = Js.uncheckedCast(DomGlobal.document); <-- this > works > Because the native browser document isn't a MyHTMLDocument? You can only treat it like a MyHTMLDocument by doing a nasty

Re: com.google.gwt.jsonp.client.TimeoutException

2019-08-08 Thread Jens
Well just open the browser dev tools and take a look at the http requests the browser does. If your MapServer request does not finish quickly as expected you should investigate your server side implementation. If it does finish quickly but you still get a timeout exception, then the server

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

2019-07-24 Thread Jens
> You can download and use the GWT artifacts published to Maven Central ( > https://search.maven.org/search?q=g:com.google.gwt) which do not include > the offending classes. However you must provide these classes manually then > as additional jars on your class path. > On the left side you

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

2019-07-24 Thread Jens
> But I have to go back to my original question: Wouldn't it be > theoretically trivial to simply strip out the offending classes from > gwt-dev.jar in the process of publishing a GWT 2.9.0? > That would break everyone using current GWT SDK. repackaging into a different package would be the

Re: GWT code splitting and generics

2019-07-24 Thread Jens
GIN has a AsyncProvider class which calls GWT.runAsync(...) internally to code split T with T being something concrete that GIN can inject. Have you tried that AsyncProvider instead? -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To

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

2019-07-24 Thread Jens
> Is there currently any way to develop a GWT application in Eclipse without > using the GWT SDK? > Sure. Use a build tool of your choice and use the maven dependencies. If I remember correctly the GWT plugin for eclipse will pick up the gwt-user/gwt-dev jar from the class path if you have

Re: java.time

2019-07-24 Thread Jens
The only other library I am aware of is gwt-joda-java-time which uses js-joda which itself is a JavaScript port of ThreeTen (which is also the base implementation used for the gwt-time project you took

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

2019-07-24 Thread Jens
> When I configure Eclipse 2019-06 to use this modified GWT 2.8.2 SDK, i am > able to more or less get it to build, eventually, but with a flood of > obscure "Validating GWT Components" errors that have to be tediously > clicked through: > > An internal error occurred during: "Validating GWT

Re: [gwt-contrib] CI / Jenkins configuration issue

2019-07-06 Thread Jens
> fixed > Hmm, build.gwtproject.org still isn't accessible for me and Jenkins still does an endless check as soon as +1 or +2 is given. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop

[gwt-contrib] CI / Jenkins configuration issue

2019-06-29 Thread Jens
Can anybody with the appropriate permissions mark https://gwt-review.googlesource.com/c/gwt/+/21680 as verified so it can be merged and possibly figure out why Jenkins does an endless fast style check? Also http://build.gwtproject.org isn't reachable for me. Wondering if there is really an

Re: GWT source compile error

2019-06-28 Thread Jens
Hmmm maybe the ANT build holds the gwt-dev.jar open and thus Windows forbids overwriting the file with gwt-dev-merged.jar . I guess you need to either try changing the build file to make is work on Windows or use a Linux VM for now. -- J. -- You received this message because you are

Re: Stack trace not showing correct line number

2019-06-19 Thread Jens
> In my experience, with "compiler.stackMode = native", even when using > Chrome, you don't get line numbers. You have to have "compiler.stackMode > = emulated". > Today I have looked at a stack trace and it did show the correct line number when using Chrome. But the app uses GWT trunk and

Re: Stack trace not showing correct line number

2019-06-19 Thread Jens
In addition to what Freddy already said: Native JS exceptions (which you get with "compiler.stackMode = native") should provide a line number as well as a column number. However not all browsers do this, some only report a line number. For those browsers that do not provide a column, the stack

Re: "socket.io.js" + JSInterop

2019-06-19 Thread Jens
I don't see a reason why socketio should give you nightmares with GWT + JsInterop. Generally you can use any JS library with GWT. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from

Re: JSNI - access inner class attribute from external JS?

2019-06-17 Thread Jens
> > > Thanks for your help Jens. Is there some documentation that explains this > syntax to any degree? All I can find is this and it isn't enough - > http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#calling > Thats the only information on the off

Re: JSNI - access inner class attribute from external JS?

2019-06-17 Thread Jens
Your setValue() method must be static if you want to call it that way. If it must be an instance method you need to write barinstan...@pkg.foo.bar::method (don't forget the dot after instance variable) -- J. -- You received this message because you are subscribed to the Google Groups "GWT

Re: [gwt-contrib] Re: What tool generates TimeZoneConstants.properties?

2019-06-06 Thread Jens
> Is bundling data before 1970 really worth the additional bloat? If you ask > me, I wouldn't even go down to 1970. > Well ideally the developer should decide how much data the application needs and not GWT SDK. So we should either include all or make it configurable. If you look at

Re: [gwt-contrib] Re: What tool generates TimeZoneConstants.properties?

2019-06-05 Thread Jens
> I looked at the file and the GWT code using it and the format seems pretty > clear to me. > Totally forgot to write the format down for documentation: europeBerlin = { // Time Zone Id "id": "Europe/Berlin", // List of pairs. The DST offset is added on top of std_offset if DST is

Re: [gwt-contrib] Re: What tool generates TimeZoneConstants.properties?

2019-06-05 Thread Jens
I looked at the file and the GWT code using it and the format seems pretty clear to me. Writing a new tool looks pretty simple, we just have to decide which implementation strategy to choose. 1.) use JDK java.time package to read the tzdata information packaged with Java. Given that JDK is

Re: Are there any plan to update dependent libraries in GWT 2.9 /3.x

2019-05-15 Thread Jens
GWT still supports Java 7. Switching to Java 8 as a new baseline is currently being discussed at https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/tMR3Dv1YBBE . Updating Jetty to newest version would require Java 8. Newer versions of other libraries might have the

[gwt-contrib] Re: Time to require JDK 8?

2019-04-25 Thread Jens
I am totally fine with requiring JDK 8 when using GWT. Personally I would even like to see requiring at minimum the Java version we provide emulation for. That would free us from super sourcing emulation tests for newer Java APIs / syntax which is quite annoying. Also your ANT build could

Re: Different colspan

2019-04-22 Thread Jens
There is FlexTable.getFlexCellFormatter().setColSpan()/setRowSpan() -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Is this project active?

2019-03-28 Thread Jens
Java 11 language/syntax support has just been committed: https://gwt.googlesource.com/gwt/+/205b88a4d88cc0c23b2cd0df681a18d114443a7c Currently in the GWT 2.x versions only minimal work will be done. Contributors focus their work on splitting GWT SDK into smaller pieces and make them J2CL

Re: Unexpected behavior

2019-03-13 Thread Jens
Why don't you just look at the JavaScript in Chrome to see if GWT compiler did some easy optimizations which cause your stepping though source maps look strange. Especially if you start SDM using -style PRETTY and -XmethodNameDisplayMode you can understand the JS relatively well, even without

Re: paper-dialog-scrollable isn't scrolling

2019-03-08 Thread Jens
Scrolling can only appear if the parent dialog can not grow anymore and thus will be smaller than its content. So if you want a smaller dialog, give it a fixed height that suites your needs. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group.

Re: Annotation processing in Eclipse

2019-02-21 Thread Jens
Have you checked the Eclipse error log window? I know we once examined Dagger2 + AutoFactory and there was some bug in Eclipse JDT that caused internal Eclipse exceptions to escape and thrown during annotation processor execution which in turn stopped generating source files. Maybe that issue

Re: Testing emulated jre classes

2019-02-13 Thread Jens
> What should to go into src/test/super? > This can be used to super source classes for GWT compiler that you only use within GwtTestCase and not in your normal app code, e.g. some test library that only works with GWT if you super source some classes. As a little extreme example you can

Re: Testing emulated jre classes

2019-02-12 Thread Jens
You have to create a a subclass of GwtTestCase which requires you to specify a GWT module. Here an example for java.util.Random emulation within GWT SDK: https://github.com/gwtproject/gwt/blob/master/user/test/com/google/gwt/emultest/java/util/RandomTest.java Once you run the GwtTestCase using

Re: Is it possible to mark a class as @JsType native without explicit annotation?

2019-02-08 Thread Jens
> Does that capability exists somehow? > No. You have to create your own class, mark it as JsType and delegate to the class you don't own. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: [gwt-contrib] Re: Java11 support

2019-02-06 Thread Jens
> Colin, > My concern is that a lot of time is spent on re-writing RPC, XML > UI-binding. Given how short-handed the maintainers are, should we not focus > on just one thing - 2.9 with basic compiler support for Java 11 jdk? I > don't even advocate for porting any new core Java 9+ JDK APIs.

[gwt-contrib] Re: Java 9, 10 JRE emulation reviews

2019-01-30 Thread Jens
> Likewise, has someone had the chance to look at Java 9+ support for our > ant build? > I tried building GWT a few days ago with Java 11. Seems like we first have to apply the patch of Andrei (https://gwt-review.googlesource.com/c/gwt/+/2) and then make javadoc API available to

Re: java.nio.file.AccessDeniedException thrown on GWT compile

2019-01-20 Thread Jens
Search in IntelliJ preferences for "safe write" and try disabling it. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[gwt-contrib] Re: NoSuchMethodException in HEAD-SNAPSHOT has been removed, breaking knightsoft gwt-bean-validators

2019-01-03 Thread Jens
> It has always had a private constructor to make that completely > impossible. > Private constructor? Looks like it always was public as it should. https://github.com/gwtproject/gwt/blob/2.8.2/user/super/com/google/gwt/emul/java/lang/NoSuchMethodException.java -- J. -- You received

Re: [gwt-contrib] Re: NoSuchMethodException in HEAD-SNAPSHOT has been removed, breaking knightsoft gwt-bean-validators

2019-01-03 Thread Jens
> I agree this is mostly a misuse like you said. We don't have any internal > usage in all Google either so I would rather push users to not > declare/catch such exceptions. Keeping such classes opens the door for > more: https://gwt-review.googlesource.com/c/gwt/+/21320 > Actually I am

[gwt-contrib] Re: NoSuchMethodException in HEAD-SNAPSHOT has been removed, breaking knightsoft gwt-bean-validators

2019-01-03 Thread Jens
It is not a RuntimeException so even though you might be able to remove it from GWT emulation code, your IDE will still annoy you in calling code to either catch that exception or redeclare it because your IDE does not know that GWT emul is cheating. If that calling code is exclusively within

[gwt-contrib] Re: NoSuchMethodException in HEAD-SNAPSHOT has been removed, breaking knightsoft gwt-bean-validators

2019-01-03 Thread Jens
I would say this change should be reverted in GWT then. Personally I would never ever delete any already emulated class in GWT. While this exception has been misused in some of the above code (e.g. URL.openStream() should not be emulated at all or throw UnsupportedOperationException), in the

Re: Caused by: java.lang.NoClassDefFoundError: com/google/gson/JsonParseException ?

2018-12-19 Thread Jens
For both versions the Maven pom.xml for gwt-servlet artifact declares an optional dependency to GSON. It is optional because it is only needed when you use StackTraceDeobfuscator on the server. So if you use that, you need to add GSON manually to your pom. Maybe you updated some other

Re: A class cast exception when upgrading from GWT 2.8.0 to 2.8.2 ?

2018-12-19 Thread Jens
> BTW: what is the correct way to solve this? > > Should I make a new class that extends both JavaScriptObject and > implements ZtoeslagAppConfig? > Yes, and getPages() would be implemented using JSNI. That also means that AppPage should be a JSO (and might implement in interface).

Re: A class cast exception when upgrading from GWT 2.8.0 to 2.8.2 ?

2018-12-18 Thread Jens
Hmm as you are using intersection types this might be related to https://github.com/gwtproject/gwt/commit/1ce1c710c7d3d7bffc246c7f013009b670be44a4 which has been committed between 2.8.0 and 2.8.2. So it could very well be that now there is a cast check inserted by GWT because you use an

Re: [gwt-contrib] Re: 2.9 progress

2018-12-06 Thread Jens
> Is it acceptable that an official GWT implementation of the time API would > be based on moment.js ? Or is it expected that it is all implemented with > standard browser API and pure Java code ? > Because GWT compiler can not see/optimize external JS files, an official GWT implementation

Re: [gwt-contrib] Re: 2.9 progress

2018-12-05 Thread Jens
> For the emulation changes I can live with what is available now and get > some more in a later release. But how does the gwt team decide which are > crucial and which ones can be done in a separate library ? The java.time > API should really be considered, the Date object has been

[gwt-contrib] Re: 2.9 progress

2018-12-05 Thread Jens
I think the JDT version GWT currently uses does not officially support Java 11. However Java 11 has no notable syntax changes except the var keyword for lambda parameters. So it might work, but maybe it doesn't. Have you tried running GWT with Java 11 and using that new syntax? Also no Java

Re: Generate user.agent independent code

2018-11-30 Thread Jens
If you are just using GWT JRE emulation then I think you could just only inherit Core.gwt.xml from GWT SDK. That should not give you user agent based permutation. The JRE emulation does not use deferred binding based on user agent. Once you only have a single permutation you can use the single

Re: Deobfuscated stack trace message and line-specific stack traces

2018-11-05 Thread Jens
Depending on your browser versions you support, you could try enabling source maps for other user agents as well. Currently it is only active for safari permutation. If you deploy the generated source maps, the StackTraceDeobfuscator could use them on the server to make better stack traces.

Re: Plug in External Application to GWT

2018-10-25 Thread Jens
If that external application produces a HTML page then yes, you could display this HTML page in an HTML iframe within a GWT application. Otherwise you must rebuild the UI of the external application in your GWT app and query the external application for data that you use to fill the UI of your

Re: parsing GWT messages in oVirt project (webadmin interface)

2018-10-23 Thread Jens
Have you seen: https://docs.google.com/document/d/1eG0YocsYYbNAtivkLtcaiEE5IOF5u4LUol8-LL0TIKU/edit already? This document describes the wire format of GWT-RPC as in GWT 2.5. I think nothing really changed in the wire format since then. -- J. -- You received this message because you are

[gwt-contrib] Re: Java 11 is there gwt 2.9 ?

2018-10-18 Thread Jens
Since there is no updated JDT in GWT, it might be that you can not use var keyword in lambda parameter definitions for now. Have you tried that? Other than that Java 10 and 11 are pretty much the same in terms of syntax. I have said it on Gitter recently and I think also here in this group:

Re: Passing method references to HTMLElement.removeEventHandler

2018-10-12 Thread Jens
> Is it still good practice to remove listeners when you don’t need the html > element anymore ? or do modern browser garbage collectors cope with > circular references between DOM and JS objects ? It was one of the features > of Widgets that they avoided the leaks automatically. > All

Re: Passing method references to HTMLElement.removeEventHandler

2018-10-12 Thread Jens
Method references and lambdas are anonymous implementations. Each usage will create a new instance. Even in pure Java you have Runnable r = this::onClick; Runnable r2 = this::onClick; System.out.println(Objects.equals(r, r2)); // false So you should keep track of your click handler if you

Re: Release plans - where to find information about future versions?

2018-09-10 Thread Jens
Take a look at the Github milestone for 2.9 https://github.com/gwtproject/gwt/milestone/19 And because not every commit is added to the milestone you can also look at the progress since 2.8.2 https://github.com/gwtproject/gwt/compare/2.8.2...master -- J. -- You received this message

Re: Why the GWT complier used so much memory?

2018-09-09 Thread Jens
> Are there someone working on the optimization of the GWT compiler, it is > too slow for us > No. You can use -localWorkers parameter to adjust how many permutations should be compiled in parallel. The higher the number the more memory is needed. If you use -localWorkers 1 then

Re: GWT 2.9 Questions

2018-09-05 Thread Jens
> For the interface default method problem, it is related to ui:binder way > of using setter methods. > The reason is that GWT hides default methods from GWT generators for backward compatibility as some generators might not expect them. I don't know if there has been any discussion recently

Re: GWT 2.9 Questions

2018-09-05 Thread Jens
GWT 2.x will not drop JSNI anytime soon, only GWT 3 will as it uses a different Java -> JavaScript compiler internally. And yes there is really no timeline for GWT 3 as most work is done by contributors in free time. Currently we are trying to migrate GWT 2.x SDK code so it will become GWT 3

Re: gwt datetime set date

2018-09-05 Thread Jens
> dateItem = new DateItem("expDate"); > This is not a GWT SDK class, so no idea if you will get useful answers here. > dateItem.setEndDate(new Date(2030,1,1) );// is it possible to set > the date to 2030 ? ** > java.util.Date constructor takes a

Re: Problem with refreshing a Flextable after changes

2018-08-20 Thread Jens
Add a close handler to your edit campaign dialog box and once it closes re-render the corresponding row. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Add Mouse Events for Canvas Drawing

2018-08-15 Thread Jens
While you can paint an image into the canvas, the canvas itself is just pixel. When you click on the canvas you actually click the rendered pixel and not the image instance used to paint these pixels into the canvas. So a click handler on the image does not make any sense. To work effectively

Re: jsInterop to Promise Js function

2018-08-11 Thread Jens
The timeout is not a promise nor does it act like a promise because a promise is something that your sum() method would actually return to the caller so that the caller can react to the promise outcome by registering callbacks to it. In your example your sum() method returns nothing and you

Re: GWT behaves differently in Chrom vs Firefox

2018-07-30 Thread Jens
> Hi Michael: I tried this by Windows > Preferences > General > Workspace > > Build and unchecked the "Build automatically" option. It didn't help. Am > I doing the right thing? Is there any other option? > GWT SuperDevMode has its own cache that you can clear by visiting the SuperDevMode

Re: [gwt-contrib] Wrong deobfuscated stack traces

2018-07-30 Thread Jens
> Looking at this traces it seems to me that the file/line is consistent but > the member is completely off. That suggests that the wrong symbol map is > being used. > It is stock GWT with just a single change wrt to Date serialization. We deploy what GWT gives us and the code chooses the

[gwt-contrib] Wrong deobfuscated stack traces

2018-07-30 Thread Jens
In production we sometimes get exceptions and we log them using StackTraceDeobfuscator class on the server (either symbol maps or source maps, depending on browser). However these stack traces are often broken when comparing the member with the file it should live in. Some examples: at

Re: [gwt-contrib] Re: Java10 support

2018-07-13 Thread Jens
> > But I need to figure out if this is a local problem due to our mirrors of > the maven repos or if the HEAD-SNAPSHOT is maybe not updated for some time. Likely a local problem. You can see GWT builds at http://build.gwtproject.org/job/gwt/ and each successful build pushes HEAD-SNAPSHOT to

Re: [gwt-contrib] Re: Java10 support

2018-07-12 Thread Jens
> I guess I am bit overworked :) ignore the last statement! > :D :D and now you are sad? :) -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: SerializationException While Upgrading to GWT 2.8.2

2018-07-11 Thread Jens
GWT-RPC responses have a string table to deduplicate strings and minimize the response size. When deserializing a server response the code will try to lookup a type signature string in the string table, however in your case the lookup returns wrong data and serialization fails. "153221" is not

Re: Jetty version is outdated

2018-06-22 Thread Jens
I assume you have everything (client, shared server code) in the same project in IntelliJ. Then IntelliJ has likely already detected the Web Facet for your project. If not you have to add that Web Facet in the Project Structure configuration screen in IntelliJ. Make sure that Deployment

Re: Using UIField HTML to create a dynamic table

2018-06-18 Thread Jens
> > > This means GWT has made a request to your server but the servlet is not registered at the expected location, thus the

Re: Using UIField HTML to create a dynamic table

2018-06-17 Thread Jens
The errors says you have a ClassCastException in line 14 in MyAction.java. So you should start looking at MyAction. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: GWT Emulated classes

2018-06-05 Thread Jens
GWT has a feature called "super source" which allows you to override existing source files with your own implementation. GWT itself uses this technique to emulate JRE classes and you can use that technique as well to emulate additional classes. Take a look at

Re: Exposing my GWT API via web/RESTful service - can it be done (easilyish)?

2018-05-31 Thread Jens
> If yes: Is it possible to add Swagger UI for existing GWT-RPC POST > requests? > No. You would need to make a REST API using the OpenAPI specification (swagger) and let that REST API call your GWT-RPC services. GWT-RPC isn't REST / JAX-RS. -- J. -- You received this message because you

Re: [gwt-contrib] Re: The elusive J2CL

2018-05-30 Thread Jens
> >1. The backing company backed off but kept the crucial new piece >secret - J2CL. > > These days it is already available to a few people who take their spare time to make it useable by the general public. >1. The past and current stated direction devolves the product, does >

Re: Creating Key-Value Pair Javascript Object Using Java

2018-05-28 Thread Jens
With latest GWT you can use jsinterop-base library and then use JsPropertyMap: https://github.com/google/jsinterop-base/blob/master/java/jsinterop/base/JsPropertyMap.java With older GWT versions you can use JSONObject from com.google.gwt.json.JSON. -- J. -- You received this message because

Re: Documentation: incorrect mixing of Dev Mode and SuperDev Mode in 'Overview' article

2018-04-27 Thread Jens
Yeah you are right, the GWT site needs a little love here and there. It is a community effort to keep it up to date. The GWT site is available on Github and accepts pull requests (requires a CLA though) so you could invest some time to improve it. -- J. -- You received this message because

Re: Docs on debugging

2018-04-27 Thread Jens
Out of date. GWT site is a community effort and it is not uncommon that some documentation has become outdated over time. But that also means you could start working on an update and make a pull request on github ;-) -- J. -- You received this message because you are subscribed to the Google

[gwt-contrib] Re: IntelliJ IDEA project config

2018-04-25 Thread Jens
It is pretty annoying to setup GWT correctly in IntelliJ :( Quite some time ago I had one working, but in the mean time a bit has changed in terms of emulation packages and libraries. You can use the old state as a starting point: https://gwt-review.googlesource.com/c/gwt/+/12380 (see Readme

Re: super dev mode Jetty version?

2018-04-13 Thread Jens
The easiest solution would be to invest a minimal amount of time to install and configure your own Jetty server and use it instead of the embedded Jetty provided by GWT. This has the big benefit that you can configure anything you like and match your production environment without any GWT

[gwt-contrib] Re: Naming convention for ported GWT modules

2018-04-07 Thread Jens
> Fwiw, I can see zero reason why examples would be published to a Maven > repo. Well right, although quite a lot projects do so. But maybe just because examples are part of a multi module project and they just deploy everything to maven central. That would even be a stronger argument to

Re: Form Panel SubmitCompleteEvent not triggered

2018-04-05 Thread Jens
GWT submits a FormPanel into an iframe and then waits for the iframe to fire a load event in order to fire a SubmitCompleteEvent. Looks like Firefox and Safari do not fire a load event on the iframe in case loading fails with status code 400. I am unsure if Chrome or Firefox / Safari behave

[gwt-contrib] Re: Java10 support

2018-04-03 Thread Jens
> The next step will be to support Java 10 APIs (we still have some Java 9 > ones to add) and language features. > I have a partial JDiff report (some packages still missing) between current GWT HEAD emulation and JDK 10. It is a bit annoying to run javadoc/jdiff against GWT HEAD emulation

[gwt-contrib] Re: Java10 support

2018-04-03 Thread Jens
Is there a stable Eclipse JDT release supporting local variable type inference? Doesn't look like Eclipse itself already supports Java 10 language features. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this

[gwt-contrib] Re: Naming convention for ported GWT modules

2018-03-25 Thread Jens
What about org.gwtproject.sdk:gwt-$module and org.gwtproject.sdk:gwt-$module-processor (keep the optionally APT module flat within org.gwtproject.sdk group Id) org.gwtproject.examples:$lots-of-example-apps-using-any-gwt-module-combinations org.gwtproject.site:... org.gwtproject.tools:...

Re: GWT with App Engine (standard) and maven?

2018-03-19 Thread Jens
> I've been trying to create a gwt-lib that contains some static web > resources (fonts, css, ...) to be used in depending projects. > Where should I place these files? They used to be in the "public" > directory on the same level as client/server/shared in the old days when > there way just

Re: Any recommended free server hosts for GWT apps?

2018-03-03 Thread Jens
If your app is just client side code, put it on Github pages. If you have server side code, I would advice you to write it in PHP and buy a 1-2 dollar webspace solution that supports PHP and MySQL database. Java is pretty heavy on server side so I guess there are no free offerings. Using PHP

Re: Google maps and GWT 2.8

2018-03-01 Thread Jens
> Do I really need to connect to the Google Maps Javascript API > > through JSInterop? > Seems so if there are no other working solutions. But you only need to expose the JS APIs you actually need through JsInterop, and

Re: GWT 2.8.3 plans?

2018-03-01 Thread Jens
If you want to update GWT every 6 month then just use any HEAD-SNAPSHOT build from a specific day and stay on it for 6 months. GWT does not upload HEAD-SNAPSHOT builds with failed tests so HEAD-SNAPSHOT builds are usually not less stable than a named version release. At work we stopped using

Re: GWT Plugin 3.0 fails to download connection reset after a while

2018-02-26 Thread Jens
> > Unable to read repository at > http://storage.googleapis.com/gwt-eclipse-plugin/v3/release/plugins/com.gwtplugins.gdt.eclipse.platform_3.0.0.201710131939.jar > . > I can download that jar without issues using a browser. Maybe it is some virus scanner or proxy causing the issue. -- J. --

Re: setFocus not working on iOS

2018-02-13 Thread Jens
Try wrapping setFocus() in a Scheduler.get().scheduleDeferred() command. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[gwt-contrib] Re: Gerrit Changes and Merging them into master

2018-02-06 Thread Jens
> It is possible to become a maintainer or what are the criterias to become > one? > The Steering Committee of GWT decides who becomes a maintainer for a specific component of GWT or a global maintainer. You can find a bit more information here:

[gwt-contrib] Re: Gerrit Changes and Merging them into master

2018-02-06 Thread Jens
Changes can be merged when they have a +2 code review. Currently there are only three https://gwt-review.googlesource.com/q/project:gwt+status:open+label:code-review%253D2 A +2 code review can be done by the Google GWT team and some additional people acting as maintainers for different parts

Re: Eclipse (neon) with the GWT app translates the Java code of Paul Falstad's electronic simulator into JavaScript

2018-02-02 Thread Jens
Am Freitag, 2. Februar 2018 17:55:50 UTC+1 schrieb Michael Joyner: > > I wonder if it might be related to using Java float or double in the math > code, javascript numbers don't exactly match up. > Well both Java and JavaScript use 64bit IEEE 754 so when using float / double in Java and

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