Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Jens
> Thanks that worked! Given that this flag was off by default, what are the > main ramifications of leaving it on? > The flag is not active by default because your project might depend on GWT libraries that are also published as pure JS libraries by exporting the GWT code to JS using

[gwt-contrib] Re: Experimental release of Elemental2

2017-02-12 Thread Jens
> What data sources does it consume? Does it take Typescript or Web IDL as > input or something else? > According to a GWTcon 2016 Video the generator uses Closure extern files as well as TypeScript definition files so you can use it to generate JsInterop wrappers for lots of JS libraries.

Re: Native JsTypes with properties containing dashes

2017-02-10 Thread Jens
Please file an issue for it so that JsInterop hopefully support it in the future. https://github.com/gwtproject/gwt/issues -- 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,

Re: List of native JsType

2017-02-09 Thread Jens
> Looking at the js output the problem seems to be this line: > > for (t$iterator = new ArrayList$1(list); t$iterator.i < > t$iterator.this$01.array.length;) { > *castToNative($next(t$iterator), > $wnd.com.test.client.interop.InteropTest);* > } > > The variable

Re: Porting Sass/Less to GssResource

2017-02-08 Thread Jens
I usually just use: .clear:after { content:''; height:0; display:block; visibility: hidden; clear:both; } and apply it on the element whose children have float. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from

Re: float[] is super slow

2017-02-06 Thread Jens
> The reason I'm asking is because Super-source solution can not change all > "new int[...]" invocations in my program. > As far as I understand, the SS solution can change some ArrayFactory and > each time I need to use it I have to write ArrayFactory.createFloatArray. > "new float[]" will

Re: float[] is super slow

2017-02-06 Thread Jens
> How can I personally patch the compiler to use Float32Array Int8Array, > Int16Array, Int32Array, e,t,c ? > Is it super-hard ? > Is there a single place that generates new basic type array ? > I think easiest solution would be to implement an "optimization pass" on the JavaScript AST. You

Re: float[] is super slow

2017-02-06 Thread Jens
> There is an ugly workaround (which breaks portability, yes I write > portable client code (iOS, Android)): > To make it portable use GWT super source. So in your main code you create a normal float array and in GWT super source you create the Float32Array instead. Then you publish

Re: Run GWT/GXT in Debug Mode while Deployed on WebSphere

2017-02-02 Thread Jens
> However, when I place the breakpoints in that simple application, it only > catches breakpoints on the RPC service side of the application, and no > breakpoint is caught on the GWT side, e.g. on any of the registered > handlers. > SuperDevMode (SDM) compiles everything to JavaScript and

Re: CellTable Page Size Optimization

2017-02-01 Thread Jens
Can't you just read the height of the table and calculate row count based on that height? If you need notifications that a desktop user has made his browser as small as a mobile screen you can use media query events (use JSNI or JsInterop to make them available to your app).

Re: GWT/Maven: No source code is available for type junit.framework.Test; did you forget to inherit a required module?

2017-01-28 Thread Jens
> I'd start with a new maven project "mylib", which is based on a > simple archetype-quickstart maven stub, and I'd add two subfolders under > src/main/java/mylib: > >- src/main/java/mylib/general >- src/main/java/mylib/web > > Then, I'd add the following file: > >

[gwt-contrib] Re: GWTCon 2015 keynote question

2017-01-26 Thread Jens
Wow that looks too weird for me to see any value in it :D -- 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: [WARN] Namespace option is not compatible with CodeSplitter, turning it off.

2017-01-26 Thread Jens
The GWT compiler has a namespace option (-Xnamespace) you can turn on during compilation. But turning it on can produce bugs, especially when using code splitting so this option has been deactivated for now. The reasoning why this change has been made can be read in the code review:

Re: Drag and Drop in GWT

2017-01-25 Thread Jens
Take a look at "Lienzo" for GWT: https://www.lienzo-core.com/lienzo-ks/#WELCOME -- 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: com.google.gwt.core.client.JavaScriptException: (Error) description: Out of Memory number: -2146828281 __gwt$exception: : Out of memory Can anyone help me fix this error? I am using

2017-01-20 Thread Jens
You might want to use IE 11 developer tools to see memory consumption and if it keeps growing the longer you use your app. I don't think anyone can help here, you have to analyze your app in IE 11. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users"

