compilation-mappings.txt

2015-04-21 Thread Nuno R
Hi.

In my project, GWT outputs a compilation-mappings.txt and 
modulename.devmode.js files.
I think they shouldn't be needed in production, is there a way to configure 
(e.g. compiler flag) so that those files aren't generated?

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


JSONPath

2015-02-24 Thread Nuno R
Hello.

Does anyone know a GWT library that supports JSONPath queries at runtime? 
I don't know the desired JSONPath expression at compile time (it's a 
configuration kept on the server), so i think any solution relying on GWT 
generators doesn't fit my use case.

Thank you,
Nuno

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


JSInterop and terse JSNI syntax

2015-02-10 Thread Nuno R
Hi.

Ray's talk, Deep Dive in JsInterop 
https://drive.google.com/file/d/0B3ktS-w9vr8IN3d6UUNyWTJIOTQ/view, shows 
an example to write terse JSNI syntax without the need to write native 
methods. Is this already available on 2.7.0?

String helloWorld = js(“$0 + $1”, “Hello”, “World”);

I found the JsInterop annotations but not the *js()* method.

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


Handling mouse events in capture phase

2014-05-09 Thread Nuno R
Hi.

Is there a GWT API to add an event handler to a widget in the capture 
phase? 
The equivalent to the following javascript:

target.addEventListener('touchstart', handler, true);

I know of Event.addNativePreviewHandler() but do not think that it fits 
easily to my use case (without handle every single event in the application)
** I want to catch mouse events on a parent widget and avoid to target 
child ones and still be able to normally handle mouse events on other 
widgets in the screen.*

Best regards,
Nuno Rosa

-- 
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: Large GIN Modules and DevMode performance

2012-05-25 Thread Nuno R
The startup time improved while breaking down into smaller parts,  but this 
explode the number of source to maintain only related with dev env.

After a couple of tests it seems the environment has big impact, I'm using 
a windows 7 machine and after a defrag startup time improved significantly 
and are now more closer to the results in a Linux environment that it is 
still faster then w7. 

On Thursday, May 24, 2012 8:58:06 AM UTC+1, Thomas Broyer wrote:



 On Thursday, May 24, 2012 4:25:34 AM UTC+2, Nuno R wrote:

 Hi,

 At the moment we've a large scale application that reached a bottleneck 
 at DevMode startup time.
 It takes ~120s to hit onModuleLoad() call and spends most of the time 
 generating and compiling GIN Injector ~85%.

 Our best result was to target gwt-UnitCache to a virtual disk in RAM, 
 this speeded things up but still not under 90s to reach onModuleLoad().
 Does exist any other way to improvide GIN processing without trying to 
 isolate groups of screens on their own GWT modules (by consequence smaller 
 GIN modules) and run only the one a developer is working on.
 I think we could not reach an acceptable startup time (20s) without it.

 This only brings some small concerns about mantaining dev mode code only 
 (besides gwt.xml files), at least ActivityMapper, HistoryMapper and GIN 
 module to switch.


 How do you tackle this issue on your large scale projects?


 FYI, the Wave team recommended (2 years ago) creating harnesses; i.e. 
 smaller standalone apps.
 In Wave, they made an EditorHarness for their operation-transform-aware 
 rich-text editor and an UndercurrentHarness for the wave panel (the one 
 that displays a wave, with threaded wavelets, and incremental data and 
 feature loading).
 In your case, create small and modular GinModules, and small EntryPoints 
 and Ginjectors specific to a particular set of screens.

 http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html
  (starts 
 around 42:30 in the video)




-- 
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/-/VbVHkpIYEpkJ.
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: adding eclipse/GWT/app engine project to version control (git)

2012-05-25 Thread Nuno R
Take a look at a maven setup.

Don't need to keep in the repository any files related with IDE 
configuration or project dependencies.
http://maven.apache.org/plugins/maven-eclipse-plugin/ 
http://mojo.codehaus.org/gwt-maven-plugin/ 
After cloning a repo running *maven eclipse:eclipse* generates all the 
configuration files needed by eclipse for a successful import.

Example:
https://github.com/dankurka/mgwt/blob/master/pom.xml 

