Re: Issue with migrating to GWT 2.10

2023-01-21 Thread Paul Stockley
SM 9.2 and supports byte code up to Java 18. > I am pretty sure you have an older ASM version on class path that came > first or some Java 19+ classes. > > -- J. > > Paul Stockley schrieb am Donnerstag, 19. Januar 2023 um 22:33:28 UTC+1: > >> I tried reducing the optimization le

Re: Issue with migrating to GWT 2.10

2023-01-19 Thread Paul Stockley
d.) > > On 1/19/23 14:43, Paul Stockley wrote: > > We are trying to migrate to GWT 2.10 from 2.08. We get this internal > error > > [image: nirvana_–_ci2_build_nirvana_war_xml__nirvana_.jpg] > > Any idea how to further debug this? Our app works fine using SDM we j

Where to get HEAD-SNAPSHOT builds from

2019-11-06 Thread Paul Stockley
Where can I download HEAD-SNAPSHOT builds from? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this

[gwt-contrib] Elemental2 1.0 release date

2018-04-03 Thread Paul Stockley
Any idea when Elemental2 1.0.0 will be released? The RC1 has been out there for a while now. -- 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: Understanding JsInterop

2018-02-21 Thread Paul Stockley
Try using Js.uncheckedCast from jsinterop-base On Tuesday, February 20, 2018 at 1:59:44 PM UTC-5, Scott Shumway wrote: > > I'm still unable to do this. I want to be able to get a DOMRect from a > com.google.gwt.dom.client.Element with JsInterop. If I cast to this Element > class, or even

Re: JsInterop Shared Model + REST API

2017-11-18 Thread Paul Stockley
gwt-interop-utils shows one way of doing it. This assumes you are OK using intermediate collection types. https://github.com/GWTReact/gwt-interop-utils/blob/master/DOCUMENTATION.md On Saturday, November 18, 2017 at 3:52:09 AM UTC-5, Chris L wrote: > > I'm trying to create a shared model in my

Re: [gwt-contrib] Re: Business proposition of GWT 3.0 - what is it good for vs. other solutions out there?

2017-05-22 Thread Paul Stockley
May 21, 2017 at 7:04:19 AM UTC-4, Paul Stockley wrote: >> >> I am really interested to hear how you can make a version of GWT RPC as >> fast as a pure JSON approach. We take a tree of thousands of objects and >> just use one JSON.parse / JSON.stringify call to deserialize

Re: [gwt-contrib] Re: Business proposition of GWT 3.0 - what is it good for vs. other solutions out there?

2017-05-21 Thread Paul Stockley
I am really interested to hear how you can make a version of GWT RPC as fast as a pure JSON approach. We take a tree of thousands of objects and just use one JSON.parse / JSON.stringify call to deserialize / serialize which happens within the browser in C++ code. No other processing is

Re: [gwt-contrib] Re: Business proposition of GWT 3.0 - what is it good for vs. other solutions out there?

2017-05-20 Thread Paul Stockley
I have to agree. A long time ago we moved away from GWT RPC to an approach that used straight JSON. This forced on us by the poor performance on mobile devices. Right away we saw 3 to 5x speed improvement and significant code size reduction. Sure the developer experience wasn't quite as nice.

Re: [gwt-contrib] Re: Elemental2 and JsInterop base beta releases available.

2017-05-11 Thread Paul Stockley
Do you have a general idea for how long the Beta phase will take? Is it predicated on reaching a certain quality level? On Tuesday, May 9, 2017 at 6:06:12 PM UTC-4, Goktug Gokdogan wrote: > > BTW, if you are using elemental2, keep in mind that these are beta > releases to get feedback and APIs

Re: GWTReact Release and Roadmap

2017-05-01 Thread Paul Stockley
ry stable and not going to meaningfully change (at least at the API >>> level) from here on out :) >>> >>> On Sunday, April 30, 2017 at 8:27:10 AM UTC-4, Paul Stockley wrote: >>>> >>>> I have just released a new version of the GWTReact >>>> &

