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.


Re: JSInterop and terse JSNI syntax

2015-02-10 Thread Nuno Graça
You need to enable the flag -XjsInteropMode to use JSInterop.

-- 
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 Material Design

2015-02-09 Thread Nuno Graça


 Yes if we can use any alternative on Jquery and other external resources 
 dont hesitate to tell me. 


There is gQuery, you can have a look into the presentation from GWT.create 
http://gwtquery.github.io/gwt.create-slides/gwtcreate2015/gwtcreate2015.html. 
Have a look.

-- 
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: My CellTable is slow and I don't know why

2013-08-11 Thread Nuno Godinho de Matos
It runs the DevMode main class, ture.
But I am quite certain mvn gwt:run is fueling me the compiled javascript.
The project compilation time is huge for making the gecko_1_3 and safari 
permutations (since I am testing in both chrome and firefox).
What would be the point of compiling all that java into javascript if the 
gwt:run would later not use the compiled javascript.

Moreover, if in the module user.agent property I take away the compilation 
for gecko, when I load the page with firefox I get alarms that there is no 
compiled javascript for my user agent.


What i am going to check out first is weather or not the dead weight of the 
cell table is not related to the DOM structure of my GWT components tree. 
Such as, for example, laying the table within the bootstrap grid model. 
Potentially, each of these nested page components that are being used for 
layout or whatever else, are all like the cell table implementation crowing 
up the application with mouseover, mouseout events. You put the mouse on 
top of a cell table row, and there goes a mouse over buble up to kingdom 
come.

I am considering that It is possible that this drag on performance has to 
do with a by default spamming of dom events. Events running from the 
bottom of the DOM tree up to the very top element, all bubbling and lagging 
up.
So what I am going to try out this time, is to dump the cell table outside 
the overall page layout, so that there aren't any OnWhatever events to 
buble up to.

Let's see if that is is the problem.
And if that is indeed the problem, Christ!, you do have to be ever careful 
with most of the gwt components you use cause they just booby trap the html 
elements with events you did not even know where being played out for you.



On Sunday, August 11, 2013 12:43:43 AM UTC+2, Jens wrote:



 The one triggered by mvn gwt:run is a disaster.
 Mouseout: 176 ms, mouseover 208 ms, according to speed tracer, but it 
 looks even slower.


 gwt:run starts GWT's DevMode which is always a lot slower than compiled 
 JavaScript. You should not measure timings in DevMode. Compile your app to 
 JavaScript and try again.

 -- J.


-- 
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/groups/opt_out.




Re: My CellTable is slow and I don't know why

2013-08-10 Thread Nuno Godinho de Matos

Christ!

I have never seen a hover effect so sluggish (probably because the 
hover/graying effect is being added programatically by CellTable 
implementation code of the mouse out and mouseover).

The online sample goes fast on the browser, 
http://www.gwtproject.org/doc/latest/DevGuideUiCellTable.html

The one triggered by mvn gwt:run is a disaster.
Mouseout: 176 ms, mouseover 208 ms, according to speed tracer, but it looks 
even slower.


I am basically using the standard css from GWT along with the css from 
twitter bootstrap.
I tried both the CellTable from bootstrap and from GWT both are just dead 
slow.
Firefox is considerably faster, but even there you feel the delay for the 
hover effect to show.

The table has the three rows of the example!

At this rate I will just have to extend the cell table and override the 
mouse out and mouseover events to simply do nothing.

I tried removing the bootstrap CSS, which I want to keep, but it also 
seemed to have no effect on the performance.


On Thursday, November 4, 2010 5:45:09 PM UTC+1, Owen Powell wrote:

 It looks like the problem might only exist when you test locally. At 
 least for me, when I upload to AppEngine my table is as responsive as 
 the Showcase table. 

 ~Owen 

 On 3 nov, 18:21, Owen Powell opow...@gmail.com wrote: 
  I checked the CellTable style sheet, it looks fine. But the standard 
  GWT stylesheet (the standard.css resource that gets loaded in my 
  app) contains a dependant style selector table td. 
  
  Could this be my problem? Can the standard style sheet somehow be 
  modified? 
  
  Best, 
  
  ~Owen 
  
  On 3 nov, 18:08, Owen Powell opow...@gmail.com wrote: 
  
  
  
  
  
  
  
   Thanks John, the problem definitely seems to be descendant style 
   selectors (since I see recurring Javascript calls in Speed Tracer). 
  
   But I'm not sure why this is, since I don't have any styles defined in 
   my app. Could it be that the default CellTable style file is creating 
   this problem? 
  
   ~Owen 
  
   On 3 nov, 16:25, John LaBanca jlaba...@google.com wrote: 
  