On Friday, May 25, 2012 10:54:51 PM UTC+1, Michael wrote:

 After looking around on here and the web I found conflicting 
 information about what should be version controlled in a eclipse/app 
 engine/gwt project.  So I played around a bit and wanted to share what 
 I found to work for us. We are using git, but this information is very 
 quickly transferred to any version control.  I stated by using 
 eclipses create web application wizard.  I want to share this project 
 and it's settings among a few developers so I source control 
 the .settings folder which has eclipse project settings. 

 My .gitignor file is (files and directories that are not version 
 controlled): 
 /gwt-unitCache 
 /test-classes 
 /war/projectname 
 /war/WEB-INF/deploy 
 /war/WEB-INF/classes 

 I needed the /test/projectname directory for eclipse not to give me an 
 error (I don't know why though) so to source control that I just put 
 an empty .gitignor file there.  Git won't source control an empty 
 directory. 

 That's it.  This has been working for us for a couple weeks now.  We 
 don't seem to be including any files that a GWT compile and app engine 
 deploy create.  We are also just able to clone the repo and import the 
 project right in to eclipse and we can compile. 

 I am open to other suggestions, or anything we may be missing. 

 Michael 



-- 
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/-/2b7kh38jmLEJ.
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: Large GIN Modules and DevMode performance

2012-05-24 Thread Nuno R
Thanks Thomas, that was what i suspected.

On Thursday, May 24, 2012 8:58:06 AM UTC+1, Thomas Broyer wrote:



 On Thursday, May 24, 2012 4:25:34 AM UTC+2, Nuno R wrote:

 Hi,

 At the moment we've a large scale application that reached a bottleneck 
 at DevMode startup time.
 It takes ~120s to hit onModuleLoad() call and spends most of the time 
 generating and compiling GIN Injector ~85%.

 Our best result was to target gwt-UnitCache to a virtual disk in RAM, 
 this speeded things up but still not under 90s to reach onModuleLoad().
 Does exist any other way to improvide GIN processing without trying to 
 isolate groups of screens on their own GWT modules (by consequence smaller 
 GIN modules) and run only the one a developer is working on.
 I think we could not reach an acceptable startup time (20s) without it.

 This only brings some small concerns about mantaining dev mode code only 
 (besides gwt.xml files), at least ActivityMapper, HistoryMapper and GIN 
 module to switch.


 How do you tackle this issue on your large scale projects?


 FYI, the Wave team recommended (2 years ago) creating harnesses; i.e. 
 smaller standalone apps.
 In Wave, they made an EditorHarness for their operation-transform-aware 
 rich-text editor and an UndercurrentHarness for the wave panel (the one 
 that displays a wave, with threaded wavelets, and incremental data and 
 feature loading).
 In your case, create small and modular GinModules, and small EntryPoints 
 and Ginjectors specific to a particular set of screens.

 http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html
  (starts 
 around 42:30 in the video)




-- 
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/-/3abJaEygYg8J.
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: GWT Designer Issues

2011-08-16 Thread Nuno R
1. Has suggested, opened an issue describing the problem (sample
project attached).
http://code.google.com/p/google-web-toolkit/issues/detail?id=6693

2. I assumed GWT Designer would setup a Dev Mode environment, i.e.
UiBinder code is already generated and permutation done.
I will look into *.wbp-component.xml files and see if i can figure it
out.

Thanks,
Nuno R.

On 5 Ago, 21:49, Konstantin Scheglov scheg...@google.com wrote:
 Official way for handling exception in GWT Designer is creating error report
 (as suggested by error page) and creating new issue, with report attached.
 In other case this will lead to discussions give us this file, show log,
 etc.
 Be wise and attach enough information, which may be useful, such as
 module.gwt.xml files.

 2. Yes, GWT Designer supports @UiField(provided=true). But as you
 understand, there are no magic. GWT Designer can not know that this
 interface should be replaced with that class.
 So, you should help it, by writing script to create instance.
 See for example CellList.wbp-component.xml in GWT Designer plugin (in
 wbp-meta folder).

      parameter name=UiBinder.createInstance![CDATA[
     import com.google.gwt.cell.client.TextCell;
     import com.google.gwt.user.cellview.client.*;
     list = new CellList(new TextCell());
     list.setRowData(0, {'1. Item', '2. Long item', '3. Even longer item',
 '4. Item', '5. Long item'});
     list.setRowCount(5);
     return list;
     ]]/parameter

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



GWT Designer Issues

2011-08-05 Thread Nuno R
Hi, i'm having some issues with GWT Designer. [last beta]
http://code.google.com/intl/pt-PT/webtoolkit/tools/download-gwtdesigner-beta.html

1. When using a property provider to allow deferred binding rules
creation, GWT Designer says it can not find the property.
I'm using the same FormFactor provider present in the mobile example
showed at Google IO.
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/src/com/google/gwt/sample/mobilewebapp/FormFactor.gwt.xml?r=10041

The error = http://pastie.org/2326151

2. Another unrelated issue (i think).
Does the last GWT Designer support @UiField(provided=true)?
I always get the following error: http://pastie.org/2326089


Does anyone one have stumbled on this before?

Thanks in advance,
Nuno

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



Compiler Deprecated warnings

2011-06-21 Thread Nuno R
Hi,

I'm using SDK 2.1.0 on a project and using incubator (gwt-
incubator-20101117-r1766.jar) for the FastTree widget.
When i compile the project, compiler throws deprecated warnings on
widgets that aren't used on the project code.
As all i can see, FastTree and FastTreeItem doesn't have any reference
to it also.

Why is compiler throwing this warnings? Does the GWT compiler validate
all classes inside de incubator jar?


com/google/gwt/widgetideas/client/impl/GlassPanelImpl.java
deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl’
deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl’

com/google/gwt/widgetideas/table/client/
FixedWidthGridBulkRenderer.java
 Line 122: deprecated class
com.google.gwt.widgetideas.table.client.overrides.HTMLTable’

com/google/gwt/widgetideas/table/client/GridBulkRenderer.java
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable’
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable'

com/google/gwt/widgetideas/table/client/TableBulkRenderer.java'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable’

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