Re: GWTReact Release and Roadmap

2017-05-01 Thread Paul Stockley
2017 at 8:27:10 AM UTC-4, Paul Stockley wrote: >> >> I have just released a new version of the GWTReact >> <https://github.com/GWTReact> projects to support GWT 2.8.1 >> >> As of this release, I will no longer be maintaining the MobX and Redux >> projec

GWTReact Release and Roadmap

2017-04-30 Thread Paul Stockley
I have just released a new version of the GWTReact projects to support GWT 2.8.1 As of this release, I will no longer be maintaining the MobX and Redux projects. Our company is not using them currently and I don't have the time to keep them updated. In the future,

Re: GWT React - Update

2017-04-13 Thread Paul Stockley
ide react elements, so that I can harness the > virtual DOM power even for GWT Widgets? > > > On Thursday, 7 April 2016 19:05:50 UTC+5:30, Paul Stockley wrote: >> >> I have managed to get Redux working. I implemented the following examples >> >> http://redux.j

Re: Compilation of a large GWT application?

2017-04-12 Thread Paul Stockley
For development purposes you could try the following in your .gwt.xml file You many or may not be able to get away with the first setting depending on how you structured your css. In our project we tried to minimize the amount of code generation. We have about 250 uibinder files and 300,000

Can't put breakpoints on specific lines in chrome

2017-04-12 Thread Paul Stockley
When debugging SDM in chrome there are many lines you can't put breakpoints on even though the line number indicates you can. For example, you

Slow debugging with SDM

2017-04-10 Thread Paul Stockley
Is anyone else having serious performance problems when stepping through SDM code in chrome? The issue happens in cases where this is mapped to the window object and chrome want to expand all the globals in the inspection window. There is a chrome issue logged

Re: Starting new GWT project - what to use

2017-03-27 Thread Paul Stockley
I would seriously look into using some kind of Virtual DOM based library e.g. React, Preact or Vue. I have been using react for over a year both in Java and Javascript and I never want to go back to the old imperative approach. Even complex UI code is now relatively easy to comprehend. I made

New release of GWTReact

2017-03-18 Thread Paul Stockley
I have just pushed new versions of the GWTReact projects to maven central. This release contains some significant breaking changes. In collaboration with Ivan Markov, I have refactored the API to support ES6 style stateful components. This is a more future proof

[gwt-contrib] 2.8.x release

2017-03-17 Thread Paul Stockley
Are there any plans to put out a 2.8.1 release? I see there have been a number of fixes/enhancements since the initial 2.8 release. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails

GWTReact release

2016-10-28 Thread Paul Stockley
I have pushed new versions of the GWTReact projects to support the final release of GWT2.8 The versions of the individual JS projects they depend on have also been updated as follows: react 15.3.2, react-dom 15.3.2 redux 3.5.2, react-redux 4.4.5 redux-undo

Re: jsinterop @JsFunction: How to get this (context)?

2016-10-11 Thread Paul Stockley
gestion from Stepan Koltsov was to > wrap the native js callback. I understand that it used JSNI and > JavaScriptObject that are destined to deprecation but I didn't see any > other way. > > Of course it would be great if you come with a better approach... > > Vassilis > > &

Re: jsinterop @JsFunction: How to get this (context)?

2016-10-11 Thread Paul Stockley
It should be possible to write a helper that uses the javascript bind command so that you can bind this for any functional interface. I will have a play and see if I can get something working. > > -- You received this message because you are subscribed to the Google Groups "GWT Users" group.

Re: JsInterop and constants

