Re: Issue compiling a GWT project that uses Dagger 2.5

2017-10-14 Thread zakaria amine
nesday, October 11, 2017 at 9:19:46 AM UTC+2, zakaria amine wrote: >> >> I have updated github. It did not work either way. >> >> Le lundi 9 octobre 2017 11:11:54 UTC+2, Jens a écrit : >>> >>> >>> Thanks Thomas. It is possible to remove dagger from

Re: Issue compiling a GWT project that uses Dagger 2.5

2017-10-11 Thread zakaria amine
I have updated github. It did not work either way. Le lundi 9 octobre 2017 11:11:54 UTC+2, Jens a écrit : > > > Thanks Thomas. It is possible to remove dagger from annotation processor >> path in maven compile plugin, but it does not solve the issue >> unfortunately. >> > > Sounds like you

Re: Issue compiling a GWT project that uses Dagger 2.5

2017-10-09 Thread zakaria amine
urday, October 7, 2017 at 5:11:44 PM UTC+2, zakaria amine wrote: >> >> Hi, >> >> I have two versions of the same project, one with dagger and the other >> without Dagger. the one without Dagger compiles and runs fine. When I try >> to run the version wit

Issue compiling a GWT project that uses Dagger 2.5

2017-10-07 Thread zakaria amine
Hi, I have two versions of the same project, one with dagger and the other without Dagger. the one without Dagger compiles and runs fine. When I try to run the version with Dagger, I get the following error at compile time: Here is the repository of the project for more details:

Re: Weird behavior from JsInterop for uninitialized fields/attributes.

2017-08-29 Thread zakaria amine
017 at 12:36:11 PM UTC+2, zakaria amine wrote: >> >> Hello, >> >> This is a minor remark, and it does affect the functioning of JsInterop, >> as far as I experienced, but may be worth looking into by GWT folks. I have >> the following Js object that I

Weird behavior from JsInterop for uninitialized fields/attributes.

2017-08-29 Thread zakaria amine
Hello, This is a minor remark, and it does affect the functioning of JsInterop, as far as I experienced, but may be worth looking into by GWT folks. I have the following Js object that I am wrapping in Java: var Hotel = function() { this.guests = []; }; Hotel.prototype = { addGuest :

Re: Progressive Web App with Caching and Code Splitting

2017-08-10 Thread zakaria amine
It you be great if you can share your solution. Le lundi 7 août 2017 16:21:19 UTC+2, Gernot Pansy a écrit : > > I got it myself working, with a extended Linker and the using of > XhrFragementLoader. > > On Friday, August 4, 2017 at 12:00:55 AM UTC+2, Gernot Pansy wrote: >> >> Hi, >> >> I wan't

Re: Elemental 2: devmode Error

2017-04-14 Thread zakaria amine
see the gwt-contributors forum) > > On Friday, April 14, 2017 at 4:22:01 PM UTC+2, zakaria amine wrote: >> >> Hello everybody, >> >> I tried the latest version of Elemental 2: >> >> >> com.google.elemental2 >> elemental2-dom >> 1.0.0-beta-1

Elemental 2: devmode Error

2017-04-14 Thread zakaria amine
Hello everybody, I tried the latest version of Elemental 2: com.google.elemental2 elemental2-dom 1.0.0-beta-1 provided but I get the following error when I try to lunch the project in devmode: [ERROR] Errors in 'jsinterop/base/InternalJsUtil.java' [INFO] [ERROR] Line 225:

Re: Which maven archetype for GWT applications?

2017-02-12 Thread zakaria amine
Have you tried GWT project generator: https://gwt-project-generator.cfapps.io/ ? It generates a simple project with an entry point Le dimanche 12 février 2017 15:56:25 UTC+1, Magnus a écrit : > > Hello, > > I am looking for a suitable archetype for building GWT applications with > maven. > >

Re: Method gives a different result than Javascript after wrapping it using JsInterop.

