Re: The point of splitting application into multiple modules

2016-02-24 Thread Francesco Calabri
First of all, thanks a lot for you answers.
 

> So overall I would save "massive performance loss" is clearly overstating 
> and I am pretty sure you don't have numbers to correct me ;-)
>

You're right, that's only what i've read in many places about the topic.
 

> Well and as you said the most prominent use case is to be able to build 
> libraries.
>

Probably some kind of linker that separate the fragments in a way that is 
clear what has been updated and lets you replace only the updated 
fragments... I don't know... Certainly having different output folders for 
the modules was misleading.


However for your use case you have to adopt the Turducken pattern: 
> http://de.slideshare.net/RobertKeane1/turducken-divide-and-conquer-large-gwt-apps-with-multiple-teams.
>  
> 
>

Yes, I've seen these slides but the iframe thing isn't really what I 
wanted.. I'll stay with the monolithic app.

Thanks again

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


The point of splitting application into multiple modules

2016-02-22 Thread Francesco Calabri
Hi all,
i was thinking of ways to break a big large GWT application into multiple 
modules to be able to develop modules independently.
I've read some things in the forum and in the documentation but I'm still 
quite confused.

The ideal solution:
Have a core/main shell module with the menu and one module for each 
application view.
All this should run in the same url with the same session.
Each view module should be loaded when needed: if the user clicks on the 
menu, the relative module is loaded (something like split points).
Some state/session information initialized in the main module should be 
available in the sub modules.
Most important: I should be able to edit one submodule and update only that 
part of the application, having it updated the next the user requests that 
submodule, possibly without the need to trigger a deploy, but simply 
swapping the output of that module.

I've tryed to split my code into modules, having the main inherits the 
submodules and lauching them from the menu.
Soon I realized that even if I compile the submodules separately, any 
change made to a submodule will be visible only if I compile the main 
module, and the sunmodule output in never really used.

For what I understood, if I would like to go further in splitting logic 
into modules I should load the submodules "manually" by using them into an 
iframe (and have some published javascript objects from the main module 
read to achieve communication and information sharing between modules).
Unfortunately this leads to massive performance loss since the monolithic 
js is way better and more optimized.

So, other than creating gwt-legit libraries, what's the point of multiple 
modules?

Thanks

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Custom CellTree Recources

2014-04-16 Thread francesco . calabri
Hi Jens,

An easy fix for GWT without implementing the appearance pattern would be to 
> let cell widgets use a resource bundle factory. That factory can then be 
> replaced with deferred binding.


thanks for the hint.

-- 
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: Custom CellTree Recources

2014-04-16 Thread francesco . calabri
Hi Rogelio,
thanks for you response.

I know that I can pass a custom resources instance to the constructor. I've 
done this many times and works fine.

What I was trying to do is to create a seprate module that contains all my 
styles, let's say a *theme*, and simply by inheriting this module in my 
applications apply these styles by default (like it would by changing to 
Standard theme to Dark theme).