Have you tried looking at it with SpeedTracer?  We tested with large 
 tables 
(100 rows), and the hover code is pretty straight forward. 
  
In past applications, we've seen performance problems when hovering 
 due 
to descendant style selectors because of the way they are 
 implemented in 
browser. 
  
For example, you have this CSS style defined: 
.myRandomWidget td { 
  padding: 3px; 
  
} 
  
And you have a CellTable that is NOT myRandomWidget, then changing 
 the hover 
style of the row will cause some browsers to walk up from every TD 
 in the 
CellTable trying to match the style definition.  In the degenerate 
 case, 
where CellTable is not myRandomWidget, this means walking up to the 
 body 
element.  This is a native browser implementation, and the only 
 solution is 
to avoid descendant style selectors. 
  
If this isn't the case, SpeedTracer should be able to help you 
 narrow down 
the performance problem. 
  
Thanks, 
John LaBanca 
jlaba...@google.com 
  
On Wed, Nov 3, 2010 at 10:22 AM, Owen Powell opow...@gmail.com 
 wrote: 
 I've only tested it on the latest stable build of Chrome. 
  
 On 3 nov, 14:28, Lukas Herman herni...@gmail.com wrote: 
  My CellTable is slow under Firefox 3.6 only. 
  
  On 3 lis, 14:07, Owen Powell opow...@gmail.com wrote: 
  
   Hi everyone, 
  
   When I make a simple CellTable, the responsiveness of the 
 table in the 
   browser to mouse events (mouseOver, mouseOut) is nowhere 
 nearly as 
   fast as the table in the Showcase (
 http://gwt.google.com/samples/ 
   Showcase/Showcase.html#!CwCellTable). Any ideas why this might 
 be? 
  
   My code is below. Best, 
  
   ~Owen 
  
   // Data object class. 
  
   package tabletest.client; 
  
   import java.util.ArrayList; 
  
   public class InterestingThing { 
  
   public ArrayListString values = new 
 ArrayListString(); 
  
   public InterestingThing(int n) { 
   for (int i=0; in; i++) { 
   values.add(Value  + i); 
   } 
   } 
  
   } 
  
   // Custom CellTable class. 
  
   package tabletest.client; 
  
   import java.util.ArrayList; 
  
   import com.google.gwt.user.cellview.client.CellTable; 
   import com.google.gwt.user.cellview.client.TextColumn; 
  
   public class MyCellTable extends CellTableInterestingThing { 
  
   public MyCellTable() { 
   super(); 
  
   int NUM_COLUMNS = 4; 
   int NUM_ROWS = 25; 
  
   // Create table. 
   for (int i=0; iNUM_COLUMNS; i++) { 
   addTextColumn(i); 
   } 
  
   // Create 

Core Script Injector (faster than its shadow?)

2013-02-17 Thread Nuno Godinho de Matos
Hi,


In an  application that uses Highchats and Bootstrap, the 
com.google.gwt.core.client.ScriptInjector does not seem to be working 
correctly for me. 

Basically, during the onLoad() of my entrypoint, if I try to inject js 
Highcharts.js dependency using the core gwt injector, I end up not 
seing absolutely nothing injected into the Head of the html. 
Though i can see that the Inject Method is tring to put the javascript 
string into the Head... it just does not seem to be there when the module 
loads.

This does not work:

public static void injectHighchartsJavascriptIntoHtmlHead(){
TextResource textResource = HIGHCHARTS_JS_RESOURCE.highchartsJs();
if(!highchartsJsResourceInjected){ 
com.google.gwt.core.client.ScriptInjector.fromString(textResource.getText()).inject();
highchartsJsResourceInjected = true;
} 
}

when the From String completes, automatically the following javascript 
error takes place in the browser:
 

   1. Uncaught TypeError: undefined is not a function 
hosted.html:30http://127.0.0.1:/gwtexpenses/hosted.html?gwtexpenses
  1. (anonymous 
function)hosted.html:30http://127.0.0.1:/gwtexpenses/hosted.html?gwtexpenses
  2. (anonymous 
function)hosted.html:246http://127.0.0.1:/gwtexpenses/hosted.html?gwtexpenses
  3. 
  
@com.google.gwt.core.client.ScriptInjector::nativeAttachToHead(Lcom/google/gwt/core/client/JavaScriptObject;Lcom/google/gwt/core/client/JavaScriptObject;)
  4. 
__gwt_jsInvokehosted.html:76http://127.0.0.1:/gwtexpenses/hosted.html?gwtexpenses
  5. gwtOnLoad
  
  




On the other hand, if I modify my onLoad to instead of calling the Resource 
inject function, I use the non core Bootstrap resource injector:

String javascriptToInject = 
org.moxieapps.gwt.highcharts.client.resources.Resources.getHighchartsJs().getText();
com.github.gwtbootstrap.client.ui.resources.JavaScriptInjector.inject(javascriptToInject);


Well, then I have no problems.
One thing is clear, both mechanisms of populating the head element are 
nothing alike. The core core seems optimized to use native functions,
The bootstrap Script Injector, on the other hand, gets the Header Drom and 
populates using gwt Dom wrappers. In this case, you actually see the point 
in time where your javascript gets injected and that required dependencies, 
e.g. jQuery have also been dumped into the header.

Thanks in advance for any input!

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




curious class class not found exception

2012-10-28 Thread Nuno Godinho de Matos
Presently, when i try to run my gwt application through eclipse I am 
getting a curious:
java.lang.NoClassDefFoundError: 
com/google/gwt/user/client/rpc/RemoteService

The intersting about this exception is that by command line firing a 
gwt:run my project loads and runs just fine.
It is thorugh eclipse, where the classpath is even larger, that the 
exception happens.


After creating a fancy perl script to farm the .jar files and directories 
indicated by oracle visual vm for sun.java.classpath system variable, i was 
able to track that my maven runtime project has this class under the 
following loacations:

Search results are: 
 $VAR1 = {
  
'/home/nmatos/.m2/repository/com/google/gwt/gwt-servlet/2.4.0/gwt-servlet-2.4.0.jar'
 
= [


'com/google/gwt/user/client/rpc/RemoteService.class',


'com/google/gwt/user/client/rpc/RemoteServiceRelativePath.class'

  ],
  
'/home/nmatos/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar' 
= [

  'com/google/gwt/user/client/rpc/RemoteService.class',

  'com/google/gwt/user/client/rpc/RemoteService.java',

  
'com/google/gwt/user/client/rpc/RemoteServiceRelativePath.class',

  
'com/google/gwt/user/client/rpc/RemoteServiceRelativePath.java'

]
};


On the other hand, when I use the google eclipse plugin to lunch the 
com.google.gwt.dev.DevMode , I have an even larger set of jar files 
containing this class (due to overhead jars that originate from automatic 
project configuration triggered by the eclipse plugin):
Search results are: 
 $VAR1 = {
  
'/home/nmatos/Desktop/Applications/eclipse_20121024/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/gwt-servlet.jar'
 
= [


   'com/google/gwt/user/client/rpc/RemoteService.class',


   'com/google/gwt/user/client/rpc/RemoteServiceRelativePath.class'


 ],
  
'/home/nmatos/Desktop/Applications/eclipse_20121024/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201208080121-rel-r42/gwt-2.4.0/gwt-user.jar'
 
= [


'com/google/gwt/user/client/rpc/RemoteService.class',


'com/google/gwt/user/client/rpc/RemoteService.java',


'com/google/gwt/user/client/rpc/RemoteServiceRelativePath.class',


'com/google/gwt/user/client/rpc/RemoteServiceRelativePath.java'


  ],
  
'/home/nmatos/.m2/repository/com/google/gwt/gwt-servlet/2.4.0/gwt-servlet-2.4.0.jar'
 
= [


'com/google/gwt/user/client/rpc/RemoteService.class',


'com/google/gwt/user/client/rpc/RemoteServiceRelativePath.class'

  ],
  
'/home/nmatos/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar' 
= [

 

Re: curious class class not found exception

2012-10-28 Thread Nuno Godinho de Matos
Thanks a lot and well spotted!

What you just said makes all the sense in the world.
I will take a look at my runtime lib folder in while.

Thanks again.


On Sunday, October 28, 2012 5:57:10 PM UTC+1, Jens wrote:

 And gwt-servlet.jar is in your war/WEB-INF/lib folder? 

 In your stack trace you can see: 

 at 
 com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:207)

 which indicates that you are using AppEngine. The IsolatedAppClassLoader 
 JavaDoc states that it isolates the webapp from the DevAppServer and 
 everything on system classpath. I don't know AppEngine but it sounds to me 
 that only libs in WEB-INF/lib are allowed and it does not really matter 
 whats on system class path.

 Maven probably put gwt-servlet.jar automatically into WEB-INF/lib if you 
 have defined a dependency for it.

 -- J.



-- 
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/-/AkFz0i-_LbUJ.
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 tree table data grid?

2012-10-02 Thread Nuno Gonçalves
 I'm also searching for this.

On Thursday, January 26, 2012 10:11:06 PM UTC, CRISTI Stamate wrote:

 Can anyone tell me if exist in GWT the tree table data gid component? 

 I mean by tree table data grid a component that is: 
 - data grid like in GWT 2.4 (fixed header and footer and scrollable 
 content). 
 - content like CellTree (each row can be a tree node). 

 If didn't already exist in GWT 2.4 can be an option for GWT 2.5 ...? 

 Thank you in advanced. 
 CRISTI

-- 
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/-/KbjRaklvwx4J.
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 ui:style how big of a bad idea (or not) is it to use it?

2012-08-09 Thread Nuno Godinho de Matos
Thank you all for your replies,

And In general I tend to agree that you should not promote tight coupling 
between your app functionality and the presentation styles.
On the other hand, Ryan Shillington, JQuery is javascript, but as you know 
most Great Jscript libraries jave wrappers for GWT. That is the case with 
jquery, http://code.google.com/p/gwt-jquery/. So yes, you can use JQuery 
from withing GWT.

Another thing is, 
say, for example that in page that you are rendered you have a list of row 
and each of these rows has a cless ODD or EVEN. Say that you want to hide 
away all ODD rows.
Why would it be best to have your GWT code traverse every single row in the 
set an based on your index % 2 decide weather or not collapse it, than have 
a CSS selector in gwt-jquery kill away all ODD rows?
Much less code!
I would normally live very well wich such a depencency, provided that if 
would be making my code use a CSS resource getter to find out the ODD 
classname.

My kindest regards,
Nuno.


On Saturday, August 4, 2012 11:33:09 PM UTC+2, Joseph Lust wrote:

 To start with CSSResource is awesome and I highly recommend using it. It 
 forces you to program *better*. Should you really be trying to pull 
 elements out of the page depending on their CSS names? Seems like a bad day 
 if you ever want to rebrand or dress up your UI. If CSS is the graphical 
 dressing of the site, separate those concerns from the functional aspects. 
 Further, using those CSSResource interfaces keeps you from ever using 
 string literals in your Java code or UiBinders, which is a best practice.

 Additionally, with UI Automation tests our testers are tempted to use ugly 
 selectors based on class names. This is a poor idea because then a class 
 name changes a year later and 400 tests fail, even though functionally the 
 site works just as well as before.

 The real question here is what you want to do with your CSS. If you want 
 to apply rules the site over, then don't use ui:style, but rather a 
 CSSResource interface. This way that interface can be used by many widgets' 
 UiBinders. However bespoke, small CSS tweaks do fit nicely into ui:style 
 and you can always move them out to a CSSResource interface in the future 
 if you want to use them multiple places. Note, from my experience you 
 cannot well handle CSS inheritance/overriding between widgets with 
 ui:style, but you can with standalone CSSResource interfaces.


 Sincerely,
 Joseph


-- 
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/-/WyVpjyTcYf8J.
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 ui:style how big of a bad idea (or not) is it to use it?

2012-08-04 Thread Nuno Godinho de Matos
Hi,
I am wondering how big a mistake is it to take advantage of the ui:style 
feature in ui binder interfaces?
Say your styles are all comprised within ui:style tags, and you always 
refer to them using the {style.} notation.
Now, on the browser, this shall all become obfuscated after 
gwt:compilation, the style name are not recognizable.
If we were to follow this approach for every style used on the application, 
wouldn't we also lose the potential of navigating the page dom with css 
selectors for example using library such as the Jquery gwt wrapper?
What's the policy here? 
One should never depend on the defined style names for executing, say, 
presentation logic such as collapsing dom elements?




-- 
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/-/scG1vJiEg38J.
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: PlaceController constructor Deprecated

2012-07-29 Thread Nuno Godinho de Matos

On Friday, September 9, 2011 4:01:37 PM UTC+2, Thomas Broyer wrote:

 There must be somewhere in your code where you have a dependency on 
 com.google.gwt.event.shared.EventBus rather than 
 com.google.web.bindery.event.shared.EventBus.

 Oh yes, there is indeed. 
The GWTP plugin in its latest version creates a presenter with  import 
com.google.gwt.event.shared.EventBus; However, the INIT() method placed on 
the GIN module apprently only sets a binding for the 
com.google.web.bindery.event.
shared.EventBus

 

 What happens is: in the absence of a binding, GIN will use a GWT.create() 
 (contrary to Guice which will fail to build the injector), and 
 com.google.gwt.event.shared.EventBus has no deferred-binding rule 
 (replace-with or generate-with) so GWT tries to instantiate it with its 
 zero-arg constructor; but EventBus is abstract, so GWT complains.


-- 
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/-/FZ_0-aCPHWIJ.
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-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.



Large GIN Modules and DevMode performance

2012-05-23 Thread Nuno Rosa
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?

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



{HEX}.cache.html leakage

2011-03-21 Thread Nuno Teodoro
Hi all, I've seen this a problem (or best practice) that should be
addressed which relates with OWASP's GWT presentation where they sate
that:

Are the {HEX}.cache.html files accessible by unauthenticated users?
Is the login functionality implemented using GWT RPC?
If yes, the {HEX}.cache.html file will be leaking out information to
unauthenticated users!

How one should prevent the  {HEX}.cache.html to be accessible by
unauthenticated users?

Best regards

-- 
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 dev mode with pre-installed tomcat

2010-01-08 Thread Nuno
Hello everybody,

I'm implementing gwt on a existing project. and i need to use dev mode with
the already installed tomcat.

Can anybody help me configure this?

I'm using gwt 2.0


Att

Bruno Bilescky

--
Wants to learn Javascript? Read my blog / Quer aprender a programar? leia
meu blog
http://tcninja.blogspot.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-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.



Re: Creating and Importing GWT Independent Modules

2009-08-04 Thread Nuno
How to set that the compiler use the jar from the project A??
i've done everything, but now when i compile the code i get import
com.google.projectA cannot be resolved
if i remove or change the gwt.xml with a different name it complains that it
does not find the xml, so i'm sure it is finding the moduleA gwt.xml

but i cant compile because of this error



Att

Bruno Bilescky

Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog

http://tcninja.blogspot.com




On Mon, Aug 3, 2009 at 8:28 PM, Sumit Chandel sumitchan...@google.comwrote:

 Hi Lucas,
 You can follow the steps below to package an existing module, say module A
 defined in project A, that you want to reuse in another project, say project
 B that defines module B which itself defines an entrypoint class.

 1) Create / move all the GWT code that you want to reuse in project A.

 2) Create / update the module XML file for module A in the normal way,
 except you no longer need to define an entry point class.

 3) Create a JAR for project A (project-a.jar), which should include 1) GWT
 source code that you want to reuse from the project, 2) The module XML file,
 3) Any other public resources referenced by the module XML file,  4) The
 binary .class files for any server-side code that you want to reuse

 4) Add the project-a.jar file to the project B classpath, as well as any
 other launch configurations related to project B (typically hosted mode and
 compile configurations).

 5) Reference the module A xml file from the module B xml file (e.g.
 inherits name=com.google.projectA.ModuleA /). Note that since the module
 A xml file should already include the inherits
 name=com.google.gwt.user.User / inherits tag, you shouldn't need to add
 that reference again to the module B xml file.

 You should be ready to go. Give those instructions a try and let us know if
 you managed to package and reuse your module.

 Hope that helps,
 -Sumit Chandel


 On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins 
 snown...@gmail.comwrote:


 Nope,

 Can anybody give a step-by-step ?

 On 29 jul, 10:49, Nuno brun...@gmail.com wrote:
  you dont need to do much thing for this...
  just create your gwt library project, you dont need to define any
  entrypoints.
 
  after, just click with your right button on your project, then export,
 then
  select java package
 
  after you only need to import
  this jar on the other project you want to use it, and on the module
  xml make reference to the xml of the library.
 
  you can find an example on my blog.http://tcninja.blogspot.com
 
  On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins 
 snown...@gmail.comwrote:
 
 
 
 
 
   I looked it up all over the internet, but I only found this link :
 
  http://developerlife.com/tutorials/?p=229
 
   I need to create a .jar with gwt views (those .java in the client
   package) and then import it to other gwt project, much like they do
   with the SmartGwt api.
 
   How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers
   on how to create and export GWT modules?
 
   I follow the instructions on this link above, but it just doesn't
   work, when I try to compile it, I get an error telling me that the
   compiler couldn't find the class I am using, even the class is on the
 /
   lib dir, and in my buildpath, and in the .xml with a declared inherit.
 
   Does anybody know how do I do that?
 
  --
  Quer aprender a programar? acompanhe:
  Wants to learn GWT? Follow this blog -
 
  http://tcninja.blogspot.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: Creating and Importing GWT Independent Modules

