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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 expected. This is either a compiler bug or a Generator 
has legitimately stopped creating these types.


This is combined with:

Uncaught ReferenceError: Mg_g$ is not defined

in Chrome's console.

Seems like this is specific to uiBinder classes.






-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 editing a file called FooView.java which is a uibinder view file.

As soon as I begin typing, I see this exception pop up in the SDM console:

java.nio.file.NoSuchFileException: 
/home/ali/foo/src/main/java/com/gevald/web/FooView.java___jb_old___
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.asIOException(UnixException.java:111)
at 
sun.nio.fs.LinuxWatchService$Poller.implRegister(LinuxWatchService.java:246)
at sun.nio.fs.AbstractPoller.processRequests(AbstractPoller.java:260)
at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:329)
at java.lang.Thread.run(Thread.java:745)
java.nio.file.NoSuchFileException: 
/home/ali/xxx/src/main/java/com/foo/web/FooView.java___jb_old___
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.asIOException(UnixException.java:111)
at 
sun.nio.fs.LinuxWatchService$Poller.implRegister(LinuxWatchService.java:246)
at sun.nio.fs.AbstractPoller.processRequests(AbstractPoller.java:260)
at sun.nio.fs.LinuxWatchService$Poller.run(LinuxWatchService.java:329)
at java.lang.Thread.run(Thread.java:745)

When I next refresh the window, I get a compile error:

  [ERROR] Errors in 
'file:/home/ali/foo/src/main/java/com/foo/web/client/nav/MemberNavigator.java'
   [ERROR] Line 47: No source code is available for type 
com.foo.web.FooView; did you forget to inherit a required module?

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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, but I'm not sure of the exact syntax. The specs doc is a 
little bit lacking in examples.

I'm using 2.8.0-beta1 

Question 2: What if a javascript API performs some async function, and 
requires a callback to be passed in which contains the result of the 
operation. Is that possible to handle using JsInterop?

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Jsni replacement in 2.8?

2016-05-11 Thread Ali Akhtar
Is Jsni going to be deprecated / removed?

On Thu, May 12, 2016 at 3:23 AM, Jens  wrote:

>
> How much of that has been implemented?
>>
>
> Everything in the 1.0 spec should work in 2.8 SNAPSHOT.
>
> -- J.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/FbwB4x8jSE8/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Jsni replacement in 2.8?

2016-05-11 Thread Ali Akhtar
How much of that has been implemented? Are there any examples of it working
anywhere?

On Thu, May 12, 2016 at 2:44 AM, Michael Zhou <zhoumotongxue...@gmail.com>
wrote:

> Take a look at the official JsInterop 1.0 specs:
> https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/view
>
> On Wednesday, May 11, 2016 at 5:27:04 PM UTC-4, Ali Akhtar wrote:
>>
>> In GWT 2.8, what should be used in place of Jsni methods? Such as for
>> integrating a 3rd party js library? There was very sparse documentation
>> available for JsInterop last time I checked, are there any more docs
>> available now?
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/FbwB4x8jSE8/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Jsni replacement in 2.8?

2016-05-11 Thread Ali Akhtar
In GWT 2.8, what should be used in place of Jsni methods? Such as for 
integrating a 3rd party js library? There was very sparse documentation 
available for JsInterop last time I checked, are there any more docs 
available 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 email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Dear GWT

2016-05-11 Thread Ali Akhtar
I'm sure. In 2.8 beta1, everytime a new class is added, or a new uiBinder 
file, it requires a restart in order for it to be detected and not get a 
weird error like $mg_1 not found

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Dear GWT

2016-05-11 Thread Ali Akhtar




-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


gwt-dev and javax-validation:validation-api

2016-04-14 Thread Ali Akhtar
Heya,

I'm using Dropwizard and GWT in the same project. Problem is, Dropwizard 
relies on javax-validation:validation-api 1.1.0.Final and GWT uses an older 
version of the lib.

With dependencyManagement, I've got the project to compile & run correctly. 
BUT, at test time, I get the following lovely error:

java.lang.IncompatibleClassChangeError: Implementing class


This happens when a class is being deserialized from Json by jackson, and 
that class uses a @Valid annotation.

I've tried all sorts of exclusions and dependencyManagements, changing 
scopes, etc but nothing worked, however if I take out gwt-dev, then it 
magically starts working.

Questions:

1) What's in gwt-dev which is causing validation-api to get included during 
tests (not at runtime) even when explicitly excluded?

2) It seems taking out gwt-dev causes SDM to not work, but other things 
continue working. Is it possible to exclude gwt-dev only for tests, but 
include it at dev time so SDM can work? (Right now, I've resorted to 
manually uncommenting gwt-dev when SDM needs to run but keeping it 
commented otherwise. Sooper hi tech)

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrade validation-api dependency to 1.1.0.Final

2016-04-12 Thread Ali Akhtar
Please consider making that hibernate upgrade a priority. We are hugely
behind on that upgrade, Hibernate 4 was ages ago. Today I'm experiencing
this problem, but a lot of people are going to experience this in future,
because every project is going to be on a newer version of validation-api.
If we tell everyone to split up GWT into a separate project, that kills one
of the main advantages of GWT, which is code re-use.

I'd help but I'm not familiar with that code base at all.

On Tue, Apr 12, 2016 at 7:50 PM, Jens  wrote:

>
> GWT is on 1.0.0.1.GA. Isn't that going to be mostly compatible with
>> 1.1.0? It seems like this would just  require changing the version in a
>> pom, and the rest would work. I would be really surprised if there are any
>> breaking changes between these versions.
>>
>
> Upgrading Validation API to 1.1.0 would also require to update Hibernate
> Validator from 4.x to 5.x including its GWT emulation. The update of
> Hibernate Validator from 4.1.0 to 4.3.2 (which is still Validation API 1.0)
> is already some work and has not yet been committed:
>
> https://gwt-review.googlesource.com/#/c/9320/
>
> So no its not just changing a version in a pom.
>
> -- J.
>
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/Py4c2Fm9_7Y/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrade validation-api dependency to 1.1.0.Final

2016-04-12 Thread Ali Akhtar
It would make my workflow very complicated to have them in separate 
modules, as then I'd also need a 3rd project for shared code. It so happens 
that mostly DTOs would be in the shared code, and the DTOs would need to be 
annotated w/ Validation annotations. Where do they get these annotations, 
GWT's version or Dropwizard's version? This wouldn't really solve anything.

GWT is on 1.0.0.1.GA. Isn't that going to be mostly compatible with 1.1.0? 
It seems like this would just  require changing the version in a pom, and 
the rest would work. I would be really surprised if there are any breaking 
changes between these versions.

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Upgrade validation-api dependency to 1.1.0.Final

2016-04-12 Thread Ali Akhtar
gwt-user has a dependency to an older version of 
javax-validation:validation-api. This is causing a lot of issues, and 
causing builds to break with Dropwizard. 
See: 
http://stackoverflow.com/questions/36568756/maven-dependency-management-being-ignored-at-test-time-works-at-runtime

Please upgrade to the latest version in snapshot.

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Launching SDM programatically from integrated tests

2016-04-10 Thread Ali Akhtar
Once CodeServer.main() has been run, is there a way to stop the code
server, such as in the tear down method of the test?

On Sun, Apr 10, 2016 at 4:40 AM, Jens  wrote:

>
> How can that be done? Can anyone point me to which code class / method
>> needs to be called for starting up SDM?
>>
>
> CodeServer.main()
>
>
>
>> Also, if there's a better way of doing what I'm trying to do, or if
>> anyone has done this before, please share your thoughts.
>>
>
> IMHO you would usually use a build system to produce a *.war file
> configured for integration testing (e.g. using a specific database for
> integration testing), to deploy it and then start integration tests using
> selenium/webdriver.
>
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/oZvdPi9T844/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Launching SDM programatically from integrated tests

2016-04-09 Thread Ali Akhtar
Thanks Jens.

Wars are so old school. Fat jars are the thing these days :).

In the integration test, I'm already creating an in-memory instance of the
db which is injected into the server resources, so that part is covered.

The only question now is how to setup GWT for doing browser based
integration testing. Will keep you guys posted on how it goes.



On Sun, Apr 10, 2016 at 4:40 AM, Jens  wrote:

>
> How can that be done? Can anyone point me to which code class / method
>> needs to be called for starting up SDM?
>>
>
> CodeServer.main()
>
>
>
>> Also, if there's a better way of doing what I'm trying to do, or if
>> anyone has done this before, please share your thoughts.
>>
>
> IMHO you would usually use a build system to produce a *.war file
> configured for integration testing (e.g. using a specific database for
> integration testing), to deploy it and then start integration tests using
> selenium/webdriver.
>
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/oZvdPi9T844/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Launching SDM programatically from integrated tests

2016-04-09 Thread Ali Akhtar
I'm attempting to figure out the best way to setup integrated testing in 
GWT. I've recently played with Rails where its really easy to launch the 
application and click on buttons / fill in fields, etc to simulate user 
behavior, and ensure the app works as expected. I'm looking for a similar 
solution with GWT.

So far, it looks like the best solution would be to have a Test Suite which 
runs all of the integrated tests, and before launching the suite, have it 
setup GWT's sdm mode programatically.

How can that be done? Can anyone point me to which code class / method 
needs to be called for starting up SDM?

Also, if there's a better way of doing what I'm trying to do, or if anyone 
has done this before, please share your thoughts.

I'll post my setup once I manage to get this working.

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Testing client-side behavior of GWT Apps

2016-04-09 Thread Ali Akhtar
What's the preferred way of testing client-side behavior of GWT apps? E.g, 
say you want to load up the site, click a sign up button, click the submit 
button, and want to verify that errors are shown. What's the best way to 
verify that using GWT? 

It seems like this might be a case for regular selanium / webdriver based 
testing, however, that would require either gwt to be started in SDM before 
the tests are run, or GWT to be compiled for production & copied to the 
static resources directory, before tests run. Has anyone done something 
like this before - if so, can you share you setup please?

Thanks.

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Elemental example project

2016-04-04 Thread Ali Akhtar
I've heard (and seen a video) about future proofing GWT apps, and it was 
mentioned that UiBinder will be going away in favor of Elemental (or 
something to that effect).

I've since tried long and hard, but haven't found much documentation or any 
examples of porting a UiBinder based view to Elemental.

Could anyone with the knowledge please provide such an example somewhere? 
What I'd like to know is:

1) How to separate the html template from the view class.

2) Any support for Css/GssResources?

3) How to set event handlers?

4) Any other relevant info

Would be great if someone could setup a sample project using Elemental and 
do the above tasks. Could be just a hello world page with a textbox that 
alerts what you type in 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 email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8.0-SNAPSHOT jsinterop missing module

2015-12-20 Thread Ali Akhtar
sandbox = snapshot

