Re: Gradle 4.1 gwt-gradle-plugin multi module project not finding other modules dependencies

2017-10-16 Thread Bryan Hughes
Was my bad.

Package path's weren't lined up to be under .client.

On Saturday, October 14, 2017 at 7:33:25 PM UTC-4, Bryan Hughes wrote:
>
> I'm trying to create a Gradle 4.1 multi module project  with the 
> gwt-gradle-plugin.
>
> I have one module ":gwt-app" that I'm trying to use a simple POJO from 
> it's sibling module ":shared-lib".
>
> I have a simple sample project at https://github.com/hugheba/gwt-shared
>
> When I run "./gradlew :gwt-app:checkGwt" I get the error:
>
> Finding entry point classes
>Tracing compile failure path for type 
> 'example.gwtSharedLibrary.client.GwtSharedLibrary'
>   [ERROR] Errors in 
> 'file:/Volumes/Home/Users/bryanhug/Desktop/gwt-shared/gwt-app/src/main/java/example/gwtSharedLibrary/client/GwtSharedLibrary.java'
>  [ERROR] Line 20: No source code is available for type 
> example.MyModel; did you forget to inherit a required module?
>[ERROR] Hint: Check the inheritance chain from your module; it may not 
> be inheriting a required module or a module may not be adding its source 
> path entries properly
>
> I'm following the directions from 
> https://github.com/steffenschaefer/gwt-gradle-plugin/issues/43#issuecomment-52147244
>  
> but it doesn't seem to be working.
>
> Anyone else has this working properly or is there something I'm missing?
>
> I'm just trying to share some models from my Spring project (server) with 
> GWT (client) to serialize and deserialize REST calls with restygwt.
>

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


GQuery.on() and future elements created outside of GWT.

2017-10-16 Thread Bryan Hughes
I'm using GWT and GwtQuery to create a javascript file to track some 
analytics.

I want to bind handlers to elements with certain data- attributes, they may 
or may not be present onModuleLoad().

I tried:
 
$(document).on("click", "body * img[data-im-lookingfor]", new Function() 
{...});
$(document).on("click", "img[data-im-lookingfor]", new Function() {...});
$(GQuery.document).on("click", "img", new Function() {...});

But it will not bind to anything. Looking the source code for .on, when a 
selector is passed it will create a delegate behind the scenes.

What does work, but only for elements present onModuleLoad():

$("img[data-im-lookingfor]").on("click", new Function() {...});

I'm looking for a way to bind to all current and future elements, whether 
created in plain javascript or inside the GWT/GQuery Module.

Any suggestions.

Thanks, --B

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


Gradle 4.1 gwt-gradle-plugin multi module project not finding other modules dependencies

2017-10-14 Thread Bryan Hughes
I'm trying to create a Gradle 4.1 multi module project  with the 
gwt-gradle-plugin.

I have one module ":gwt-app" that I'm trying to use a simple POJO from it's 
sibling module ":shared-lib".

I have a simple sample project at https://github.com/hugheba/gwt-shared

When I run "./gradlew :gwt-app:checkGwt" I get the error:

Finding entry point classes
   Tracing compile failure path for type 
'example.gwtSharedLibrary.client.GwtSharedLibrary'
  [ERROR] Errors in 
'file:/Volumes/Home/Users/bryanhug/Desktop/gwt-shared/gwt-app/src/main/java/example/gwtSharedLibrary/client/GwtSharedLibrary.java'
 [ERROR] Line 20: No source code is available for type 
example.MyModel; did you forget to inherit a required module?
   [ERROR] Hint: Check the inheritance chain from your module; it may not 
be inheriting a required module or a module may not be adding its source 
path entries properly

I'm following the directions 
from 
https://github.com/steffenschaefer/gwt-gradle-plugin/issues/43#issuecomment-52147244
 
but it doesn't seem to be working.

Anyone else has this working properly or is there something I'm missing?

I'm just trying to share some models from my Spring project (server) with 
GWT (client) to serialize and deserialize REST calls with restygwt.

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