2009-07-29 Thread Nuno
you dont need to do much thing for this...
just create your gwt library project, you dont need to define any
entrypoints.

after, just click with your right button on your project, then export, then
select java package

after you only need to import
this jar on the other project you want to use it, and on the module
xml make reference to the xml of the library.

you can find an example on my blog. http://tcninja.blogspot.com

On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins snown...@gmail.comwrote:


 I looked it up all over the internet, but I only found this link :

 http://developerlife.com/tutorials/?p=229

 I need to create a .jar with gwt views (those .java in the client
 package) and then import it to other gwt project, much like they do
 with the SmartGwt api.

 How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers
 on how to create and export GWT modules?

 I follow the instructions on this link above, but it just doesn't
 work, when I try to compile it, I get an error telling me that the
 compiler couldn't find the class I am using, even the class is on the /
 lib dir, and in my buildpath, and in the .xml with a declared inherit.

 Does anybody know how do I do that?
 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: Setting Background image on panel

2009-07-29 Thread Nuno
but you may be setting the wrong path... unless your css file is located on
the same page as the html...
otherwise you would be looking at:

blablabal/*css*/images/bgleer.jpg from your css
*
*
*and *

blablabal/images/bgleer.jpg from your GWT/html code

On Wed, Jul 29, 2009 at 5:22 AM, Rodrigue Lagoue rlag...@googlemail.comwrote:

 Hi Ed
 at first thanks for your answer.

 1) If yes: then you have your solution as you only have to set the CSS
 name on your widget/panel through for example setStyleName(String).

 it's the first thing i tried. But it didn't work at all. here is a listing
 of the involved part in my css file:

 *.rightPanelReservedZone {*
 * **background-image: url(images/bgleer.jpg);*
 * **background-repeat: no-repeat;*
 * **background-attachment: fixed;*
 * **font-family: Arial, Helvetica, sans-serif;*
 * **font-size: 12px;*
 * **font-style: normal;*
 * **font-weight: normal;*
 * **height: 90%;*
 * **width: 85%;** *
 *}*

 and i then add a new style by calling:


 *//rightPanel.addStyleName(rightPanelReservedZone);*
 * **rightPanel.setStyleName(rightPanelReservedZone);*
 *
 *
 Like you can see, i tried the both methods, but without success.

 I thought it could be a problem with the image's path. But to my surprise,
 i the image was found as i try the following *panel.add(new
 Image(images/pic.jpg))*.





 On Wed, Jul 29, 2009 at 9:38 AM, Ed post2edb...@hotmail.com wrote:


 Do you know how to set the background-image of any html tag, like a
 DIV through CSS?

 1) If yes: then you have your solution as you only have to set the CSS
 name on your widget/panel through for example setStyleName(String).
 2) If not: please have a look at some HTML book how to do this and go
 back to 1)...

 Extra info: go through a a tutorial of GWT, as it's basically the
 first thing they explain..




 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: Client or server?