On Sunday, December 20, 2015 at 6:11:30 PM UTC+5, Ali Akhtar wrote:
>
> I'm also encountering this issue with sandbox. 
> The /home/ali/.m2/repository/com/google/jsinterop/jsinterop/1.0.0-SNAPSHOT 
> contains only pom files, no jars. I'm attempting to upgrade - anyone know 
> which maven repository contains the snapshot version of the maven plugin, 
> or does it have to be installed via manual compile (Yay - not)?
>
> On Sunday, December 13, 2015 at 12:17:37 AM UTC+5, Thomas Broyer wrote:
>>
>> Do you have 
>> $M2_HOME/repository/com/google/jsinterop/jsinterop-annotations/jsinterop-annotations-*-sources.jar
>>  
>> in the classpath? (as should be seen in the Maven error output)
>>
>> On Saturday, December 12, 2015 at 5:06:48 PM UTC+1, geek.m...@gmail.com 
>> wrote:
>>>
>>> Everything is up-to-date - I have made no changes, except to do a new 
>>> mvn install. I just did a Maven > Update project, and a mvn clean, followed 
>>> by a mvn install, and its still broken.
>>>
>>> Here's the content of my pom.xml:
>>>
>>>
>>>  
>>>
>>>  
>>> http://maven.apache.org/POM/4.0.0; xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance; 
>>>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>>> http://maven.apache.org/maven-v4_0_0.xsd;> 
>>>
>>>   4.0.0 
>>>   com.mjeffw.gurps.ritualdesigner 
>>>   ritual-designer-bs 
>>>   war 
>>>   1.0-SNAPSHOT 
>>>   Maven Archetype for GWT 
>>>
>>>
>>>  
>>> 2.8.0-SNAPSHOT 
>>>  
>>> 1.8 
>>> 1.8 
>>> UTF-8 
>>> 0.9.2 
>>> 2.6 
>>> 
>>> ${project.build.directory}/${project.build.finalName} 
>>>
>>>
>>>
>>>  
>>>
>>> com.google.gwt 
>>> gwt 
>>> ${gwtVersion} 
>>> pom 
>>> import 
>>>
>>>  
>>>
>>>
>>>
>>>  
>>>   org.gwtbootstrap3 
>>>   gwtbootstrap3 
>>>   ${bootstrapVersion} 
>>>   provided 
>>>  
>>>
>>>  
>>>   org.gwtbootstrap3 
>>>   gwtbootstrap3-extras 
>>>   ${bootstrapVersion} 
>>>   provided 
>>>  
>>>
>>>  
>>>   com.google.gwt 
>>>   gwt-user 
>>>   provided 
>>>  
>>>
>>>  
>>>   com.google.gwt.inject 
>>>   gin 
>>>   2.1.2 
>>>  
>>>
>>>  
>>>   com.google.gwt 
>>>   gwt-servlet 
>>>   runtime 
>>>  
>>>
>>>  
>>>   com.google.gwt 
>>>   gwt-dev 
>>>   provided 
>>>  
>>>
>>>  
>>>   junit 
>>>   junit 
>>>   4.11 
>>>   test 
>>>  
>>>
>>>  
>>>   com.mjeffw.gwt 
>>>   gwt-utils 
>>>   1.0-SNAPSHOT 
>>>  
>>>
>>>
>>>
>>>  
>>> 
>>> ${project.build.directory}/${project.build.finalName}/WEB-INF/classes
>>>  
>>>  
>>>
>>>
>>> org.codehaus.mojo 
>>> gwt-maven-plugin 
>>> ${gwtVersion} 
>>>  
>>>
>>>  
>>>   compile 
>>>   test 
>>>   generateAsync 
>>>  
>>>
>>>  
>>>
>>>  
>>>  
>>>   RitualDesignerBS.html 
>>>   ${webapp.directory} 
>>>
>>> com.mjeffw.gurps.ritualdesigner.RitualDesignerBS
>>>  
>>>
>>>  
>>>
>>>
>>>
>>>
>>> org.apache.maven.plugins 
>>> maven-war-plugin 
>>> ${maven-war-plugin.version} 
>>>  
>>>
>>> compile 
>>>  
>>>   exploded 
>>>  
>>>
>>>  
>>>
>>>  
>&

Re: GWT 2.8.0-SNAPSHOT jsinterop missing module

2015-12-20 Thread Ali Akhtar
I'm also encountering this issue with sandbox. 
The /home/ali/.m2/repository/com/google/jsinterop/jsinterop/1.0.0-SNAPSHOT 
contains only pom files, no jars. I'm attempting to upgrade - anyone know 
which maven repository contains the snapshot version of the maven plugin, 
or does it have to be installed via manual compile (Yay - not)?

On Sunday, December 13, 2015 at 12:17:37 AM UTC+5, Thomas Broyer wrote:
>
> Do you have 
> $M2_HOME/repository/com/google/jsinterop/jsinterop-annotations/jsinterop-annotations-*-sources.jar
>  
> in the classpath? (as should be seen in the Maven error output)
>
> On Saturday, December 12, 2015 at 5:06:48 PM UTC+1, geek.m...@gmail.com 
> wrote:
>>
>> Everything is up-to-date - I have made no changes, except to do a new mvn 
>> install. I just did a Maven > Update project, and a mvn clean, followed by 
>> a mvn install, and its still broken.
>>
>> Here's the content of my pom.xml:
>>
>>
>>  
>>
>>  
>> http://maven.apache.org/POM/4.0.0; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance; 
>>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>> http://maven.apache.org/maven-v4_0_0.xsd;> 
>>
>>   4.0.0 
>>   com.mjeffw.gurps.ritualdesigner 
>>   ritual-designer-bs 
>>   war 
>>   1.0-SNAPSHOT 
>>   Maven Archetype for GWT 
>>
>>
>>  
>> 2.8.0-SNAPSHOT 
>>  
>> 1.8 
>> 1.8 
>> UTF-8 
>> 0.9.2 
>> 2.6 
>> 
>> ${project.build.directory}/${project.build.finalName} 
>>
>>
>>
>>  
>>
>> com.google.gwt 
>> gwt 
>> ${gwtVersion} 
>> pom 
>> import 
>>
>>  
>>
>>
>>
>>  
>>   org.gwtbootstrap3 
>>   gwtbootstrap3 
>>   ${bootstrapVersion} 
>>   provided 
>>  
>>
>>  
>>   org.gwtbootstrap3 
>>   gwtbootstrap3-extras 
>>   ${bootstrapVersion} 
>>   provided 
>>  
>>
>>  
>>   com.google.gwt 
>>   gwt-user 
>>   provided 
>>  
>>
>>  
>>   com.google.gwt.inject 
>>   gin 
>>   2.1.2 
>>  
>>
>>  
>>   com.google.gwt 
>>   gwt-servlet 
>>   runtime 
>>  
>>
>>  
>>   com.google.gwt 
>>   gwt-dev 
>>   provided 
>>  
>>
>>  
>>   junit 
>>   junit 
>>   4.11 
>>   test 
>>  
>>
>>  
>>   com.mjeffw.gwt 
>>   gwt-utils 
>>   1.0-SNAPSHOT 
>>  
>>
>>
>>
>>  
>> 
>> ${project.build.directory}/${project.build.finalName}/WEB-INF/classes
>>  
>>  
>>
>>
>> org.codehaus.mojo 
>> gwt-maven-plugin 
>> ${gwtVersion} 
>>  
>>
>>  
>>   compile 
>>   test 
>>   generateAsync 
>>  
>>
>>  
>>
>>  
>>  
>>   RitualDesignerBS.html 
>>   ${webapp.directory} 
>>
>> com.mjeffw.gurps.ritualdesigner.RitualDesignerBS
>>  
>>
>>  
>>
>>
>>
>>
>> org.apache.maven.plugins 
>> maven-war-plugin 
>> ${maven-war-plugin.version} 
>>  
>>
>> compile 
>>  
>>   exploded 
>>  
>>
>>  
>>
>>  
>>   ${webapp.directory} 
>>  
>>
>>
>>
>> org.apache.maven.plugins 
>> maven-compiler-plugin 
>>
>>  
>>
>>  
>>
>>  
>>   sonatype-nexus-snapshots 
>>   http://oss.sonatype.org/content/repositories/snapshots 
>>
>> true 
>>
>>
>> false 
>>
>>  
>>
>> 
>>
>>
>>
>> Any ideas on what is going on here would be appreciated!
>>
>>
>>
>> On Friday, December 11, 2015 at 5:36:27 PM UTC-5, Thomas Broyer wrote:
>>>
>>>
>>>
>>> On Friday, December 11, 2015 at 11:08:01 PM UTC+1, geek.m...@gmail.com 
>>> wrote:

 Hi, I'm using the GWT 2.8.0-SNAPSHOT along with the Mojo GWT plugin 
 (same version). Been working fine all week, but today I suddenly get this 
 error message when doing a build: 


 [INFO] --- gwt-maven-plugin:2.8.0-SNAPSHOT:compile (default) @ 
 ritual-designer-bs ---

 [INFO] Loading inherited module 
 'com.mjeffw.gurps.ritualdesigner.RitualDesignerBS'

 [INFO]Loading inherited module 'com.google.gwt.core.Core'

 [INFO]   Loading inherited module 
 'jsinterop.annotations.Annotations'

 [INFO]  [ERROR] Unable to find 
 'jsinterop/annotations/Annotations.gwt.xml' on your classpath; could be a 
 typo, or maybe you forgot to include a classpath entry for source?


 Any ideas on how to solve this?

>>>
>>> Make sure your dependencies are up-to-date and all present in the 
>>> classpath (there's a new com.google.jsinterop:jsinterop-annotations 
>>> artifact that com.google.gwt:gwt-user depends on)
>>>
>>>

-- 
You received 

Re: GWT 2.8.0-SNAPSHOT jsinterop missing module

2015-12-20 Thread Ali Akhtar
I'm still getting the same error as the OP on snapshot though. But
switching to beta fixed it - however I can't find the maven plugin's
snapshot / beta version on any repo, I had to compile / install it locally.
Is it on any repos?


On Sun, Dec 20, 2015 at 9:39 PM, Thomas Broyer <t.bro...@gmail.com> wrote:

>
>
> On Sunday, December 20, 2015 at 2:11:30 PM UTC+1, Ali Akhtar wrote:
>>
>> I'm also encountering this issue with sandbox.
>> The /home/ali/.m2/repository/com/google/jsinterop/jsinterop/1.0.0-SNAPSHOT
>> contains only pom files, no jars.
>>
>
> This is normal: the JAR is com.google.jsinterop:jsinterop-annotations.
> com.google.jsinterop:jsinterop is only a parent POM (just like
> com.google.gwt:gwt and com.google.web.bindery:requestfactory)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/mv0RAmAXoEo/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
This is what I am doing currently. But its not the most user friendly.

I'd like to show a progress bar which indicates how much longer there is to
go.

Worst case, I can override the Dom function for injecting a script, and use
that to request the scripts over websockets, and update the progress with
each frame sent.

Is that what I have to do, or is there a better way?
On Oct 27, 2015 3:51 PM, "Frank"  wrote:

> Like Peter and Jens said, put a loading indicator in your host html page,
> and remove it in onModuleLoad.
>
> For example. Put in your html :
>
> 
>
>   
>   Launching applicationPlease wait
>
> 
>
>
> And then in your onModuleLoad
>
> RootPanel.getBodyElement().removeChild(DOM.getElementById("splash"));
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/Cr8DuGnX1lk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
I use cssresource, etc. With all the images, etc combined, the size can be
pretty high.
On Oct 27, 2015 11:15 PM, "Vassilis Virvilis" <vasv...@gmail.com> wrote:

> That's weird,,,
>
> What is the size *.cache.js?
>
> Make sure your webserver/tomcat serves compressed content.
>
>
> On Tue, Oct 27, 2015 at 8:11 PM, Ali Akhtar <ali.rac...@gmail.com> wrote:
>
>> It can take up to 10 seconds on slow connections. May be even more on
>> mobile connections.
>> On Oct 27, 2015 11:07 PM, "Vassilis Virvilis" <vasv...@gmail.com> wrote:
>>
>>> Just to make sure we are on the same page.
>>>
>>> How much time does it take to load?
>>>
>>> This looks serious overkill to me...
>>>
>>> On Tue, Oct 27, 2015 at 6:43 PM, Ali Akhtar <ali.rac...@gmail.com>
>>> wrote:
>>>
>>>> This is what I am doing currently. But its not the most user friendly.
>>>>
>>>> I'd like to show a progress bar which indicates how much longer there
>>>> is to go.
>>>>
>>>> Worst case, I can override the Dom function for injecting a script, and
>>>> use that to request the scripts over websockets, and update the progress
>>>> with each frame sent.
>>>>
>>>> Is that what I have to do, or is there a better way?
>>>> On Oct 27, 2015 3:51 PM, "Frank" <frank.wyna...@gmail.com> wrote:
>>>>
>>>>> Like Peter and Jens said, put a loading indicator in your host html
>>>>> page, and remove it in onModuleLoad.
>>>>>
>>>>> For example. Put in your html :
>>>>>
>>>>> 
>>>>>
>>>>>   
>>>>>   Launching applicationPlease wait
>>>>>
>>>>> 
>>>>>
>>>>>
>>>>> And then in your onModuleLoad
>>>>>
>>>>> RootPanel.getBodyElement().removeChild(DOM.getElementById("splash"));
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "GWT Users" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/google-web-toolkit/Cr8DuGnX1lk/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to
>>>>> google-web-toolkit@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> 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
>>>> google-web-toolkit@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Vassilis Virvilis
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "GWT Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/google-web-toolkit/Cr8DuGnX1lk/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Vassilis Virvilis
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/Cr8DuGnX1lk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
It can take up to 10 seconds on slow connections. May be even more on
mobile connections.
On Oct 27, 2015 11:07 PM, "Vassilis Virvilis" <vasv...@gmail.com> wrote:

> Just to make sure we are on the same page.
>
> How much time does it take to load?
>
> This looks serious overkill to me...
>
> On Tue, Oct 27, 2015 at 6:43 PM, Ali Akhtar <ali.rac...@gmail.com> wrote:
>
>> This is what I am doing currently. But its not the most user friendly.
>>
>> I'd like to show a progress bar which indicates how much longer there is
>> to go.
>>
>> Worst case, I can override the Dom function for injecting a script, and
>> use that to request the scripts over websockets, and update the progress
>> with each frame sent.
>>
>> Is that what I have to do, or is there a better way?
>> On Oct 27, 2015 3:51 PM, "Frank" <frank.wyna...@gmail.com> wrote:
>>
>>> Like Peter and Jens said, put a loading indicator in your host html
>>> page, and remove it in onModuleLoad.
>>>
>>> For example. Put in your html :
>>>
>>> 
>>>
>>>   
>>>   Launching applicationPlease wait
>>>
>>> 
>>>
>>>
>>> And then in your onModuleLoad
>>>
>>> RootPanel.getBodyElement().removeChild(DOM.getElementById("splash"));
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "GWT Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/google-web-toolkit/Cr8DuGnX1lk/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Vassilis Virvilis
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/Cr8DuGnX1lk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Progress bar during GWT bootstrap process?

2015-10-26 Thread Ali Akhtar
But, I'm talking about the time from when the user visits the site, to the
time when the entrypoint's onModuleLoad is called. Often there can be a few
seconds of lag between nocache.js loading -> onModuleLoad being called. Is
there a way to show a progress bar during that period, e.g to show the
remaining assets to be downloaded before onModuleLoad is called?

On Tue, Oct 27, 2015 at 5:45 AM, Peter Donald <pe...@realityforge.org>
wrote:

> The easiest way to do that is to just have the base page have a
> loading indicator and have the last action in your EntryPoint remove
> the loading indicator. If you want progress as loads occur then you
> can just update the progress level from each step in your EntryPoint.
> HTH
>
> On Tue, Oct 27, 2015 at 10:54 AM, Ali Akhtar <ali.rac...@gmail.com> wrote:
> > When GWT based sites are first loaded, the browser shows a loading
> indicator
> > as nocache.js is downloaded. But then, when nocache.js inserts the actual
> > scripts, there's no loading indicator, and the user is left staring at an
> > idle screen. Not a very good experience.
> >
> > Is it possible to show a progress bar indicator as the other gwt assets
> > loaded during the bootstrap process, are downloaded?
> >
> > --
> > 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 google-web-toolkit@googlegroups.com
> .
> > Visit this group at http://groups.google.com/group/google-web-toolkit.
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Cheers,
>
> Peter Donald
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/Cr8DuGnX1lk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Progress bar during GWT bootstrap process?

2015-10-26 Thread Ali Akhtar
When GWT based sites are first loaded, the browser shows a loading 
indicator as nocache.js is downloaded. But then, when nocache.js inserts 
the actual scripts, there's no loading indicator, and the user is left 
staring at an idle screen. Not a very good experience.

Is it possible to show a progress bar indicator as the other gwt assets 
loaded during the bootstrap process, are downloaded?

-- 
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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Not finding Elemental classes

2015-08-01 Thread Ali Akhtar
Is there a way to use input element from a ui binder file, or add it to a
panel?
On Aug 1, 2015 10:22 PM, Jens jens.nehlme...@gmail.com wrote:


 Thank you. By the way, how can you get an elemental.html.File or FileList
 object from a gwt FileUpload widget or an input type=file widget? I.e if
 the user selects a file to upload, how can I handle it using the Elemental
 File api?


  You need to access the files property of the input element. The
 InputElement of elemental has a getFiles() method for it.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/kpEZbSNO5zI/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Stop calling it GWT 3.0

2015-08-01 Thread Ali Akhtar
Nevermind, found it.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/f1d45a65-3fe4-450e-b421-223e2c86836a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Not finding Elemental classes

2015-08-01 Thread Ali Akhtar
Hi,

I'm not finding any of the elemental classes / code. I'm including gwt-user 
, gwt-dev , and gwt-servlet (all 2.8.0-SNAPSHOT) as dependencies. But, the 
elemental.dom and elemental.dom imports are failing. Do I need to add 
another dependency in order toinclude Elemental's code?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Stop calling it GWT 3.0

2015-08-01 Thread Ali Akhtar
I searched for the modernizing GWT talk but didn't find it on youtube - is 
there any other talk / article that we can refer to, on how to write future 
proof gwt 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/ceff3fee-3546-46ce-bd47-826ac12fefec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Not finding Elemental classes

2015-08-01 Thread Ali Akhtar
Thank you. By the way, how can you get an elemental.html.File or FileList
object from a gwt FileUpload widget or an input type=file widget? I.e if
the user selects a file to upload, how can I handle it using the Elemental
File api?

On Sat, Aug 1, 2015 at 8:47 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Saturday, August 1, 2015 at 5:25:40 PM UTC+2, Ali Akhtar wrote:

 Hi,

 I'm not finding any of the elemental classes / code. I'm
 including gwt-user , gwt-dev , and gwt-servlet (all 2.8.0-SNAPSHOT) as
 dependencies. But, the elemental.dom and elemental.dom imports are failing.
 Do I need to add another dependency in order toinclude Elemental's code?


 You need com.google.gwt:gwt-elemental:2.8.0-SNAPSHOT


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Build failing on 2.8.0-SNAPSHOT

2015-07-28 Thread Ali Akhtar
Yeah, looks like you were right. Nuking ~/.m2/repository/com/google/gwt and
running mvn install -U, the build is now passing with failOnError and
dependencies specified. Thanks.

On Tue, Jul 28, 2015 at 2:25 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Monday, July 27, 2015 at 9:59:04 PM UTC+2, Ali Akhtar wrote:

 Hi Thomas,

 I've upgraded the plugin and added the codeserver dep, however its
 failing to find the 2.8.0-SNAPSHOT plugin:

 [ERROR] Plugin org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT or one
 of its dependencies could not be resolved: Failed to read artifact
 descriptor for org.codehaus.mojo:gwt-maven-plugin:jar:2.8.0-SNAPSHOT: Could
 not find artifact org.codehaus.mojo:gwt-maven-plugin:pom:2.8.0-SNAPSHOT in
 gwt-snapshot-plugin-repo (
 https://oss.sonatype.org/content/repositories/google-snapshots/) -
 [Help 1]

 This is my updated pom:
 https://gist.github.com/aliakhtar/c3a4bcffe66e97ccff20

 Any ideas?


 Ah sorry, due to the shutdown of codehaus, snapshots of gwt-maven-plugin
 are (temporarily) no longer deployed (it used to be at nexus.codehaus.org
 or something like that).
 So you have to revert to the 2.7.0 plugin and override its GWT
 dependencies.

 Wrt the error you're seeing when you do that about the parent POM not
 being resolvable; it *is* there, so maybe try with mvn -U or possibly
 nuke ~/.m2/repository/com/google/gwt/gwt/



-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbeN0UcV7JtYMAz2cX8m_2Pwa-OPnc0HC2pR08jOCPeyRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Build failing on 2.8.0-SNAPSHOT

2015-07-27 Thread Ali Akhtar
Since a few days ago, my maven build with 2.8.0-SNAPSHOT dependency has 
been failing, with the following error:

 [ERROR] Errors in 
'jar:file:/home/ali/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/emul/java/util/InternalJsHashCodeMap.java'
[INFO]  [ERROR] Line 120: The method elementAdded() is undefined 
for the type AbstractHashMapK,V
[INFO]  [ERROR] Line 137: The method elementRemoved() is undefined 
for the type AbstractHashMapK,V

Assuming that the gwt-maven-plugin is pulling in 2.7.0, I added 
gwt-user-2.8.0-SNAPSHOT and gwt-dev-2.8.0-SNAPSHOT as deps to the plugin: 
 https://gist.github.com/aliakhtar/1f1b51d04a3465d27bb4

However, the build is still failing, this time with the following error:

[ERROR] Failed to execute goal 
org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project app: 
Failed to resolve artifact: 1 problem was encountered while building the 
effective model for com.google.gwt:gwt-user:2.8.0-SNAPSHOT
[ERROR] [FATAL] Non-resolvable parent POM: Could not find artifact 
com.google.gwt:gwt:pom:2.8.0-SNAPSHOT @ line 6, column 13
[ERROR] for project com.google.gwt:gwt-user:2.8.0-SNAPSHOT for project 
com.google.gwt:gwt-user:2.8.0-SNAPSHOT

Has anything happened recently which may have caused it to break?

This is my full pom: https://gist.github.com/aliakhtar/d6f104f854c5e3764d72

I'd appreciate any help getting this to build again, thanks.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/0b4b92e1-6dad-4bb2-9c2e-97ebf011e31b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Build failing on 2.8.0-SNAPSHOT

2015-07-27 Thread Ali Akhtar
Changing the plugin version back to 2.7.0 gives this:

[ERROR] Failed to execute goal 
org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project app: 
Failed to resolve artifact: 1 problem was encountered while building the 
effective model for com.google.gwt:gwt-user:2.8.0-SNAPSHOT
[ERROR] [FATAL] Non-resolvable parent POM: Could not find artifact 
com.google.gwt:gwt:pom:2.8.0-SNAPSHOT @ line 6, column 13
[ERROR] for project com.google.gwt:gwt-user:2.8.0-SNAPSHOT for project 
com.google.gwt:gwt-user:2.8.0-SNAPSHOT


If you have a working project which is building OK with 2.8.0-SNAPSHOT, can 
I see its pom.xml please?

Thanks.

On Monday, July 27, 2015 at 8:25:42 PM UTC+5, Ali Akhtar wrote:

 Since a few days ago, my maven build with 2.8.0-SNAPSHOT dependency has 
 been failing, with the following error:

  [ERROR] Errors in 
 'jar:file:/home/ali/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/emul/java/util/InternalJsHashCodeMap.java'
 [INFO]  [ERROR] Line 120: The method elementAdded() is undefined 
 for the type AbstractHashMapK,V
 [INFO]  [ERROR] Line 137: The method elementRemoved() is undefined 
 for the type AbstractHashMapK,V

 Assuming that the gwt-maven-plugin is pulling in 2.7.0, I added 
 gwt-user-2.8.0-SNAPSHOT and gwt-dev-2.8.0-SNAPSHOT as deps to the plugin:  
 https://gist.github.com/aliakhtar/1f1b51d04a3465d27bb4

 However, the build is still failing, this time with the following error:

 [ERROR] Failed to execute goal 
 org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project app: 
 Failed to resolve artifact: 1 problem was encountered while building the 
 effective model for com.google.gwt:gwt-user:2.8.0-SNAPSHOT
 [ERROR] [FATAL] Non-resolvable parent POM: Could not find artifact 
 com.google.gwt:gwt:pom:2.8.0-SNAPSHOT @ line 6, column 13
 [ERROR] for project com.google.gwt:gwt-user:2.8.0-SNAPSHOT for project 
 com.google.gwt:gwt-user:2.8.0-SNAPSHOT

 Has anything happened recently which may have caused it to break?

 This is my full pom: 
 https://gist.github.com/aliakhtar/d6f104f854c5e3764d72

 I'd appreciate any help getting this to build again, thanks.



-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/b13cd199-e459-4104-9c69-3bd3d9c95454%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Build failing on 2.8.0-SNAPSHOT

2015-07-27 Thread Ali Akhtar
Hi Thomas,

I've upgraded the plugin and added the codeserver dep, however its failing 
to find the 2.8.0-SNAPSHOT plugin:

[ERROR] Plugin org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT or one of 
its dependencies could not be resolved: Failed to read artifact descriptor 
for org.codehaus.mojo:gwt-maven-plugin:jar:2.8.0-SNAPSHOT: Could not find 
artifact org.codehaus.mojo:gwt-maven-plugin:pom:2.8.0-SNAPSHOT in 
gwt-snapshot-plugin-repo 
(https://oss.sonatype.org/content/repositories/google-snapshots/) - [Help 
1]

This is my updated 
pom: https://gist.github.com/aliakhtar/c3a4bcffe66e97ccff20

Any ideas?

On Monday, July 27, 2015 at 9:01:23 PM UTC+5, Thomas Broyer wrote:



 On Monday, July 27, 2015 at 5:25:42 PM UTC+2, Ali Akhtar wrote:

 Since a few days ago, my maven build with 2.8.0-SNAPSHOT dependency has 
 been failing, with the following error:

  [ERROR] Errors in 
 'jar:file:/home/ali/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/emul/java/util/InternalJsHashCodeMap.java'
 [INFO]  [ERROR] Line 120: The method elementAdded() is undefined 
 for the type AbstractHashMapK,V
 [INFO]  [ERROR] Line 137: The method elementRemoved() is 
 undefined for the type AbstractHashMapK,V

 Assuming that the gwt-maven-plugin is pulling in 2.7.0, I added 
 gwt-user-2.8.0-SNAPSHOT and gwt-dev-2.8.0-SNAPSHOT as deps to the plugin:  
 https://gist.github.com/aliakhtar/1f1b51d04a3465d27bb4

 However, the build is still failing, this time with the following error:

 [ERROR] Failed to execute goal 
 org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project app: 
 Failed to resolve artifact: 1 problem was encountered while building the 
 effective model for com.google.gwt:gwt-user:2.8.0-SNAPSHOT
 [ERROR] [FATAL] Non-resolvable parent POM: Could not find artifact 
 com.google.gwt:gwt:pom:2.8.0-SNAPSHOT @ line 6, column 13
 [ERROR] for project com.google.gwt:gwt-user:2.8.0-SNAPSHOT for project 
 com.google.gwt:gwt-user:2.8.0-SNAPSHOT

 Has anything happened recently which may have caused it to break?


 Yes, Map emulation now uses JS Map when available.
  

 This is my full pom: 
 https://gist.github.com/aliakhtar/d6f104f854c5e3764d72

 I'd appreciate any help getting this to build again, thanks.


 gwt-maven-plugin version should match the version of GWT; so you should 
 use 2.8.0-SNAPSHOT, even though 2.7.0 should work with redefined deps on 
 GWT, but note that you've forgotten gwt-codeserver: 
 https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html
 Your issue with GWT deps in plugin deps is probably because you haven't 
 declared the snapshot repo as a pluginRepository.
  


-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/cf4f4d5b-83f0-4d2e-a761-983fcb13b53e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Build failing on 2.8.0-SNAPSHOT

2015-07-27 Thread Ali Akhtar
It seems that removing the line:

failOnErrortrue/failOnError

from the runConfiguration of the plugin allows the build to pass, without 
the error about the JsMap. So I've done that, for now, in order to pass the 
build (this is on 2.7.0 plugin without the dependencies specified and the 
plugin repo also removed)

However, it'd be good if the error with the JsMap could be fixed (or if the 
other errors with the 2.8.0-SNAPSHOT plugin / gwt-user can be fixed), so 
this workaround / hack wouldn't be necessary