I think that CellTree should implement the Appearance pattern 
(https://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets#Appearance_Pattern),
 
as well as all others cell widgets. Maybe I'll file an issue on this tipic 
'cause I can't find one and also can't find a roadmap that says "we are 
planning to implement the appearance pattern on all widgets for release 
X.Y.Z".

My question is if there is an alternative to changing the sources to let 
celltree implement the appearance pattern.


Il giorno martedì 15 aprile 2014 17:27:13 UTC+2, Rogelio Flores ha scritto:
>
> I don't know of a way to replace the default styles (other than extending 
> the class) except by providing our custom styles in the constructor. So 
> what we do is sometimes we extend the class to provide it's own styles + 
> custom behavior, or if we only need different styling, create custom 
> Resources, and then provide it in the constructor:
>
> CellTree tree = new CellTree(viewModel, 
> rootValue,myCustomCellTreeResourcesInstance
> );
>
> On Thursday, April 3, 2014 5:14:14 AM UTC-4, francesc...@gmail.com wrote:
>>
>> Hi everyone,
>>
>> I'm trying to write my own theme to inherit in my gwt applications.
>> I started out replicating the structure below the 
>> "com.google.gwt.user.theme.standard" package in a project under 
>> "com.mytheme" and editing some css rules in stanrdard.css. Exported all 
>> this in a jar and inherited the module "com.mytheme.Standard" in a GWT app. 
>> Evenerything works fine, my custom css is loaded and evaluated. Great.
>>
>> Then I want to customize the style of the CellTree Widget (note, not just 
>> one cell tree in my gwt app, but all cell trees).
>>
>> In CellTree.java I see that cell tree styles are loaded through
>> public  CellTree(TreeViewModel viewModel, T rootValue) {
>> this(viewModel, rootValue, getDefaultResources());
>>   }
>>
>> private static Resources getDefaultResources() {
>> if (DEFAULT_RESOURCES == null) {
>>   DEFAULT_RESOURCES = GWT.create(Resources.class);
>> }
>> return DEFAULT_RESOURCES;
>> }
>>
>> where Resources is a ClientBundle interface inside CellTree.java with a 
>> reference to a CssResource
>> public interface Resources extends ClientBundle {
>>
>> ...
>>
>> @Source(Style.DEFAULT_CSS)
>> Style cellTreeStyle();
>> }
>>
>> @ImportedWithPrefix("gwt-CellTree")
>> public interface Style extends CssResource {
>> 
>> String DEFAULT_CSS = 
>> "com/google/gwt/user/cellview/client/CellTree.css";
>>
>> String cellTreeEmptyMessage();
>>
>> String cellTreeItem();
>> 
>> ...
>> }
>>
>> My question is: how do i change the pointed css file?
>> I tought about a replace-with rule, to replace Resources with 
>> CustomeCellTreeResources like this:
>> import com.google.gwt.user.cellview.client.CellTree;
>>
>> public interface CustomCellTreeResources extends CellTree.Resources {
>>
>> @Override
>> @Source("CustomCellTree.css")
>> public CellTree.Style cellTreeStyle();
>>
>> }
>>
>> but replace-with mechanism works only for concrete classes.
>>
>> Con you tell me how to do this?
>> Thanks
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Custom CellTree Recources

2014-04-03 Thread francesco . calabri
Hi everyone,

I'm trying to write my own theme to inherit in my gwt applications.
I started out replicating the structure below the 
"com.google.gwt.user.theme.standard" package in a project under 
"com.mytheme" and editing some css rules in stanrdard.css. Exported all 
this in a jar and inherited the module "com.mytheme.Standard" in a GWT app. 
Evenerything works fine, my custom css is loaded and evaluated. Great.

Then I want to customize the style of the CellTree Widget (note, not just 
one cell tree in my gwt app, but all cell trees).

In CellTree.java I see that cell tree styles are loaded through
public  CellTree(TreeViewModel viewModel, T rootValue) {
this(viewModel, rootValue, getDefaultResources());
  }

private static Resources getDefaultResources() {
if (DEFAULT_RESOURCES == null) {
  DEFAULT_RESOURCES = GWT.create(Resources.class);
}
return DEFAULT_RESOURCES;
}

where Resources is a ClientBundle interface inside CellTree.java with a 
reference to a CssResource
public interface Resources extends ClientBundle {

...

@Source(Style.DEFAULT_CSS)
Style cellTreeStyle();
}

@ImportedWithPrefix("gwt-CellTree")
public interface Style extends CssResource {

String DEFAULT_CSS = "com/google/gwt/user/cellview/client/CellTree.css";

String cellTreeEmptyMessage();

String cellTreeItem();

...
}

My question is: how do i change the pointed css file?
I tought about a replace-with rule, to replace Resources with 
CustomeCellTreeResources like this:
import com.google.gwt.user.cellview.client.CellTree;

public interface CustomCellTreeResources extends CellTree.Resources {

@Override
@Source("CustomCellTree.css")
public CellTree.Style cellTreeStyle();

}

but replace-with mechanism works only for concrete classes.

Con you tell me how to do this?
Thanks


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.