2009-07-29 Thread Nuno
a class in the client sive can also be used in the server side...just make
it implements Serializable and send it back to the server with the RPC
services.

Also note that as the classes in the client package are going to become
javascript, they don't implement all of the JRE.
That may be also a factor to know if you should put this on the client
package.

On Wed, Jul 29, 2009 at 12:07 PM, maarten.de...@gmail.com 
maarten.de...@gmail.com wrote:


 Hi,

 I'm experimenting with GWT for a couple of weeks now and ran into
 another question.

 The question relates where to put a certain class. Classes in the
 client package are translated into javascript. Classes in the server
 package are executed as java (I'm using App Engine too). Say I'm
 building an app with a little game. I can write the game class at
 client side so that that code can be run at the client, what seems to
 be correct here. At the end of the game, the game should be persisted
 into the datastore. So I make it persistence capable but than the
 class is needed at the server side.

 What should I do now? Put it at server side and use it at client side
 too? In that case, the class needs to be inherited in the .gwt.xml,
 no? Or should I build two seperate classes: just send the data of the
 game to the server and build the data store element from that data to
 store it?

 Some advice would be appreciated :)

 Maarten Decat
 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: Can I invoke RPC Methods from Java

2009-07-29 Thread Nuno
Just to correct something...i dont know if you can call these rpc services
from another java application, but GWT does not use JSON on their RPC calls.
it is possible to work with json, but the default value are serialized
objects.