Thanks.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/baab32d5-4db9-41f1-855d-e8bca181d7db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Bug in 2.8.0-Snapshot

2015-07-09 Thread Ali Akhtar
In 2.8.0-SNAPSHOT, when the ValueChangeEvent is triggered for a dropdown, 
I'm encountering the following stack trace:

Uncaught com.google.gwt.event.shared.UmbrellaException: Exception caught: 
Exception caught: (TypeError) : Cannot read property 
'java_util_LinkedList_size' of undefined

com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V

com_google_gwt_user_client_ui_Widget_$onBrowserEvent__Lcom_google_gwt_user_client_ui_Widget_2Lcom_google_gwt_user_client_Event_2V

_.onBrowserEvent__Lcom_google_gwt_user_client_Event_2V

_.onBrowserEvent__Lcom_google_gwt_user_client_Event_2V

com_google_gwt_user_client_impl_DOMImplStandard_dispatchEvent__Lcom_google_gwt_user_client_Event_2V

(anonymous function)


This only happens in production, in SDM it works without any issues.

I'm not sure which line specifically causes this, because the stacktrace 
stops at the anonymous function. But, it seems to be around where I'm 
creating an autobean object. The first line of my event handler which shows 
a loading message, seems to get executed fine.

Would appreciate a speedy resolution to this, as this is in production. 
Thanks.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/f4b201e1-5a00-4681-a4ac-3505d7bbc291%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Bug in 2.8.0-Snapshot

2015-07-09 Thread Ali Akhtar
How can I get the cause / stacktrace behind the umbrella exception? I have
a global exception handler which prints the exception to console:
https://gist.github.com/aliakhtar/7a9bbb2d3796917179ed

What needs to be modified to get it to print the full trace?

On Fri, Jul 10, 2015 at 8:18 AM, Colin Alworth niloc...@gmail.com wrote:

 As this isn't a NPE (or a type error, which I think is the JS equivalent),
 the we're missing a step here. You are seeing an UmbrellaException thrown,
 which means not that the handlermanager or event wiring broke, but that
 your own handler threw the exception (i.e. the 'TypeError' described in the
 wrapper).

 That trace is kept in the umbrella exception, and will likely be necessary
 to figure out what the real issue is.

 Also, the stack below the anon function won't be useful, that's very
 likely the wiring that calls into the widget event handling from the dom.

 On Thu, Jul 9, 2015 at 10:08 PM Ali Akhtar ali.rac...@gmail.com wrote:

 In 2.8.0-SNAPSHOT, when the ValueChangeEvent is triggered for a dropdown,
 I'm encountering the following stack trace:

 Uncaught com.google.gwt.event.shared.UmbrellaException: Exception caught:
 Exception caught: (TypeError) : Cannot read property
 'java_util_LinkedList_size' of undefined


 com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V


 com_google_gwt_user_client_ui_Widget_$onBrowserEvent__Lcom_google_gwt_user_client_ui_Widget_2Lcom_google_gwt_user_client_Event_2V

 _.onBrowserEvent__Lcom_google_gwt_user_client_Event_2V

 _.onBrowserEvent__Lcom_google_gwt_user_client_Event_2V


 com_google_gwt_user_client_impl_DOMImplStandard_dispatchEvent__Lcom_google_gwt_user_client_Event_2V

 (anonymous function)


 This only happens in production, in SDM it works without any issues.

 I'm not sure which line specifically causes this, because the stacktrace
 stops at the anonymous function. But, it seems to be around where I'm
 creating an autobean object. The first line of my event handler which shows
 a loading message, seems to get executed fine.

 Would appreciate a speedy resolution to this, as this is in production.
 Thanks.

 --
 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/f4b201e1-5a00-4681-a4ac-3505d7bbc291%40googlegroups.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/f4b201e1-5a00-4681-a4ac-3505d7bbc291%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

  --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/-hXkD147aS4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CADcXZMxS%3D7pNHH%3DqHBsY3grOA3jUdq6P%2BPn2asgLGJmGJ-87Bg%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CADcXZMxS%3D7pNHH%3DqHBsY3grOA3jUdq6P%2BPn2asgLGJmGJ-87Bg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbcMM%3D%3Djs%3DkM7VZUm%3Df50c%3DY3fGeX-Dy_2KPCF3t2ZeCsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Bug in 2.8.0-Snapshot

2015-07-09 Thread Ali Akhtar
I turned on:

set-property name=compiler.stackMode value=emulated /
 set-configuration-property name=compiler.emulatedStack.recordFileNames 
value=true /

However, still don't see the cause of the UmbrellaException

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/adfaa7a3-56bc-4f82-90e6-b39de1bb29dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
Yes please.
On Mar 25, 2015 9:30 PM, Julien Dramaix julien.dram...@gmail.com wrote:

 Couldn't we configure sonatype to keep at least the last snapshot even if
 we don't update the repository (because the build failed)  ?


 On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT Contributors
 google-web-toolkit-contributors@googlegroups.com wrote:

 We are looking into it and will be hopefully resolved soon.

 On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth niloc...@gmail.com
 wrote:

 It looks like the build is failing, and has been for some days:
 http://build.gwtproject.org/job/gwt/49/#showFailuresLink

 Test Result (26 failures / -6)

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder

 com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts


 On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:

 Hey guys,

 Is there a maven repo to use for getting snapshot builds? Sonatype
 doesn't contain .jars,

 https://oss.sonatype.org/content/repositories/google-
 snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/

 And https://github.com/manolo/gwt-snapshot/ doesn't appear to have
 been updated for 28 days.

 Thanks.

  --
 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com
 .
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gk%3DDo5V1vK0wcEZX0Gu2386NiGcax-XTTFDtMWgR5z93g%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gk%3DDo5V1vK0wcEZX0Gu2386NiGcax-XTTFDtMWgR5z93g%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

  --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/2hlkwcnxCQI/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com

Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
It appears that the web bindery jars are still missing on sonatype?