2016-09-27 Thread Paul Stockley
It can't be a child interface. On Tuesday, September 27, 2016 at 9:52:47 AM UTC-4, Kirill Prazdnikov wrote: > > > or you can move your constants to another class since they are not js > visibile... > > Thats what am I doing: > > @JsType(isNative = true, namespace = JsPackage.GLOBAL) > public

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 Paul Stockley
Is this in a production build or SDM? In SDM you can pass the flag -XmethodNameDisplayMode ABBREVIATED. Then in chrome you will see class/method names in the call stack On Monday, September 26, 2016 at 5:24:25 PM UTC-4, Hristo Stoyanov wrote: > > Hi all, > I wonder if anyone can help me figure

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 Paul Stockley
Sorry, I should also add if this is production, you can generate a symbol map file. Usually on my builds it is located under web-inf/deploy//.symbolMap. You can search for the obfuscated function names e.g. nC_g$ You can also do this lookup at run-time. I would have to dig up the code because

Re: Very slow debugging form IDEA

2016-09-23 Thread Paul Stockley
A lot of people outside of the GWT community are also complaining that debugging in Chrome is really slow these days. On Friday, September 23, 2016 at 4:54:15 AM UTC-4, Jens wrote: > > Oh and we don't use Java8 yet. We use a GWT version somewhere between 2.7 > and 2.8beta1. > > I think the

Re: Is GWT is Dead?

2016-09-07 Thread Paul Stockley
I think you are getting confused with Goggle Wave. On Wednesday, September 7, 2016 at 5:07:41 AM UTC+1, Gourab wrote: > > >> ok then gmail being written in GWT is urban myth. > > It was rewritten in GWT and later reverted back to it's original > implementation. > > On Wed, Sep 7, 2016 at 1:36

[gwt-contrib] Re: Problem with JsInterop

2016-08-30 Thread Paul Stockley
If you are passing Resolver into some function. You could instead create 3 Resolver interfaces and then overload the function so that it took each of the resolver interfaces. On Saturday, August 27, 2016 at 9:51:50 AM UTC-4, Arnaud TOURNIER wrote: > > Hi, > > I am playing with js Promises and

[gwt-contrib] Re: Hide GWT Development Mode window

2016-08-25 Thread Paul Stockley
Thanks, I just ran the code server. The main reason I did this is because Idea runs both the code server and Jetty Server together and passes the same class path to both. Our app has a lot of server dependencies and not too many client specific ones. By breaking them up I was able to tailor the

[gwt-contrib] Hide GWT Development Mode window

2016-08-19 Thread Paul Stockley
When launching the SDM code server, is it possible to hide the swing UI window? -- 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: Best Practice for JSON object recreation on client

2016-08-18 Thread Paul Stockley
I wrote a set of utilities using the new JsInterop capability in 2.8 that provides one way of handling JSON. Take a look at the documentation here https://github.com/GWTReact/gwt-interop-utils/blob/master/DOCUMENTATION.md We use Jackson on the server for handling the translation from JSON to

Re: working in beta but not in latest git

2016-08-09 Thread Paul Stockley
Your assumption is true for Boolean and Double but not the other boxed types. On Tuesday, August 9, 2016 at 10:39:53 AM UTC-4, Vassilis Virvilis wrote: > > From my understanding (which is not much) the whole point is moot. Looks > like java Boxed types (Boolean, Double, Integer) are mapped

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-08-09 Thread Paul Stockley
ithub.com/gwtproject/gwt/issues/9343 > > On Saturday, August 6, 2016 at 8:38:21 PM UTC+2, Paul Stockley wrote: >> >> I reset my project from scratch and it is now working. There must have >> been some residual stuff left from the last snapshot build I used. I will >&

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-08-06 Thread Paul Stockley
e an issue with them. On Sunday, July 31, 2016 at 1:59:35 PM UTC-4, Paul Stockley wrote: > > I am away from a computer for a week. When I get back I will provide more > details. I can remove junit. Not sure why it was there. -- You received this message because you are subscribed to the

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-07-31 Thread Paul Stockley
I am away from a computer for a week. When I get back I will provide more details. I can remove junit. Not sure why it was there. -- 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

[gwt-contrib] Re: 2.8.0 RC1 issue

2016-07-31 Thread Paul Stockley
The Mac project is pretty much nearly all client code. The only lib it includes in web inf is junit. To be clear this is using the sdk version of Gwt, not maven. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this

[gwt-contrib] 2.8.0 RC1 issue