On Wed, Jul 29, 2009 at 12:11 PM, Trevis trevistho...@gmail.com wrote:


 I'm also pretty new to GWT and your scenario never occurred to me.
 Generally i think that it's probably not the greatest idea to try and
 call the GWT RPC's from a different front end and i've not come across
 anything that would give you a wsdl (or something like a wsdl) that
 you could use from non GWT java app.  But, i cant think of any reason
 why you couldnt make it work.

 The RPC calls are just HTTP Post requests which receive a JSON
 response.  Introducing JSON into a non web app seems like a red flag
 to me but if you really wanted to do it, you should be able to convert
 those into java objects.

 I *think* that a better solution might be to just rewrite a SOAP based
 webservice layer that uses the same code that the GWT services calls.
 That's not a great solution either since it introduces duplication but
 perhaps a better way to go would be to port the logic to a SOAP based
 webservice layer and then call the SOAP service from the GTW RPC
 server so that the logic only exists in one place.

 Just a thought, ymmv.

 On Jul 29, 9:38 am, Steve stever...@gmail.com wrote:
  Hello All,
 
  I'm new to GWT so please forgive me if there is some obvious answer to
  my problem.  I googled around for this information and came up dry.
 
  Here is my problem.  There is an existing GWT Application that I want
  to leverage in a new application that I am building.  This GWT app
  uses RPC.  I was hoping to find a way to call some of its RPCs from a
  seperate non-GWT Java application.
 
  I am more familiar with using SOAP services, which provides a way to
  generate a client from a service description (WSDL).  Is there
  anything similar for GWT's RPC?  If there isn't, does anyone know if
  it is possible to create the POSTs to the GWT servlet by hand? Are
  there any utilities for this?
 
  Thanks,
 
  Steve
 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: Using class on both client and server sides