Re: Using css autoprefixer with GWT

2017-01-19 Thread Jens
> However, could you give and example of how calling autoprefixer > programmatically inside resource generator would look like? > No, I have no idea about the autoprefixer API. In terms of GWT you would likely need to copy CssResourceGenerator and GssResourceGenerator and then add

Re: Using css autoprefixer with GWT

2017-01-18 Thread Jens
I use GSS mixins. Works ok for me, usually you don't need a lot of prefixes to maintain. To automate it you would need to call autoprefixer programmatically in a resource generator or use a file watcher (IntelliJ has a plugin for it, otherwise use grunt or so) that triggers autoprefixer

Re: @UiChild Nested Tags

2017-01-17 Thread Jens
AFAICT @UiChild does not support sub-sub-tags. You would need to define a sub component that itself again has @UiChild tags, so it becomes Or don't use @UiChild at all in these cases and do it in code. -- J. -- You received this message because you are subscribed to the

Re: [gwt-contrib] Re: Thoughts on DevMode

2017-01-16 Thread Jens
> J2Cl itself will likely be built with Bazel (given that even Dagger et al. > are moving from Maven to Bazel, I don't think we want to invest in > maintaining a non-Bazel build –contributed by "the community"– in parallel > to Bazel –contributed by Google–), and our goal as a community will

Re: [gwt-contrib] Re: Thoughts on DevMode

2017-01-16 Thread Jens
> > > But this is still handwaving for now, as nobody outside Google has seen > J2Cl yet (the Steering Committee, and probably select contributors, should > have an early access to it in the coming weeks/months, to have a better > sense of how GWT 3 could look like, and possibly help in the

[gwt-contrib] Re: Thoughts on DevMode

2017-01-13 Thread Jens
Sorry but this will very likely never happen unless you do it yourself together with other interested people and manage it on Github as a community project. Google (GWT's main committer) invests in J2CL + Closure Compiler in the future so they won't do it and current contributors will likely

Re: Super Dev Mode stopped working in Chrome

2017-01-12 Thread Jens
Don't use SSL or install a local reverse proxy (apache, nginx) that accepts SSL and proxies the request to SDM using non-SSL connection. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving

Re: Requestfactory: How to use Object?

2017-01-06 Thread Jens
> > And who knows, maybe one day we'll finally have grpc-web ;-) > Oh please! +1 -- 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: Condition definition of property

2017-01-04 Thread Jens
A property can't be defined conditionally, so you must define it yourself if you want to use it and GWT did not define it already. The only way to get the GWT version as a binding property is to first write a linker that publishes the GWT version in the generated JS code and then write a JS

Re: Eclipse Plugin GWT Development Mode (CodeServer) does not work

2017-01-03 Thread Jens
> I was too quick to respond. > > After switching the logLevel to trace it now started working. > > I guess that changing the logLevel does a full recompile instead of an > incremental one, > so I was in effect still using the generated JS without the > JsInteropExports. > Hmm interesting.

Re: Eclipse Plugin GWT Development Mode (CodeServer) does not work

2017-01-03 Thread Jens
No idea, but maybe some elemental 2 code isn't correct yet and you need to pass -generateJsInteropExports as SDM parameter? -- 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,

Re: Custom Bean validation

2017-01-03 Thread Jens
> But beware, Bean Validation support is deprecated! > http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0_RC1 > https://github.com/ManfredTremmel/gwt-bean-validators as a successor -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users"

Re: Where do I find old distributions?

2017-01-03 Thread Jens
There is a pending pull request that updates these links. You can see the updated locations in https://github.com/gwtproject/gwt-site/pull/205/files -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: JsInterop JSON.parse()ed object differs from JSNI JSON.parse()ed object

2016-12-30 Thread Jens
Just tried it and both JSNI and JsInterop work as expected. Given that in your broken example all timestamps are the same, I guess your server or some other code has a bug and it only accidentally occurred while you were testing JsInterop. -- J. -- You received this message because you are

Re: Is there still a visual designer for GWT .

2016-12-30 Thread Jens
GWT itself does not provide a visual designer. If the old GWT designer hasn't been updated to work with current GWT and Eclipse then I guess the answer is no. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group

Re: Java 8 Date/Time API Support (JSR 310)

2016-12-24 Thread Jens
No it does not. We did not had enough time to look at it before GWT 2.8. But generally the JSR 310 backport would be the basis of a GWT emulation. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: Force Client Bundle to refresh without any modification on the file

2016-12-21 Thread Jens
> About GWT generators not being supported anymore, does this include the > ClientBundle? The generators I overridden (*AbstractResourceGenerator*) > is heavily used in ClientBundle (like for TextResource etc..), and I didn't > think they were going to remove that. > All stuff that is based

Re: Force Client Bundle to refresh without any modification on the file

2016-12-21 Thread Jens
> Is there a solution to tell GWT that my ClientBundle needs to be refreshed > at every compilation? > No. Also your solution defeats any code pruning because of the generated switch statements that references all the component templates that might or might not be used by a given

Re: Strange ClassCastException with GWT 2.8 and SDM

2016-12-15 Thread Jens
Compile both versions using -style PRETTY (DETAILED is so annoying to read). How does the generated JS look in both cases? -- 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,

Re: Use of existing java applications/ jars in a GWT project

2016-12-10 Thread Jens
> HI Jens >Thanks for the reply >- How do we define GWT modules externally , for classes in third party > jars > Just like normal GWT modules, its only important that they are in the correct package, e.g. if you want to use com.3rdparty.math.* you could crea

Re: Use of existing java applications/ jars in a GWT project

2016-12-09 Thread Jens
> > > - Would i need to change the existing jars, to add a module definition > to each of them ? > No you can define the module definition externally. > - DOes the GWT compiler need the actual source code too for each of > these. > Yes GWT compiler needs the source code of your jars

Re: Integrating Google Analytics with GWT (SPA) Application to capture the User Flow

2016-12-06 Thread Jens
> Thanks jens..now my worry is if i add this global handler will it create >> performance issue? >> > Obviously all DOM events will now reach your event handlers a bit slower because JavaScript is single threaded and you execute additional code inside the event loop and bef

Re: Integrating Google Analytics with GWT (SPA) Application to capture the User Flow

2016-12-01 Thread Jens
> > > our gwt application is single page i have lot of tabs and dashboard ,i > want a global event which capture all the event with widget name. > is It possbile in GWT? > You can globally listen for event previews using Event.addNativePreviewEvent() but that probably won't help you a lot as

Re: Integrating Google Analytics with GWT (SPA) Application to capture the User Flow

2016-12-01 Thread Jens
I guess you have to call the ga() functions yourself with the events you would like to track in your app. Read the documentation of Google Analytics https://developers.google.com/analytics/devguides/collection/analyticsjs/ -- J. -- You received this message because you are subscribed to the

Re: GWT 2.8 compile fails; 2.7 works

2016-11-30 Thread Jens
> *My question is*: Should this have failed in GWT 2.7? Or is there a bug > in GWT 2.8? > Given that the error message The interface UiBinder cannot be implemented more than once with different arguments: UiBinder and UiBinder<

Re: GWT 2.8 compile fails; 2.7 works

2016-11-30 Thread Jens
> Oops! I do get the error. > Your error is a different one. Your error means you either have GWT 2.7 and 2.8 on classpath or some of your 3rd party libraries have bundled some older copies of UiBinder generator files. -- J. -- You received this message because you are subscribed to the

Re: Adding Material Design Inherits elements to already existing vanilla GWT project changes the main look of the application

2016-11-28 Thread Jens
Just check your CSS in browser dev tools. I guess by inheriting MD some additional CSS has been loaded that now makes your login screen look different. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-25 Thread Jens
> Do you have a step by step guide to run the closure compiler externally ? > Basically you would need to replicate what has been done programmatically in the removed ClosureJsRunner class. See commit https://github.com/gwtproject/gwt/commit/162ccc9c9112a09bf9ea046da95760f5f1886b72 Looks

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-24 Thread Jens
> And why don't keep it experimental too in 2.8 instead of removing it? > Why keeping it if it's only half baked into GWT and you can run it externally as well? But I guess part of the reason to delete it is because GWT is in the process of cleaning itself up to move forward to GWT 3.0.

Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-11-24 Thread Jens
> Do you plan to bring Closure Compiler (-XenableClosureCompiler option) > back to GWT? It was very useful for us. > No. It was experimental and had some rough edges that haven't been fully implemented. You would need to execute it manually using the GWT output as input to Closure Compiler

Re: GWT 2.8.0 compile warnings

2016-11-23 Thread Jens
Double check your classpath. Especially if you use gradle/maven make sure you really have only a single GWT version on classpath. Also try deleting your gwt-unitCache. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from

Re: GWT Code Splitting: The GWT Stuff and My Core Java Classes

2016-11-23 Thread Jens
> The module system - with code duplication - is not a option for me since > even with gzip I will bloat my cellphones traffic volumes beside of the > evil wait times in bad coverage areas. > Even if I do not understand why such redundancy in modules is implemented > by the JSInterop team, I

Re: GWT Code Splitting: The GWT Stuff and My Core Java Classes

2016-11-21 Thread Jens
> Can someone clarify? > Each GWT module that has an EntryPoint defined will end up being a GWT application. Each GWT application will contain the code of the GWT SDK that you are using in your app, e.g. a GWT Button, Label, LayoutPanels, etc. So yes if you have 10 small, independent GWT

Re: Problem with GWT 2.8

2016-11-20 Thread Jens
> I am testing on Windows 10, Chrome, JDK 1.8.0_111. I also reproduced the > issue in Firefox, edge and IE11. > Compile your app for production but use -style PRETTY so you can better search in the final JS output. Then search the method name containing your failing code and compare the

Re: GWT Code Splitting: The GWT Stuff and My Core Java Classes

2016-11-20 Thread Jens
GWT only supports code splitting as described in http://www.gwtproject.org/doc/latest/DevGuideCodeSplitting.html Anything else is not possible. Also keep in mind that while GWT code splitting allows you to move code into a separate download, it does not mean that you can update that separate

Re: Internal GWT 2.8.0 compiler exception

2016-11-16 Thread Jens
Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind. UiBinderWriter.(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/ lang/String;Ljava/lang/String;Lcom/google/gwt/core/ext/typeinfo/TypeOracle; Lcom/google/gwt/uibinder/rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind

[gwt-contrib] Re: Utils

2016-11-13 Thread Jens
I like it. IMHO if utility methods depend on something other than pure JRE they should live in their own utility class for that package/library/purpose. So I would be fine with W3cDomUtils, SpeedTracerUtils, etc. -- J. -- You received this message because you are subscribed to the Google

[gwt-contrib] Re: Newbie - not able to add patch

2016-11-10 Thread Jens
GWT is hosted at https://gwt.googlesource.com/gwt and only mirrored (read-only) to Github. If you want to contribute you must push your patch to https://gwt.googlesource.com/gwt . To do so you need to signup to Gerrit, sign a CLA, obtain and install a HTTP password and finally install Gerrit's

Re: Compiler error

2016-11-09 Thread Jens
Create a small, self contained example that reproduces the problem and open a bug on Github. Looks like a compiler bug. -- 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

Re: How to store configuration outside the database?

2016-11-06 Thread Jens
I guess the simplest solution would be a command line system property that points to a java properties file, e.g. -DappConfig=/etc/app.properties . -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

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

2016-11-03 Thread Jens
IMHO it's a small enough addition that totally makes sense and it's nothing that would block any future direction of GWT. I don't see any real reason to not accept the contribution. The points mentioned are either clunky (pull in a complete different library just to get a single small feature

Re: Strange error with streams

2016-11-01 Thread Jens
Use -style PRETTY as SDM parameter so that the JS code is more readable. Looks like a GWT bug either in the compiler because of method references or inside the Stream emulation. If you can provide a minimal, reproducible example then open a bug report. -- J. -- You received this message

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

2016-10-27 Thread Jens
> But when RF looks up the current value to compare, it will always be null > because the regular lookup doesn't set the transient value. > RF expects a correctly filled entity after loading it from the DB using the entity locator methods (because RF only sends changed data). It's your job

Re: HowTo use GWT EvenBus to schedule OpenEvent -> CloseEvent sequence

2016-10-26 Thread Jens
Given that JS is single threaded using Scheduler.scheduleDeferred is your only option. You could write your own EventBus implementation that might use Scheduler.scheduleDeferred internally so that an event, fired during another event being processed, gets delayed to the next browser event loop.

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

2016-10-26 Thread Jens
Sounds like your visual components act as libraries, thus not having their own GWT entry point. IMHO your visual components should not provide bindings for classes they do not own. That means app wide singletons like an EventBus must be provided by the app that includes the visual component.

Re: The type AbstractRequestContext.MyConstraintViolation must implement the inherited abstract method ConstraintViolation.getExecutableParameters()

2016-10-26 Thread Jens
You have validation-api-1.1.0 and validation-api-1.0.0.GA on classpath. GWT is only compatible to validation-api-1.0.0.GA. -- 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,

Re: Gradle compile with 2.7 fails

2016-10-25 Thread Jens
You have gwt-dev.jar from GWT 2.0.3 and GWT 2.7 on classpath and GWT 2.0.3 is first. So GWT 2.0.3 is used during your compilation and it does not know the "type" attribute on the element in com.google.gwt.core.CompilerParameters.gwt.xml from GWT 2.7. Fix your classpath / dependencies. -- J.

Re: GWT 2.8.0 released

2016-10-24 Thread Jens
> Can someone confirm? are we able to use Guava with this version? 20-rc1? > Yes, 20-rc1 actually requires GWT 2.8 and is incompatible to older GWT releases. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this

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

2016-10-24 Thread Jens
Well it is just what I would ask for in order to replace local apache / nginx on developer machines with GWT devserver. It's not a problem to simply continue using a dedicated proxy either with CodeServer or a "no-op" devserver. Basically our setup is more a less the result of two decisions:

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

2016-10-21 Thread Jens
The release is 2 days old (yes it's already on maven central) and will likely be announced once release notes are merged and uploaded. Github just says it's 17 days ago because the commit that has been tagged is 17 days old. -- J. -- You received this message because you are subscribed to

Re: Cannot Debug GWT with Eclipse

2016-10-20 Thread Jens
> Is there a way to debug the GWT application (client and server) just like > your plugin allows while running in SuperDevMod while it has been deployed > on an application server, e.g. WebSphere with say, localhost:9080/MyApp > context root? > As long as the Application server runs on the

Re: Where is MD5Digest in GWT 2.8 rc2?

2016-10-18 Thread Jens
It has been moved to emulation code. You would now use java.security.MessageDigest.getInstance("MD5") or java.security.MessageDigest.getInstance("SHA-256") -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and

Re: Cannot Debug GWT with Eclipse

2016-10-16 Thread Jens
SuperDevMode compiles your Java source transparently to JavaScript, it never executes your Java source code directly in a JVM. So Java break points in your GWT app will never work. That means with SuperDevMode you can only debug your code using the browser, as thats the one who actually

Re: Gwt Object is not Javascript Object

2016-10-15 Thread Jens
When you write in Java "new Credentials()" it will be translated to JavaScript "new $wnd.Object". So JsInterop explicitly uses the top window referenced through GWT's special $wnd variable. If you now inject your HelloJS library into the GWT iframe using ScriptInjector then "new $wnd.Object

Re: best practices for modular GWT app

2016-10-13 Thread Jens
> My recommendation, do NOT create a maven module if you don't need it (I > think that you do not need it). > +1. Right. I would only split my client side code into multiple maven modules if I want to share client side code with a different project. If you don't do that, then adding

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

2016-10-13 Thread Jens
> Sorry for bothering you, but what about notes ? > You can look at the commit log for now: https://github.com/gwtproject/gwt/compare/2.8.0-rc2...2.8.0-rc3 -- J. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this

Re: Not able to call handler defined using JSInterop

2016-10-04 Thread Jens
Is TextButton a @JsType and exports addSelectHandler()? Do you use -generateJsInteropExports flag for SDM and compilation? I guess your browser console should show errors if your code does not work. Also it looks like your TextButton is constructed with a handler as parameter and then you add

Re: Using Constants based on Environment

2016-09-30 Thread Jens
Ideally your build tool should put your environment into prod or dev mode and the GWT app shouldn't know/care about it. With Maven / Gradle / Ant you can use "resource filtering" to rewrite resources like property files while being copied to the output folder. In that case you would have

Re: CSS exception compiling 2.7.0 app

2016-09-28 Thread Jens
Make sure gwt-dev.jar is first in class path. Most likely some other libraries you are using are also using flute but with a different/older version than GWT. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group

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-27 Thread Jens
Have you accidentally disabled source map support in Chrome Dev Tools settings? If nothing helps and to get your issue solved you can use -style PRETTY as SDM parameter. As far as I know -XmethodNameDisplayMode ABBREVIATED is only used when setting a break point and looking at the call stack

Re: Very slow debugging form IDEA

2016-09-23 Thread Jens
Oh and we don't use Java8 yet. We use a GWT version somewhere between 2.7 and 2.8beta1. I think the issue is more Chrome related. -- 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,

Re: Very slow debugging form IDEA

2016-09-23 Thread Jens
Yeah its already for a while that its slow. No idea why, so I debug in Chrome. But Chrome DevTools have some issues as well (at least for me). With SourceMaps enabled it regularly hangs for a long time when reloading the page in Chrome. So I reload the page, while it recompiles I close

Re: JSON to Client Side GWT JavaScriptObject

2016-09-22 Thread Jens
Missing "return" statement in your JSNI method. Because you returned nothing, the method returns null automatically. Also you can use ServerResponseJson resp = JsonUtils.safeEvel(jsonString); which is safer than using JS eval() directly. -- J. -- You received this message because you are

Re: Strange (BAD?) code generated

2016-09-14 Thread Jens
> Is this GWT library exported as JS only? ... > So I don't get it. What am I missing? > The library exists as GWT library (*.jar file with *.gwt.xml) so you can use it right away in your GWT app, but the library is also exported by the library maintainer to JavaScript so that JavaScript

Re: Strange (BAD?) code generated

2016-09-14 Thread Jens
> Could you elaborate on the use case @jstype(isNative=false) and > -generateJsInteropExports > is __not__ specified in the command line. > > Is there any valid use for such a combination? > Sure. Pick any GWT library that might provide itself as pure JS library as well by using

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

2016-09-10 Thread Jens
> Thank you I will try that -strict option. > > My suggestion is that exported @JsType (when the -generateJsExport option > is turned on) should be considered as entrypoints and generate compilation > errors, what do you think ? > I think that -strict should be the default everywhere. I don't

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

2016-09-09 Thread Jens
> 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) > Done. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving

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

2016-09-09 Thread Jens
Ok just tried it myself. Created a new, fresh project having world in my host page using public void onModuleLoad() { Global.window.alert("Element found: " + (Global.document.getElementById( "hello") != null)); } GWT 2.8 RC2 returns true _.onModuleLoad_4_g$ = function onModuleLoad_3_g$(){

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

2016-09-09 Thread Jens
> This scoping is all very confusing :-). > > Anyway, this is what I am seeing with Elemental2: > - I have an application that generates HTML using a custom templating > system. > - I then put the HTML string in an Element with setInnerSafeHtml. > - After this I use Element2 to bind to the

Re: GWT 2.8.0 RC2 is here!

2016-09-08 Thread Jens
> What I don't understand is *why is this setup working fine with > gwt-2.8.0-beta1 but it is not working with gwt-2.8.0-rc1 or gwt-2.8.0-rc2. * > Jetty has been upgraded from 8.x to 9.2.x between beta1 and rc1. Maybe your class path order is now different for some reasons and you need to

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

2016-09-05 Thread Jens
Hm wondering how it ever worked for you as JsInterop usually qualifies JS code with $wnd but your D3.js has been injected into the GWT iframe. So AFAICT with JsInterop you would had to use TOP_WINDOW anyways. You can make it work within the GWT iframe but then you can't use JsPackage.GLOBAL but

Re: Does GWT has a plan for stable release ?

2016-09-02 Thread Jens
It's done when it's done. There are still some open issues https://github.com/gwtproject/gwt/milestone/1 so there might be a RC3 release as well. I would guess end of month or early next month. In the mean time you can use RC2, help testing it and report bugs if you find any new ones. -- J.

[gwt-contrib] Re: Ext.form.field.File not working with gwt2.8.0-rc2 (with gwt2.8.0-beta1 it works)

2016-09-01 Thread Jens
> Do you pass --generateJsInteropExports to GWT? I think that's now required > for @JsFunction⋅s to be callable from JS. > You don't need --generateJsInteropExports to make @JsFunction work, that would be bad. Just verified it using RC2 and event listener on button element. But you need

Re: synchronously waiting for a Promise

2016-09-01 Thread Jens
> Jens, my suggestion was to propagate the asyncs up the call stack to all > callers of the function, automatically changing each one to return a > promise, and use await on the calls to the async functions, which would > work fine except for losing the atomic synchonization of t

Re: synchronously waiting for a Promise

2016-09-01 Thread Jens
> I think this isn't even correct, because "async getBar()" does return a > promise simply because its marked async. Given that you can only call await > inside async functions I think its nearly impossible to map that to a > synchronous Java function while keeping the correct return type or

Re: synchronously waiting for a Promise

2016-09-01 Thread Jens
> var _symbol$bar = Symbol("Foo.bar"); > class Foo { > async getBar() { // Note: transformed to 'async', no 'synchronized' > if (this[_symbol$bar] == null) { > var realBar = …; > this[_symbol$bar] = await realBar.get(); // transformed to await > } > return

Re: synchronously waiting for a Promise

2016-08-31 Thread Jens
There is work being done to emulate CompletableFuture but the synchronous methods of Future will not be supported. There are a number of reasons why your suggestion using JS async/await won't happen anytime soon. You should make yourself comfortable with the idea of having an async API on the

Re: jsinterop export method that returns Optional

2016-08-30 Thread Jens
As a workaround you can probably copy GWT's Optional emulation into your own project, add JsInterop annotations and then it should work. GWT does not place JsInterop annotations on most JRE emulations because the compiler only has an "all-or-nothing" switch (-generatesJsInteropExports). That

Re: Gwt JSNI error

2016-08-27 Thread Jens
Your method is static but your are using "this.@" in your JSNI code which will not point to TestProj. If you want to keep it static then you have to provide a TestProj instance as second parameter and call "testProjParam.@". Otherwise just make it an instance method by removing "static".

[gwt-contrib] Re: Eclipse Code Server Launcher Icon

2016-08-25 Thread Jens
I guess the future is CodeServer + optional external servlet container. So IMHO it would be more straight forward to just have "GWT Web Application" which always launches CodeServer.main() directly and not through DevMode.main(). Within this run configuration you can optionally choose to

Re: Are there already some JSInterop repositories available somewhere?

2016-08-23 Thread Jens
A post from the thread I linked before: https://groups.google.com/d/msg/google-web-toolkit-contributors/6ycG2nm0OSM/mUP-GnJ0EAAJ So once the elemental2 generator is open source and supports typescript definition files, you should be able to use everything that

Re: Are there already some JSInterop repositories available somewhere?

2016-08-23 Thread Jens
Take a look at Elemental 2: https://groups.google.com/d/msg/google-web-toolkit-contributors/6ycG2nm0OSM/RW3psRrqAAAJ Its experimental but covers all browser APIs (auto generated from closure externs: https://github.com/google/closure-compiler/tree/master/externs). Its the JsInterop version of

Re: GWT 2.8.0 RC2 is here!

2016-08-23 Thread Jens
> "*the fact that 2.8 will be maintained in parallel. *(Jens) " !?! > > We would certainly appreciate to know more about this fact (announced? > published? where?). > Its just a logical consequence of GWT being open source and lots of large apps/companies depend on

Re: GWT 2.8.0 RC2 is here!

2016-08-22 Thread Jens
> I saw there were some commits to master after RC2 was cut. Are there plans > to cut an RC3 or just roll those commits into the GA? > GA will likely be done from master branch. Maybe it becomes a branch then, because of upcoming GWT 3.0 changes and the fact that 2.8 will be maintained in

Re: Completable Future in GWT 2.8-rc1

2016-08-22 Thread Jens
> I suppose CompletableFuture is not emulated, right ? are there other > alternatives ? > Yes CompletableFuture emulation is still work in progress and not available in GWT 2.8.0. -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To

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