[ERROR] Non-resolvable import POM: Could not find artifact com.google.
web.bindery:requestfactory:pom:2.8.0-SNAPSHOT in sonatype-nexus-snapshots (
https://oss.sonatype.org/content/repositories/snapshots) @ 
com.google.gwt:gwt:2.8.0-SNAPSHOT, 
/home/ali/.m2/repository/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-SNAPSHOT.pom,
 
line 50, column 25 - [Help 2]



There don't seem to be any jars 
at 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/

On Wednesday, March 25, 2015 at 10:29:04 PM UTC+5, Roberto Lublinerman 
wrote:

 Build is green now. I am not sure about sonatype, let's wait for dankurka 
 to chime in...

 On Wed, Mar 25, 2015 at 9:30 AM, Julien Dramaix julien@gmail.com 
 javascript: wrote:

 Couldn't we configure sonatype to keep at least the last snapshot even 
 if we don't update the repository (because the build failed)  ?


 On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT 
 Contributors google-web-toolkit-contributors@googlegroups.com 
 javascript: wrote:

 We are looking into it and will be hopefully resolved soon.

 On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth nilo...@gmail.com 
 javascript: wrote:

 It looks like the build is failing, and has been for some days: 
 http://build.gwtproject.org/job/gwt/49/#showFailuresLink

 Test Result (26 failures / -6)

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder

 com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts


 On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:

 Hey guys,

 Is there a maven repo to use for getting snapshot builds? Sonatype 
 doesn't contain .jars,

 https://oss.sonatype.org/content/repositories/google-
 snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/

 And https://github.com/manolo/gwt-snapshot/ doesn't appear to have 
 been updated for 28 days.

 Thanks.

  -- 
 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 
 google-web-toolkit-contributors+unsubscr...@googlegroups.com 
 javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com
  
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  -- 
 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com 
 javascript:.
 To view this discussion

[gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
Ah, https://oss.sonatype.org/content/repositories/google-snapshots/ is the 
repo. Got it, working now.

+1 in favor of not deleting the last working build, please.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/5fad2086-ef51-4200-b154-2a3df2d95dfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
Or it might be that the pom file is missing? It fails at Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/requestfactory-2.8.0-SNAPSHOT.pom;

If I use https://github.com/manolo/gwt-snapshot/ as a repo, it compiles 
without complaining

On Thursday, March 26, 2015 at 1:10:57 AM UTC+5, Ali Akhtar wrote:

 It appears that the web bindery jars are still missing on sonatype?

 [ERROR] Non-resolvable import POM: Could not find artifact com.google.
 web.bindery:requestfactory:pom:2.8.0-SNAPSHOT in sonatype-nexus-snapshots 
 (https://oss.sonatype.org/content/repositories/snapshots) @ 
 com.google.gwt:gwt:2.8.0-SNAPSHOT, 
 /home/ali/.m2/repository/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-SNAPSHOT.pom,
  
 line 50, column 25 - [Help 2]



 There don't seem to be any jars at 
 https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/

 On Wednesday, March 25, 2015 at 10:29:04 PM UTC+5, Roberto Lublinerman 
 wrote:

 Build is green now. I am not sure about sonatype, let's wait for dankurka 
 to chime in...

 On Wed, Mar 25, 2015 at 9:30 AM, Julien Dramaix julien@gmail.com 
 wrote:

 Couldn't we configure sonatype to keep at least the last snapshot even 
 if we don't update the repository (because the build failed)  ?


 On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT 
 Contributors google-web-toolkit-contributors@googlegroups.com wrote:

 We are looking into it and will be hopefully resolved soon.

 On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth nilo...@gmail.com 
 wrote:

 It looks like the build is failing, and has been for some days: 
 http://build.gwtproject.org/job/gwt/49/#showFailuresLink

 Test Result (26 failures / -6)

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder

 com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts


 On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:

 Hey guys,

 Is there a maven repo to use for getting snapshot builds? Sonatype 
 doesn't contain .jars,

 https://oss.sonatype.org/content/repositories/google-
 snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/

 And https://github.com/manolo/gwt-snapshot/ doesn't appear to have 
 been updated for 28 days.

 Thanks.

  -- 
 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 
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com
  
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options

Allowing HTML within FormPanel?

2015-03-24 Thread Ali Akhtar
Is it possible to allow HTML within a form panel, same as a HTML panel?

Or to set onSubmit events to a HtmlPanel whose tag is form?

There doesn't seem to be an event for onSubmit, so I can't seem to be able 
to do Event.sinkEvents( panel.getElement(), EVENT.ONSUBMIT)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Ali Akhtar
Hi,

I'm trying to create a container widget which can accept html within 
uibinder files, without extending from HTMLPanel.

If I try to implement `HasHTML`, then I can only pass in HTML without being 
able to pass any widgets.

If I try to extend from ComplexPanel and override the add(Widget child) 
method, same as HTMLPanel does, then passing in HTML doesn't work.

Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels + 
widgets? 

I'm trying to reduce the amount of boilerplate needed for displaying a 
form. (Right now I have to use a FormPanel containing a HtmlPanel which 
contains the actual form code. I'd like to be able to just use one widget 
which contains my html embdedded within the formPanel and HtmlPanel)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Creating a widget that can accept HTML + Widgets in UiBinder (Without using HTMLPanel)

2015-03-24 Thread Ali Akhtar
IMO that parser interface should be made external and it should allow any
widget that implements this interface to have html within UiBinder. I'm
surprised it wasn't done that way to begin with.

On Tue, Mar 24, 2015 at 9:11 PM, Jens jens.nehlme...@gmail.com wrote:


 Surely UiBinder isn't hard-coded to only allow HtmlPanel to accept panels
 + widgets?


 HTMLPanel has its own HTMLPanelParser used by UiBinder which makes mixing
 HTML + Widgets possible, so yes it is kind of hardcoded.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/4DFGQF3oIYg/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Allowing HTML within FormPanel?

2015-03-24 Thread Ali Akhtar
I've had to write a new class and a bit of jsni to do this, and I'm not too 
happy I had to do that when this should work out of the box. But, whatever.

import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.ui.*;
import com.foo.bar.shared.Callback;


public class Form extends HTMLPanel
{
private CallbackVoid onSubmit;


public Form(String html)
{
super(form, html);
setEvent( getElement() );
}

private native void setEvent(Element form)
/*-{
var that = this;
form.onsubmit = function()
{
th...@com.foo.bar.client.ui.form::handleOnSubmit()();
return false;
};
}-*/;


public Form setOnSubmit(CallbackVoid onSubmit)
{
this.onSubmit = onSubmit;
return this;
}

private void handleOnSubmit()
{
if (onSubmit != null)
onSubmit.call(null);
}
}




On Tuesday, March 24, 2015 at 6:18:21 PM UTC+5, Ali Akhtar wrote:

 Is it possible to allow HTML within a form panel, same as a HTML panel?

 Or to set onSubmit events to a HtmlPanel whose tag is form?

 There doesn't seem to be an event for onSubmit, so I can't seem to be able 
 to do Event.sinkEvents( panel.getElement(), EVENT.ONSUBMIT)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Simple tool for generating CssResource files from css/gss stylesheets

2015-03-21 Thread Ali Akhtar
Its often a pain to have to generate CssResource files from .css / .gss 
stylesheets.

Intellij has a tool that works reasonably well, but it seems unable to 
handle classes with hyphens or numbers in them. E.g it converts both 
foo-bar-1 and foo-bar-2 to fooBar(), which results in compile errors 
due to duplicate methods.

This is especially a problem with Bootstrap and Foundation, where its very 
common to have classes in the foo-bar-N format. Intellij also seems quite 
slow at doing this for large files.

I've written a quick tool which should simplify the process, 
at: https://github.com/aliakhtar/EzGss . The readme file describes the 
usage + some examples/

It handles almost all formats in css class names, and it also handles 
reserved java keywords.

Feedback / pull requests welcome.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GSS @alternate errors for duplicate selectors

2015-03-21 Thread Ali Akhtar
If you have the following lines in a .gss file :

  
  background: transparent;
  background: rgba(0, 0, 0, 0.5);

You're greeted with this compile error:

 [ERROR] Error in xxx/css/foundation.gss[line: 4921 column: 20]: Detected 
multiple identical, non-alternate declarations in the same ruleset. If this 
is intentional please use the /* @alternate */ annotation. background:[rgba(
0,0,0,0.5)]



requiring you to replace the above with the following:

  
background: transparent;
  /* @alternate */ background: rgba(0, 0, 0, 0.5);

And if you work with a large css file, or even something like Foundation, 
you're greeted with hundreds of these errors which have to be manually 
fixed.

Is there a way to disable these errors / checks? CSS is not like Java which 
needs to be statically analyzed, and css designers can't be expected to 
follow syntax rules. If something is valid syntax, leave it as is. At least 
offer a strict / lenient mode.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GSS @alternate errors for duplicate selectors

2015-03-21 Thread Ali Akhtar
That sucks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Snapshot repo?

2015-03-19 Thread Ali Akhtar
Hey guys,

Is there a maven repo to use for getting snapshot builds? Sonatype doesn't 
contain .jars,

https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/

And https://github.com/manolo/gwt-snapshot/ doesn't appear to have been 
updated for 28 days.

Thanks.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/d6a53973-85d8-49db-ac75-4f7805669974%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Possible bug with method references when doing this::foo

2015-02-13 Thread Ali Akhtar
In a project, when I do the following:

SomeClass.someMethod( this::handleResult);


I get :  com.google.gwt.event.shared.UmbrellaException: Exception caught: 
(ReferenceError) : xFf_g$ is not defined

But when I replace the above line with:

SomeClass.someMethod( r- handleResult(r) );


That works fine. 

It appears that the use of 'this' is causing some issues due to 
javascript's crappiness. Other method references work fine, I only 
encounter this when I use this::methodName

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/9d93f50d-3d49-4826-88b7-7f86fc1de3c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to get SDM to use detailed mode for showing stacktraces

2015-02-13 Thread Ali Akhtar
So I have the following set in my module.gwt.xml:

set-property name=compiler.emulatedStack value=true/
set-configuration-property name=
compiler.emulatedStack.recordLineNumbers value=true/
set-configuration-property name=
compiler.emulatedStack.recordFileNames value=true/


I also have :
styleDETAILED/style


set in pom.xml in the config of the maven plugin.

But still, in sdm, when an error happens, the stacktrace I get is 
obfuscated:

 com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError
) : Cannot read property 'setValidationState_0_g$' of undefined
Unknown.pY_g$(Module-0.js@19:15103)
Unknown.lY_g$(Module-0.js@8:15058)
...

Its strange because the other configuration settings that I set in pom.xml, 
such as launcherDir, do take effect.

I have also tried passing in -Dgwt.style=DETAILED as a jvm argument, but it 
has no effect either. I'm using mvn gwt:run-codeserver for running SDM.

Am I doing anything wrong?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get SDM to use detailed mode for showing stacktraces

2015-02-13 Thread Ali Akhtar
Thanks Jen.

Using your class, the method names of the exceptions are still obfuscated,
but at least it shows the class name and line number, which can be clicked
to get to the source.

While we're on the topic, is there a similar workaround for debugging
(setting break points, etc)? If a breakpoint is set in Chrome, the scope
variables all have obfuscated names. Is there a way to debug from within
the IDE?

On Fri, Feb 13, 2015 at 8:35 PM, Jens jens.nehlme...@gmail.com wrote:


 Is there a workaround for getting the stacktraces to show up without being
 obfuscated?


 If you use Chrome 40 and use the UncaughtExceptionHandler I linked in the
 issue (comment #4) then you do not need anything regarding stack traces in
 your module xml. Any exception you do not catch will be logged nicely to
 browser console with clickable links to your source mapped Java file.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/He7Q5NBIQZU/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-12 Thread Ali Akhtar
Thomas,

As usual, you're right. I was using the maven plugin, and the resources
weren't being updated.

For the moment, I've just created a new run configuration in intellij for
running process-resources , and when I get this error, I just run that
config once, and it fixes the problem.

Still, it would be a good idea for the mvn plugin to detect this, as you
suggested.

Thanks.

On Thu, Feb 12, 2015 at 3:25 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Thursday, February 12, 2015 at 2:35:36 AM UTC+1, Ali Akhtar wrote:

 I have a maven layout, and the ui.xml file is in src/main/resources, in
 the same package as the Java class. So I don't think that's the case here.

 Also the file does get picked up, it just requires an SDM restart to pick
 up some of the changes.


 How do you launch SDM?
 If you're using the gwt-maven-plugin, it won't include src/main/resources
 (or other resource dirs) as resources could be filtered, and/or with
 inclusion/exclusion patterns and/or relocation. That means you have to run
 mvn process-resources to copy the resources to target/classes where
 they'll be picked up by GWT. Eclipse should do that automatically on file
 save IIRC.
 Alternatively, you can put your ui.xml et al. in src/main/java.
 Maybe the gwt-maven-plugin could be enhanced to detect the common case
 where resources are neither filtered nor relocated and automatically add
 them to the DevMode/CodeServer classpath. Patches welcome.



 On Thu, Feb 12, 2015 at 3:52 AM, 'Goktug Gokdogan' via GWT Contributors 
 google-web-toolkit-contributors@googlegroups.com wrote:

 In same cases, you can accidentally include of ui.xml files in your
 build that will make your regular compile work but SDM will not pick up the
 changes. This happens if the ui.xml file is in the classpath but not
 included as a resource in the gwt.xml file. I think if we notice that
 during compilation, we will print a warning about it.

 On Wed, Feb 11, 2015 at 4:12 AM, Ali Akhtar ali.rac...@gmail.com
 wrote:

 I'm using the snapshot build, so it might be a recent issue. I'm not
 sure if I could've done anything in my project to cause this, I just have a
 regular ui binder file / class.

 On Wed, Feb 11, 2015 at 4:50 PM, Jens jens.nehlme...@gmail.com wrote:

 We are currently using a GWT trunk build from 5. Jan 2015 and don't
 see this issue. So either a recent commit causes that behavior or your
 project setup is broken.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit https://groups.google.com/d/
 topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/
 msgid/google-web-toolkit-contributors/88b930b9-d875-
 4d38-a8eb-c8ffda2d8243%40googlegroups.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/88b930b9-d875-4d38-a8eb-c8ffda2d8243%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 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 google-web-toolkit-contributors+unsubscribe@
 googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/
 msgid/google-web-toolkit-contributors/CAKiMtbcLP0s3gdfE-Uw3oEZfvTEZW85-
 kgLSrxPOUTUM8NoEUg%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbcLP0s3gdfE-Uw3oEZfvTEZW85-kgLSrxPOUTUM8NoEUg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit https://groups.google.com/d/
 topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/
 msgid/google-web-toolkit-contributors/CAN%3DyUA2LTfZNq3%3DVMFFhE_
 vnSTmiWh3YvP9-nKFS2F7QSuHgQg%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA2LTfZNq3%3DVMFFhE_vnSTmiWh3YvP9-nKFS2F7QSuHgQg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send

Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread Ali Akhtar
I have a maven layout, and the ui.xml file is in src/main/resources, in the
same package as the Java class. So I don't think that's the case here.

Also the file does get picked up, it just requires an SDM restart to pick
up some of the changes.

On Thu, Feb 12, 2015 at 3:52 AM, 'Goktug Gokdogan' via GWT Contributors 
google-web-toolkit-contributors@googlegroups.com wrote:

 In same cases, you can accidentally include of ui.xml files in your build
 that will make your regular compile work but SDM will not pick up the
 changes. This happens if the ui.xml file is in the classpath but not
 included as a resource in the gwt.xml file. I think if we notice that
 during compilation, we will print a warning about it.

 On Wed, Feb 11, 2015 at 4:12 AM, Ali Akhtar ali.rac...@gmail.com wrote:

 I'm using the snapshot build, so it might be a recent issue. I'm not sure
 if I could've done anything in my project to cause this, I just have a
 regular ui binder file / class.

 On Wed, Feb 11, 2015 at 4:50 PM, Jens jens.nehlme...@gmail.com wrote:

 We are currently using a GWT trunk build from 5. Jan 2015 and don't see
 this issue. So either a recent commit causes that behavior or your project
 setup is broken.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/88b930b9-d875-4d38-a8eb-c8ffda2d8243%40googlegroups.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/88b930b9-d875-4d38-a8eb-c8ffda2d8243%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbcLP0s3gdfE-Uw3oEZfvTEZW85-kgLSrxPOUTUM8NoEUg%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbcLP0s3gdfE-Uw3oEZfvTEZW85-kgLSrxPOUTUM8NoEUg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA2LTfZNq3%3DVMFFhE_vnSTmiWh3YvP9-nKFS2F7QSuHgQg%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA2LTfZNq3%3DVMFFhE_vnSTmiWh3YvP9-nKFS2F7QSuHgQg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbfvk4Ar0PrMwuzAJC39WJVVSXBLHDw6g%2Bu6tZs-zSXpyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread Ali Akhtar
Update: Seems like this issue applies to all changes made to ui.xml files. 
If I have an existing foo.ui.xml file, and I made a change to it, such as 
adding the text 'foo' anywhere inside a HtmlPanel, reloading doesn't pick 
up the change. A full sdm restart is required.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/e403aeaa-c9c6-4191-a9ad-2bcfd5b296a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: UiBinder changes don't get picked up in SDM (trunk)

2015-02-11 Thread Ali Akhtar
I'm using the snapshot build, so it might be a recent issue. I'm not sure
if I could've done anything in my project to cause this, I just have a
regular ui binder file / class.

On Wed, Feb 11, 2015 at 4:50 PM, Jens jens.nehlme...@gmail.com wrote:

 We are currently using a GWT trunk build from 5. Jan 2015 and don't see
 this issue. So either a recent commit causes that behavior or your project
 setup is broken.

 -- J.

 --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/K4_aFOc-RG4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/88b930b9-d875-4d38-a8eb-c8ffda2d8243%40googlegroups.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/88b930b9-d875-4d38-a8eb-c8ffda2d8243%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbcLP0s3gdfE-Uw3oEZfvTEZW85-kgLSrxPOUTUM8NoEUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Javascript Exceptions in SDM about classes not being defined

2015-02-10 Thread Ali Akhtar
Thanks a lot for the work around, Daniel. My sanity is saved.

On Tue, Feb 10, 2015 at 12:58 PM, 'Daniel Kurka' via GWT Contributors 
google-web-toolkit-contributors@googlegroups.com wrote:

 This looks like the same compiler bug we are currently investigating, for
 now you can clear your SDM cache (button on its page) and you should be
 able to continue.

 On Tue, Feb 10, 2015 at 7:16 AM, Ali Akhtar ali.rac...@gmail.com wrote:

 I'm using 2.8.0-SNAPSHOT, from
 https://github.com/manolo/gwt-snapshot/raw/master/

 When I try to invoke the following method:

public ClerkD setEvents(HasValue?... fields)
 {
 for (HasValue? f : fields)
 {
 f.addValueChangeHandler( e - validate() );
 }
 return this;
 }

 I get the following exception:

 com.google.gwt.core.client.JavaScriptException: (ReferenceError) :
 Lcom_google_gwt_user_client_ui_HasValue_2_classLit_0_g$ is not defined

 Any ideas what's going on here? The code compiles, I have the classes on
 classpath, but I still see that exception.

 In fact, lately I've been getting a lot of these 'xxx_classLit_0_g$ not
 defined' exceptions in SDM. E.g:

 https://groups.google.com/forum/#!topic/google-web-toolkit/RzsjqX2gGd4

 https://groups.google.com/forum/#!topic/google-web-toolkit/Uf3IUgeUdP8

 It seems that using any random class in GWT can cause that exception to
 come up. Which doesn't make sense as I'm writing valid code that compiles.

 Am I doing something wrong, or is this a bug in the compiler?

 Would greatly appreciate if any light can be shed on this.

 --
 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/83b0b1f8-f8a7-4997-8426-62804e286adf%40googlegroups.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/83b0b1f8-f8a7-4997-8426-62804e286adf%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




 --
 Google Germany GmbH
 *Dienerstr. 12*
 *80331 München*

 Registergericht und -nummer: Hamburg, HRB 86891
 Sitz der Gesellschaft: Hamburg
 Geschäftsführer: Graham Law, Katherine Stephens

 --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/RWSov9AilF4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CALLujirarjkVZiL-KXu735kWtSuiRQdMiQFVaWVwXgq75_AB5w%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CALLujirarjkVZiL-KXu735kWtSuiRQdMiQFVaWVwXgq75_AB5w%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbc2oiVBPnRnKwKrL_Ra0MPX3wWrCMP1Z87rmsdjtLUCdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] GWT 2.8.0-SNAPSHOT

2015-02-10 Thread Ali Akhtar
Thanks Manuel, works great after refreshing cache.

Thanks a bunch for providing this repo.

On Tue, Feb 10, 2015 at 12:31 PM, Manuel Carrasco Moñino man...@apache.org
wrote:

 It was updated yesterday with all the stuff in master, so those changes
 should be there.
 Today is going to be run in a couple of hours, although there are no
 changes in the repo.
 Try to force your maven cache to be updated: mvn -U

 On Tue, Feb 10, 2015 at 7:39 AM, Ali Akhtar ali.rac...@gmail.com wrote:

 Hey Manuel,

 I'm using your linked repo, but I'm not sure if its updating. Defender
 methods were added a few days ago, however when I try to use them within
 client code, I get an 'undefined' javascript error.

 --
 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/e542c9ca-00ec-4466-826b-8f7ac5ef38af%40googlegroups.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/e542c9ca-00ec-4466-826b-8f7ac5ef38af%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups GWT Contributors group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit-contributors/yttru2sA4vA/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM28XAuECu0rMy7dZOsZVa83mtyfYYwk9wSttLsM9XHytc%3DGYw%40mail.gmail.com
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM28XAuECu0rMy7dZOsZVa83mtyfYYwk9wSttLsM9XHytc%3DGYw%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKiMtbfq9VW8WwABT%3DBkV1dAv3wPRdCcf1CaeEm1Bo%2BA%3DvuCng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] UiBinder changes don't get picked up in SDM (trunk)

2015-02-10 Thread Ali Akhtar
I'm using 2.8.0-SNAPSHOT. If I add any new ui-field=.. to a ui.xml file, 
they aren't picked up either on refresh, or on clearing the SDM cache . 
Instead, I have to restart SDM in order for these changes to be picked up. 
Otherwise, I keep getting the error that there's no @UiField for the 
corresponding field in the ui.xml file.

(To be clear, adding new fields to the Java file works, but when I assign 
those fields in the ui.xml template, that isn't picked up. So e.g if I add 
a @UiField Label foo to MyView.java, and assign that via g:Label 
ui-field=foo / in the ui.xml file, I still get the error that MyView#foo 
isn't assigned to a ui-field. Other ui.xml changes do get picked up, but 
not new ui-fields)

On a related note,it seems that CellTable is using CssResource. The 
compiler fails to run if you use CellTable unless you set the css mode to 
lenient. (Also the error message asks to set it to strict in order to 
temporarily avoid the issue, which is confusing as it needs to be set to 
lenient)

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/02ce9814-7640-4bf6-8772-0f300eab00f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Javascript Exceptions in SDM about classes not being defined

2015-02-09 Thread Ali Akhtar
I'm using 2.8.0-SNAPSHOT, 
from https://github.com/manolo/gwt-snapshot/raw/master/

When I try to invoke the following method:

   public ClerkD setEvents(HasValue?... fields)
{
for (HasValue? f : fields)
{
f.addValueChangeHandler( e - validate() );
}
return this;
}

I get the following exception:

com.google.gwt.core.client.JavaScriptException: (ReferenceError) : 
Lcom_google_gwt_user_client_ui_HasValue_2_classLit_0_g$ is not defined

Any ideas what's going on here? The code compiles, I have the classes on 
classpath, but I still see that exception.

In fact, lately I've been getting a lot of these 'xxx_classLit_0_g$ not 
defined' exceptions in SDM. E.g:

https://groups.google.com/forum/#!topic/google-web-toolkit/RzsjqX2gGd4

https://groups.google.com/forum/#!topic/google-web-toolkit/Uf3IUgeUdP8

It seems that using any random class in GWT can cause that exception to 
come up. Which doesn't make sense as I'm writing valid code that compiles. 

Am I doing something wrong, or is this a bug in the compiler?

Would greatly appreciate if any light can be shed on this.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/83b0b1f8-f8a7-4997-8426-62804e286adf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-09 Thread Ali Akhtar
So AutoBeans seem to be working now, however I'm still getting the 
'xxx_classlit_xx not defined' exception when I try to use other gwt 
classes. For instance the following method:

public ClerkD setEvents(HasValue?... fields)
{
for (HasValue? f : fields)
{
f.addValueChangeHandler( e - validate() );
}
return this;
}

produces: com.google.gwt.core.client.JavaScriptException: (ReferenceError) 
: Lcom_google_gwt_user_client_ui_HasValue_2_classLit_0_g$ is not defined

I'm wondering if this is because of my use of lambdas / sourceLevel 1.8 and 
if I should've stuck to using 1.7.

Jen, in your project, are you using sourceLevel 1.7 or 1.8?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] GWT 2.8.0-SNAPSHOT