2017-02-05 Thread zakaria amine
that's right Double not double Le samedi 4 février 2017 19:37:58 UTC+1, Kirill Prazdnikov a écrit : > > better to Double ( null might be possible) -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving

Re: Method gives a different result than Javascript after wrapping it using JsInterop.

2017-02-04 Thread zakaria amine
It works! Thanks a lot. I am getting rid of all the Numbers and replacing them by double. Le samedi 4 février 2017 11:38:43 UTC+1, Thomas Broyer a écrit : > > Have you tried with Double instead of Number? I suspect Number might be > passed as an opaque object to JS which could then be turned

Method gives a different result than Javascript after wrapping it using JsInterop.

2017-02-04 Thread zakaria amine
Hello, I am experiencing a weird behavior from JsInterop in this project: gwty-leafle t. The Map class has a zoomIn(Number delta) method that is

Re: GwtMaterialDesign vs gwt-polymer-elements

2016-11-18 Thread zakaria amine
gwt-polymer-elements and Polymer in general is about extending the web, it does provide a set of useful elements but it also allows you to create your own customizable components with behavior, style... GwtMaterialDesign is the look and feel of material design brought to GWT widgets, with

Re: Using js libraries

2016-11-15 Thread zakaria amine
Hi, I have succeeded in partially automating JsInterop classes generation for Leaflet: https://github.com/gwidgets/gwty-leaflet from their documentation. I first tried to find patterns and then I used Jsoup to extract methods and properties from the .html and Apache Velocity to generate

Re: GWT 2.8.0 released

2016-10-22 Thread zakaria amine
Great! Elemental 2 is part of it ? -- 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

Re: Cannot Debug GWT with Eclipse

2016-10-16 Thread zakaria amine
are you using Eclipse breakpoints? I think you have to use GWT.*debugger *() method. Le dimanche 16 octobre 2016 19:10:55 UTC+2, Namline a écrit : > > Hi, > > I am trying to debug a very simple HTML

Re: How to use devModeArgs in net.ltgt.gwt.maven Plugin ?

2016-10-06 Thread zakaria amine
ill accept both and , so I tend to use > as it's much shorter. I like to also put both elements on the same > line when they are logical "key value" pairs. > > On Thursday, October 6, 2016 at 12:22:40 PM UTC+2, zakaria amine wrote: >> >> Hello, >> >>

How to use devModeArgs in net.ltgt.gwt.maven Plugin ?

2016-10-06 Thread zakaria amine
Hello, I am trying to give the gwt dev mode additional options using devModeArgs : -server com.google.appengine.tools.development.gwt.AppEngineLauncher but I get an error when runnign gwt:devmode goal: Unknown argument: -server

Pointing a Maven GWT project to another project using GWT Maven plugin

2016-10-01 Thread zakaria amine
Hi, I have a GWT project with several modules ( Client, Server, Shared,..), and I have a special requirement where the Super Dev mode needs to run on App engine dev server. After compiling the client side, I am using an Ant script that copies GWT client compilation files into the server "war"

Re: Vaadin GWT Polymer Elements adds about 5000 new files to the release

2016-09-20 Thread zakaria amine
gwt-polymer-elements adds the bower_components for polymer which contains all the polymer elements to your module. It is added automatically because it is in the public folder in the package com.vaadin.polymer. One solution I can think of is to rebuild the library and exclude it from the jar.

Re: Create JavaScript callback in GWT using JSInterop