2009-07-29 Thread Nuno
Also, if you class is just a pojo you dont really need to create it in two
places...
the server code can access all of your client code.
You just need to make the classes you want to transport from client to
server or vice versa.

In your example Contact may stay in the client package, and if you need to
send a Contact object to the server, or make the server
send it to you, just make this class Serializable.


On Wed, Jul 29, 2009 at 12:10 PM, Paul Robinson ukcue...@gmail.com wrote:


 You want this in your gwt.xml file:
source path=client/
source path=shared/

 Note that if any source... element appears in your gwt.xml, then the
 implied client source path is not added for you - so you will need both
 of the above.

 Paul

 Ice13ill wrote:
  Hello,
  I'm trying to use a class (let's say Contact) on both client and
  server sides (packages: com.app.client and com.app.server). For that
  purpose I created a shared package (com.app.shared) in which to put
  the Contact class. But gwt (client side) only sees classes in
  com.app.client package. How can I use the Contact class on client side
  for the com.app.shared package? Do I have to add a inherits tag in
  my .gwt.xml file ?
  Thanks.
 
 

 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: Crux - A web framework built over GWT - Released

2009-07-27 Thread Nuno
Very good work Thiago.
It's always good to see some brazilian work with that much quality.


Realy good work.

[]s

bruno