2015-02-09 Thread Ali Akhtar
Hey Manuel,

I'm using your linked repo, but I'm not sure if its updating. Defender 
methods were added a few days ago, however when I try to use them within 
client code, I get an 'undefined' javascript error.

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/e542c9ca-00ec-4466-826b-8f7ac5ef38af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SDM bug when using AutoBean

2015-02-08 Thread Ali Akhtar
When I switch to 2.8.0-SNAPSHOT, then serializing the bean to json works. 
However, deserializing it from json fails. Updated code:

Factory factory = GWT.create(Factory.class);
Test test = factory.test().as();
GWT.log(Created bean);

MapString, String testMap = new HashMap();
testMap.put(foo, bar);
test.setTest(testMap);
GWT.log(Set map);

String json = AutoBeanCodex.encode( AutoBeanUtils.getAutoBean(test) 
).getPayload();
GWT.log(Got json:  + json);


Test decoded = AutoBeanCodex.decode(factory, Test.class, json).as();
GWT.log(Decoded);


Output:

Created bean
Set map
Got json: {test:{foo:bar}}
Uncaught ReferenceError: Ljava_util_Collection_2_classLit_0_g$ is not 
defined FactoryImpl.java:9 initializeCreatorMap_0_g$ 
AbstractAutoBeanFactory.java:84 
maybeInitializeCreatorMap_0_g$ AbstractAutoBeanFactory.java:37 
create_59_g$ AutoBeanCodexImpl.java:544 
doDecode_0_g $AutoBeanCodex.java:39 decode_2_g$AutoBeanCodex.java:55 
decode_3_g$BeanTest.java:34 
onModuleLoad_3_g$com_00046test_00046BeanTest__EntryMethodHolder.java:3 
init_2_g$ModuleUtils.java:44 initializeModules_0_g$Impl.java:247 
apply_0_g$Impl.java:306 entry0_0_g$Impl.java:72 (anonymous 
function)ModuleUtils.java:55 gwtOnLoad_0_g$Splittable.java:26 (anonymous 
function)

Trying to use a List also gives a similar reference error, this time about 
Iterator not being defined. This is making it unfeasible to use autobeans..

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-08 Thread Ali Akhtar
Hi Alberto,

Were you running this in SDM mode?

I've found that the bug I encounter is in SDM, but in regular / production, 
it runs without issue.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


SDM bug when using AutoBean

2015-02-08 Thread Ali Akhtar
In SDM mode, I can't seem to use AutoBean on beans that have a Map as one 
of their properties.

Example bean + factory:


public interface Test extends Serializable
{
public MapString, String getTest();
public void setTest(MapString, String test);
}

public interface Factory extends AutoBeanFactory
{
AutoBeanTest test();
}


Usage:

Factory factory = GWT.create(Factory.class);
Test test = factory.test().as();
GWT.log(Created bean);


MapString, String testMap = new HashMap();
testMap.put(foo, bar);
test.setTest( testMap );
GWT.log(Set map);


String json = AutoBeanCodex.encode( AutoBeanUtils.getAutoBean(test) 
).getPayload();
GWT.log(Got json:  + json);


Output:

  Created bean
  Uncaught ReferenceError: Ljava_util_Map_2_classLit_0_g$ is not defined

This code works if I compile and run it from production, but in SDM I get 
the above error.

I've created a repo for a sample project where this bug can be 
replicated: https://github.com/aliakhtar/AutobeanTest