2016-07-30 Thread Paul Stockley
I have a couple of different issues with the new RC1 build. On my mac project, I get the following error when starting devmode from the initellij debug launch config The code server is ready at http://127.0.0.1:9876/ Code server started in 20.08 s ms 2016-07-30

Re: Ui Binder Alternatives

2016-07-26 Thread Paul Stockley
I think there is a good chance that Widgets / UiBinder in some form could get ported to GWT 3.0. Probably not by google and probably in separate projects from the main GWT compiler stack. On Monday, July 25, 2016 at 7:58:50 PM UTC-4, Gilberto wrote: > > Nobody really knows how GWT 3 will be for

Re: Ui Binder Alternatives

2016-07-25 Thread Paul Stockley
One option when 2.8 is released would be to use GWT React ( https://github.com/GWTReact/gwt-react). React is a good substitute for the view layer and can be integrated with existing widgets so you can migrate your way to a UiBinderless approach. On Saturday, July 23, 2016 at 9:40:02 PM UTC-4, N

Re: [gwt-contrib] Re: GWT 2.8 rc1 work items

2016-07-07 Thread Paul Stockley
Any idea when we can expect a RC1 build? On Monday, June 13, 2016 at 5:59:44 AM UTC-4, Thomas Broyer wrote: > > > > On Monday, June 13, 2016 at 11:37:05 AM UTC+2, Daniel Kurka wrote: >> >> Also keep in mind that we need a green build before cutting RC1 in open >> source (and this only runs

Re: Are GWT widgets "heavy" ?

2016-07-05 Thread Paul Stockley
If you make any calls that retrieve the size of an element then this will cause a re-flow even within a javascript block. On Tuesday, July 5, 2016 at 12:36:38 PM UTC-4, fenyoapa wrote: > > "*This causes the browser to recalculate and repaint the page each time >> you append a single search item

[gwt-contrib] Experimental release of Elemental2

2016-07-02 Thread Paul Stockley
Would it be possible to break the project into a few packages? It would make it easier to find things. -- 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

gwt-interop-utils release on Maven Central

2016-06-18 Thread Paul Stockley
I have pushed an initial version of gwt-interop-utils to Maven Central. Thanks for everyone's feedback. I have incorporated what I think makes sense. The documentation has been updated to reflect the changes. I am sure the library will evolve as GWT2.8 gets closer to release and we see what

Re: [gwt-contrib] Re: Elemental2 - What's the big secret?

2016-06-17 Thread Paul Stockley
The question I have is more general. What will the scope of Elemental 2 be? Will it include collections and json support like elemental or will it be just an interface to browser API's? On Thursday, June 16, 2016 at 4:28:08 PM UTC-4, Ray Cromwell wrote: > > > With these kinds of purely code

Re: JsInterop and Java collections?

2016-06-09 Thread Paul Stockley
As Thomas says, it will be impossible to support passing any of the collection interfaces directly through to JS code. You might think however, that you could change the implementation of ArrayList to actually be a JS Array. I don't think this is possible either because an instance of

Re: JsInterop and Java collections?

2016-06-09 Thread Paul Stockley
As Thomas, says it will be impossible to support passing any of the collection interfaces directly through to JS code. You might think however, that you could change the implementation of ArrayList to actually be a JS Array. I don't think this is possible because an instance ArrayList needs to

Re: gwt-inerop-utils preview

2016-06-03 Thread Paul Stockley
Jens, I can see your point, about the usability when you get many arguments. Originally I was going to kind of mirror the Java JDK and not go more than 2. Personally, I think it is a lot better to define custom interfaces when possible. To avoid having hundreds of class files I have started

Re: gwt-inerop-utils preview

2016-06-03 Thread Paul Stockley
Jens, -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to

Re: gwt-inerop-utils preview

2016-06-02 Thread Paul Stockley
I will take a look at the putnami-gradle-plugin. I noticed Steffan's didn't seem to be supported. Thanks for the offer on migration. The projects are a bit in flux at the moment so probably better off not submitting a pull request until I have landed all the gwt-interop-utils changes. -- You

Re: gwt-inerop-utils preview

2016-06-02 Thread Paul Stockley
eDefined(String jsVar)/*-{ > return !!$wnd[jsVar]; > }-*/; > > public static native boolean isFunctionDefined(String functionName)/*-{ > return typeof functionName == 'function'; > }-*/; > } > > > > On Thursday, June 2, 2016 a

gwt-inerop-utils preview

2016-06-02 Thread Paul Stockley
I have committed an initial version of gwt-interop-utils. https://github.com/GWTReact/gwt-interop-utils This library provides some common utilities for working with JsInterop e.g. 1) Object Literal support 2) Shared JSON compatible structures 3) Common functional interfaces 4) JSON utilities

Re: JsInterop receipts for simple JSNI code ?

2016-05-27 Thread Paul Stockley
Will this be for J2CL only? On Thursday, May 26, 2016 at 6:35:36 PM UTC-4, Goktug Gokdogan wrote: > > JsInterop will provide some base classes for stuff that are not possible > with JsInterop annotations. > > On Wed, May 25, 2016 at 1:30 PM, Paul Stockley <pstoc...@gm

Re: JsInterop receipts for simple JSNI code ?

2016-05-25 Thread Paul Stockley
Eval is really slow. I would use JSNI. Eventually I think J2CL will have a way to execute javascript. Just isolate the JSNI in a helper class so it can easily be replaced. On Wednesday, May 25, 2016 at 3:35:07 PM UTC-4, Hristo Stoyanov wrote: > > Actually, it might be possible to do it with

Re: window.showModelDialog replacement

2016-05-25 Thread Paul Stockley
What we did in our project to migrate these kind of modal windows on IE was as follows:- 1) Create a GWT modal dialog with an iframe in it and point this to the url for the window. 2) Add some code to the existing page to talk to the parent GWT window to close the dialog when the user clicks

