upgrade gwt 2.7 to gwt 2.8.1 not working

2017-05-09 Thread Gal Lavie
Hi everyone I develop application in gwt and google app engine. until now i used with gwt 2.7 lib and google app engine 1.51 lib i try to upgrade the gwt 2.7 to 2.8.1 lib and i have 2 problems now i hope you can help me 1) when i try to run the project i get exception in devModeBase.class file

Re: [gwt-contrib] Re: JsInterop & collections

2017-05-09 Thread 'Ray Cromwell' via GWT Contributors
I think it would be better to use a JsArrayListAdapter in order to prevent making copies all over the place, and also making mutations write-through on both sides e.g. public class JsArrayListAdapter extends AbstractList { public JsArrayListAdapter(ArrayLike blah) { this.array = blah;

Re: [gwt-contrib] Minor thing with Elemental 2 DomGlobal.requestAnimationFrame

2017-05-09 Thread 'Goktug Gokdogan' via GWT Contributors
We will soon have a github repro but right now this is the right place to report it. It looks like closure definition is missing return definition: https://github.com/google/closure-compiler/blob/master/externs/browser/w3c_anim_timing.js#L26 Updating that should resolve the issue. Could you file

Re: [gwt-contrib] Re: JsInterop & collections

2017-05-09 Thread 'Goktug Gokdogan' via GWT Contributors
Yes, theoretically you should be able to use the second parameter on Json.parse Json.stringify for conversion back and forth between java collections and js primitives. In this model, your javascript code needs to use Java collection APIs. > java.util.Arrays.asList() should be enough keep in

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

2017-05-09 Thread 'Goktug Gokdogan' via GWT Contributors
BTW, if you are using elemental2, keep in mind that these are beta releases to get feedback and APIs will keep changing until we finalize it. So be prepared for breakages in releases until we do the final release cut. On Tue, May 9, 2017 at 2:32 PM, Julien Dramaix

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

2017-05-09 Thread Julien Dramaix
I forgot to mention: as a workaround, you can create your own JsFunction callback and cast it to Function: @JsFunction interface MyJsFunction { void onInvoke(); default Function asFunction() { return (Function) this; } } On Tue, May 9, 2017 at 9:37 AM Julien Dramaix

Re: Scavenging sessions at

2017-05-09 Thread Boris Brudnoy
[image: hsi_-_Java__1680x1050__-_healthometry-client_src_main_java_com_healthometry_client_activities_BaseDisposableActivity_java_-_Eclipse_-__Users_bbrudnoy_Workspaces_hsi.png] For immediate relief, toggle the 'Show Console on Any Output' button in your Eclipse console toolbar. On Tue, May 9,

Re: Migrating from Mojo to tbroyers Maven plugin: how to get the static resources into the WAR

2017-05-09 Thread Anders Forsell
Adding this seems to work: maven-resources-plugin copy-resources generate-sources copy-resources ${project.build.directory}/${project.build.finalName} src/main/webapp true On Tuesday, May 9, 2017 at 7:44:25 PM UTC+2, Anders Forsell wrote: > > Hi, > > I'm migrating over to the

Migrating from Mojo to tbroyers Maven plugin: how to get the static resources into the WAR

2017-05-09 Thread Anders Forsell
Hi, I'm migrating over to the "new" GWT Maven plugin from Mojo's and have succeeded in getting my application to compile correctly. I'm using "mvn clean install" as the build step and expected the generated WAR to contain my static web resources from "src/main/webapp". Now it only contains the

Scavenging sessions at

2017-05-09 Thread AJ
Hello, I recently upgraded to use 2.8.1 from 2.7 and find that my eclipse console is spammed with jetty messages regarding Scavenging sessions The console gets focus each time a message is written. This is inconvenient when, say, I have done a search and want to look at the results and console

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

2017-05-09 Thread Julien Dramaix
> I believe it's due to how they're declared in the Closure externs: onreadystatechange and onerror: https://github.com/google/closure-compiler/blob/8ac08c03cd695b84f8a79ac3a1338172df3f/externs/browser/w3c_xml.js#L393-L403 vs all the other callbacks:

Re: HI, Port already in use issue when the server tab doesnot show any red icon and session is closed but still facing same issue

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 6:25:29 PM UTC+2, sahit...@gmail.com wrote: > > can any one help me on this > Assuming Eclipse here, open the Debug view (it's generally enough to switch to the Debug perspective) and look for a running process and kill it. Alternatively, you can use JConsole or

Re: [gwt-contrib] Re: JsInterop & collections

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 4:34:48 PM UTC+2, Marcin Okraszewski wrote: > > There is indeed something in it. Actually you could have some type of > naming convention, like in TJSON ( > https://tonyarcieri.com/introducing-tjson-a-stricter-typed-form-of-json) > or TypedJson

HI, Port already in use issue when the server tab doesnot show any red icon and session is closed but still facing same issue

2017-05-09 Thread sahitya066
can any one help me on this -- 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: server push example with GWT?

2017-05-09 Thread Thomas Lefort
OK, finally got it to work, but had to add the following to my web.xml (so it was jetty all along), the webdefault didn't work default org.eclipse.jetty.servlet.DefaultServlet useFileMappedBuffer false 0 On Tuesday, 9

Re: [gwt-contrib] Re: JsInterop & collections

2017-05-09 Thread Marcin Okraszewski
There is indeed something in it. Actually you could have some type of naming convention, like in TJSON (https://tonyarcieri.com/introducing-tjson-a-stricter-typed-form-of-json) or TypedJson (https://www.npmjs.com/package/typed-json) to figure out proper types. But then I would need to create

Re: server push example with GWT?

2017-05-09 Thread Thomas Lefort
Aw thanks Thomas, I feel guilty to take so much of your time. I did just figure out the -war option but ran into another issue... I am running the jetty server from Intellij and the CodeServer with the no server and war options as suggested. However when it comes to updating the code (which it

Re: server push example with GWT?

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 3:18:38 PM UTC+2, Thomas Lefort wrote: > > Hi Thomas, > > Thanks for the reply. Sure I don't expect anyone to fix it for me, just to > know if it is a problem my end or if I am trying to do too much with the > embedded server indeed. > > I am happy with running an

Re: server push example with GWT?

2017-05-09 Thread Thomas Lefort
Hi Thomas, Thanks for the reply. Sure I don't expect anyone to fix it for me, just to know if it is a problem my end or if I am trying to do too much with the embedded server indeed. I am happy with running an external server, however, it would be nice if I could get a similar level of debug

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

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 2:02:40 PM UTC+2, Daniel Harezlak wrote: > > > > On Tuesday, May 9, 2017 at 1:03:41 PM UTC+2, Thomas Broyer wrote: >> >> >> >> On Tuesday, May 9, 2017 at 1:03:00 PM UTC+2, Daniel Harezlak wrote: >>> >>> HI, what are the replacements for elemental2.Global.window and

Re: server push example with GWT?

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 1:52:03 PM UTC+2, Thomas Lefort wrote: > > Has anybody managed to run an example of websockets with the embedded > jetty in gwt 2.8? ie only using the jsr API. I just can't get it to work, > the ServerEndpoint annotation doesn't get picked up. I also tried with the

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 1:45:00 PM UTC+2, Frederik Van Hoyweghen wrote: > > I tried both the command line (mvn gwt:compile) and via the IntelliJ Maven > plugin. > Indeed, binding the execution to the prepare-package phase and running *mvn > gwt:compile@compile-common *works, and I'm glad it

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

2017-05-09 Thread Daniel Harezlak
On Tuesday, May 9, 2017 at 1:03:41 PM UTC+2, Thomas Broyer wrote: > > > > On Tuesday, May 9, 2017 at 1:03:00 PM UTC+2, Daniel Harezlak wrote: >> >> HI, what are the replacements for elemental2.Global.window and similar >> in this new release? >> > > elemental2.DomGlobal.window (in

Why does my ImageBitmap get squished if I resize the Canvas to the size of the bitmap

2017-05-09 Thread Philipp
As far as I can judge this is more a cosmetic issue but it might have implications that I don't understand/see yet. I have a vertical panel that serves as a container for a small image and a number label. As member I have a private Canvas thumbnailCanvas; private ResizeLayoutPanel rlp = new

Re: server push example with GWT?

2017-05-09 Thread Thomas Lefort
Has anybody managed to run an example of websockets with the embedded jetty in gwt 2.8? ie only using the jsr API. I just can't get it to work, the ServerEndpoint annotation doesn't get picked up. I also tried with the "manual" registrarion, eg with serverContainer.addEndpoint, but I have

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen
I tried both the command line (mvn gwt:compile) and via the IntelliJ Maven plugin. Indeed, binding the execution to the prepare-package phase and running *mvn gwt:compile@compile-common *works, and I'm glad it does. If I'm reading what you're saying correctly, this means that there is no way

Re: [gwt-contrib] Re: JsInterop & collections

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 12:08:12 PM UTC+2, Marcin Okraszewski wrote: > > In short I would like JS arrays to be visible in GWT as a List and objects > parsed from JSON also as a Map. > > Maybe I'll try one more time to explain what we have. We share model > between server and GWT in form of

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 1:11:04 PM UTC+2, Frederik Van Hoyweghen wrote: > > > > On Tuesday, May 9, 2017 at 12:59:17 PM UTC+2, Thomas Broyer wrote: >> >> >> I wouldn't put any / into the plugin-level >> , and only put them into the . >> > > That's what I figured, but it seems to be a

Re: [gwt-contrib] Re: JsInterop & collections

2017-05-09 Thread Jens
> I believe it was in plans with @JsConvert – see slides 67 – 69. > https://docs.google.com/file/d/0ByS1wxINeBWjeGYxbkJpamxFZ28/edit > I think this is more meant to be used with non-native JsTypes. When you have a JsType implemented in Java and some JavaScript gives you JS through the Java

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen
On Tuesday, May 9, 2017 at 12:59:17 PM UTC+2, Thomas Broyer wrote: > > > I wouldn't put any / into the plugin-level > , and only put them into the . > That's what I figured, but it seems to be a required property (The parameters 'moduleName' for goal

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

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 1:03:00 PM UTC+2, Daniel Harezlak wrote: > > HI, what are the replacements for elemental2.Global.window and similar in > this new release? > elemental2.DomGlobal.window (in elemental2-dom dependency) -- You received this message because you are subscribed to the

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

2017-05-09 Thread Daniel Harezlak
HI, what are the replacements for elemental2.Global.window and similar in this new 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 from it, send an email to

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 12:33:57 PM UTC+2, Frederik Van Hoyweghen wrote: > > This indeed seems to be what I was looking for, thank you. > Are there any obvious downsides to doing it like this, with multiple > executions? > Each module compilation will fork a new GWT compiler process, rather

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen
This indeed seems to be what I was looking for, thank you. Are there any obvious downsides to doing it like this, with multiple executions? Does it matter which specific moduleName I specify within the tag, or should I just pick 1 arbitrary one there and put the others within the tag? I

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer
On Tuesday, May 9, 2017 at 11:27:25 AM UTC+2, Frederik Van Hoyweghen wrote: > > Thanks for the replies. > > I already took a look at the issue on the plugin's github: > https://github.com/tbroyer/gwt-maven-plugin/issues/57 >

Re: [gwt-contrib] Re: JsInterop & collections

2017-05-09 Thread Marcin Okraszewski
In short I would like JS arrays to be visible in GWT as a List and objects parsed from JSON also as a Map. Maybe I'll try one more time to explain what we have. We share model between server and GWT in form of java interfaces. Those interfaces are declared as return types of Jersey services,

[gwt-contrib] Minor thing with Elemental 2 DomGlobal.requestAnimationFrame

2017-05-09 Thread Anders Forsell
Hi, I found a small annoyance with DomGlobal.requestAnimationFrame in that you have to supply a function which returns an Object. DomGlobal.requestAnimationFrame(event -> { myPresenter.loadContent(); return null; }); I'd like to be able to pass a void method, where

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen
Thanks for the replies. I already took a look at the issue on the plugin's github: https://github.com/tbroyer/gwt-maven-plugin/issues/57 Sadly, this was

Re: Multiple GWT modules in one Maven module

2017-05-09 Thread David
In my project I have many modules. What I did is simple create a gwt-lib maven module per GWT module. Those modules served different purposes so it made sense to split them in smaller artifacts. In some cases I moved the code around so that I join multiple modules into one big module instead.