Single JS for all browsers with SIngle Script Linker

2016-11-08 Thread Marko
Hi! Is is possible to create a single JavaScript output ffrom a GWT application which would support all major browsers (Safari, Gecko, IE10)? If yes: how can I specify which browsers should be supported? If I use: along with: I get the: [ERROR] The module must have exactly one distinct

Re: LayoutPanel question

2016-11-08 Thread vitrums
I stumbled upon this very interesting old topic today, when I tried to manipulate the *display* property of the container's element. I'm gonna demonstrate here, that this issue has few hard to deal with pitfalls. So, the first stumbling block I ran into, was a vain attempt to change the

Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Thomas Broyer
A status code of 0 is generally indicative of a cross origin request without CORS (or an aborted request or network error) -- 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

Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Velusamy Velu
Did some additional investigation on this by trapping the Response object in an exit filter and examining it. I found that the Response from Web service is way different from the GWT-Server side code. Given below are the screen-clips from both. Long story short - trapping the Jersey Web Service

Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread harshyadav
Haven't used RestyGWT, but after reading thru different available options, I recently switched to Errai JAX-RS, the setup is pretty straight forward and it provides out of the box jackson serialization/de-serialization and cross-domain access. On Tuesday, November 8, 2016 at 4:10:26 PM UTC-5,

Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Velusamy Velu
@Thomas Broyer Thanks for the prompt response and suggestions. I did switch to GWT RequestCallback but the problem seems to larger than I expected. It appears the GWT Response class and the Jersey Response classes may not be compatible. @GET @Produces(MediaType.APPLICATION_JSON)

Re: Get data from a JavaScriptObject

2016-11-08 Thread Rodolfo Raya
Thank you very much. I'll try both options. Rodolfo On Tue, Nov 8, 2016 at 9:13 AM Vassilis Virvilis wrote: > with @jsinterop you can (untested of course) > > @JsType(isNative = true) > public class JavaScriptFile { > public String filename; > public String

Re: GWT 2.8.0 released

2016-11-08 Thread Rasmus Olesen
Thank you. I completely forgot about "com.google.jsinterop:jsinterop-annotations:1.0.0:sources" Turns out you actually need to know how to use maven when using maven :) Den tirsdag den 8. november 2016 kl. 13.44.28 UTC+1 skrev Thomas Broyer: > > Basically, either you use "managed dependencies"

Re: GWT 2.8.0 released

2016-11-08 Thread Thomas Broyer
Basically, either you use "managed dependencies" (Maven, Gradle, Ivy, etc.) and it should resolve all dependencies for you; or you use the GWT SDK that you can download from the project website which bundles (almost) everything into 2 JARs. If you download from a Maven repo, then you'll need

Re: Get data from a JavaScriptObject

