Re: [gwt-contrib] Re: SDM + gin + generated GinModule not working well together

2014-11-26 Thread Nicolas Morel
(and incidentally GINs generator is called) before EntryPointGenerator is called. I would expect the first entry point to be traversed at first, even if it means calling a generator. On Sunday, November 16, 2014 3:56:20 PM UTC-5, Nicolas Morel wrote: Hi, I'm currently testing GWT 2.7.0-rc1

[gwt-contrib] SDM memory footprint

2014-11-16 Thread Nicolas Morel
Hi, I'm currently trying to migrate a big project at work from GWT 2.5.1 to 2.7.0 to test the new SDM. Even if the recompile took 1-2 min on 2.5.1, the SDM was working with -Xmx 1200m. It is already a lot of memory but was manageable. Now with 2.7.0-rc1, I have to increase it to -Xmx 1800m

Re: [gwt-contrib] SDM memory footprint

2014-11-16 Thread Nicolas Morel
at 11:23 AM, Nicolas Morel nmr@gmail.com javascript: wrote: Hi, I'm currently trying to migrate a big project at work from GWT 2.5.1 to 2.7.0 to test the new SDM. Even if the recompile took 1-2 min on 2.5.1, the SDM was working with -Xmx 1200m. It is already a lot of memory

[gwt-contrib] SDM + gin + generated GinModule not working well together

2014-11-16 Thread Nicolas Morel
Hi, I'm currently testing GWT 2.7.0-rc1 and one of my project using GWTP Rest-Dispatch https://github.com/ArcBees/GWTP/wiki/Rest-Dispatch is not working under SDM. The compilation fails with this error : [ERROR] Unable to load gin module type

Re: Use of reflection inside generator

2014-06-22 Thread Nicolas Morel
I looked at annotation processor but there is one thing that is bothering me for my use case. If I have something like this : @GenMapper public interface PersonMapper extends JsonMapperPerson {} or @GenMapper public class Person{ public Child child; } First compilation, my processor is

Use of reflection inside generator

2014-06-21 Thread Nicolas Morel
Hi, Is there any issue using java reflection inside a GWT generator ? I feel like it's a bad practice but it could greatly simplify a generator I'm working on. I first started using JClassType and such but I'm rewriting a lot of stuff I can have for free by using the existing library I'm

Re: Use of reflection inside generator

2014-06-21 Thread Nicolas Morel
Great, thanks :) I still need to find time to look at IncrementalGenerator. Currently, I'm using GeneratorContext.tryCreate() and if it returns null, I'm not generating the class. What do you mean by global information ? Le samedi 21 juin 2014 18:31:47 UTC+2, Jens a écrit : I don't think

Re: Use of reflection inside generator

2014-06-21 Thread Nicolas Morel
Type information across multiple GWT modules / about the whole project, e.g. find all implementations of an interface. SDM with incremental compile will compile each GWT module on its own. If a GWT module defines a generator that requires global knowledge this module compiles slower.

Re: Deployment of GWT application on free web hosting sites

2014-06-18 Thread Nicolas Morel
I know at least two free hosting site which worked for me : Google App Engine https://developers.google.com/appengine/?csw=1 and CloudBees http://www.cloudbees.com/run I think Heroku https://www.heroku.com/ also have a free plan. Le mercredi 18 juin 2014 11:44:27 UTC+2, Vassilis Virvilis a

NPE when generating a RequestContext with a Map

2014-02-05 Thread Nicolas Morel
Hello, I wanted to test the new Map support in RF with GWT 2.6.0 and my first test failed :( Here is my RequestContext : @Service( MyService.class ) public interface MyServiceContext extends RequestContext { RequestMapInteger, Integer getMap(); } When I compile, I have this

Re: Generator - Best way to support custom user extension

2013-12-05 Thread Nicolas Morel
Is it not easier to use the TypeOracle to find CustomFieldSerializer JClassType and get all its subtype with JClassType.getSubtypes() ? This way you can put your custom serializers anywhere with the name you like. I am not 100% sure but I think in older GWT versions a

Generator - Best way to support custom user extension

2013-12-04 Thread Nicolas Morel
Hi, I'm writing a JSON serialization/deserialization mechanism and I'm looking for advices :) Currently, to use it, you do something like : public interface PersonMapper extends ObjectMapperPerson {} PersonMapper mapper = GWT.create(PersonMapper.class); And the library is generating the

Re: Generator - Best way to support custom user extension

2013-12-04 Thread Nicolas Morel
Thanks for your answer! GWT-RPC does this by convention. The custom serializer must be in the same package as the class it (de)serializes and is named class name_CustomFieldSerializer, e.g. ImmutableSet_CustomFieldSerializer. Is it not easier to use the TypeOracle to find

Re: DataGrid and EditTextCell in sub rows problem

2012-12-09 Thread Nicolas Morel
Hello, This is because the renderCell in AbstractCellTableBuilder is giving the same cellId to your root row cell and sub row cell. I had to do this for a project so I extracted what I did and put it in a sample here : https://github.com/nmorel/gwt-celltable-subrows I couldn't find a better

Re: DataGrid and EditTextCell in sub rows problem

2012-12-09 Thread Nicolas Morel
dimanche 9 décembre 2012 12:59:36 UTC+1, Nicolas Morel a écrit : Hello, This is because the renderCell in AbstractCellTableBuilder is giving the same cellId to your root row cell and sub row cell. I had to do this for a project so I extracted what I did and put it in a sample here