Re: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer


On Tuesday, May 9, 2017 at 1:45:00 PM UTC+2, Frederik Van Hoyweghen wrote:
>
> I tried both the command line (mvn gwt:compile) and via the IntelliJ Maven 
> plugin.
> Indeed, binding the execution to the prepare-package phase and running *mvn 
> gwt:compile@compile-common *works, and I'm glad it does.
>
> If I'm reading what you're saying correctly, this means that there is no 
> way to invoke all the plugin executions with a simple command?
> I personally expected *mvn gwt:compile* to invoke everything it needs (so 
> everything that comes earlier in it's lifecycle, including the executions I 
> bound to the prepare-package phase),
> or am I missing something obvious?
>

"mvn package" (or "mvn prepare-package" if you want, but refer to my second 
rule of thumb)

See 
https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html 
(in this case specifically the "a build phase is made up of plugin goals" 
section)

If you'd prefer working with a graph of tasks (like you do in Ant), then 
again have a look at Gradle.

-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen
I tried both the command line (mvn gwt:compile) and via the IntelliJ Maven 
plugin.
Indeed, binding the execution to the prepare-package phase and running *mvn 
gwt:compile@compile-common *works, and I'm glad it does.

If I'm reading what you're saying correctly, this means that there is no 
way to invoke all the plugin executions with a simple command?
I personally expected *mvn gwt:compile* to invoke everything it needs (so 
everything that comes earlier in it's lifecycle, including the executions I 
bound to the prepare-package phase),
or am I missing something obvious?

Thanks again!

On Tuesday, May 9, 2017 at 1:26:28 PM UTC+2, Thomas Broyer wrote:
>
>
>
> On Tuesday, May 9, 2017 at 1:11:04 PM UTC+2, Frederik Van Hoyweghen wrote:
>>
>>
>>
>> On Tuesday, May 9, 2017 at 12:59:17 PM UTC+2, Thomas Broyer wrote:
>>>
>>>
>>> I wouldn't put any  /  into the 
>>> plugin-level , and only put them into the .
>>>
>>
>> That's what I figured, but it seems to be a required property (The 
>> parameters 'moduleName' for goal 
>> net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-7:compile are missing or 
>> invalid, when invoking gwt:compile).
>>
>
> How are you invoking gwt:compile? If on the command-line, then the 
> execution ID matters, and only one such execution will match (the one with 
> default-cli). But starting with Maven 3.3.1 you can specify the 
> execution id on the command-line too: "mvn gwt:compile@compile-common 
> gwt:compile@compile-foo".
>
> See 
> https://maven.apache.org/guides/mini/guide-default-execution-ids.html#Default_executionIds_for_Implied_Executions
>  and 
> https://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag
>
> I defined my executions as per your example:
>>
>> 
>> 6
>> true
>> true
>> 
>> 
>> 
>> compile-common
>> compile
>> 
>> com.test.common
>> 
>> 
>>
>>
>> etc.. but it appears the executions aren't triggered (or is this an 
>> effect of the missing moduleName under configuration?). It seems I have 
>> much to learn still.
>>
>
> Rule of thumb: if a goal is (meant to be) bound to a lifecycle phase (such 
> as gwt:compile which is bound by default to the prepare-package phase; see 
> https://tbroyer.github.io/gwt-maven-plugin/compile-mojo.html; but not 
> gwt:devmode or gwt:codeserver for example), then invoke the lifecycle 
> phase, not the goal.
> Another rule of thumb: only ever invoke the lifecycle phases "package" and 
> "verify" (and "install" and "deploy" when dealing with libraries, to share 
> them with other projects / people). If you want to skip tests, pass 
> -DskipTests, if you want to skip the compilation of tests too then pass 
> -Dmaven.test.skip.
> If you know what you're doing, then feel free to break those rules; if you 
> know what you're doing.
>
> Also, have a look at Gradle rather than Maven, if that's a possibility for 
> your project(s).
>

-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer


On Tuesday, May 9, 2017 at 1:11:04 PM UTC+2, Frederik Van Hoyweghen wrote:
>
>
>
> On Tuesday, May 9, 2017 at 12:59:17 PM UTC+2, Thomas Broyer wrote:
>>
>>
>> I wouldn't put any  /  into the plugin-level 
>> , and only put them into the .
>>
>
> That's what I figured, but it seems to be a required property (The 
> parameters 'moduleName' for goal 
> net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-7:compile are missing or 
> invalid, when invoking gwt:compile).
>

How are you invoking gwt:compile? If on the command-line, then the 
execution ID matters, and only one such execution will match (the one with 
default-cli). But starting with Maven 3.3.1 you can specify the 
execution id on the command-line too: "mvn gwt:compile@compile-common 
gwt:compile@compile-foo".

See 
https://maven.apache.org/guides/mini/guide-default-execution-ids.html#Default_executionIds_for_Implied_Executions
 and 
https://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag

I defined my executions as per your example:
>
> 
> 6
> true
> true
> 
> 
> 
> compile-common
> compile
> 
> com.test.common
> 
> 
>
>
> etc.. but it appears the executions aren't triggered (or is this an effect 
> of the missing moduleName under configuration?). It seems I have much to 
> learn still.
>

Rule of thumb: if a goal is (meant to be) bound to a lifecycle phase (such 
as gwt:compile which is bound by default to the prepare-package phase; 
see https://tbroyer.github.io/gwt-maven-plugin/compile-mojo.html; but not 
gwt:devmode or gwt:codeserver for example), then invoke the lifecycle 
phase, not the goal.
Another rule of thumb: only ever invoke the lifecycle phases "package" and 
"verify" (and "install" and "deploy" when dealing with libraries, to share 
them with other projects / people). If you want to skip tests, pass 
-DskipTests, if you want to skip the compilation of tests too then pass 
-Dmaven.test.skip.
If you know what you're doing, then feel free to break those rules; if you 
know what you're doing.

Also, have a look at Gradle rather than Maven, if that's a possibility for 
your project(s).

-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen


On Tuesday, May 9, 2017 at 12:59:17 PM UTC+2, Thomas Broyer wrote:
>
>
> I wouldn't put any  /  into the plugin-level 
> , and only put them into the .
>

That's what I figured, but it seems to be a required property (The 
parameters 'moduleName' for goal 
net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-7:compile are missing or 
invalid, when invoking gwt:compile).

I defined my executions as per your example:


6
true
true



compile-common
compile

com.test.common




etc.. but it appears the executions aren't triggered (or is this an effect 
of the missing moduleName under configuration?). It seems I have much to 
learn still.

-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer


On Tuesday, May 9, 2017 at 12:33:57 PM UTC+2, Frederik Van Hoyweghen wrote:
>
> This indeed seems to be what I was looking for, thank you.
> Are there any obvious downsides to doing it like this, with multiple 
> executions?
>

Each module compilation will fork a new GWT compiler process, rather than 
use a single process compiling all modules (assuming that's how you're 
doing it in Ant), so it'll probably take more time (but possibly less 
memory).
That's all I can think of.
 