On Mon, Jul 27, 2009 at 4:43 PM, Thiago tr_bustama...@yahoo.com.br wrote:


 Hi,

 I would like to invite GWT community to know Crux. It is a GWT
 extension that provides a lot of features as:
* Declarative UI;
* Validation engine, based on Java annotations;
* Front Controller approach for server side;
* Automatic value binding between page widgets and controller's
 value objects.

 It is derived from a masters degree dissertation defended in 2008 at
 the Federal University of Minas Gerais (UFMG) - Minas Gerais, Brazil
 and is available as an open source project licensed under APACHE 2.0
 License.

 It can be accessed here: http://code.google.com/p/crux-framework/

 Thanks,

 Thiago Bustamante

 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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 convert an EntryPoint object into a Composite object.

2009-07-24 Thread Nuno
you may give a look at this
pagehttp://tcninja.blogspot.com/2009/07/composites-when-you-need-to-group.html
to
learn a little more about composites.

On Fri, Jul 24, 2009 at 7:07 AM, Baskar baskarani...@gmail.com wrote:


 I am new to GWT RPC application. I have downloaded the GWT plugin for
 eclipse and did a sample GWT java product and defined a module which
 contains the following three screens:
 1, Login Screen
 2, Main Screen, which contains menu bar and tool bar options and
 3, A master screen, ie., Item Master, which is a Composite screen

 I have looked the demos on the following webpage:
 http://www.gwt-ext.com/demo/#buttons

 I took the SimpleButtons source and trying to add in my project as a
 Composite. It's presently as an EntryPoint object, but I have already
 an entry point in my application. I need to add as a Composite and
 also need to invoke from the Main Screen based on the appropriate menu
 selection.

 Any can help providing a snippet of code or relevant documentation
 link?

 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: Interface not RPC serializable