2016-09-10 Thread zakaria amine
Hello, You need to use @JsFunction, something like that would do the trick in your case: @JsFunction public interface Function{ public JavaScriptObject call(FBResponse event); } and then you can define your FBResponse either using JsInterop or JSNI: @JsType(isNative=true,

Re: Working polymer example?

2016-09-09 Thread zakaria amine
Hi, you can try gwt-polymer-starter-kit: https://github.com/gwidgets/gwt-polymer-starter-kit it's also available as a maven archetype: https://github.com/gwidgets/gwt-ui-archetypes Le vendredi 9 septembre 2016 04:00:56 UTC+2, Transplant a écrit : > > > I've left this alone in the hopes that

Re: UiBinder alternative

2016-09-08 Thread zakaria amine
Elemento is the only one that I can think of: https://github.com/hal/elemento You could also lay your layout in the .html and use elemental for interaction with the elements. Le jeudi 8 septembre 2016 15:00:36 UTC+2, Ahmad Bawaneh a écrit : > > Hi > Is there any plans or suggestions for the

GWT maven plugin: inappropriate log message label

2016-09-04 Thread zakaria amine
Hello everybody, This is just a detail and does not affect the execution of the plugin, but before running the dev mode with gwt-maven-plugin the console displays several [ERROR] messages even if they seem more like [INFO] messages : [ERROR] 2016-09-04 12:49:51.423:INFO::main: Logging

Re: Completable Future in GWT 2.8-rc1

2016-08-23 Thread zakaria amine
Hi Bauna, here is what I did so far, and it is working fine for now: @JsType(isNative=true, namespace=GLOBAL) public class Promise { @JsConstructor public Promise(PromiseExecutor executor){ } //catch is a keyword in java @JsMethod(name = "catch") public native Promise onException(Function

Re: Completable Future in GWT 2.8-rc1

2016-08-23 Thread zakaria amine
// Do something with resp, which is your resolved value return null; } }); Le mardi 23 août 2016 14:35:50 UTC+2, Bauna a écrit : > > Hi Zakaria, > Do you have any example of how do you use Promises from GWT? > > > On 23/08/16 06:07, zakaria amine wrote: > > Than

Re: Completable Future in GWT 2.8-rc1

2016-08-23 Thread zakaria amine
I am working with native XMLHTTPRequest. I am trying to write a utility that simplifies the asynchornous calls, and that I can use from my applications to call Rest Services. Le mardi 23 août 2016 12:44:30 UTC+2, Ignacio Baca Moreno-Torres a écrit : > > I'm curious... what problem are you

Re: Completable Future in GWT 2.8-rc1

2016-08-23 Thread zakaria amine
Thanks for the info. rxjava-gwt sounds promising, it does add some complexity though...I will do with Promise for now. -- 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

Completable Future in GWT 2.8-rc1

2016-08-22 Thread zakaria amine
Hello, I tried using CompletableFuture in my application, and I got the famous error : [ERROR] Line 92: No source code is available for type java.util.concurrent.CompletableFuture; did you forget to inherit a required module? I suppose CompletableFuture is not emulated, right ? are there

Re: Best Practice for JSON object recreation on client

2016-08-19 Thread zakaria amine
just fine. why would we need something like gwt-jackson anymore? Le vendredi 19 août 2016 12:05:32 UTC+2, zakaria amine a écrit : > > It works. I prefer your solution. > > Le vendredi 19 août 2016 11:51:35 UTC+2, Jens a écrit : >> >> >> >> Am Freitag, 19

Re: Best Practice for JSON object recreation on client

2016-08-19 Thread zakaria amine
It works. I prefer your solution. Le vendredi 19 août 2016 11:51:35 UTC+2, Jens a écrit : > > > > Am Freitag, 19. August 2016 11:43:12 UTC+2 schrieb zakaria amine: >> >> I have tried something like: >> >> @JsType(namespace=GLOBAL) >> public class Record

Re: Best Practice for JSON object recreation on client

2016-08-19 Thread zakaria amine
I have tried something like: @JsType(namespace=GLOBAL) public class Record { String id; String date; String data; public Record() { } } As mentioned above, I created a JsInterop wrapper for the JSON class in javascript : @JsType(isNative=true, namespace=GLOBAL) public class JSON { public

Re: Runtime error when switching a GWT Polymer Elements project from 2.8.0-beta1 to 2.8.0-rc1/rc2

2016-08-12 Thread zakaria amine
> issue (in this case I will wait Vaadin to deliver the next release that > will work GWT 2.8.0) or if it's a GWT issue that needs to be fixed before > 2.8.0 is out. > > Should I rather open an issue on the gwt-polymer-elements github project? > > > On Friday, 12 August 20

Re: Runtime error when switching a GWT Polymer Elements project from 2.8.0-beta1 to 2.8.0-rc1/rc2

2016-08-12 Thread zakaria amine
Normally, the latest version gwt-polymer-elements 1.2.3.0 is not supposed to work with beta1 but with SNAPSHOT or rc1, which version are you using? Another advise is try not use whenPolymerLoaded() in Dev mode, comment it out and take out the statements inside it, use it only when deploying to

UI GWT Maven archetypes

2016-08-06 Thread zakaria amine
Hello everybody, I created a bunch of UI archetypes for GWT. The archetypes are inspired from Polymer layouts to help GWT users get started quickly with a GWT app. This is only a SNAPSHOT version, so I will try to add more layouts/archetypes on the go, and improve the existing ones based on

Re: Dev mode issue after updating to rc1

2016-08-03 Thread zakaria amine
Thanks a lot for your help. It does work using what you described. "gwt:run" still gives the same error though. Le mardi 2 août 2016 21:56:46 UTC+2, zakaria amine a écrit : > > Hi, > > > I tried updating my project here: > https://github.com/gwidgets/gwty-leaf

Dev mode issue after updating to rc1

2016-08-02 Thread zakaria amine
Hi, I tried updating my project here: https://github.com/gwidgets/gwty-leaflet-starter-guide from 2.8.0-beta1 to 2.8.0-rc1, but I got the below issue while trying to run dev mode or deploy to a server. It works fine with beta1. java.util.ServiceConfigurationError:

Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-29 Thread zakaria amine
It resolved the compilation problem, but it did throw something like a javascript error "cannot resolve property gwidgets of undefined" which I could not resolve, even by adding namespaces. Le mercredi 27 juillet 2016 16:42:12 UTC+2, Jens a écrit : > > > Thanks for your suggestion. SNAPHOT

Re: using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-27 Thread zakaria amine
26, 2016 at 4:45:03 PM UTC+2, zakaria amine wrote: >> >> I have an interface annotated with @JsFunction that I use as a callback >> for events. As there are different types of events, I have added a type >> parameter: >> >> >> @JsFunctionpublic

using Generics in GWT JsInterop: Uncaught java.lang.ClassCastException

2016-07-26 Thread zakaria amine
I have an interface annotated with @JsFunction that I use as a callback for events. As there are different types of events, I have added a type parameter: @JsFunctionpublic interface Function{ public JavaScriptObject call(T event); } >From the entry point I do something like : //...

Re: Ui Binder Alternatives

2016-07-26 Thread zakaria amine
Elemento project sounds like an intersting alternative: https://github.com/hal/elemento Le dimanche 24 juillet 2016 03:40:02 UTC+2, N Troncoso a écrit : > > With GWT 3.0, Widgets and UI Binder is losing support. Even besides that, > I'm not a huge fan of UI Binder. I'd really just prefer to use

Re: “No source code is available for type”

2016-07-18 Thread zakaria amine
That's it! Thanks a lot guys. Including the .java was the answer. I thought excluding the .java to make the jar lighter, but I totally missed that GWT needs sources. Cheers, Le lundi 18 juillet 2016 20:48:01 UTC+2, zakaria amine a écrit : > > Hi GWT users, > > I am ne

“No source code is available for type”

2016-07-18 Thread zakaria amine
Hi GWT users, I am need your help with an issue that have been bugging me for days now. I created a gwt library(https://github.com/gwidgets/gwty-leaflet) which works and compiles fine. When I create an entry point from inside the project, everything is o.k. However, when I package the