Is there a workaround that I can use for now, or do I need to do a full 
compile each time / use overlay types?




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-08 Thread Ali Akhtar
This issue was fixed when i switched from 2.7.0 to 2.8.0-Snapshot . 
However, in the snapshot, beans which have only primitives and Strings 
work. But, beans that have any collections ( lists / maps) don't work, 
giving a similar error as this.

I've posted a stacktrace and made a test project to be cloned to reproduce 
it, 
here: https://groups.google.com/forum/#!topic/google-web-toolkit/Uf3IUgeUdP8

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-08 Thread Ali Akhtar
Any ideas what the issue might be then? Do you use intellij for running
SDM? And, can you repro the issue if you clone the repo I linked in the
other post?
On Feb 9, 2015 3:42 AM, Jens jens.nehlme...@gmail.com wrote:

 This issue was fixed when i switched from 2.7.0 to 2.8.0-Snapshot .
 However, in the snapshot, beans which have only primitives and Strings
 work. But, beans that have any collections ( lists / maps) don't work,
 giving a similar error as this.


 At work we use SDM with incremental compile, GWT 2.8.0-SNAPSHOT and an
 AutoBean that contains primitives (boolean, String), a Set as well as a 
 MapString,
 SetString.

 We are decoding the JSON on client side without any problems (encoding
 happens on server).

 -- J.


 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/RzsjqX2gGd4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-08 Thread Ali Akhtar
Thanks for the pointer Jen. When I run SDM directly rather than via 
intellij (using gwt:run-codeserver goal of the maven plugin), everything 
works. Whew.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SDM bug when using AutoBean

2015-02-08 Thread Ali Akhtar
This seems to be a bug with IntelliJ. When I run SDM outside of IntelliJ 
(via the gwt:run-codeserver goal of the maven plugin), everything works.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-06 Thread Ali Akhtar
I'm trying out AutoBean for the first time. Serializing a DTO to json on 
server works great, however when I attempt to deserialize it on the client 
side, I get this error:

 com.google.gwt.core.client.JavaScriptException: (ReferenceError) : 
Ljava_util_List_2_classLit_0_g$ is not defined
Console.java:11 Unknown.endVisitType_1_g$(MyModule-0.js@7:63881)
Unknown.traverse_1_g$(MyModule-0.js@18:61742)
Unknown.accept_5_g$(MyModule-0.js@8:61692)
Unknown.maybeCreateCoder_0_g$(MyModule-0.js@12:64206)
Unknown.visitValueProperty_3_g$(MyModule-0.js@8:64221)
Unknown.traverseProperties_0_g$(MyModule-0.js@20:4379)
Unknown.traverse_0_g$(MyModule-0.js@10:4306)
Unknown.accept_4_g$(MyModule-0.js@8:4171)
Unknown.doCoderFor_0_g$(MyModule-0.js@17:63732)
Unknown.getOrReify_0_g$(MyModule-0.js@16:4220)

My code:
final RequestBeanFactory factory = GWT.create(RequestBeanFactory.class);

MyBean result = AutoBeanCodex.decode(factory, MyBean.class, 
response.getText()).as();

During logging I've verified that response.getText() is returning valid 
json (its the output of serialization via AutoBean on server)

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-06 Thread Ali Akhtar
When I downgrade to gwt 2.6.0 , the code above works without any 
modification. It seems that this is a bug within 2.7.0 which appears to be 
fixed in trunk.

Is there a way to upgrade to the trunk version via maven?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.7.0 is here

2015-02-06 Thread Ali Akhtar
There appears to be a bug in autobean deserialization in 2.7.0 
: https://groups.google.com/forum/#!topic/google-web-toolkit/RzsjqX2gGd4




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-06 Thread Ali Akhtar
Jens, that was just a typo I made in pasting the code. The actual code has
the right class name.

Alberto, I'm on gwt 2.7.0 . Does it work with that? The json string
is: {value:tesst}

On Fri, Feb 6, 2015 at 6:47 PM, Alberto Mancini ab.manc...@gmail.com
wrote:

 Hi,
 just tested your code and actually seems to work using gwt/trunk so maybe
 it has something to do with the version you are using or the 'response'
 text.


 My EntryPoint:
 ---

RequestBeanFactory factory = GWT.create(RequestBeanFactory.class);

  AutoBeanMyBean ab = AutoBeanCodex.decode(factory, MyBean.class,
 {\value\:\ciao\});

  GWT.log(Decode 1);

  MyBean result = ab.as();

 GWT.log(Decode 2:  + result.toString());

 GWT.log(Result:  + result.getValue());
 ---


 Browser console:
  Decode 1
 SuperDevModeLogger.java:71 Decode 2: com..._MyBeanAutoBean$2@1
 SuperDevModeLogger.java:71 Result: ciao

 -


 Cheers,
A.

 On Fri Feb 06 2015 at 2:32:42 PM Ali Akhtar ali.rac...@gmail.com wrote:

 Seems like this error only occurs when I try to access a property of the
 deserialized bean. I changed my code to the following:

 Console.debug(Response--  + response.getText());




 AutoBeanMyBean ab = AutoBeanCodex.decode(factory, MyBean.class,
 response.getText());
 Console.debug(Decode 1);


 InitResult result = ab.as();
 Console.debug(Decode 2:  + result.toString());


 Console.debug(Result:  + result.getValue());




 I now get the output:

 Response-- {value:tesst}
 Decode 1
 Decode 2: com.myModule.MyBeanAutoBean$2@1

 com.google.gwt.core.client.JavaScriptException: (ReferenceError) :
 Ljava_util_List_2_classLit_0_g$ is not defined
 Unknown.endVisitType_1_g$(MyModule-0.js@7:63876)
 Unknown.traverse_1_g$(MyModule-0.js@18:61737)
 Unknown.accept_5_g$(MyModule-0.js@8:61687)
 Unknown.maybeCreateCoder_0_g$(MyModule-0.js@12:64201)
 Unknown.visitValueProperty_3_g$(MyModule-0.js@8:64216)
 Unknown.traverseProperties_0_g$(MyModule-0.js@20:4376)
 Unknown.traverse_0_g$(MyModule-0.js@10:4303)
 Unknown.accept_4_g$(MyModule-0.js@8:4168)
 Unknown.doCoderFor_0_g$(MyModule-0.js@17:63727)
 Unknown.getOrReify_0_g$(MyModule-0.js@16:4217)




 Bean definition:

 public interface MyBean extends Serializable
 {
 public String getValue();
 public void setValue(String value);
 }


 public interface RequestBeanFactory extends AutoBeanFactory
 {
 public AutoBeanMyBean myBean();
 }



 Any ideas?

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/RzsjqX2gGd4/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Improve Productivity Using GWT?

2015-02-06 Thread Ali Akhtar
Without knowing more about what type of component it is, its hard to make 
any suggestions. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-06 Thread Ali Akhtar
Seems like this error only occurs when I try to access a property of the 
deserialized bean. I changed my code to the following:

AutoBeanMyBean ab = AutoBeanCodex.decode(factory, MyBean.class, response.
getText());
Console.debug(Decode 1);
InitResult result =
ab.as();


Console.debug(Decode 2:  + result.toString());


Console.debug(Result:  + result.getValue());


I now get the output:

Response-- {value:tesst}
Decode 1
Decode 2: com.distancelearningsolution.shared.dto.InitResultAutoBean$2@1
com.google.gwt.core.client.JavaScriptException: (ReferenceError) : 
Ljava_util_List_2_classLit_0_g$ is not defined
Unknown.endVisitType_1_g$(MyModule-0.js@7:63876)
Unknown.traverse_1_g$(MyModule-0.js@18:61737)
Unknown.accept_5_g$(MyModule-0.js@8:61687)
Unknown.maybeCreateCoder_0_g$(MyModule-0.js@12:64201)
Unknown.visitValueProperty_3_g$(MyModule-0.js@8:64216)
Unknown.traverseProperties_0_g$(MyModule-0.js@20:4376)
Unknown.traverse_0_g$(MyModule-0.js@10:4303)
Unknown.accept_4_g$(MyModule-0.js@8:4168)
Unknown.doCoderFor_0_g$(MyModule-0.js@17:63727)
Unknown.getOrReify_0_g$(MyModule-0.js@16:4217)


Bean definition:

public interface MyBean extends Serializable
{
public String getValue();
public void setValue(String value);
}

public interface RequestBeanFactory extends AutoBeanFactory
{
public AutoBeanMyBean myBean();
}


Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Autobean deserialize failing ( Ljava_util_List_2_classLit_0_g$ is not defined )

2015-02-06 Thread Ali Akhtar
Seems like this error only occurs when I try to access a property of the 
deserialized bean. I changed my code to the following:

Console.debug(Response--  + response.getText());



AutoBeanMyBean ab = AutoBeanCodex.decode(factory, MyBean.class, response.
getText());
Console.debug(Decode 1);


InitResult result = ab.as();
Console.debug(Decode 2:  + result.toString());


Console.debug(Result:  + result.getValue());




I now get the output:

Response-- {value:tesst}
Decode 1
Decode 2: com.myModule.MyBeanAutoBean$2@1
com.google.gwt.core.client.JavaScriptException: (ReferenceError) : 
Ljava_util_List_2_classLit_0_g$ is not defined
Unknown.endVisitType_1_g$(MyModule-0.js@7:63876)
Unknown.traverse_1_g$(MyModule-0.js@18:61737)
Unknown.accept_5_g$(MyModule-0.js@8:61687)
Unknown.maybeCreateCoder_0_g$(MyModule-0.js@12:64201)
Unknown.visitValueProperty_3_g$(MyModule-0.js@8:64216)
Unknown.traverseProperties_0_g$(MyModule-0.js@20:4376)
Unknown.traverse_0_g$(MyModule-0.js@10:4303)
Unknown.accept_4_g$(MyModule-0.js@8:4168)
Unknown.doCoderFor_0_g$(MyModule-0.js@17:63727)
Unknown.getOrReify_0_g$(MyModule-0.js@16:4217)




Bean definition:

public interface MyBean extends Serializable
{
public String getValue();
public void setValue(String value);
}


public interface RequestBeanFactory extends AutoBeanFactory
{
public AutoBeanMyBean myBean();
}



Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SDM incremental recompiles in non-servlet projects?

2015-02-03 Thread Ali Akhtar
When I specify -launcherDir gives an 'unknown argument' error . I'm passing
it as a devMode parameter in my IntelliJ Run configuration.

When I use -workDir , that works, however in my specified dir I see
com.foo.myProject, and inside I see compile-1, which then contains
war/moduleName , which in return contains the nocache.js file

However, each reload produces a new compile-X directory within the workDir,
so I can't have a static way of serving the nocache.js files

Any ideas?

Here's a screenshot of my run configuration: http://i.imgur.com/NRzYz9L.png

This is the error given by gwt when I specify launcherDir:

Unknown argument: -launcherDir
Google Web Toolkit 2.7.0
DevMode [-[no]startServer] [-port port-number | auto] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logdir directory]
[-logLevel level] [-gen dir] [-bindAddress host-name-or-address]
[-codeServerPort port-number | auto] [-[no]superDevMode] [-server
servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir]
[-extra dir] [-modulePathPrefix ] [-workDir dir] [-XmethodNameDisplayMode
NONE | ONLY_METHOD_NAME | ABBREVIATED | FULL] [-sourceLevel [auto, 1.6,
1.7]] [-XjsInteropMode [NONE, JS, CLOSURE]] [-[no]incremental] module[s]




On Mon, Feb 2, 2015 at 7:42 PM, Thomas Broyer t.bro...@gmail.com wrote:

 Anything that can serve files from the file-system can be used with SDM:
 just pass -launcherDir path/to/some/directory to the CodeServer and it
 will output a  *.nocache.js in there that triggers a recompile on page load.


 On Monday, February 2, 2015 at 2:30:40 PM UTC+1, Ali Akhtar wrote:

 I'd like to use GWT with SDM in a project that doesn't use servlets,
 instead its using the vert.x framework, with IntelliJ.

 Currently, I have two run configurations in IntelliJ.

 The first one starts the vert.x web framework which listens on port 80,
 and on http://localhost , it sends my host.html file.

 The second run config is a standard GWT SDM run configuration from
 IntelliJ. That one starts the gwt code server on localhost:1978

 My host.html file contains this tag during development:

 script type=text/javascript src=http://127.0.0.1:9876/
 MyModule/MyModule.nocache.js/script

 and during production, it switches to:

 script type=text/javascript src=MyModule/MyModule.
 nocache.js/script

 When I first visit http://localhost , the module auto re-compiles.
 However on subsequent refreshes, it doesn't recompile, and I have to use
 the old bookmarklet method to trigger a recompile manually. This also seems
 to do a full recompile rather than incremental.

 Is there a way to trigger incremental recompiles automatically on reload,
 even though I'm not using the standard servlet based project layout?

 Does GWT check the source files to see if they've changed when it
 triggers a recompile on reload, or does it check compiler output (e.g in
 target/classes)?

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-web-toolkit/rxQ2WlG-_14/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SDM incremental recompiles in non-servlet projects?