2009-07-21 Thread Nuno
Don't you also need to do:

class POJO extends Serializable ?

I got many alerts about this in my classes.

On Tue, Jul 21, 2009 at 3:51 PM, Juraj Vitko juraj.vi...@gmail.com wrote:


 I'm trying to RPC-send an interface member in a POJO - all types
 implementing this interface are Enums (see the example below please).

 Now, the application works 100% in both hosted and web modes, but the
 Java to JavaScript compiler complains about the POJO object, that the
 MyIFace is not RPC-serializable. (was not serializable and has no
 concrete serializable subtypes)

 Any ideas how to get rid of that compiler warning? I'm using GWT 1.6
 for the time being.


 class POJO {  //this object is sent via the RPC
  MyIface iface;
 }

 interface MyIface extends IsSerializable {
  MyIface[] getVals(String param);
 }

 enum MyEnum implements MyIface {
   one(1),
   two(2);

   private MyEnum(String s) { this.s = s; }
   private MyEnum() { }

   private String s;

   MyIface[] getVals(String param) {
  return MyEnum.values();
   }
 }
 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: Creating Stand Alone Composite??

2009-07-19 Thread Nuno
If you create a new project with a module, dont add any entrypoint to this
module.Then create all the composites you want in this module.

after you may create a jar file of this project (to use anywhere) or you can
just import this project into yours (click properties - java build path -
projects and add your project - if you have the jar file click on libraries
and add the jar.)

Then just go to your gwt.xml file and add a line like:

inherits name=path.to.your.gwt.xml.File/
the File is the name of the gwt.xml file.

example: if the path to gwt.xml file is:

com.test.toolkit.Toolkit.gwt.xml

put: = com.test.toolkit.Toolkit


This way, you can create many modules in the toolkit project, and group the
composites by functionality.

[]s,

Bruno BIlescky



On Sat, Jul 18, 2009 at 11:40 PM, ToddP todd.prick...@gmail.com wrote:


 I'm trying to create a stand alone composite widget and am totally
 clueless as to how. I want to create a widget that will be able to be
 used in any of my multiple GWT modules.

 Every example on the web that I can find defines the composite in the
 same module that displays the composite.  I need to see an example of
 two modules, one defining the composite and one that consumes the
 composite.

 If anyone has an example or can point to a web article showing how,
 I'd GREATLY appreciate it.

 TIA

 



-- 
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

http://tcninja.blogspot.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: GWT client side annotations

2009-07-18 Thread Nuno
For what i know GWT has no support for reflection... i think you may get the
class name from the getClass() method.

On Fri, Jul 17, 2009 at 8:24 PM, Gianluigi dava...@yahoo.it wrote:




 Hi to all, it's first time that i try to use annotation in client side gwt
 application, i tried to compile that code:

 @Target( { ElementType.TYPE })
 @Retention(RetentionPolicy.RUNTIME)
 @interface MyAnn {
String value() default ;
 }

 @MyAnn(value=foo1)
 class B {}

 public class MyAnnotation {

public MyAnnotation() {}

public static final void foo() {

B b = new B();

MyAnn ann = b.getClass().getAnnotation(MyAnn.class);
GWT.log( + b.getClass().isAnnotationPresent(MyAnn.class), null);

}
 }

 but when the GWT compiler reach getAnnotation OR isAnnotationPresent say to
 me an error like this:

 [ERROR] Line 31: The method isAnnotationPresent(ClassMyAnn) is undefined
 for the type Classcapture#1-of ? extends B

 What's wrong with my code? thanks for any hint
 Gian




 



-- 
Quer aprender a programar? acompanhe: http://tcninja.blogspot.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
-~--~~~~--~~--~--~---