2016-11-08 Thread Vassilis Virvilis
with @jsinterop you can (untested of course) @JsType(isNative = true) public class JavaScriptFile { public String filename; public String anotherMember; } then __if__ you can cast JavaScriptObject to the @jsinterop type you can acces its fields directly. with jsni you can do that (also

Re: GWT 2.8.0 released

2016-11-08 Thread Rasmus Olesen
Hi There might be an issue with the gwt-user-2.8.0.jar or jsinterop-annotations-1.0.x.jar(s) uploaded to the maven repository. We are getting the following error: * Loading inherited module 'com.google.gwt.core.Core' Loading inherited module 'jsinterop.annotations.Annotations'

Re: GWT 2.8.0 released

2016-11-08 Thread Zeeshan Chughtai
Thomas, Finally, i was able to make superdev mode work. I had to exclude all the jetty 8.1 dependencies (those were getting included because of my some other internal dependency). In addition to that, i am also now using 3.1 servlet-api version (it was 3.0.1). Thanks again. Appreciated.

Re: GWT Logger: your best practices, tips and reasonings.

2016-11-08 Thread vitrums
> > > The common practice (with almost any Java logging framework) is to have > your loggers as static final fields and using the class name as the logger > name (some logging frameworks even have static factory methods taking a > java.lang.Class as "name"). > > Re. the common practice

Get data from a JavaScriptObject

2016-11-08 Thread Rodolfo Raya
Hi, I'm trying to use GWT Polymer from Vaadin and JavaScriptObject is killing me. The Upload widget returns a JavaScript object that is supposed to be a JavaScript 'File' and I can't extract the file name from it. How can I convert this JavaScriptObject to a useful Java object? Many thanks

Re: GWT Logger: your best practices, tips and reasonings.

2016-11-08 Thread Vassilis Virvilis
GWT provides java.util.logging.Logger but my source code was depending in apache-commons logging. So I reimplemented apache-commons logging based on the logging facilities of GWT. The same can be done if your code depends on log4j or slf4j. You can keep the same packaging structures so you can

Re: Tool to convert HTML in GWT widgets

2016-11-08 Thread Vassilis Virvilis
Ooh! Now I saw it. The initial letter is from 2009. Sorry for replied to a zombie thread Vassilis On Tue, Nov 8, 2016 at 12:48 PM, Vassilis Virvilis wrote: > From the subject I thought that somebody was asking for the "magical" tool. > By reading becomes evident that

Re: Tool to convert HTML in GWT widgets

2016-11-08 Thread Vassilis Virvilis
>From the subject I thought that somebody was asking for the "magical" tool. By reading becomes evident that somebody has actually implemented the "magical" tool which is not magical after all just a lot of work, design, builtin assumptions and real life trade offs as all useful software.

Re: JsonpRequestBuilder - Timeout while calling

2016-11-08 Thread Thomas Broyer
JsonpRequestBuilder has a default timeout of 10 seconds, whereas RequestBuilder doesn't have a timeout by default. http://www.gwtproject.org/javadoc/latest/com/google/gwt/jsonp/client/JsonpRequestBuilder.html#setTimeout(int) Anyway, if you can setup CORS on your server

Re: GWT 2.8.0 released

2016-11-08 Thread Zeeshan Chughtai
Thanks Thomas for your reply. You are correct, we definitely needs to optimize these dependencies. About this 'AggregateLifeCycle class. ' Issue. I did able to find out the origin of jetty-deploy from where it was coming, but even excluding it doesn't solve my issue. Any other hint , from where

Re: GWT Logger: your best practices, tips and reasonings.

2016-11-08 Thread Thomas Broyer
On Tuesday, November 8, 2016 at 4:36:20 AM UTC+1, vitrums wrote: > > Recently I found, that some log4j-like functionality in my client's code > could be handy. So with the GWT logging module I can pretty much have a > shared logging code, which is very convenient to use on both sides. The >

Re: GWT 2.7.0 Compile Errors

2016-11-08 Thread Thomas Broyer
On Tuesday, November 8, 2016 at 8:20:58 AM UTC+1, Majdi ABDELMOULA wrote: > > Thank you for your reponse. > >> the problem GXT is not free now. I will lost two old projects (projects >> since 6 years). I will use smart GWT for a new project, so i must start >> from zero, but i worry that

Re: Tool to convert HTML in GWT widgets

2016-11-08 Thread Dhinakar Reddy Pothireddi
Please open up the code and help us to learn it. Thanks in advance. On Wednesday, November 25, 2009 at 3:02:08 AM UTC+5:30, Davi Pires wrote: > > Hi all, > > In my company, we have been working with GWT for almost a year, > developing a ridesharing application (http://www.bigoo.com.br). I >

Re: GWT 2.8.0 released

2016-11-08 Thread Thomas Broyer
On Monday, November 7, 2016 at 11:17:10 PM UTC+1, Zeeshan Chughtai wrote: > > Hi, > > Thanks for this, really happy to have it around. > > We were using 2.8.0-beta1 version for a while without any major fuss. > > While upgrading to 2.8.0 released version, we get stuck with codeserver >

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

2016-11-08 Thread Zeeshan Chughtai
Hi, Thanks for this, really happy to have it around. We were using 2.8.0-beta1 version for a while without any major fuss. While upgrading to 2.8.0 released version, we get stuck with codeserver refused to start because of class loading issues. Here are the changes which we had to made.