[gwt-contrib] Future direction for common JS api's

2016-05-18 Thread Paul Stockley
I am at the point in my GWT-React project where I need to come up with a future proof way of handling low level server communication. I was contemplating implementing the new Fetch API (with polyfills for older browsers). This would also need the promise API. The question I have is what will

GWTReact gwt-mobx release

2016-05-18 Thread Paul Stockley
I have pushed the initial version of gwt-mobx to maven central. For details see below https://plus.google.com/118432214189324759065/posts/AUneMdPApZf -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop

Re: GWT React preview release on Maven Central

2016-05-14 Thread Paul Stockley
Thanks, I am new to Gradle and I am sure that will have saved me many hours of investigation. On Saturday, May 14, 2016 at 9:25:40 AM UTC-4, Christian Bauer wrote: > > tasks.withType(de.richsource.gradle.plugins.gwt.AbstractGwtActionTask) { > > //args "-logLevel", "TRACE" > args

Re: GWT React preview release on Maven Central

2016-05-13 Thread Paul Stockley
The problem I've got is that I need to pass the -generateJsInteropExports flag. The plugin doesn't support this. On Friday, May 13, 2016 at 10:40:15 AM UTC-4, Paul Stockley wrote: > > I have pushed preview versions of gwt-react, gwt-react-router and > gwt-redux to Maven Central.

GWT React preview release on Maven Central

2016-05-13 Thread Paul Stockley
I have pushed preview versions of gwt-react, gwt-react-router and gwt-redux to Maven Central. Check out the documentation for details. https://github.com/GWTReact Soon I hope to have a Gradle build file to make it easy to try out the examples. I am just working around some issues with the

Re: GWT Material Design Addins

2016-05-11 Thread Paul Stockley
I would post to either the G+ group (https://plus.google.com/communities/108005250093449814286) or gitter (https://gitter.im/GwtMaterialDesign/gwt-material?source=suggested-menu) On Wednesday, May 11, 2016 at 12:07:09 PM UTC-4, Velusamy Velu wrote: > > I followed these steps to use the

Re: jsinterop: create cast native types: JavaScriptObject

2016-05-11 Thread Paul Stockley
Declare your objects as @JsType(isNative = true, namespace=JsPackage.GLOBAL, name="Object") You can then just use new. On Wednesday, May 11, 2016 at 11:16:07 AM UTC-4, Vassilis Virvilis wrote: > > Hi, > > > I am trying to construct with jsinterop a json config object for > datatables. Here is

Re: [gwt-contrib] Re: Generator and Linker maintenance and changes

2016-05-03 Thread Paul Stockley
I don't think migrating away from Generators to APT means you are forced to move off 2.8. In fact, I was hoping to move incrementally as each subsystem is migrated to become APT based. Then in the future, our code base would be close to moving to J2CL. In a couple of months or so I was planning

Re: [gwt-contrib] Creating an Array class using Interop

2016-05-02 Thread Paul Stockley
'T set > 'jre.checks.checkLevel" to MINIMaL everything works fine? That's very > surprising. You should reproduce the the issue and file a bug. > > On Mon, May 2, 2016 at 12:03 PM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> It wasn't to get around underlyi

Re: [gwt-contrib] Creating an Array class using Interop

2016-05-02 Thread Paul Stockley
2, 2016 at 2:06:08 PM UTC-4, Goktug Gokdogan wrote: > > If you need to disable cast checking, you are definitely doing something > wrong; you should fix underlying problem instead of disabling checks. > > On Sun, May 1, 2016 at 6:19 AM, Paul Stockley <pstoc...@gmail.com &g

[gwt-contrib] Re: How to unit test JsInterop code

2016-05-02 Thread Paul Stockley
I was looking more to do some basic sanity tests of JsInterop interfaces against actual Javascript libraries (to detect changes in API etc). I hadn't looked at GWTTestCase for a while but remembered it ran DevMode. Looks like I will be able to use webMode. On Sunday, May 1, 2016 at 12:55:24 PM

Re: [gwt-contrib] Potentially simple optimization when creating ObjectLiterals

2016-05-02 Thread Paul Stockley
$wnd.Object" > with "{}". It's possible to write a peephole pass to fix this in the > Compiler, but I think given the number of people clamoring for GWT 2.8 > and the other more pressing issues, this would be low on the totem > pole. > > > On Sun, May 1, 201

[gwt-contrib] How to unit test JsInterop code

2016-05-01 Thread Paul Stockley
What is the best way to unit test JsInterop code? Am I correct that GWTTestCase doesn't work? -- 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

[gwt-contrib] Potentially simple optimization when creating ObjectLiterals

2016-05-01 Thread Paul Stockley
When you define an object literal as @JsType(isNative = true, namespace = JsPackage.GLOBAL, name="Object") public class SomeObjLiteral { } Calling new on this results in the following javascript code 'new $wnd.Object'. You could just emit {} instead. It is surprising the number times you

[gwt-contrib] Creating an Array class using Interop

2016-05-01 Thread Paul Stockley
I am trying to create a native JsType to represent a javascript Array. Up to this point I have been using JSNI. Below is the outline of what I have. I want to use an Interface as my eventual goal is to be able to define JSON structures using the same class on client and server.

Re: [gwt-contrib] Re: Elemental 2 and J2CL timeline

2016-04-29 Thread Paul Stockley
I think once 2.8 is out the door we should definitely pursue setting up some projects to tackle the things that won't be in J2CL. This will really help a lot to alleviate many peoples fears, especially those with large projects that use Widgets, UiBinder etc. There has been a lot of vague

[gwt-contrib] Re: Elemental 2 and J2CL timeline

2016-04-27 Thread Paul Stockley
the generated code, and you can reference that rather than a > constructor. > > On Tuesday, April 26, 2016 at 8:30:21 AM UTC-5, Paul Stockley wrote: >> >> Does anyone have any idea when elemental 2 will be available? Also what >> is a rough timeline for a version on

[gwt-contrib] get the obfuscated name of a class method in code?

2016-04-26 Thread Paul Stockley
Is it possible to get the obfuscated name of a class method in code? -- 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

[gwt-contrib] Elemental 2 and J2CL timeline

2016-04-26 Thread Paul Stockley
Does anyone have any idea when elemental 2 will be available? Also what is a rough timeline for a version on J2CL being available, is it 6 months, a year or more away? The reason I ask is that I am thinking about how our company can migrate to the new compiler. We will need widgets and

GWT React initial version

2016-04-24 Thread Paul Stockley
I just pushed an example to gwt-react-examples showing how to combine react with Widgets. -- 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: Compile a Java application into a single JavaScript file?

2016-04-24 Thread Paul Stockley
Just define another gwt.xml file for your app that points to the same entry point but uses the sso linker and use this for debugging, On Sunday, April 24, 2016 at 3:16:25 AM UTC-4, Kirill Prazdnikov wrote: > > > > > > I tried that and this is great. Now I have the only script file and this >

GWT React initial version

2016-04-22 Thread Paul Stockley
I have pushed the initial version of GWT React to Github It is still very much as work in progress, but I it is definitely a viable project. The API for React itself is pretty complete. Redux works for the basics but I need to test out middleware and store

Re: [gwt-contrib] Lambda overhead

2016-04-17 Thread Paul Stockley
Given that it will be realistically a couple of years before most large projects could migrate to J2CL, it would be really nice to have a more optimal code generation for lambda's, especially for JsFunction. When 2.8 gets released, I think people will really start taking advantage of existing

Re: [gwt-contrib] Lambda overhead

2016-04-15 Thread Paul Stockley
On Fri, Apr 15, 2016 at 6:11 AM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> Am I right in saying that java 8 lambda's under the covers is implemented >> as an anonymous inner class? Is this also true for SAM interfaces annotated >> with JsFunction annotated inter

Re: [gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-15 Thread Paul Stockley
" and let every app choose their own subset but I don't > have time to implement it and took the shortcut for the > "--generateJsInteropExports " case. > > On Wed, Apr 13, 2016 at 6:16 AM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> I agree that i

[gwt-contrib] Lambda overhead

2016-04-15 Thread Paul Stockley
Am I right in saying that java 8 lambda's under the covers is implemented as an anonymous inner class? Is this also true for SAM interfaces annotated with JsFunction annotated interfaces? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To

Re: GWT React

2016-04-14 Thread Paul Stockley
ntribute if > its with an open license. > > thanks, > Debasish > > On Thursday, April 7, 2016 at 6:48:27 PM UTC+5:30, Paul Stockley wrote: >> >> Sorry, >> I was just updating it to include samples for Redux that I just got >> working

Re: [gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-13 Thread Paul Stockley
rom Java code. I'm open to any suggestions. > > On Tue, Apr 12, 2016 at 9:10 AM, Paul Stockley <pstoc...@gmail.com > > wrote: > >> I think this flag in its current form is evil. If you forget it your code >> will work in SDM and not in production. I would recommend one of th

[gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-12 Thread Paul Stockley
I think this flag in its current form is evil. If you forget it your code will work in SDM and not in production. I would recommend one of the following: 1) Have export on by default and have a flag to turn it off 2) or have SDM prune the non-exported classes from the code. On Tuesday, April

[gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-12 Thread Paul Stockley
Also, forgot to mention. I had quite a few issues with the Beta that went away in the latest snapshot build. On Tuesday, April 12, 2016 at 11:11:17 AM UTC-4, Paul Stockley wrote: > > Are you compiling with -generateJsInteropExports ? > > On Tuesday, April 12, 2016 at 9:57:10 AM UT

[gwt-contrib] Re: JsInterop is pruning non readed properties

2016-04-12 Thread Paul Stockley
Are you compiling with -generateJsInteropExports ? On Tuesday, April 12, 2016 at 9:57:10 AM UTC-4, Ignacio Baca Moreno-Torres wrote: > > This code: > public class Client implements EntryPoint { > Console log = Browser.getWindow().getConsole(); > > @Override public void onModuleLoad() { >

GWT React - Update

2016-04-07 Thread Paul Stockley
I have managed to get Redux working. I implemented the following examples http://redux.js.org/docs/introduction/Examples.html#counter http://redux.js.org/docs/introduction/Examples.html#todos-with-undo You can see the code on my google drive below:

Re: GWT React

2016-04-07 Thread Paul Stockley
Sorry, I was just updating it to include samples for Redux that I just got working. The new link is https://drive.google.com/folderview?id=0Bxp8vLBG2ol3ZERCc3lHUEhKU2M=sharing -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from

Re: GWT React

2016-04-07 Thread Paul Stockley
Sorry, -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to

[gwt-contrib] Re: Proposal for making Object literals more intuitive to define

2016-04-07 Thread Paul Stockley
, April 7, 2016 at 6:51:06 AM UTC-4, Thomas Broyer wrote: > > > > On Wednesday, April 6, 2016 at 5:46:49 PM UTC+2, Paul Stockley wrote: >> >> This is the only way you can create a true object literal equivalent in >> JsInterop (i.e. no prototype other than Object) >&

[gwt-contrib] Re: Proposal for making Object literals more intuitive to define

2016-04-06 Thread Paul Stockley
This is the only way you can create a true object literal equivalent in JsInterop (i.e. no prototype other than Object) The following is as close as you can get to say { prop1 : 1 } JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object") class SomeLiteral() { int prop1 }

[gwt-contrib] Proposal for making Object literals more intuitive to define

2016-04-06 Thread Paul Stockley
Would it be possible add support for JsType(literal=true). I am not proposing this would work according to the future object literal spec. It would just be the equivalent of JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object), I think this would make the code a lot more intuitive

Re: GWT React

2016-04-01 Thread Paul Stockley
Just a quick update. I am continuing to finish and refine the API. I got a basic Redux example working. Every sample I convert exposes other areas I need to work on to make the API as usable as possible. I will post some details on the challenges of converting something like React to Java. The

GWT React

2016-03-24 Thread Paul Stockley
We currently have a large GWT application that we have been working on for the last 4 years. We use Uibinder and Widgets very heavily, although we have our own Widget set and RPC mechanism. The application is being constantly expanded and realistically won’t be fully rewritten for 8-10

Re: Complex Overlay Type

2016-03-22 Thread Paul Stockley
So it looks like pages is actually a hashtable of pageid's to page objects. You can use a class similar to the following and define pages using it public class JsMap extends JavaScriptObject{ protected JsMap() { } public final native T get(String key) /*-{ return

Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-22 Thread Paul Stockley
SomeObjectLiteral(), o -> { o.field1 = > 1; o.field2 = "str"; }); > > } > > > Copied from kotlin (although without method extensions and method inline > is not the same ;)), this is usable for client and server code when you > need to initialize small pojos without fluent

Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-21 Thread Paul Stockley
I have come up with 3 approaches to creating object literals given the current JsInterop capabilities: *1) Construct and set the fields individually* @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") class SomeObjectLiteral { int field1; String field2; }

[gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-21 Thread Paul Stockley
> > I am making decent progress refining the API and making it more usable. I > have decided to do a direct port > > of http://todomvc.com/examples/react/#/. One of the reasons I chose this was so I could have a direct comparison of the Javsascript vs Java code. I am about half way done. The

Re: [gwt-contrib] Re: JsInterop Object Literal

2016-03-21 Thread Paul Stockley
I think having a really succinct way of dealing with JS Object literals will be key to inter-op with existing java script code. Is the plan to land the enhanced support in the 2.x code base or will this be j2cl only? I really hope it will be included on 2.x In the meantime I have come up with

Re: [gwt-contrib] Re: Trying to use JsInterop to work with React

2016-03-19 Thread Paul Stockley
Success! With some javascript hacking I have managed to get it working. I can retrieve props and state and also set state from an onClick callback. Below is my contrived solution @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") public class AbstractClassicComponent {

  1   2   3   >