> Does it matter which specific moduleName I specify within the 
>  tag, or should I just pick 1 arbitrary one there and put 
> the others within the  tag?
>

I wouldn't put any  /  into the plugin-level 
, and only put them into the .

-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen
This indeed seems to be what I was looking for, thank you.
Are there any obvious downsides to doing it like this, with multiple 
executions?

Does it matter which specific moduleName I specify within the 
 tag, or should I just pick 1 arbitrary one there and put 
the others within the  tag?

I very much appreciate the responses and the patience ;)

On Tuesday, May 9, 2017 at 12:22:40 PM UTC+2, Thomas Broyer wrote:
>
>
>
> On Tuesday, May 9, 2017 at 11:27:25 AM UTC+2, Frederik Van Hoyweghen wrote:
>>
>> Thanks for the replies.
>>
>> I already took a look at the issue on the plugin's github: 
>> https://github.com/tbroyer/gwt-maven-plugin/issues/57 
>> 
>> Sadly, this was closed and recently labeled with a wontfix, hence me 
>> asking for help here :)
>>
>
> My first comment on this issue tells you how to do it. In case it isn't 
> clear, what I meant there is:
>
> 
>   
> compile-module1
> 
>   compile
> 
> 
>   com.example.module1.Module1
>   module1
> 
>   
>   
> compile-module1
> 
>   compile
> 
> 
>   com.example.module2.Module2
>   module2
> 
>   
> 
>
> Another possibility (if you really do want to fork one and only one GWT 
> compiler process) is to use the exec-maven-plugin's exec goal (though you 
> would have to declare your source roots as resources dirs to get your 
> sources copied to target/classes so they're present in the computed 
> ).
> (I suppose you could get something working by "hacking" into the 
> , and probably then true 
> as you'd have the staleness check only take the module configured in 
> / into account; I would discourage such "hack" 
> though)
>

-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread Thomas Broyer


On Tuesday, May 9, 2017 at 11:27:25 AM UTC+2, Frederik Van Hoyweghen wrote:
>
> Thanks for the replies.
>
> I already took a look at the issue on the plugin's github: 
> https://github.com/tbroyer/gwt-maven-plugin/issues/57 
> 
> Sadly, this was closed and recently labeled with a wontfix, hence me 
> asking for help here :)
>

My first comment on this issue tells you how to do it. In case it isn't 
clear, what I meant there is:


  
compile-module1

  compile


  com.example.module1.Module1
  module1

  
  
compile-module1

  compile


  com.example.module2.Module2
  module2

  


Another possibility (if you really do want to fork one and only one GWT 
compiler process) is to use the exec-maven-plugin's exec goal (though you 
would have to declare your source roots as resources dirs to get your 
sources copied to target/classes so they're present in the computed 
).
(I suppose you could get something working by "hacking" into the 
, and probably then true 
as you'd have the staleness check only take the module configured in 
/ into account; I would discourage such "hack" 
though)

-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread Frederik Van Hoyweghen
Thanks for the replies.

I already took a look at the issue on the plugin's github: 
https://github.com/tbroyer/gwt-maven-plugin/issues/57 

Sadly, this was closed and recently labeled with a wontfix, hence me asking 
for help here :)


On Tuesday, May 9, 2017 at 9:55:15 AM UTC+2, DavidN wrote:
>
> In my project I have many modules. What I did is simple create a gwt-lib 
> maven module per GWT module. Those modules served different purposes so it 
> made sense to split them in smaller artifacts.
>
> In some cases I moved the code around so that I join multiple modules into 
> one big module instead.
>
> Another solution you could try is to have one module that inherits all the 
> other modules. But I don't like that approach because it means you have 
> manually maintain that gwt.xml file and those other gwt.xml files as well, 
> while with the gwt-lib approach the gwt maven plugin will take care of 
> adding the inherits tags automatically (if you have the gwt-lib in your 
> dependency section).
>

I was hoping to (for the time being) avoid this exact approach. I realize 
this is the way to go, but I'm also expected to maintain full compatibility 
with our old ant build (until the maven build is as good as ready).

Should I take a look at the legacy Mojo maven plugin, or can I expect to 
come across the same hurdles with that one given my project layout?


-- 
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: Multiple GWT modules in one Maven module

2017-05-09 Thread David
In my project I have many modules. What I did is simple create a gwt-lib
maven module per GWT module. Those modules served different purposes so it
made sense to split them in smaller artifacts.

In some cases I moved the code around so that I join multiple modules into
one big module instead.

Another solution you could try is to have one module that inherits all the
other modules. But I don't like that approach because it means you have
manually maintain that gwt.xml file and those other gwt.xml files as well,
while with the gwt-lib approach the gwt maven plugin will take care of
adding the inherits tags automatically (if you have the gwt-lib in your
dependency section).

On Mon, May 8, 2017 at 6:17 PM Frederik Van Hoyweghen <
frederik.vanhoyweg...@chapoo.com> wrote:

> Hey everyone,
>
> We are currently migrating our project away from using Ant, to Maven.
>
> Along with this migration, we also tried to follow some of the project
> structuring that is recommended for a maven project.
>
> Our *Maven* GWT module contains multiple GWT modules, but I'm struggling
> with making this work using Thomas Broyer's GWT plugin:
> https://github.com/tbroyer/gwt-maven-plugin
> I feel like this was designed specifically with the idea of having only 1
> GWT module inside a Maven module (please correct me if I'm wrong).
>
>
> At first I tried this plugin configuration:
>
> 
> true
> 
> 
> A
> B
> C
> D
> 
> 
> 
>
>
>
> This doesn't work because ModuleName has to be underneath the
>  tag.
> Listing the modules underneath the  tag also doesn't work,
> running gwt:compile only compiles the last module in the list:
>
> 
> A
> B
> C
> D
> true
> 
>
>
>
>
> Does anyone have any experience with this?
>
> --
> 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.
>

-- 
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: Multiple GWT modules in one Maven module

2017-05-08 Thread Thomas Broyer


On Monday, May 8, 2017 at 6:18:06 PM UTC+2, Frederik Van Hoyweghen wrote:
>
> Hey everyone,
>
> We are currently migrating our project away from using Ant, to Maven.
>
> Along with this migration, we also tried to follow some of the project 
> structuring that is recommended for a maven project.
>
> Our *Maven* GWT module contains multiple GWT modules, but I'm struggling 
> with making this work using Thomas Broyer's GWT plugin: 
> https://github.com/tbroyer/gwt-maven-plugin
> I feel like this was designed specifically with the idea of having only 1 
> GWT module inside a Maven module (please correct me if I'm wrong).
>

That's right.
 

> At first I tried this plugin configuration:
>
> 
> true
> 
> 
> A
> B
> C
> D
> 
> 
> 
>
>
>
> This doesn't work because ModuleName has to be underneath the 
>  tag.
> Listing the modules underneath the  tag also doesn't work, 
> running gwt:compile only compiles the last module in the list:
>
> 
> A
> B
> C
> D
> true
> 
>
>
>
>
> Does anyone have any experience with this?
>

See https://github.com/tbroyer/gwt-maven-plugin/issues/57 

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


Multiple GWT modules in one Maven module

2017-05-08 Thread Frederik Van Hoyweghen
Hey everyone,

We are currently migrating our project away from using Ant, to Maven.

Along with this migration, we also tried to follow some of the project 
structuring that is recommended for a maven project.

Our *Maven* GWT module contains multiple GWT modules, but I'm struggling 
with making this work using Thomas Broyer's GWT 
plugin: https://github.com/tbroyer/gwt-maven-plugin
I feel like this was designed specifically with the idea of having only 1 
GWT module inside a Maven module (please correct me if I'm wrong).


At first I tried this plugin configuration:


true


A
B
C
D






This doesn't work because ModuleName has to be underneath the 
 tag.
Listing the modules underneath the  tag also doesn't work, 
running gwt:compile only compiles the last module in the list:


A
B
C
D
true





Does anyone have any experience with this?

-- 
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.7.0 DevMode not allowing multiple GWT Modules

2015-05-03 Thread tbb
SDM is in the pipeline Thomas.
For now, I've gone down the path of adding a 2nd Maven module which uses 
the buildhelper plugin to get the resources. Not nice, but does the job 
until we move over to SDM.

By the way, is there any timeframe for GWT 3 yet? ;) Having a stable 
JsInterop API would safe quite a bit.

Cheers,
Thomas

On Sunday, May 3, 2015 at 5:30:15 PM UTC+8, Thomas Broyer wrote:



 On Sunday, May 3, 2015 at 3:57:13 AM UTC+2, tbb wrote:

 Thanks Thomas.

 I might give that a try, but even if it worked, it would still be a 
 pretty clunky. Anyway chance that could be easily fixed?


 Classic DevMode is very unlikely to receive any fix. Patches would 
 probably be accepted though, but it's only a matter of time before 
 classic DevMode is completely removed from the codebase (GWT 3.0?) so I 
 wouldn't invest time fixing it and would rather put it into switching to 
 SDM if I were you.


-- 
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 DevMode not allowing multiple GWT Modules

2015-05-03 Thread Thomas Broyer


On Sunday, May 3, 2015 at 3:57:13 AM UTC+2, tbb wrote:

 Thanks Thomas.

 I might give that a try, but even if it worked, it would still be a pretty 
 clunky. Anyway chance that could be easily fixed?


Classic DevMode is very unlikely to receive any fix. Patches would 
probably be accepted though, but it's only a matter of time before 
classic DevMode is completely removed from the codebase (GWT 3.0?) so I 
wouldn't invest time fixing it and would rather put it into switching to 
SDM if I were you.

-- 
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 DevMode not allowing multiple GWT Modules

2015-05-02 Thread Thomas Broyer
IIRC this could be due to a cache expiration in the mapping from module 
short names (e.g. portal) to their fully-qualified name (e.g. 
com.xyz.ModuleB).
One workaround *could* be to load both modules fast enough after DevMode 
startup that the mapping is not reclaimed.

On Saturday, May 2, 2015 at 10:04:25 AM UTC+2, tbb wrote:

 I've migrated a Maven based GWT project from GWT 2.5 to 2.7. The project 
 has 2 GWT Modules (.gwt.xml) within one Maven project. In GWT 2.5 I was 
 able to start DevMode and point the browser to the host page of either 
 module and all worked fine.

 My POM looked like this:

 runTarget${gwt.hostPageModuleA}/runTarget
 modules
 modulecom.xyz.ModuleA/module
 modulecom.xyz.ModuleB/module
 /modules

 Now with GWT 2.7 (still using classic DevMode), DevMode only works for 
 the module which has its hostPage configured as runTarget. If I switch the 
 hostPage to moduleB, moduleB works.

 If I'm accessing the module which is not matching the runTarget, I'm 
 getting this error message:

 00:01:19.009 [ERROR] Unable to find 'portal.gwt.xml' on your classpath; could 
 be a typo, or maybe you forgot to include a classpath entry for source?

 Once the runTarget points to the right host page (i.e. restart with a 
 different profile), it works fine.

 Rather cumbersome for me as I'm working on both GWT modules at the same 
 time - I now have to stop DevMode, select another Maven profile which 
 adjusts the hostPage and then start again.

 How can I make that work with GWT 2.7 (and not switch to SuperDevMode)?

 TIA

 Thomas


-- 
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 2.7.0 DevMode not allowing multiple GWT Modules

2015-05-02 Thread tbb


I've migrated a Maven based GWT project from GWT 2.5 to 2.7. The project 
has 2 GWT Modules (.gwt.xml) within one Maven project. In GWT 2.5 I was 
able to start DevMode and point the browser to the host page of either 
module and all worked fine.

My POM looked like this:

runTarget${gwt.hostPageModuleA}/runTarget
modules
modulecom.xyz.ModuleA/module
modulecom.xyz.ModuleB/module
/modules

Now with GWT 2.7 (still using classic DevMode), DevMode only works for 
the module which has its hostPage configured as runTarget. If I switch the 
hostPage to moduleB, moduleB works.

If I'm accessing the module which is not matching the runTarget, I'm 
getting this error message:

00:01:19.009 [ERROR] Unable to find 'portal.gwt.xml' on your classpath; could 
be a typo, or maybe you forgot to include a classpath entry for source?

Once the runTarget points to the right host page (i.e. restart with a 
different profile), it works fine.

Rather cumbersome for me as I'm working on both GWT modules at the same 
time - I now have to stop DevMode, select another Maven profile which 
adjusts the hostPage and then start again.

How can I make that work with GWT 2.7 (and not switch to SuperDevMode)?

TIA

Thomas

-- 
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 DevMode not allowing multiple GWT Modules

2015-05-02 Thread tbb
Thanks Thomas.

I might give that a try, but even if it worked, it would still be a pretty 
clunky. Anyway chance that could be easily fixed?

Right now, I'm leaning towards a second Maven module - using the 
buildhelper plugin to mirror the source paths of the other module in...

On Saturday, May 2, 2015 at 6:02:05 PM UTC+8, Thomas Broyer wrote:

 IIRC this could be due to a cache expiration in the mapping from module 
 short names (e.g. portal) to their fully-qualified name (e.g. 
 com.xyz.ModuleB).
 One workaround *could* be to load both modules fast enough after DevMode 
 startup that the mapping is not reclaimed.

 On Saturday, May 2, 2015 at 10:04:25 AM UTC+2, tbb wrote:

 I've migrated a Maven based GWT project from GWT 2.5 to 2.7. The project 
 has 2 GWT Modules (.gwt.xml) within one Maven project. In GWT 2.5 I was 
 able to start DevMode and point the browser to the host page of either 
 module and all worked fine.

 My POM looked like this:

 runTarget${gwt.hostPageModuleA}/runTarget
 modules
 modulecom.xyz.ModuleA/module
 modulecom.xyz.ModuleB/module
 /modules

 Now with GWT 2.7 (still using classic DevMode), DevMode only works for 
 the module which has its hostPage configured as runTarget. If I switch the 
 hostPage to moduleB, moduleB works.

 If I'm accessing the module which is not matching the runTarget, I'm 
 getting this error message:

 00:01:19.009 [ERROR] Unable to find 'portal.gwt.xml' on your classpath; 
 could be a typo, or maybe you forgot to include a classpath entry for source?

 Once the runTarget points to the right host page (i.e. restart with a 
 different profile), it works fine.

 Rather cumbersome for me as I'm working on both GWT modules at the same 
 time - I now have to stop DevMode, select another Maven profile which 
 adjusts the hostPage and then start again.

 How can I make that work with GWT 2.7 (and not switch to SuperDevMode)?

 TIA

 Thomas



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


Multiple gwt modules using script not inherit how to's?

2012-12-20 Thread Ahmad Igbaria


I have a GWT component that i want to integrate with my GWT application, 
but unfortunately this component takes about 40 sec to load, this means in 
DevMode each time i refresh the page i should to wait about 40 sec to be 
able to work. this is caused by only using the tag for this component.

I thought about inheriting using tag for the component instead of adding 
tag in the gwt.xml file. in production mode, it works but in development 
mode i get the following error:

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

The solution that i have come up with is:
1. create a GWT module that inherits the component
2. create a native method that create a function to call the component api:
$wnd.externalJS = $entry(@com.ModuleA::loadData(Ljava/lang/String;));
3. compile the module
4. add script in module B 

Thank you
Ahmad Igbaria

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/EIqAxnvYGIgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use of multiple GWT modules in an application

2012-12-20 Thread Ahmad Igbaria
Hi All,

I'm facing a similar problem.
I have compiled gwt module in my app, i copied the generated js files to my 
web app.

when i'm trying to run dev mode i get the same error message you get. the 
given solution didn't work either.

thanks  

On Thursday, October 11, 2012 9:48:30 PM UTC+2, Thad wrote:

 On Thursday, October 11, 2012 10:36:32 AM UTC-4, Thomas Broyer wrote:



 On Thursday, October 11, 2012 4:32:53 PM UTC+2, Thad wrote:

 Thomas, indulge my curiosity. I've not the situation that Denero 
 describes, but I tried this anyway.

 1) When I do this, my app loads *much faster*. Why?
 2) Also, I don't see my app's client tab open in the DevMode window. 
 Again, why?


 Hmm, does it really runs in DevMode then? (e.g., in Chrome is the toolbox 
 appearing in the omnibar? or in any browser, is the devmode.js or 
 hosted.html loaded? or a md5.cache.js/html?)


 Ah, I see.  It's not in DevMode and though it is running some stuff (from 
 a earlier build?) it's incomplete. Thanks.

 There are times that GWT reminds me of Clarke's 3rd Law. I love working 
 with this toolkit.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/rJyBNKx6dfAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multiple gwt modules using script not inherit how to's?