2015-02-02 Thread Ali Akhtar
 localhost:1978

Sorry, that should've been:

localhost:9876

On Monday, February 2, 2015 at 6:30:40 PM UTC+5, Ali Akhtar wrote:

 I'd like to use GWT with SDM in a project that doesn't use servlets, 
 instead its using the vert.x framework, with IntelliJ.

 Currently, I have two run configurations in IntelliJ. 

 The first one starts the vert.x web framework which listens on port 80, 
 and on http://localhost , it sends my host.html file.

 The second run config is a standard GWT SDM run configuration from 
 IntelliJ. That one starts the gwt code server on localhost:1978

 My host.html file contains this tag during development:

 script type=text/javascript src=
 http://127.0.0.1:9876/MyModule/MyModule.nocache.js;/script

 and during production, it switches to: 

 script type=text/javascript src=MyModule/MyModule.nocache.js/script

 When I first visit http://localhost , the module auto re-compiles. 
 However on subsequent refreshes, it doesn't recompile, and I have to use 
 the old bookmarklet method to trigger a recompile manually. This also seems 
 to do a full recompile rather than incremental.

 Is there a way to trigger incremental recompiles automatically on reload, 
 even though I'm not using the standard servlet based project layout?

 Does GWT check the source files to see if they've changed when it triggers 
 a recompile on reload, or does it check compiler output (e.g in 
 target/classes)?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SDM incremental recompiles in non-servlet projects?

2015-02-02 Thread Ali Akhtar
Replacing the link to ModuleName.nocache.js with:

script type=text/javascript 
src=http://127.0.0.1:9876/recompile-requester/ModuleName;/script

in dev mode, triggers a recompile, and works perfectly.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


SDM incremental recompiles in non-servlet projects?

2015-02-02 Thread Ali Akhtar
I'd like to use GWT with SDM in a project that doesn't use servlets, 
instead its using the vert.x framework, with IntelliJ.

Currently, I have two run configurations in IntelliJ. 

The first one starts the vert.x web framework which listens on port 80, and 
on http://localhost , it sends my host.html file.

The second run config is a standard GWT SDM run configuration from 
IntelliJ. That one starts the gwt code server on localhost:1978

My host.html file contains this tag during development:

script type=text/javascript 
src=http://127.0.0.1:9876/MyModule/MyModule.nocache.js;/script

and during production, it switches to: 

script type=text/javascript src=MyModule/MyModule.nocache.js/script

When I first visit http://localhost , the module auto re-compiles. However 
on subsequent refreshes, it doesn't recompile, and I have to use the old 
bookmarklet method to trigger a recompile manually. This also seems to do a 
full recompile rather than incremental.

Is there a way to trigger incremental recompiles automatically on reload, 
even though I'm not using the standard servlet based project layout?

Does GWT check the source files to see if they've changed when it triggers 
a recompile on reload, or does it check compiler output (e.g in 
target/classes)?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.7.0 is here

2014-11-20 Thread Ali Akhtar
I've just updated to 2.7.0 through maven, and each time I run it, the 
browser gets stuck on the 'Compiling [ModuleName]' screen. In chrome's 
console, I see this error:

 Uncaught ReferenceError: moduleName is not 
defined :9876/ModuleName/ModuleName.recompile.nocache.js:349 

I've tried stopping and restarting a few times, no luck.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Finding all classes with a particular annotation in a GWT generator

2014-11-15 Thread Ali Akhtar
I'm hitting a bit of a roadblock. 

I have a bunch of classes in the gwt client/shared annotated as @Foo 
(custom annotation), and I have a FooGenerator which is being called via 
generate-with in my gwt.xml file.

What I'd like FooGenerator to be able to do, is to find all the @Foo 
annotated classes, and then do some further processing on those files.

I also want this to be a reusable module, so I could inherit it in other 
modules, and have it do the same thing for @Foo annotated classes.

My question is, how can I find all the @Foo annotated classes when my 
generator is called during rebind? 

Would greatly appreciate any help.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


SDM doesn't recompile generator files outside client package

2014-11-14 Thread Ali Akhtar
I have a project at com.foo, with a com.foo.client package, and a 
com.foo.rebind package.

Rebind contains generators which are used in the module.gwt.xml file, e.g:

generate-with class=com.foo.BarGenerator
when-type-assignable class=com.foo.Bar /
  /generate-with

The problem is, when I run this through IntelliJ as a normal GWT 
configuration, using 2.7.0-RC1, then on reload, while sdm recompiles, it 
seems to only recompile the files in com.foo.client, and com.foo.rebind 
seems to remain untouched, i.e any changes I make to the generator don't 
take effect.

The same happens even if I update the web server by clicking the update 
button. In the end, I have to completely stop the run config, and start a 
whole new run config, which then restarts the web server as well as the 
codeserver, and takes several mins to complete. The process is quite slow.

Is there any workaround, so that com.foo.rebind is recompiled  new 
generators are made with each sdm recompile? If not, what's my best option?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SDM doesn't recompile generator files outside client package

2014-11-14 Thread Ali Akhtar
Thanks Thomas. Running the project in debugger rather than regular run, 
doing a hotswap, and then changing a file in client package, seems to do 
the trick.

If a client package file isn't modified, sdm skips recompile because 'no 
files were modified'. Just adding some whitespace seems to be enough.

Strange why updating the web server doesn't do the same thing, i.e it even 
restarts the web server if you ask. Oh well.

Thanks a lot for the help.

On Friday, November 14, 2014 6:23:53 PM UTC+5, Thomas Broyer wrote:

 You can use hot code replace; either through IntelliJ (see 
 https://www.jetbrains.com/idea/help/reloading-classes.html and 
 https://www.jetbrains.com/idea/help/debugger-hotswap.html) or using tools 
 like JRebel.

 On Friday, November 14, 2014 1:38:38 PM UTC+1, Ali Akhtar wrote:

 I have a project at com.foo, with a com.foo.client package, and a 
 com.foo.rebind package.

 Rebind contains generators which are used in the module.gwt.xml file, e.g:

 generate-with class=com.foo.BarGenerator
 when-type-assignable class=com.foo.Bar /
   /generate-with

 The problem is, when I run this through IntelliJ as a normal GWT 
 configuration, using 2.7.0-RC1, then on reload, while sdm recompiles, it 
 seems to only recompile the files in com.foo.client, and com.foo.rebind 
 seems to remain untouched, i.e any changes I make to the generator don't 
 take effect.

 The same happens even if I update the web server by clicking the update 
 button. In the end, I have to completely stop the run config, and start a 
 whole new run config, which then restarts the web server as well as the 
 codeserver, and takes several mins to complete. The process is quite slow.

 Is there any workaround, so that com.foo.rebind is recompiled  new 
 generators are made with each sdm recompile? If not, what's my best option?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SDM doesn't recompile generator files outside client package

2014-11-14 Thread Ali Akhtar
Actually, if you change any files in webapp/ directory, and 'update' the 
web server, those changes show up when you next reload the app (e.g 
changing something in the host page). But changing any class in 
com.foo.rebind and updating doesn't seem to have the same effect.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Copying SDM's output to Phonegap's www directory for easier phone development?

2014-11-13 Thread Ali Akhtar
Thanks a lot Jonl, that -workDir flag is perfect.

 instead of pushing the updated code to the phonegap app, if SDM is 
enabled in the compiled app, it will automatically redirect to the 
codeserver

Right, but if you're developing a native app, you want to see it run as an 
app without the UI of the browser around it. For that, PhoneGap's app works 
perfectly. Also, it reloads automatically when files are updated, you don't 
have to press a reload button.

On Thursday, November 13, 2014 6:51:30 PM UTC+5, jonl wrote:

 Look at the flags of the CodeServer.  You can use flag -workDir to 
 specify the directory specifically where output is compiled to.

 http://www.gwtproject.org/articles/superdevmode.html

 If you do not use this flag, it outputs to a temporary directory.  The 
 directory is output when the CodeServer is started up.


 https://gwt.googlesource.com/gwt/+/release/2.7/dev/codeserver/java/com/google/gwt/dev/codeserver/CodeServer.java

 Since the CodeServer serves the code, you could also just talk to it 
 directly, via its api, to download files.  IE instead of pushing the 
 updated code to the phonegap app, if SDM is enabled in the compiled app, it 
 will automatically redirect to the codeserver. You could look at how GWT 
 turns on SuperDevMode with the old bookmarklets and do something similar by 
 injecting javascript into the webpage. 

 On Wednesday, November 12, 2014 11:31:20 PM UTC-7, Ali Akhtar wrote:

 There is a way to have a very fast compile - refresh cycle for phone app 
 development, i.e hitting 'Compile' for SDM, and having the app refresh on 
 your phone.

 This can be done through Phonegap's app ( http://app.phonegap.com/ ) 
 which monitors your www folder. Each time you make any changes, they are 
 sent over wifi to your phone, and your app auto refreshes on the phone. 

 A similar utility can be written, which monitors SDM's output folder. 
 Each time you do an SDM compile, it syncs the SDM output folder with 
 phonegap's www, which would then trigger a refresh on your phone.

 I think this can be very productive, and I'm happy to write this utility. 
 However, I need to know how it would determine where SDM's output directory 
 is located. I.e, can the user find out where the output is being stored, 
 and pass the path as an argument to the directory? If not, the user can 
 just input the codeserver url, and the files can be monitored via an http 
 request, although that would be less efficient.

 Please let me know of your thoughts and how to determine SDM's output 
 directory path, or if there's a better way to do what I'm trying to 
 accomplish.

 Thanks.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Copying SDM's output to Phonegap's www directory for easier phone development?

2014-11-13 Thread Ali Akhtar
Niloc132 on IRC has pointed out an important issue: If you re-compile from 
the desktop, it will use the desktop's user agent and the permutation 
specified will be for the desktop. Is there any way to tell GWT to generate 
a few permutations, for the specified user agents (i.e for desktop  phone 
both), that way, while the optimizations are off, it will still compile 
quickly and you could test it on both desktop  phone at the same time.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Copying SDM's output to Phonegap's www directory for easier phone development?

2014-11-13 Thread Ali Akhtar
If I specify the user-agent through set property, then it would only 
generate one permutation for that user agent.

What I want to do instead is, I want to specify 2-3 user agents, and have 
SDM generate permutations for all 3 of those user agents with each refresh. 

That way, I can see a refresh for desktop, mobile, and tablet all at once, 
when i recompile SDM.

Is that possible?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Copying SDM's output to Phonegap's www directory for easier phone development?

2014-11-13 Thread Ali Akhtar
Appreciate your help. 

Here's where I'm at so far:

1) Using the steps outlined at: 

https://github.com/mgwt/mgwt/wiki/SuperDevMode-with-PhoneGap 

I'm able to run my app on my phone, through Chrome, and if I reload it, 
that causes it to recompile through SDM and my changes are fetched.

2) However, if I make a phonegapp app, and include a link in it to reload 
the app, that doesn't cause it to recompile the app on reload, even though 
the javascript is still being fetched from the SDM codeserver. 

3) By printing the user agent, I've found that the Android WebView (used in 
the phonegap app) is chrome version 30, while the regular chrome version is 
34. I think SDM recompile on refresh only works with Chrome 34+ ? That's 
the only reason I can think of, for why reloading from the app doesn't 
trigger a recompile.

As it stands, I'm forced to use chrome on phone to develop the app. If 
anyone has a better setup, I'd love to know.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Copying SDM's output to Phonegap's www directory for easier phone development?

2014-11-13 Thread Ali Akhtar
Update: Due to being a moron, I had forgotten to update phonegap's 
www/index.html file which was causing the issues from my last message. 
After updating index.html to use the method described at:

https://github.com/mgwt/mgwt/wiki/SuperDevMode-with-PhoneGap

Everything now works as expected. When I make any changes, running 'touch 
index.html` from phonegap/www triggers a reload within Phonegap's developer 
app, which then triggers an SDM compile, and then the changes can be seen.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit 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 google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.