Re: Importing javascript functions to GWT using JSInteropr?

2016-05-14 Thread Vassilis Virvilis
you have to mark also that with @JsType(isNative=true) Please check https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/q_GY4SxGQ7I (first comment) jsinterop documentation https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit# I really think

Re: Importing javascript functions to GWT using JSInteropr?

2016-05-14 Thread Ali Akhtar
What about handling the output of the callback? It returns a nested object like response.error.message. -- 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: Importing javascript functions to GWT using JSInteropr?

2016-05-14 Thread Jens
> Is it possible to import the API of a javascript library to GWT using > JsInterop? > > E.g, stripe.js has methods such as: Stripe.card.validateCardNumber(number) > which takes a string, and takes a boolean. > > I have a feeling that it should be possible to import this function using >

Re: Dear GWT

2016-05-14 Thread Ali Akhtar
Its happening for non-ui binder classes too, and i need restarts even on modification. -- 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: Dear GWT

2016-05-14 Thread Ali Akhtar
Sometimes I get the following error: [WARN] Some stale types ([com.foo.web.nav.MemberNavigator, com.foo.web.FooView_ViewUiBinderImpl$Widgets, com.foo.web.FooView_ViewUiBinderImpl, com.foo.web.FooView, com.foo.web.FooView$ViewUiBinder, com.foo.web.FooView$1]) were not reprocessed as was

Re: Dear GWT

2016-05-14 Thread Ali Akhtar
> You (or your tools) must be doing something wrong. Can you tell more about how you're launching SDM I'm using IntelliJ. I have a GWT sdm run configuration in IntelliJ. This is getting a bit ridiculous, I seem to be needing restarts even when I make changes to existing files. E.g, I'm

Importing javascript functions to GWT using JSInteropr?

2016-05-14 Thread Ali Akhtar
Is it possible to import the API of a javascript library to GWT using JsInterop? E.g, stripe.js has methods such as: Stripe.card.validateCardNumber(number) which takes a string, and takes a boolean. I have a feeling that it should be possible to import this function using @JsMethod perhaps,

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-14 Thread Christian Bauer
tasks.withType(de.richsource.gradle.plugins.gwt.AbstractGwtActionTask) { //args "-logLevel", "TRACE" args "-generateJsInteropExports" args "-noincremental" // TODO Had problems with this, so disabling until stable in 2.8.0 // I've had various problems with this cache and GWT snapshot updates, so