2012-12-20 Thread Thomas Broyer
Answered on SO: http://stackoverflow.com/q/13972343/116472

On Thursday, December 20, 2012 2:16:10 PM UTC+1, Ahmad Igbaria wrote:

 I have a GWT component that i want to integrate with my GWT application, 
 but unfortunately this component takes about 40 sec to load, this means in 
 DevMode each time i refresh the page i should to wait about 40 sec to be 
 able to work. this is caused by only using the tag for this component.

 I thought about inheriting using tag for the component instead of adding 
 tag in the gwt.xml file. in production mode, it works but in development 
 mode i get the following error:

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

 The solution that i have come up with is:
 1. create a GWT module that inherits the component
 2. create a native method that create a function to call the component api:
 $wnd.externalJS = $entry(@com.ModuleA::loadData(Ljava/lang/String;));
 3. compile the module
 4. add script in module B 

 Thank you
 Ahmad Igbaria


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fP2Dh6qV3fcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Use of multiple GWT modules in an application

2012-10-11 Thread Denero
Hi,
I have a GWT application which uses a JavaScript library published on a remote
server and that also was developed under GWT and the APIs exposed over JSNI. I
do not have access to the source ocde of that. That library uses cross-site
scripting and uses xsiframe linker option.

My application which include that in a script node and calls its APIs works fine
in the production mode. But now for some debugging purpose in my application
when I run it in the dev mode, all the API calls to the other GWT library fails
because it looks like it also trying to run in dev mode as I see that
*.devmode.js of that is getting loaded and thus that module is not loaded
successfully(I do not see any errors either).

How can I run my application in dev mode while still keeping the other library
in production mode(ie just like any other native code)? As said, the other
library itself is hosted on a different server and when running our application
in devmode we specify only our module names, so I would expect it to work
bydefault. Is there a compiler or dev mode option that I can use here?

I am using GWT 2.4.0.

Thanks in advance,
dw


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use of multiple GWT modules in an application

2012-10-11 Thread Thomas Broyer
It's actually (and fortunately) easy: change gwt.codesvr in your URL with 
gwt.codesvr.moduleName, where moduleName is your module name (the one in 
your gwt.xml's rename-to=)
That way, the third-party module won't try to run in DevMode, only your 
module that matches moduleName.

On Thursday, October 11, 2012 3:35:45 PM UTC+2, Denero wrote:

 Hi, 
 I have a GWT application which uses a JavaScript library published on a 
 remote 
 server and that also was developed under GWT and the APIs exposed over 
 JSNI. I 
 do not have access to the source ocde of that. That library uses 
 cross-site 
 scripting and uses xsiframe linker option. 

 My application which include that in a script node and calls its APIs 
 works fine 
 in the production mode. But now for some debugging purpose in my 
 application 
 when I run it in the dev mode, all the API calls to the other GWT library 
 fails 
 because it looks like it also trying to run in dev mode as I see that 
 *.devmode.js of that is getting loaded and thus that module is not loaded 
 successfully(I do not see any errors either). 

 How can I run my application in dev mode while still keeping the other 
 library 
 in production mode(ie just like any other native code)? As said, the other 
 library itself is hosted on a different server and when running our 
 application 
 in devmode we specify only our module names, so I would expect it to work 
 bydefault. Is there a compiler or dev mode option that I can use here? 

 I am using GWT 2.4.0. 

 Thanks in advance, 
 dw 




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/IJzN2Z6tfawJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use of multiple GWT modules in an application

2012-10-11 Thread Thad
Thomas, indulge my curiosity. I've not the situation that Denero describes, 
but I tried this anyway.

1) When I do this, my app loads *much faster*. Why?
2) Also, I don't see my app's client tab open in the DevMode window. Again, 
why?

Thanks.

