Re: Importing javascript functions to GWT using JSInteropr?

2016-05-14 Thread Ali Akhtar
What about handling the output of the callback? It returns a nested object like response.error.message. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Dear GWT

2016-05-14 Thread Ali Akhtar
Its happening for non-ui binder classes too, and i need restarts even on modification. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Dear GWT

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

Re: Dear GWT

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

Importing javascript functions to GWT using JSInteropr?

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

Re: 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

Re: Jsni replacement in 2.8?

2016-05-11 Thread Ali Akhtar
m/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 JsInter

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

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

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,

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

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

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,

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

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

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

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

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

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

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 -

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

Re: GWT 2.8.0-SNAPSHOT jsinterop missing module

2015-12-20 Thread Ali Akhtar
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,

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

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
d 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...@gmai

Re: Progress bar during GWT bootstrap process?

2015-10-27 Thread Ali Akhtar
is 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 >>

Re: Progress bar during GWT bootstrap process?

2015-10-26 Thread Ali Akhtar
e > 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 loade

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

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

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

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. --

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

Re: Not finding Elemental classes

2015-08-01 Thread Ali Akhtar
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

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

2015-07-28 Thread Ali Akhtar
+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

[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]

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

2015-07-27 Thread Ali Akhtar
-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-contrib] Re: Build failing on 2.8.0-SNAPSHOT

2015-07-27 Thread Ali Akhtar
/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

[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

[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

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

2015-07-09 Thread Ali Akhtar
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

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

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

2015-03-25 Thread Ali Akhtar
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

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

2015-03-25 Thread Ali Akhtar
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-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

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

2015-03-25 Thread Ali Akhtar
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

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

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

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

Re: Allowing HTML within FormPanel?

2015-03-24 Thread Ali Akhtar
!= 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

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

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.

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

[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

[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

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

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

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

2015-02-12 Thread Ali Akhtar
, 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

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

2015-02-11 Thread Ali Akhtar
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

[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

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.

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

2015-02-10 Thread Ali Akhtar
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

Re: [gwt-contrib] GWT 2.8.0-SNAPSHOT

2015-02-10 Thread Ali Akhtar
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

[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

[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() ); }

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) {

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

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

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

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

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

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,

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

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

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

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

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

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

2015-02-06 Thread Ali Akhtar
, 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

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

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: +

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);

Re: SDM incremental recompiles in non-servlet projects?

2015-02-03 Thread Ali Akhtar
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

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

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

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

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

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

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

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

2014-11-14 Thread Ali Akhtar
://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

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

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

2014-11-13 Thread Ali Akhtar
, 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

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

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

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)

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.