On Thursday, October 11, 2012 10:18:30 AM UTC-4, Thomas Broyer wrote:

 It's actually (and fortunately) easy: change gwt.codesvr in your URL with 
 gwt.codesvr.moduleName, where moduleName is your module name (the one in 
 your gwt.xml's rename-to=)
 That way, the third-party module won't try to run in DevMode, only your 
 module that matches moduleName.

 On Thursday, October 11, 2012 3:35:45 PM UTC+2, Denero wrote:

 Hi, 
 I have a GWT application which uses a JavaScript library published on a 
 remote 
 server and that also was developed under GWT and the APIs exposed over 
 JSNI. I 
 do not have access to the source ocde of that. That library uses 
 cross-site 
 scripting and uses xsiframe linker option. 

 My application which include that in a script node and calls its APIs 
 works fine 
 in the production mode. But now for some debugging purpose in my 
 application 
 when I run it in the dev mode, all the API calls to the other GWT library 
 fails 
 because it looks like it also trying to run in dev mode as I see that 
 *.devmode.js of that is getting loaded and thus that module is not loaded 
 successfully(I do not see any errors either). 

 How can I run my application in dev mode while still keeping the other 
 library 
 in production mode(ie just like any other native code)? As said, the 
 other 
 library itself is hosted on a different server and when running our 
 application 
 in devmode we specify only our module names, so I would expect it to work 
 bydefault. Is there a compiler or dev mode option that I can use here? 

 I am using GWT 2.4.0. 

 Thanks in advance, 
 dw 




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BJla4IL7VxAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use of multiple GWT modules in an application

2012-10-11 Thread Thomas Broyer


On Thursday, October 11, 2012 4:32:53 PM UTC+2, Thad wrote:

 Thomas, indulge my curiosity. I've not the situation that Denero 
 describes, but I tried this anyway.

 1) When I do this, my app loads *much faster*. Why?
 2) Also, I don't see my app's client tab open in the DevMode window. 
 Again, why?


Hmm, does it really runs in DevMode then? (e.g., in Chrome is the toolbox 
appearing in the omnibar? or in any browser, is the devmode.js or 
hosted.html loaded? or a md5.cache.js/html?)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mhzrb6oqPa0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use of multiple GWT modules in an application

2012-10-11 Thread Denero
That works perfectly fine. Thanks Thomas.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use of multiple GWT modules in an application

2012-10-11 Thread Denero
Sorry, send it too fast.. The application works fine but I realize now that my
gwt module is now not running in devmode. It is not stopping at breakpoints.
Also, I do not see the message [INFO] [clientsample] - Module clientsample has
been loaded in the Development mode tab. Just remove .moduleName from the url,
it shows that.

Here is the URL that I tried:
http://127.0.0.1:8882/Sample.html?gwt.codesvr.clientsample=127.0.0.1:9997
where clientsample is the rename-to in my gwt.xml file.
Does it look right?

BTW I see that with just
http://127.0.0.1:8882/Sample.html?gwt.codesvr=127.0.0.1:9997,I get the error
message in the development tab for the other GWT module whihc is named client:
[ERROR] [client] - Unable to find 'client.gwt.xml' on your classpath; could be a
typo, or maybe you forgot to include a classpath entry for source?

Thanks,
dw


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Use of multiple GWT modules in an application

2012-10-11 Thread Thad
On Thursday, October 11, 2012 10:36:32 AM UTC-4, Thomas Broyer wrote:



 On Thursday, October 11, 2012 4:32:53 PM UTC+2, Thad wrote:

 Thomas, indulge my curiosity. I've not the situation that Denero 
 describes, but I tried this anyway.

 1) When I do this, my app loads *much faster*. Why?
 2) Also, I don't see my app's client tab open in the DevMode window. 
 Again, why?


 Hmm, does it really runs in DevMode then? (e.g., in Chrome is the toolbox 
 appearing in the omnibar? or in any browser, is the devmode.js or 
 hosted.html loaded? or a md5.cache.js/html?)


Ah, I see.  It's not in DevMode and though it is running some stuff (from a 
earlier build?) it's incomplete. Thanks.

There are times that GWT reminds me of Clarke's 3rd Law. I love working 
with this toolkit.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/wihsfs64MSMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: multiple gwt modules

2011-08-13 Thread Ali Jalal
Hi

1. You can use Cookie in client-side to save/load information in same
domain. So if your modules are in same domain there shouldn't be any
problem.
2. You can also load/save informations from/to server if serialization of
information in cookies is cumbersome.


On Thu, Aug 11, 2011 at 9:52 PM, Daemon Zak saje...@gmail.com wrote:

 I want to able to load a gwt module from another gwt module  for eg:
 if i click a button ,the new module should be loaded in a new
 browser ,with the same session attributes. how do we communicate
 between modules i.e . if i want to pass some information from one
 module to another and vice versa . any help is greatly appreicated

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: multiple gwt modules

2011-08-13 Thread Ed
I would also use cookies, but be careful as the cookie info is send
back and forward to the server, so don't put too much info in it.
I do the same. Start another gwt app with info in the cookie.
I do this because with code-splitting the left over is getting too big
such that I have to split my gwt app's in separate gwt apps instead.

- Ed

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



multiple gwt modules

2011-08-11 Thread Daemon Zak
I want to able to load a gwt module from another gwt module  for eg:
if i click a button ,the new module should be loaded in a new
browser ,with the same session attributes. how do we communicate
between modules i.e . if i want to pass some information from one
module to another and vice versa . any help is greatly appreicated

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: multiple gwt modules

2011-08-11 Thread Juan Pablo Gardella
You sure use the module: inherits name='com.google.gwt.user.User' /

This module is define in gwt-user.jar. Check how is it do. Is this do you
need?


2011/8/11 Daemon Zak saje...@gmail.com

 I want to able to load a gwt module from another gwt module  for eg:
 if i click a button ,the new module should be loaded in a new
 browser ,with the same session attributes. how do we communicate
 between modules i.e . if i want to pass some information from one
 module to another and vice versa . any help is greatly appreicated

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: multiple gwt modules

2011-08-11 Thread Daemon Zak
hi juan! I'm aware of that ! I want to be able to load a module in a
new browser window from another module by some action ...say by
clicking a button

On Aug 11, 10:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 You sure use the module: inherits name='com.google.gwt.user.User' /

 This module is define in gwt-user.jar. Check how is it do. Is this do you
 need?

 2011/8/11 Daemon Zak saje...@gmail.com







  I want to able to load a gwt module from another gwt module  for eg:
  if i click a button ,the new module should be loaded in a new
  browser ,with the same session attributes. how do we communicate
  between modules i.e . if i want to pass some information from one
  module to another and vice versa . any help is greatly appreicated

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: multiple gwt modules

2011-08-11 Thread dreamer
GWT module is a simply a javascript bundle.

I guess you are looking to open a component in another window.

you can use  Window.Open(..).

This gives better info regarding modules

http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules



On Aug 11, 7:38 pm, Daemon Zak saje...@gmail.com wrote:
 hi juan! I'm aware of that ! I want to be able to load a module in a
 new browser window from another module by some action ...say by
 clicking a button

 On Aug 11, 10:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:







  You sure use the module: inherits name='com.google.gwt.user.User' /

  This module is define in gwt-user.jar. Check how is it do. Is this do you
  need?

  2011/8/11 Daemon Zak saje...@gmail.com

   I want to able to load a gwt module from another gwt module  for eg:
   if i click a button ,the new module should be loaded in a new
   browser ,with the same session attributes. how do we communicate
   between modules i.e . if i want to pass some information from one
   module to another and vice versa . any help is greatly appreicated

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-22 Thread Johannes Stein
And how can i track the session id? I can store the sessionId at the
client-side (for users which have cookies disabled), but if they
reload the client-side the sessionId will be lost.
So, what do you think: Will it be a good solution to add the
sessionId into the URL to enable session tracking for users without
cookies enabled? Or is there another way?

Regards

On 18 Mrz., 05:04, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 No. SessionId is create.

 2011/3/17 Johannes Stein johannes.st...@googlemail.com







  Cookies are fine, but what happens if cookies are disabled?
  Then two sessions will be created by the server, or not?

  On 17 Mrz., 12:40, Uemit uemit.se...@gmail.com wrote:
   It depends how session management is done on the client.  If you use
  cookies
   to store the session id it should make no difference as long as you
   communicate with the same domain (Cookies are domain specific).
   If you open gmail in two tabs in your browser you won't have to
  authenticate
   twice only one time right?. Both gmail instances will share the session.

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-22 Thread Johannes Stein
Any ideas? Or would you recommend to use Cookies only?

On 22 Mrz., 16:12, Johannes Stein johannes.st...@googlemail.com
wrote:
 And how can i track the session id? I can store the sessionId at the
 client-side (for users which have cookies disabled), but if they
 reload the client-side the sessionId will be lost.
 So, what do you think: Will it be a good solution to add the
 sessionId into the URL to enable session tracking for users without
 cookies enabled? Or is there another way?

 Regards

 On 18 Mrz., 05:04, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:







  No. SessionId is create.

  2011/3/17 Johannes Stein johannes.st...@googlemail.com

   Cookies are fine, but what happens if cookies are disabled?
   Then two sessions will be created by the server, or not?

   On 17 Mrz., 12:40, Uemit uemit.se...@gmail.com wrote:
It depends how session management is done on the client.  If you use
   cookies
to store the session id it should make no difference as long as you
communicate with the same domain (Cookies are domain specific).
If you open gmail in two tabs in your browser you won't have to
   authenticate
twice only one time right?. Both gmail instances will share the session.

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-22 Thread Juan Pablo Gardella
Read this
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

2011/3/22 Johannes Stein johannes.st...@googlemail.com

 And how can i track the session id? I can store the sessionId at the
 client-side (for users which have cookies disabled), but if they
 reload the client-side the sessionId will be lost.
 So, what do you think: Will it be a good solution to add the
 sessionId into the URL to enable session tracking for users without
 cookies enabled? Or is there another way?

 Regards

 On 18 Mrz., 05:04, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  No. SessionId is create.
 
  2011/3/17 Johannes Stein johannes.st...@googlemail.com
 
 
 
 
 
 
 
   Cookies are fine, but what happens if cookies are disabled?
   Then two sessions will be created by the server, or not?
 
   On 17 Mrz., 12:40, Uemit uemit.se...@gmail.com wrote:
It depends how session management is done on the client.  If you use
   cookies
to store the session id it should make no difference as long as you
communicate with the same domain (Cookies are domain specific).
If you open gmail in two tabs in your browser you won't have to
   authenticate
twice only one time right?. Both gmail instances will share the
 session.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Johannes Stein
But if i have two seperate modules each client will get a different
sessionId from the server (rpc-call), because the servers interprets
each module as a single client!?

On 16 Mrz., 20:00, Johannes Stein johannes.st...@googlemail.com
wrote:
 No ideas?

 On 16 Mrz., 18:58, Johannes Stein johannes.st...@googlemail.com
 wrote:







  Yes, thats right.
  But will it then be possible to make in each module a gwt-rpc-call
  which checks, if the user is logged-in?
  Will the Session be the same, or will each call (from different
  modules) deliver a different session-id?
  And what happens, if the users browser has cookies disabled? Is there
  a way to rewrite the url like in JSP or Servlets?

  On 16 Mrz., 18:47, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:

   The modules is in client side. Session is in the server side.

   Juan

   2011/3/16 Johannes Stein johannes.st...@googlemail.com

hello,

im implementing a little online-game with gwt.
this game contains two modules - one ui for the game itself and a
seperate user-area.
if a user is logged-in into the user-area he should be able to write
comments etc. in the game-gui (the other module).
is it possible to share a http-session between the modules? what could
be a solution?

thanks for any help!

johannes

--
You received this message because you are subscribed to the Google 
Groups
Google Web Toolkit group.
To post to this group, send email to 
google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Uemit
It depends how session management is done on the client.  If you use cookies 
to store the session id it should make no difference as long as you 
communicate with the same domain (Cookies are domain specific).
If you open gmail in two tabs in your browser you won't have to authenticate 
twice only one time right?. Both gmail instances will share the session. 




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Johannes Stein
Cookies are fine, but what happens if cookies are disabled?
Then two sessions will be created by the server, or not?



On 17 Mrz., 12:40, Uemit uemit.se...@gmail.com wrote:
 It depends how session management is done on the client.  If you use cookies
 to store the session id it should make no difference as long as you
 communicate with the same domain (Cookies are domain specific).
 If you open gmail in two tabs in your browser you won't have to authenticate
 twice only one time right?. Both gmail instances will share the session.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-17 Thread Juan Pablo Gardella
No. SessionId is create.


2011/3/17 Johannes Stein johannes.st...@googlemail.com

 Cookies are fine, but what happens if cookies are disabled?
 Then two sessions will be created by the server, or not?



 On 17 Mrz., 12:40, Uemit uemit.se...@gmail.com wrote:
  It depends how session management is done on the client.  If you use
 cookies
  to store the session id it should make no difference as long as you
  communicate with the same domain (Cookies are domain specific).
  If you open gmail in two tabs in your browser you won't have to
 authenticate
  twice only one time right?. Both gmail instances will share the session.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-16 Thread Juan Pablo Gardella
The modules is in client side. Session is in the server side.

Juan

2011/3/16 Johannes Stein johannes.st...@googlemail.com

 hello,

 im implementing a little online-game with gwt.
 this game contains two modules - one ui for the game itself and a
 seperate user-area.
 if a user is logged-in into the user-area he should be able to write
 comments etc. in the game-gui (the other module).
 is it possible to share a http-session between the modules? what could
 be a solution?

 thanks for any help!

 johannes

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-16 Thread Johannes Stein
Yes, thats right.
But will it then be possible to make in each module a gwt-rpc-call
which checks, if the user is logged-in?
Will the Session be the same, or will each call (from different
modules) deliver a different session-id?
And what happens, if the users browser has cookies disabled? Is there
a way to rewrite the url like in JSP or Servlets?

On 16 Mrz., 18:47, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 The modules is in client side. Session is in the server side.

 Juan

 2011/3/16 Johannes Stein johannes.st...@googlemail.com







  hello,

  im implementing a little online-game with gwt.
  this game contains two modules - one ui for the game itself and a
  seperate user-area.
  if a user is logged-in into the user-area he should be able to write
  comments etc. in the game-gui (the other module).
  is it possible to share a http-session between the modules? what could
  be a solution?

  thanks for any help!

  johannes

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-16 Thread Johannes Stein
No ideas?

On 16 Mrz., 18:58, Johannes Stein johannes.st...@googlemail.com
wrote:
 Yes, thats right.
 But will it then be possible to make in each module a gwt-rpc-call
 which checks, if the user is logged-in?
 Will the Session be the same, or will each call (from different
 modules) deliver a different session-id?
 And what happens, if the users browser has cookies disabled? Is there
 a way to rewrite the url like in JSP or Servlets?

 On 16 Mrz., 18:47, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:







  The modules is in client side. Session is in the server side.

  Juan

  2011/3/16 Johannes Stein johannes.st...@googlemail.com

   hello,

   im implementing a little online-game with gwt.
   this game contains two modules - one ui for the game itself and a
   seperate user-area.
   if a user is logged-in into the user-area he should be able to write
   comments etc. in the game-gui (the other module).
   is it possible to share a http-session between the modules? what could
   be a solution?

   thanks for any help!

   johannes

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: One Session(HTTP) for multiple GWT-Modules?

2011-03-16 Thread Juan Pablo Gardella
But will it then be possible to make in each module a gwt-rpc-call
which checks, if the user is logged-in?

Yes, is possible.

Will the Session be the same, or will each call (from different
modules) deliver a different session-id?

I handle this with Spring security, is transparent. If you don't use Spring
security search other threads that explain this.

And what happens, if the users browser has cookies disabled? Is there
a way to rewrite the url like in JSP or Servlets?

I handle this with Spring security, is transparent.

Juan



2011/3/16 Johannes Stein johannes.st...@googlemail.com

 Yes, thats right.
 But will it then be possible to make in each module a gwt-rpc-call
 which checks, if the user is logged-in?
 Will the Session be the same, or will each call (from different
 modules) deliver a different session-id?
 And what happens, if the users browser has cookies disabled? Is there
 a way to rewrite the url like in JSP or Servlets?

 On 16 Mrz., 18:47, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  The modules is in client side. Session is in the server side.
 
  Juan
 
  2011/3/16 Johannes Stein johannes.st...@googlemail.com
 
 
 
 
 
 
 
   hello,
 
   im implementing a little online-game with gwt.
   this game contains two modules - one ui for the game itself and a
   seperate user-area.
   if a user is logged-in into the user-area he should be able to write
   comments etc. in the game-gui (the other module).
   is it possible to share a http-session between the modules? what could
   be a solution?
 
   thanks for any help!
 
   johannes
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Multiple GWT modules are compiling really slow!!

2009-12-11 Thread rjcarr
If I understand what you are saying correctly, then what you describe
is expected.  I think this *might* have changed in GWT 1.7, but I'm
not entirely sure.

If you have one large module then at most all of your code will be
compiled (i.e., translated) once.  However, let's say you have 10
modules and 3 entry points.  If all 3 entry points share, say, 3
common modules, then those common modules will need to be recompiled
for each entry point.  Does this make sense?

On Dec 9, 9:28 am, soc seanocath...@gmail.com wrote:
 Hi,

 I'm currently spliting up my code base (since it has gotten qute
 large) and i have found something odd, that i was wondering if someone
 could clarify?

 I have multiple java projects with GWT modules in each. I then build
 these into a jar  (around 8-9 seperate jars) that can be added to my
 main GWT application's classpath and inherited in the gwt.xml
 descriptor file.

 When i use this approach the compile time is anything up to 200+
 second but if i bundle all the code into my main app it compiles in
 less than 40? Even with the localWorkers flags set i can't get it
 below 200 seconds. I've tried compiling for one browser only and some
 other optimizations but i still can't match the single projects speed
 in compilation. I thought it my be a compiler linking performance
 issue?

 info: GWT 1.7.1

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Multiple GWT modules are compiling really slow!!

2009-12-10 Thread soc
Hi,

I'm currently spliting up my code base (since it has gotten qute
large) and i have found something odd, that i was wondering if someone
could clarify?

I have multiple java projects with GWT modules in each. I then build
these into a jar  (around 8-9 seperate jars) that can be added to my
main GWT application's classpath and inherited in the gwt.xml
descriptor file.

When i use this approach the compile time is anything up to 200+
second but if i bundle all the code into my main app it compiles in
less than 40? Even with the localWorkers flags set i can't get it
below 200 seconds. I've tried compiling for one browser only and some
other optimizations but i still can't match the single projects speed
in compilation. I thought it my be a compiler linking performance
issue?

info: GWT 1.7.1

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Multiple GWT modules and dependencies

2009-07-15 Thread Jan Ehrhardt
Hi,

I'd like to create a page, which requires different GWT applications, but
which is dependent to the logged in user. So it doesn't make any sence to
load one GWT module, which containes hundreds of GWT applications, even when
only two are required.
I know, that I can compile each application on it's own and than dynamically
load the required apps, but this points me to a dependency problem. If I use
HashMap in one application, it will be compiled as other dependencies too
into the application's nocache-file and loaded at runtime, but if I'm using
HashMap in a second application, it will be compiled a second time and the
resulting JavaScript will be loaded into the browser a second time.

This behaviour will make it impossible to create any common libraries, which
are used by all applications.

A simple example would be the following:
I've got an application, which shows some content to the user, so a normal
user will get a slim version of this application. If someone also has admin
rights, he'll be able to open an admin console and now the trouble starts.
The way I would like to go is, the slim version will be loaded and a further
tab for administration will be displayed, but until the admin user opens
this tab, the part of the application, which contains the adminstration *
functionality* shouldn't be loaded. This would allow me to serve the admin
user the slim application as fast as all other users and serve the admin
application on demand. The problem I have is that I want the admin
application to use compiled code allready loaded with the slim version.

E. g. in Dojo JavaScript framework this problem is solved by using dynamic
loading of different JavaScript files.

Is there any way to enable GWT for doing something similar?

Jan Ehrhardt

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Multiple GWT modules and dependencies

2009-07-15 Thread Paul Robinson

If you can use GWT trunk or wait for GWT 2.0, then what you're
describing sounds very much like code splitting and the associated story
of your compile:
http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting

Paul


Jan Ehrhardt wrote:
 Hi,

 I'd like to create a page, which requires different GWT applications,
 but which is dependent to the logged in user. So it doesn't make any
 sence to load one GWT module, which containes hundreds of GWT
 applications, even when only two are required.
 I know, that I can compile each application on it's own and than
 dynamically load the required apps, but this points me to a dependency
 problem. If I use HashMap in one application, it will be compiled as
 other dependencies too into the application's nocache-file and loaded
 at runtime, but if I'm using HashMap in a second application, it will
 be compiled a second time and the resulting JavaScript will be loaded
 into the browser a second time.

 This behaviour will make it impossible to create any common libraries,
 which are used by all applications.

 A simple example would be the following:
 I've got an application, which shows some content to the user, so a
 normal user will get a slim version of this application. If someone
 also has admin rights, he'll be able to open an admin console and now
 the trouble starts. The way I would like to go is, the slim version
 will be loaded and a further tab for administration will be displayed,
 but until the admin user opens this tab, the part of the application,
 which contains the adminstration *functionality* shouldn't be loaded.
 This would allow me to serve the admin user the slim application as
 fast as all other users and serve the admin application on demand. The
 problem I have is that I want the admin application to use compiled
 code allready loaded with the slim version.

 E. g. in Dojo JavaScript framework this problem is solved by using
 dynamic loading of different JavaScript files.

 Is there any way to enable GWT for doing something similar?

 Jan Ehrhardt




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to decouple the application into multiple GWT modules?

2009-07-13 Thread Fred Sauer
Khoa,
You can compile multiple modules into a single GWT output. This is in fact
preferable since you get many savings w.r.t. script size which affect
execution time and download time.

You can have a single module which inherits all the modules you wish to
include on your page. You then compile this single module.

Fred

On Wed, Jul 8, 2009 at 5:56 AM, Khoa Ngo ngovank...@gmail.com wrote:


 Hi all,

 I would like to decouple my application into multiple GWT modules. I
 use a main module to layout the UI structure:

 module rename-to='main'
   inherits name='com.google.gwt.user.User' /
   entry-point class='com.mycompany.MainWindow' /
 /module

 The MainWindow contains a MenuBar with a Home submenu and the
 getMenuBar() method that returns the menubar for child modules to
 reuse.

 Then I would like to create 3 child modules for Articles, Products,
 Contacts.

 module rename-to='articles'
inherits name=com.google.gwt.user.User /
inherits name=com.mycompany.MainWindow /
entry-point class=com.mycompany.articles.Articles /
 /module

 The Articles class will getMenuBar() and add a submenu Articles into
 it.

 module rename-to='products'
inherits name=com.google.gwt.user.User /
inherits name=com.mycompany.MainWindow /
entry-point class=com.mycompany.products.Products /
 /module

 The Products class will getMenuBar() and add a submenu Product into
 it.

 ...

 The problem is that, I can't group 3 modules above into one
 application. If the html page includes 3 generated javascript files, I
 get 3 submenu Home in the page. Because I have main.js that renders
 Home, and two sub modules articles and products that also renders
 Home since it inherits from the main.

 If I just include articles.js then Home isn't duplicated, but I loss
 the products.js.

 Anybody please lets me know if I can design my application following
 such way.

 Thanks and Best Regards,
 Khoa

 



-- 
Fred Sauer
f...@allen-sauer.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to decouple the application into multiple GWT modules?

2009-07-13 Thread Jason Essington

Nope, GWT creates a monolithic javascript payload from all of the  
modules that are inherited by the compiled module.

-jason

On Jul 13, 2009, at 1:49 PM, Sky wrote:


 By following the approach that Fred outlined, does that create
 multiple .js files and do they only get downloaded when the main
 module starts to make use of the other modules?

 On Jul 13, 12:49 pm, Fred Sauer fre...@gmail.com wrote:
 Khoa,
 You can compile multiple modules into a single GWT output. This is  
 in fact
 preferable since you get many savings w.r.t. script size which affect
 execution time and download time.

 You can have a single module which inherits all the modules you  
 wish to
 include on your page. You then compile this single module.

 Fred





 On Wed, Jul 8, 2009 at 5:56 AM, Khoa Ngo ngovank...@gmail.com  
 wrote:

 Hi all,

 I would like to decouple my application into multiple GWT modules. I
 use a main module to layout the UI structure:

 module rename-to='main'
   inherits name='com.google.gwt.user.User' /
   entry-point class='com.mycompany.MainWindow' /
 /module

 The MainWindow contains a MenuBar with a Home submenu and the
 getMenuBar() method that returns the menubar for child modules to
 reuse.

 Then I would like to create 3 child modules for Articles, Products,
 Contacts.

 module rename-to='articles'
inherits name=com.google.gwt.user.User /
inherits name=com.mycompany.MainWindow /
entry-point class=com.mycompany.articles.Articles /
 /module

 The Articles class will getMenuBar() and add a submenu Articles  
 into
 it.

 module rename-to='products'
inherits name=com.google.gwt.user.User /
inherits name=com.mycompany.MainWindow /
entry-point class=com.mycompany.products.Products /
 /module

 The Products class will getMenuBar() and add a submenu Product  
 into
 it.

 ...

 The problem is that, I can't group 3 modules above into one
 application. If the html page includes 3 generated javascript  
 files, I
 get 3 submenu Home in the page. Because I have main.js that  
 renders
 Home, and two sub modules articles and products that also renders
 Home since it inherits from the main.

 If I just include articles.js then Home isn't duplicated, but I  
 loss
 the products.js.

 Anybody please lets me know if I can design my application following
 such way.

 Thanks and Best Regards,
 Khoa

 --
 Fred Sauer
 f...@allen-sauer.com
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to decouple the application into multiple GWT modules?

2009-07-08 Thread Khoa Ngo

Hi all,

I would like to decouple my application into multiple GWT modules. I
use a main module to layout the UI structure:

module rename-to='main'
   inherits name='com.google.gwt.user.User' /
   entry-point class='com.mycompany.MainWindow' /
/module

The MainWindow contains a MenuBar with a Home submenu and the
getMenuBar() method that returns the menubar for child modules to
reuse.

Then I would like to create 3 child modules for Articles, Products,
Contacts.

module rename-to='articles'
inherits name=com.google.gwt.user.User /
inherits name=com.mycompany.MainWindow /
entry-point class=com.mycompany.articles.Articles /
/module

The Articles class will getMenuBar() and add a submenu Articles into
it.

module rename-to='products'
inherits name=com.google.gwt.user.User /
inherits name=com.mycompany.MainWindow /
entry-point class=com.mycompany.products.Products /
/module

The Products class will getMenuBar() and add a submenu Product into
it.

...

The problem is that, I can't group 3 modules above into one
application. If the html page includes 3 generated javascript files, I
get 3 submenu Home in the page. Because I have main.js that renders
Home, and two sub modules articles and products that also renders
Home since it inherits from the main.

If I just include articles.js then Home isn't duplicated, but I loss
the products.js.

Anybody please lets me know if I can design my application following
such way.

Thanks and Best Regards,
Khoa

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---