any chance to get FF15 dev plugin

2012-08-28 Thread koma
using chrome for now...

-- 
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/-/R965dSWzURkJ.
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: FF DevMode plugin + Memory leaks (+ "Address already in use")

2012-08-28 Thread Brian Slesinsky
Reproduced the thread leak in the Firefox 15 release that I'm working on. 
(On a Mac; using jps to list the threads.)

On Tuesday, August 28, 2012 3:31:10 PM UTC-7, Chris Lercher wrote:
>
> Yes. I disabled all Add-Ons: All Extensions (except for the GWT Extension) 
> and all Plugins, and restarted Firefox.
>
>
> On Wednesday, August 29, 2012 12:12:03 AM UTC+2, Brian Slesinsky wrote:
>>
>> Does the connection leak happen with all plugins (other than GWT) 
>> disabled?
>>
>>

-- 
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/-/Q7LNeHh71V0J.
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: Cloning EntityProxies

2012-08-28 Thread El Mentecato Mayor
This works! Thanks.
(just wanted to state that for the record).

On Thursday, April 12, 2012 11:57:27 AM UTC-4, gwtomni gwtomni wrote:
>
> try with this:
>
>
> AutoBean oldBean = AutoBeanUtils.getAutoBean(oldProxy);
> AutoBean newBean = AutoBeanUtils.getAutoBean(newProxy);
> AutoBeanCodex.decodeInto(AutoBeanCodex.encode(oldBean), 
> newBean);
> newProxy = newBean.as();
> context.edit(newProxy);
>

-- 
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/-/l09JgT65m-cJ.
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: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light

2012-08-28 Thread James
Would you give the detail about how to handle history using GIN, Activity 
and Place.  Is it possible to implement GWT-platform way?

Thanks,

James,

On Tuesday, August 28, 2012 10:12:43 AM UTC-4, Derek wrote:
>
> Hi Seth,
>
> I personally am not a fan of Spring. I'm generally not a fan of anything 
> that says, "First, create a bunch of XML files" (GWT excepted :) ). That's 
> why I gravitated to Guice for all my DI needs. That said, Guice and Spring 
> aren't quite the same thing, and you could leverage both of them.
>
> However, it is probably unnecessary to do both Guice and Spring in a GWT 
> app. You can do anything with one DI framework that you can do with the 
> other, and if you are leaning to Spring, you make a fine choice and you can 
> ignore the rest of my post.
>
> At my workplace, the way we do GWT projects is we create a WebXml.java in 
> the server package that implements GuiceServletContextListener and point 
> the web.xml to that class. The WebXml contains servlet mapping modules, db 
> connection modules, and other Guice modules as needed.
>
> On the client side, we generally use MVP structure with GIN. The MVP 
> structure is a lifesaver for large projects in my mind. Our more recent 
> projects have used the Activity and Places framework described on GWT's 
> website with the main exception that the ClientFactory object is 
> unnecessary since GIN provides the various resources instead of 
> ClientFactory.
>
> At my work we've got two projects that clock in around 34k and 46k lines 
> of Java (not including XML or other artifacts) as well as smaller projects 
> and they use the methodology I described.
>
> Derek
>
> On Monday, August 27, 2012 5:18:13 PM UTC-4, GWTter wrote:
>>
>> Hi Derek,
>>
>> Thanks a lot for the reply. I did consider Guice for DI on the serverside 
>> but not sure if it would be redundant if using a framework like Spring. I 
>> do want to utilize RF though as it has a nice set of features which I'd 
>> like to include, e.g. caching and only delta posts. And I'll definitely 
>> take a look at GIN again since DI on my clientside might be pretty nice 
>> too. Thanks again,
>>
>> -Seth
>>
>> On Monday, August 27, 2012 4:05:05 PM UTC+2, Derek wrote:
>>>
>>> I use Guice on the server side and GIN on the client side. I generally 
>>> use DTOs over GWT-RPC since RequestFactory isn't what I need / want to 
>>> migrate to.
>>>
>>> On Saturday, August 25, 2012 7:48:12 PM UTC-4, GWTter wrote:

 Hi all,

 I've been doing research on this for the past 2, almost 3 days now. I 
 feel like I've googled everything under the sun on the matter (including 
 these forums) and am almost all tutorialed-out. Before I go into any more 
 details on the question I just want to give a quick overview of the scope 
 and plan for the project to see what will suit it best:

 -Large application, non-trivial
 -50+ DB tables
 -Large user base
 -User management/authentication/sessions
 -transactions
 -security
 -MVP (as per GWT recommendation)
 -focus on performance and scalability (naturally :), am using GWT after 
 all)

 I've also read and watched all of the best practices on architecture 
 for large applications (Google/GWT).

 Now in the last talk I could find on best architecture practices 
 involving GWT was back in 2010 by Ray Ryan in which he states that they 
 don't think JavaBeans and property change events work terribly well so 
 it's 
 better to use DTOs for the Model.

 My big questions are if this is still the belief and the recommended 
 route, and if so, what should I be looking at in order to achieve this? a 
 Framework?

 My preference would be to keep coding in Java on the serverside since 
 I'm already doing so with GWT on the client. I've been investigating 
 serverside frameworks and seem to have arrive at 2: Seam or Spring? 
 However 
 I can figure out which of these are best suited for the task. All of the 
 doc I've found out there discussing the issue is at the most recent about 
 a 
 year old but most of it is from <=2010 so it makes it even harder to tell 
 considering that both of these frameworks have evolved considerably since 
 then. There's also been the coming of JEE 6.

 Can anyone give any insight on who's best suited for the task, or what 
 I should do to fulfill my requirements but stay inline with what is 
 recommended by GWT? I know I only mentioned Seam and Spring since that's 
 what I've been led to mostly, but I'm open to any suggestions that fit 
 what 
 I'm looking for. I've already ruled a couple of solutions such as Spring 
 Roo for this kind of task.

 This is my first project of this scale and the last thing I want to do 
 is head down a path and figure out that I've wasted a lot of my and my 
 team's time and energy because of some wron

Re: Override body style with CssResource

2012-08-28 Thread Charles Chan
Thank you Jens. That's exactly what I missed (StandardResources). Instead 
of making the modified css as pat of my ClientBundle, I serve it as a flat 
CSS file. It works perfectly! I thought this should be a rather common 
thing to do but apparently not

Charles


On Tuesday, August 28, 2012 2:11:24 PM UTC-4, Jens wrote:
>
> You can inherit StandardResources.gwt.xml instead of Standard.gwt.xml. 
> When you do so, only the images used by the standard theme will be copied 
> to your app folder and no CSS will be automatically included in your host 
> page.
>
> Then you create a new css file and copy everything from gwt's theme to 
> your new css file and make modifications to it. Then you create a 
> ClientBundle like
>
> interface AppClientBundle extends ClientBundle {
>
>   @Source("yourModifiedTheme.css")
>   @NotStrict //Not sure if its needed but I guess it is.
>   CssResource themeCss();
>
> }
>
> and instantiate it in your onModuleLoad():
>
> public void onModuleLoad() {
>   AppClientBundle bundle = GWT.create(AppClientBundle.class);
>   bundle.themeCss().ensureInjected(); //injects the CSS into the HTML page.
> }
>
>
> The result is:
> - The CSS code is now embedded in your JavaScript file, which saves a 
> download request (you dont have a  tag 
> anymore)
> - You can control when the CSS should be injected into your HTML file 
> during app startup.
>
> -- 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/-/LAqYqWGcThkJ.
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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2012-08-28 Thread Craig Mitchell
Just for autocomplete.  If you don't care about autocomplete, I'd recommend 
doing it as you say with GWT RPC.


On Tuesday, 28 August 2012 22:19:37 UTC+10, Fille wrote:
>
>
> Is there any reason for not using just gwt HTML or somthing else with 
> @UiHandler("loginButton") to make a RPC-call for log in?
>
> Ex:
>
> UiBinder:
> 
>  
>  
>   LOGIN 
> 
>
>
> Composite:
> @UiHandler("loginButton")
> void onLoginClick(ClickEvent e) {
> // make RPC-call and validate user.
> }
>
> Or is it just for autocomplete?
>
>
>
> Den torsdagen den 26:e februari 2009 kl. 18:21:23 UTC+1 skrev Thomas 
> Broyer:
>>
>> If you want to have browsers auto-complete username/password in your 
>> application's login form, you probably did (*I* did) this: 
>> 1. follow recommandations from 
>> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ, 
>>
>> i.e. your form and fields have to be in the original markup and you 
>> mustn't use .submit() but let the browser submit using, say... a 
>> submit button? 
>> 2. use something like that in your code: 
>>// note the "true" second argument, to create a hidden iframe 
>>FormPanel form = FormPanel.wrap(Document.get().getElementById 
>> ("login"), true); 
>>form.addFormPanel(new FormPanel() { 
>>   public void onSubmit(FormSubmitEvent event) { 
>>  // do some validation before submitting (non-empty fields) 
>>  // and call event.setCancelled(true) if needed. 
>>   } 
>>   public void onSubmitComplete(FormSubmitCompleteEvent event) { 
>>  // somehow "parse" event.getResults() to know whether it 
>>  // succeeded or not. 
>>   } 
>>}); 
>> 3. Your server have to send its response in with Content-Type:text/ 
>> html, even if its JSON (hence the "parse" above) 
>>
>>
>> But there's actually an alternative! 
>>
>> It never occured to me before someone pointed me to a login page that 
>> does it: if your form submits to a javascript: URL, then the browser's 
>> "auto-complete" feature will work (provided the form and fields were 
>> in the original HTML page markup, same limitation as above). 
>>
>> What it means is that you can use GWT-RPC or RequestBuilder!!! 
>>
>> Your code now looks like: 
>>private static native void injectLoginFunction() /*-{ 
>>   $wnd.__gwt_login = @com.example.myapp.client.App::doLogin(); 
>>}-*/; 
>>
>>private static void doLogin() { 
>>   // get the fields values and do your GWT-RPC call or 
>>   // RequestBuilder thing here. 
>>} 
>>... 
>>// notice that we now pass "false" as the second argument 
>>FormPanel form = FormPanel.wrap(Document.get().getElementById 
>> ("login"), false); 
>>form.setAction("javascript:__gwt_login()"); 
>>
>> And of course, you can still validate the form before it's submitted: 
>>
>>form.addFormPanel(new FormPanel() { 
>>   public void onSubmit(FormSubmitEvent event) { 
>>  // do some validation before submitting (non-empty fields) 
>>  // and call event.setCancelled(true) if needed. 
>>   } 
>>   public void onSubmitComplete(FormSubmitCompleteEvent event) { 
>>  // will never be called. 
>>   } 
>>}); 
>>
>>
>> Tested in IE7, Firefox 3.0 and Opera 10alpha; please update if it 
>> works (or doesn't work) for you in other browsers. 
>> The previous solution (using the iframe) was successfully tested in 
>> IE6, IE7, IE8 (beta 1 at that time), Firefox 2 and 3.0, Opera (9.62 at 
>> that time), Safari 3 for Windows and Google Chrome (1 and 2).
>
>

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



SmartScreen Filter performance issue in IE8

2012-08-28 Thread KamBha
Hi,
In IE8, our GWT application seems to suffer significant slowdown when we 
have slow PCs and smart screen filter on.

Profiling the code, it looks like the problem is with 
com.google.gwt.user.client.impl.DOMImpl.setEventListener.  We are 
generating a very large amount of HTML when we assign do the assignment in 
this method, we get the slowdown (based on profiling results.

Has anyone encountered this issue and if so, how did you rectify it.

Thanks.

Kamal.

-- 
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/-/tqM_3Sn_iQcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to write a 2D game by using GWT and html5.

2012-08-28 Thread Andrei
I love GWT, but I think it's the wrong choice for a simple game. Take a look at 
my game: www.playgrape.com. I did it in jQuery using canvas. It has its own 
physics engine with collision detection, etc., and the total size of the game 
is less than 6kB (plus jQuery). Even a simple GWT app will get you over 300kB 
very quickly, even more with RequestFactory.

Unless you have a lot of complex data entities and a complicated UI (many 
different views, panels, popups), jQuery is a better option.

As for the third party libraries, I would not recommend any for a simple game. 
Libraries I looked at were heavy and geared for more complex games. Drawing on 
canvas is pretty simple.

-- 
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/-/EO3qiQDXWfAJ.
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: GwtChosen: make your select boxes much more user-friendly

2012-08-28 Thread Chris Lercher
Very useful. Great widget.

On Tuesday, August 28, 2012 10:34:09 PM UTC+2, Julien Dramaix wrote:
>
> Dear community, 
>
> I just released the first version of GwtChosen. GwtChosen is the 
> entire rewritte in Google Web Toolkit of the Chosen component 
> (http://harvesthq.github.com/chosen/) making this nice component 
> available for all GWT developers. 
>
> It is available as a +GwtQuery plugin or as a widget. 
>
> Check the example and doc : http://jdramaix.github.com/gwtchosen/ 
>
> Julien 
>

-- 
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/-/Z8P3L76eDXEJ.
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: FF DevMode plugin + Memory leaks (+ "Address already in use")

2012-08-28 Thread Chris Lercher
Yes. I disabled all Add-Ons: All Extensions (except for the GWT Extension) 
and all Plugins, and restarted Firefox.


On Wednesday, August 29, 2012 12:12:03 AM UTC+2, Brian Slesinsky wrote:
>
> Does the connection leak happen with all plugins (other than GWT) disabled?
>
>

-- 
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/-/Y47n4p71LKAJ.
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: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light

2012-08-28 Thread GWTter
Hi Derek,

After do some more research and receiving some more advice from others and 
another helpful answer on SO I'll be going with Spring (I agree about the 
XML, but they have introduced/incorporated more annotations since the 
earlier versions). However what you detailed still makes a lot of sense, 
and also very helpful, so I won't be ignoring it :). Although Guice and 
Spring might be over doing it, I think GIN on the client side is still 
worthwhile and you've pretty much sold me. Also the Activitys and Places. 
Thanks again for all the insight, much appreciated.

-Seth

On Tuesday, August 28, 2012 4:12:43 PM UTC+2, Derek wrote:
>
> Hi Seth,
>
> I personally am not a fan of Spring. I'm generally not a fan of anything 
> that says, "First, create a bunch of XML files" (GWT excepted :) ). That's 
> why I gravitated to Guice for all my DI needs. That said, Guice and Spring 
> aren't quite the same thing, and you could leverage both of them.
>
> However, it is probably unnecessary to do both Guice and Spring in a GWT 
> app. You can do anything with one DI framework that you can do with the 
> other, and if you are leaning to Spring, you make a fine choice and you can 
> ignore the rest of my post.
>
> At my workplace, the way we do GWT projects is we create a WebXml.java in 
> the server package that implements GuiceServletContextListener and point 
> the web.xml to that class. The WebXml contains servlet mapping modules, db 
> connection modules, and other Guice modules as needed.
>
> On the client side, we generally use MVP structure with GIN. The MVP 
> structure is a lifesaver for large projects in my mind. Our more recent 
> projects have used the Activity and Places framework described on GWT's 
> website with the main exception that the ClientFactory object is 
> unnecessary since GIN provides the various resources instead of 
> ClientFactory.
>
> At my work we've got two projects that clock in around 34k and 46k lines 
> of Java (not including XML or other artifacts) as well as smaller projects 
> and they use the methodology I described.
>
> Derek
>
> On Monday, August 27, 2012 5:18:13 PM UTC-4, GWTter wrote:
>>
>> Hi Derek,
>>
>> Thanks a lot for the reply. I did consider Guice for DI on the serverside 
>> but not sure if it would be redundant if using a framework like Spring. I 
>> do want to utilize RF though as it has a nice set of features which I'd 
>> like to include, e.g. caching and only delta posts. And I'll definitely 
>> take a look at GIN again since DI on my clientside might be pretty nice 
>> too. Thanks again,
>>
>> -Seth
>>
>> On Monday, August 27, 2012 4:05:05 PM UTC+2, Derek wrote:
>>>
>>> I use Guice on the server side and GIN on the client side. I generally 
>>> use DTOs over GWT-RPC since RequestFactory isn't what I need / want to 
>>> migrate to.
>>>
>>> On Saturday, August 25, 2012 7:48:12 PM UTC-4, GWTter wrote:

 Hi all,

 I've been doing research on this for the past 2, almost 3 days now. I 
 feel like I've googled everything under the sun on the matter (including 
 these forums) and am almost all tutorialed-out. Before I go into any more 
 details on the question I just want to give a quick overview of the scope 
 and plan for the project to see what will suit it best:

 -Large application, non-trivial
 -50+ DB tables
 -Large user base
 -User management/authentication/sessions
 -transactions
 -security
 -MVP (as per GWT recommendation)
 -focus on performance and scalability (naturally :), am using GWT after 
 all)

 I've also read and watched all of the best practices on architecture 
 for large applications (Google/GWT).

 Now in the last talk I could find on best architecture practices 
 involving GWT was back in 2010 by Ray Ryan in which he states that they 
 don't think JavaBeans and property change events work terribly well so 
 it's 
 better to use DTOs for the Model.

 My big questions are if this is still the belief and the recommended 
 route, and if so, what should I be looking at in order to achieve this? a 
 Framework?

 My preference would be to keep coding in Java on the serverside since 
 I'm already doing so with GWT on the client. I've been investigating 
 serverside frameworks and seem to have arrive at 2: Seam or Spring? 
 However 
 I can figure out which of these are best suited for the task. All of the 
 doc I've found out there discussing the issue is at the most recent about 
 a 
 year old but most of it is from <=2010 so it makes it even harder to tell 
 considering that both of these frameworks have evolved considerably since 
 then. There's also been the coming of JEE 6.

 Can anyone give any insight on who's best suited for the task, or what 
 I should do to fulfill my requirements but stay inline with what is 
 recommended by GWT? I know I only mentioned S

Re: FF DevMode plugin + Memory leaks (+ "Address already in use")

2012-08-28 Thread Brian Slesinsky
Does the connection leak happen with all plugins (other than GWT) disabled?

On Tuesday, August 28, 2012 7:57:37 AM UTC-7, Brian Slesinsky wrote:
>
> Thanks, I think I can do something about this. 
>
> On Tue, Aug 28, 2012 at 2:15 AM, Thomas Broyer wrote: 
> > In other words: it looks like the Firefox plugin doesn't send a 
> QuitMessage 
> > to the DevMode, and worse, is kept alive in the background! 
> > 
> > 
> > On Tuesday, August 28, 2012 11:05:38 AM UTC+2, Chris Lercher wrote: 
> >> 
> >> I analyzed this a bit more (this time on Linux), and I noticed, that 
> the 
> >> number of Thread also grows: 1 thread per reload. Again, this happens 
> only 
> >> with Firefox, not with Chrome. So probably the ClassLoader references 
> will 
> >> be discarded only when the Thread terminates... 
> >> 
> >> One more thing that might be interesting: When closing the entire FF 
> >> instance (just closing the tab is not enough), then the threads are 
> >> discarded, and Heap/PermGen space can be garbage collected. 
> >> 
> >> By the way, closing the FF instance leads to the following Exception 
> >> printed by the DevMode server: 
> >> 
> >> 10:53:21.549 [ERROR] [mymodule] Remote connection lost 
> >> 
> >> com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote 
> >> connection lost 
> >> at 
> >> 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:308)
>  
>
> >> at 
> >> 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
>  
>
> >> at 
> >> 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>  
>
> >> at java.lang.Thread.run(Thread.java:662) 
> >> Caused by: java.io.EOFException: null 
> >> at java.io.DataInputStream.readByte(DataInputStream.java:250) 
> >> at 
> >> 
> com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType(BrowserChannel.java:1100)
>  
>
> >> at 
> >> 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:284)
>  
>
> >> at 
> >> 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
>  
>
> >> at 
> >> 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>  
>
> >> at java.lang.Thread.run(Thread.java:662) 
> >> 
> >> 
> >> 
> >> 
> >> On Tuesday, August 28, 2012 2:07:02 AM UTC+2, Brian Slesinsky wrote: 
> >>> 
> >>> That's an interesting report. We always want to garbage collect the 
> >>> ClassLoader when the session is over and if that doesn't happen, it's 
> a bug. 
> >>> I don't know why Firefox would behave differently; the JVM side should 
> work 
> >>> the same way for Firefox versus Chrome. The only thing I can think of 
> is 
> >>> some difference in distributed garbage collection, but that shouldn't 
> matter 
> >>> once the session ends. 
> >>> 
> >>> Alan's not on the team anymore. I'd like to fix this, but I'm busy 
> with 
> >>> other things and I don't have a good idea where to begin. If someone's 
> handy 
> >>> with a memory profiler, figuring out what's preventing the classloader 
> from 
> >>> being gc-ed in this case would be very useful. 
> >>> 
> >>> - Brian 
> >>> 
>

-- 
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/-/YxkUXpopHQYJ.
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 2.5 and IBM JVM problems

2012-08-28 Thread Brian Slesinsky


On Tuesday, August 28, 2012 1:45:42 PM UTC-7, Thomas Broyer wrote:
>
>
>
> On Tuesday, August 28, 2012 10:17:41 PM UTC+2, Daniel Kurka wrote:
>>
>> I still don`t really get the issue since this is only an issue while 
>> developing GWT (am I right?)
>>
>> As far as I know the jars we are packing (gwt-servlet,...) do not depend 
>> on a certain JVM. 
>> Can people who need an IBM JVM running for their servers not simply use 
>> the -noserver option with an Oracle JDK?
>>
>
> No, it's an issue when compiling with the GWT Compiler while processing 
> the gwtar files packaged in the gwt-user.jar (see issue 7530).
> And the Oracle JDK is apparently not an option on some OSes (see the 
> thread in gwt-steering)
> Moreover, the fix seems to be rather simple: follow java.io.Serializable 
> contract and provide an explicit serialVersionUID (and make sure we change 
> it whenever we modify the classes)
>

I talked to Ray a bit about this. We'd like to avoid setting 
serialVersionUID manually since it's another maintenance chore and we're 
sure to forget. We aren't doing long-term persistence, so the default way 
that serialVersionUID works should ensure that we rebuild gwttar whenever 
necessary. But perhaps this needs to be rebuilt when using IBM's JDK?

I also don't understand why removing the gwtar file doesn't solve the 
problem. Something else is going on.

- Brian

-- 
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/-/mL20gbO7f2AJ.
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: GwtChosen: make your select boxes much more user-friendly

2012-08-28 Thread koma
looks great.. will definitely try it!

-- 
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/-/gr2GL0QhTqsJ.
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 2.5 and IBM JVM problems

2012-08-28 Thread Thomas Broyer


On Tuesday, August 28, 2012 10:17:41 PM UTC+2, Daniel Kurka wrote:
>
> I still don`t really get the issue since this is only an issue while 
> developing GWT (am I right?)
>
> As far as I know the jars we are packing (gwt-servlet,...) do not depend 
> on a certain JVM. 
> Can people who need an IBM JVM running for their servers not simply use 
> the -noserver option with an Oracle JDK?
>

No, it's an issue when compiling with the GWT Compiler while processing the 
gwtar files packaged in the gwt-user.jar (see issue 7530).
And the Oracle JDK is apparently not an option on some OSes (see the thread 
in gwt-steering)
Moreover, the fix seems to be rather simple: follow java.io.Serializable 
contract and provide an explicit serialVersionUID (and make sure we change 
it whenever we modify the classes)

-- 
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/-/CjrW5i6lkesJ.
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: GwtChosen: make your select boxes much more user-friendly

2012-08-28 Thread Juan Pablo Gardella
Great work! Thanks for sharing!!

Juan

2012/8/28 Julien Dramaix 

> Dear community,
>
> I just released the first version of GwtChosen. GwtChosen is the
> entire rewritte in Google Web Toolkit of the Chosen component
> (http://harvesthq.github.com/**chosen/)
> making this nice component
> available for all GWT developers.
>
> It is available as a +GwtQuery plugin or as a widget.
>
> Check the example and doc : 
> http://jdramaix.github.com/**gwtchosen/
>
>
> Julien
>
> --
> 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/-/p1ciZ8C3AcUJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Request for change of access control of CellTree.BasicStyle

2012-08-28 Thread Thomas Broyer

On Tuesday, August 28, 2012 6:54:32 PM UTC+2, Thad wrote:
>
> A request/suggestion:  In a future release, 
> can com.google.gwt.user.cellview.client.CellTree.BasicStyle be made public? 
> It's a bit of a bother to have to extend and modify 
> com.google.gwt.user.cellview.client.CellTree.Style and hack all 
> of CellTree.css when all I want to do is modify one thing 
> in CellTreeBasic.css.


AFAICT, you don't need BasicStyle. Using 
@Source("com/google/gwt/user/cellview/client/CellTreeBasic.css") should be 
enough to use (and/or override/customize) the basic style.

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



GwtChosen: make your select boxes much more user-friendly

2012-08-28 Thread Julien Dramaix
Dear community, 

I just released the first version of GwtChosen. GwtChosen is the 
entire rewritte in Google Web Toolkit of the Chosen component 
(http://harvesthq.github.com/chosen/) making this nice component 
available for all GWT developers. 

It is available as a +GwtQuery plugin or as a widget. 

Check the example and doc : http://jdramaix.github.com/gwtchosen/ 

Julien 

-- 
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/-/p1ciZ8C3AcUJ.
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: GwtQuery 1.2.0 was released

2012-08-28 Thread Alain Ekambi
Good job as always !
Keep it up.

2012/8/28 Julien Dramaix 

> Dear GWT community,
>
> The GQuery team is proud to announce the version 1.2.0 of the library.
>
> We have been working hard in order to fix many issues and to achieve a
> closed jQuery API.
>
> Thanks for all contributors sending, fixing and testing the library.
>
> What's new : http://code.google.com/p/**gwtquery/issues/list?can=1&**
> cursor=gwtquery%3A111&q=**status%3Afixed%20Milestone%**3DRelease1.2
>
> Project home page : 
> http://code.google.com/p/**gwtquery/
>
> Downloads: 
> http://code.google.com/p/**gwtquery/wiki/Downloads
>
>
> Julien
>
> --
> 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/-/fNHm2tLEFfcJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GwtQuery 1.2.0 was released

2012-08-28 Thread Julien Dramaix
Dear GWT community, 

The GQuery team is proud to announce the version 1.2.0 of the library. 

We have been working hard in order to fix many issues and to achieve a 
closed jQuery API. 

Thanks for all contributors sending, fixing and testing the library. 

What's new : 
http://code.google.com/p/gwtquery/issues/list?can=1&cursor=gwtquery%3A111&q=status%3Afixed%20Milestone%3DRelease1.2
 
Project home page : http://code.google.com/p/gwtquery/ 
Downloads: http://code.google.com/p/gwtquery/wiki/Downloads 

Julien 

-- 
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/-/fNHm2tLEFfcJ.
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 2.5 and IBM JVM problems

2012-08-28 Thread Daniel Kurka
I still don`t really get the issue since this is only an issue while
developing GWT (am I right?)

As far as I know the jars we are packing (gwt-servlet,...) do not depend on
a certain JVM.
Can people who need an IBM JVM running for their servers not simply use the
-noserver option with an Oracle JDK?

-Daniel


2012/8/28 Brian Slesinsky 

> Nobody is currently working on it. Perhaps someone should rebuild GWT
> using the IBM JDK to see if that's the issue. Setting serialVersionUID in
> all the Serializable compiler classes seems like a reasonable idea except
> that I wonder why removing the gwtar files didn't help? There shouldn't be
> incompatibilities for serialized object created and used in the same JVM.
>
> - Brian
>
>
> On Tuesday, August 28, 2012 8:38:09 AM UTC-7, apanizo wrote:
>>
>> Hi all,
>>
>> Someone can update us about the problems with GWT 2.5 and IBM JVM??
>>
>> Related posts:
>>
>> https://groups.google.com/**forum/#!msg/gwt-steering/WGs-**
>> uiyHQA8/Te0hEfj5miEJ
>>
>> http://code.google.com/p/**google-web-toolkit/issues/**detail?id=7530
>>
>>
>>
>> Any news are very welcome...
>>
>> Thanks in advance,
>>
>> Adolfo.
>> --
>> El precio es lo que pagas. El valor es lo que recibes.
>> Warren Buffet
>>
>  --
> 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/-/MHWe-sxmR-kJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: how to write a 2D game by using GWT and html5.

2012-08-28 Thread Chris Price
Have you looked at PlayN?

http://code.google.com/p/playn/

On Tue, Aug 28, 2012 at 8:51 PM, Joey  wrote:
> I want to write a simple animated 2D game by using GWT and HTML5. The game
> basically needs to keep running several animations all the time, but I do
> not know what libraries or techniques I should use to achieve this.
> Based on my experience in GWT so far, I know I can just use plain GWT and
> GWT-animation to achieve what I want. This is the easiest way for me to
> achieve. However, I hope I can make the game look and feel a bit more
> professional and attractive. So GWT-Canvas may be the good option for me to
> write the animation. Physical reactions and Audio are also the important
> concern.
> Please give me some advices about the following questions.
>
> 1. To write the animations, which technique should I use, plain
> GWT-animation or GWT-Canvas+HTML5. Which one has better performance? (the
> game will be running on the webpage, so the level of performance is the most
> important for me)
> 2. Is there any good libs I should definitely use for writing 2d games? I do
> not prefer the complicated lib because my game is pretty simple.
> 3. I am considering using some game engine. My game is easy and simple, I
> could make a fake physical reactions by just using some math functions to
> run the animations. but if the game engine is easy and handy to use, then I
> would prefer using game engine. So is there any good one out there for
> beginners?
> 4. Please give me some advices about making the game audio. are there any
> good audio libraries for GWT projects?
>
> Thanks.
>
> --
> 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/-/ppy_atK6jRkJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

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



how to write a 2D game by using GWT and html5.

2012-08-28 Thread Joey
I want to write a simple animated 2D game by using GWT and HTML5. The game 
basically needs to keep running several animations all the time, but I do 
not know what libraries or techniques I should use to achieve this.
Based on my experience in GWT so far, I know I can just use plain GWT and 
GWT-animation to achieve what I want. This is the easiest way for me to 
achieve. However, I hope I can make the game look and feel a bit more 
professional and attractive. So GWT-Canvas may be the good option for me to 
write the animation. Physical reactions and Audio are also the important 
concern. 
Please give me some advices about the following questions.

1. To write the animations, which technique should I use, plain 
GWT-animation or GWT-Canvas+HTML5. Which one has better performance? (the 
game will be running on the webpage, so the level of performance is the 
most important for me)
2. Is there any good libs I should definitely use for writing 2d games? I 
do not prefer the complicated lib because my game is pretty simple.
3. I am considering using some game engine. My game is easy and simple, I 
could make a fake physical reactions by just using some math functions to 
run the animations. but if the game engine is easy and handy to use, then I 
would prefer using game engine. So is there any good one out there for 
beginners?
4. Please give me some advices about making the game audio. are there any 
good audio libraries for GWT projects?

Thanks.

-- 
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/-/ppy_atK6jRkJ.
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: Best practices waiting for DOM parsing

2012-08-28 Thread Joseph Lust
@Chris Price
Thanks, I'll try to put together a simple demo. The only trouble is that 
this only happens on quite complex UI's, but I'll try to distill it down to 
it's essence.

@Alfredo
The issue I found with SVG is that these events are not well supported. For 
example, in Mozilla, SVG.getElementById is not supported. Why? On the bug 
report response they said that they hadn't bothered to implement the whole 
SVG spec since Canvas is the cat's meow. In the Lib-GWT-SVG library which 
we use, there is no support for events on SVG elements. I see that the spec 
you sent is barely a year old. I'll need to check if that is more supported 
than it was last year when I was trying.

Another example is that SVG animation (SMIL) which is awesome, does not 
work very well at all in Chrome while it rocks in Mozilla. It is really 
quite a shame since such declarative animation frameworks make awesome 
animations  easy, but browser vendors cannot be 
bothered to implement long standing specs.

Ideally I'd just use addLoadHandler from 
http://www.w3.org/TR/SVG/script.html#EventAttributes, but it's not in the 
aforementioned SVG lib. I'll have to try doing it myself and see how it 
goes.


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/-/vD-gqLi6sA8J.
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: Best practices waiting for DOM parsing

2012-08-28 Thread Joseph Lust
@Chris Price
Thanks, I'll try to put together a simple demo. The only trouble is that 
this only happens on quite complex UI's, but I'll try to distill it down to 
it's essence.

@Alfredo
The issues I found with SVG is that these events are not well supported. 
For example, in Mozilla, SVG.getElementById is not supported. Why? On the 
but they said that they hadn't bothered to implement the *whole* SVG spec 
since Canvas is the cat's meow. In the Lib-GWT-SVG library which we use, 
there is no support for events on SVG elements. I see that the spec you 
sent is barely a year old. I'll need to check if that is more supported 
than it was last year when I was trying.

Ideally I'd just use addLoadHandler from 
http://www.w3.org/TR/SVG/script.html#EventAttributes, but it's not in the 
aforementioned SVG lib. I'll have to try doing it myself and see how it 
goes.


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/-/ojsWo8LuGLkJ.
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 2.5 and IBM JVM problems

2012-08-28 Thread Brian Slesinsky
Nobody is currently working on it. Perhaps someone should rebuild GWT using 
the IBM JDK to see if that's the issue. Setting serialVersionUID in all the 
Serializable compiler classes seems like a reasonable idea except that I 
wonder why removing the gwtar files didn't help? There shouldn't be 
incompatibilities for serialized object created and used in the same JVM.

- Brian

On Tuesday, August 28, 2012 8:38:09 AM UTC-7, apanizo wrote:
>
> Hi all,
>
> Someone can update us about the problems with GWT 2.5 and IBM JVM??
>
> Related posts:
>
> https://groups.google.com/forum/#!msg/gwt-steering/WGs-uiyHQA8/Te0hEfj5miEJ
>  
> http://code.google.com/p/google-web-toolkit/issues/detail?id=7530 
>
>
> Any news are very welcome...
>
> Thanks in advance,
>
> Adolfo.
> -- 
> El precio es lo que pagas. El valor es lo que recibes.
> Warren Buffet
>  

-- 
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/-/MHWe-sxmR-kJ.
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 insert a new row in to a DataGrid

2012-08-28 Thread Claire
Hi,

Is anyone able to assist with my query please?

Thanks.

On Thursday, August 23, 2012 8:13:10 PM UTC+1, Claire wrote:
>
> Hi,
>
> I have a button assigned to the onClick method. Within this method I add a 
> new element to the list, reset the data grid row count by calling 
> setRowCount(list.size(), true) and reset the grid data by calling 
> setRowData(0, list).
>
> In debug mode I can see the list size increasing however, the data grid 
> does not seem to refresh when I run the app. I have tried removing columns 
> and that works.
>
> Can someone please advise me where I am going wrong?
>
> Many Thanks.
>

-- 
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/-/GjrIqHdpUY4J.
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: Override body style with CssResource

2012-08-28 Thread Jens
You can inherit StandardResources.gwt.xml instead of Standard.gwt.xml. When 
you do so, only the images used by the standard theme will be copied to 
your app folder and no CSS will be automatically included in your host page.

Then you create a new css file and copy everything from gwt's theme to your 
new css file and make modifications to it. Then you create a ClientBundle 
like

interface AppClientBundle extends ClientBundle {

  @Source("yourModifiedTheme.css")
  @NotStrict //Not sure if its needed but I guess it is.
  CssResource themeCss();

}

and instantiate it in your onModuleLoad():

public void onModuleLoad() {
  AppClientBundle bundle = GWT.create(AppClientBundle.class);
  bundle.themeCss().ensureInjected(); //injects the CSS into the HTML page.
}


The result is:
- The CSS code is now embedded in your JavaScript file, which saves a 
download request (you dont have a  tag 
anymore)
- You can control when the CSS should be injected into your HTML file 
during app startup.

-- 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/-/Z9VJsmFPcd0J.
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: Override body style with CssResource

2012-08-28 Thread Charles Chan
I looked at the way the CSS files are loaded. Sure enough, the standard.css 
file is loaded first and then  my custom CSS is loaded. 

Although the end result is what I want (my styles override the standard 
ones), the user will see the standard styles in a split second before they 
see my styles.

After looking through the web, I think the only way is to modify the actual 
standard.css file and remove the common tags (body, td, etc.) manually 
before I package it into my app.

Charles


On Monday, August 27, 2012 6:58:14 PM UTC-4, Charles Chan wrote:
>
> I should correct myself that it's not really a "flash" (which implies a 
> page refresh). Instead, I saw the Standard stylesheet applied and then in a 
> split second, my stylesheet is applied. 
>
> Charles
>
>
> On Monday, August 27, 2012 4:49:07 PM UTC-4, Charles Chan wrote:
>>
>> Hi, I am relatively new to GWT. I am creating a GWT application that will 
>> be embedded into a DIV of an existing webapp . Obviously, I would like to 
>> keep the existing webapp's styling, especially on the common elements, e.g. 
>> body, td, select, etc.
>>
>> I've read that CssResource is the way to go. So, I gave it a try.
>>
>> My .gwt.xml has the following lines:
>>
>>   
>>   
>>
>> In my css file, I put the styles of the webapp there. I created the 
>> ClientBundle and inject my CSS in my EntryPoint.
>>
>> All seems fine. However, when I invoke the app. on IE8, I see the GWT 
>> Standard styles applied first and in a flash, my overridden styles are 
>> applied.
>>
>> So, I think I am overriding the styles successfully. However, how do I 
>> avoid that "flash" when the Standard styles are being applied before my 
>> styles?
>>
>> Thanks in advance.
>>
>> Charles
>>
>>

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



Request for change of access control of CellTree.BasicStyle

2012-08-28 Thread Thad
A request/suggestion:  In a future release, 
can com.google.gwt.user.cellview.client.CellTree.BasicStyle be made public? 
It's a bit of a bother to have to extend and modify 
com.google.gwt.user.cellview.client.CellTree.Style and hack all 
of CellTree.css when all I want to do is modify one thing 
in CellTreeBasic.css.

-- 
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/-/pWv-ngF1438J.
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: Editor Framework and BeanValidation (setConstraintViolations problem).

2012-08-28 Thread Thomas Broyer


On Tuesday, August 28, 2012 5:11:20 PM UTC+2, Ümit Seren wrote:
>
> I am trying to get the Editor Framework to work with BeanValidation 
> (JSR303) (GWT 2.4) for client side validation and run into an issue. 
>
> Validation works fine. I want to use the Editor's built in capability to 
> display errors (i.e ValueBoxEditorDecorator). However the EditorDriver 
> interface only specifies setConstraintViolations(Iterable> violations); But 
> the validate function from the BeanValidation returns a Set> and I can't 
> cast from this to the type that is expected in the setConstraintViolations 
> function. 
>
> The only workaround I found is creating a new Set and adding the 
> ConstraintViolations to it. 
>
>
> Set> violations = 
> validator.validate(myProxy,Default.class);
> Set> violations2 = new 
> HashSet>();
> for (ConstraintViolationconstraint:violations) {
> violations2.add(constraint);
> }
> if (!violations.isEmpty()) {
> driver.setConstraintViolations(violations2);
> }
> else {
>   //proceed
> }
>
> I can this is related to this issue: 
> http://code.google.com/p/google-web-toolkit/issues/detail?id=6270
>
> Is there any better way to do that?
>
As suggested in the issue you link to:

@SuppressWarning("unchecked", "rawtypes")
Set> violations2 = (Set>) 
(Set) violations;

 

-- 
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/-/YJRSUeAf-nIJ.
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 2.4.0 - DataGrid - Differentiating between single click and double clicks on rows

2012-08-28 Thread Juan Pablo Gardella
See
https://groups.google.com/forum/?hl=tr&fromgroups=#!topic/google-web-toolkit/j_HF85Mqhnk


2012/8/28 dave_mcgee 

> Hi there,
>
> I am currently picking up on a row selection (single click) in a DataGrid
> using NoSelectionModel (As seen below). This works fine and I perform a
> certain action based on this selection. However, I also want to pick up on
> when a user double clicks a row in this data grid. Does anyone have any
> advice? Thanks!
>
> final NoSelectionModel selectionModel = new
> NoSelectionModel();
> selectionModel.addSelectionChangeHandler(new
> SelectionChangeEvent.Handler() {
> @Override
> public void onSelectionChange(SelectionChangeEvent event) {
> final MyObjectRecord myObjectRecord =
> selectionModel.getLastSelectedObject();
> // Do stuff with myObjectRecord
> }
> });
>
> this.setSelectionModel(selectionModel);
>
> --
> 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/-/mKxVnb-JzJ0J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GWT 2.4.0 - DataGrid - Differentiating between single click and double clicks on rows

2012-08-28 Thread dave_mcgee
Hi there,

I am currently picking up on a row selection (single click) in a DataGrid 
using NoSelectionModel (As seen below). This works fine and I perform a 
certain action based on this selection. However, I also want to pick up on 
when a user double clicks a row in this data grid. Does anyone have any 
advice? Thanks! 

final NoSelectionModel selectionModel = new 
NoSelectionModel();
selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() 
{
@Override
public void onSelectionChange(SelectionChangeEvent event) { 
final MyObjectRecord myObjectRecord = 
selectionModel.getLastSelectedObject();
// Do stuff with myObjectRecord 
}
});

this.setSelectionModel(selectionModel);

-- 
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/-/mKxVnb-JzJ0J.
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 2.5 and IBM JVM problems

2012-08-28 Thread Adolfo Panizo Touzon
Hi all,

Someone can update us about the problems with GWT 2.5 and IBM JVM??

Related posts:

https://groups.google.com/forum/#!msg/gwt-steering/WGs-uiyHQA8/Te0hEfj5miEJ
http://code.google.com/p/google-web-toolkit/issues/detail?id=7530


Any news are very welcome...

Thanks in advance,

Adolfo.
-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

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



Metro UI Windows 8 with GWT

2012-08-28 Thread Allahbaksh
Dear All,
Whether you are aware of any gwt library using which we can develop Windows 
8 based applications.
Warm Regards,
Allahbaksh

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



Editor Framework and BeanValidation (setConstraintViolations problem).

2012-08-28 Thread Ümit Seren


I am trying to get the Editor Framework to work with BeanValidation 
(JSR303) (GWT 2.4) for client side validation and run into an issue. 

Validation works fine. I want to use the Editor's built in capability to 
display errors (i.e ValueBoxEditorDecorator). However the EditorDriver 
interface only specifies setConstraintViolations(Iterable> violations); But 
the validate function from the BeanValidation returns a Set> and I can't 
cast from this to the type that is expected in the setConstraintViolations 
function. 

The only workaround I found is creating a new Set and adding the 
ConstraintViolations to it. 


Set> violations = 
validator.validate(myProxy,Default.class);
Set> violations2 = new HashSet>();
for (ConstraintViolationconstraint:violations) {
violations2.add(constraint);
}
if (!violations.isEmpty()) {
driver.setConstraintViolations(violations2);
}
else {
  //proceed
}

I can this is related to this issue: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6270

Is there any better way to do that?

-- 
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/-/8YbkXnrXB_YJ.
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: DART vs. GWT

2012-08-28 Thread Chris Lercher
About Dart:

- I really (!) hope that Dart will succeed.
- Ideally, Dart would even become the new JavaScript alternative in all 
browsers (however, AFAIK a few browser vendors have signaled, that this 
ain't gonna happen). If not, then it could maybe still be successful with 
dart2js.

About GWT:

- GWT allows to code in *Java* for the client side, which is perfect, if 
you already use *Java* on the server side.
- There is no significant amount of existing Dart code for the server side, 
so Dart does not have that advantage.

Conclusion:

"GWT + Dart" would be such an awesome combination: GWT compiling Java to 
Dart. And then Dart to JS only if necessary.

- This would require changing GWT internals, 

- but it wouldn't require changing the GWT API and programming techniques 
much (except for low level JSNI and JSO) - remember, that a lot of the GWT 
API is about manipulating the DOM (which stays the same no matter if the 
underlying language is JS or Dart), handling browser events, ...

- As long as you want to work with Java on the server side, it's a good 
idea to use GWT - otherwise you'd have to duplicate common parts of your 
code for the server (Java) and client side (Dart) - like in the medieval 
days before GWT. (I hope we'll never have to fall back to that situation.)

Alternative:

The alternative would be that Dart also succeeds on the server side, 
completely replacing Java. This is rather unlikely, but if things like O/R 
mapping, fully-fledged IDEs, and anything of value that Java provides is 
available in Dart someday, plus if it provides any real advantage over 
Java, then I'm the first one to switch completely to Dart. Then we wouldn't 
need GWT anymore, and Dart would probably adopt all useful GWT features. 
(And it should be straightforward to port existing GWT code to Dart.)


On Wednesday, August 22, 2012 5:57:42 PM UTC+2, deepak chauhan wrote:
>
> One question is disturbing me from a long time. Why Google invented DART, 
> when GWT is already there?


-- 
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/-/G02R2U9lzkcJ.
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: FF DevMode plugin + Memory leaks (+ "Address already in use")

2012-08-28 Thread Brian Slesinsky
Thanks, I think I can do something about this.

On Tue, Aug 28, 2012 at 2:15 AM, Thomas Broyer  wrote:
> In other words: it looks like the Firefox plugin doesn't send a QuitMessage
> to the DevMode, and worse, is kept alive in the background!
>
>
> On Tuesday, August 28, 2012 11:05:38 AM UTC+2, Chris Lercher wrote:
>>
>> I analyzed this a bit more (this time on Linux), and I noticed, that the
>> number of Thread also grows: 1 thread per reload. Again, this happens only
>> with Firefox, not with Chrome. So probably the ClassLoader references will
>> be discarded only when the Thread terminates...
>>
>> One more thing that might be interesting: When closing the entire FF
>> instance (just closing the tab is not enough), then the threads are
>> discarded, and Heap/PermGen space can be garbage collected.
>>
>> By the way, closing the FF instance leads to the following Exception
>> printed by the DevMode server:
>>
>> 10:53:21.549 [ERROR] [mymodule] Remote connection lost
>>
>> com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
>> connection lost
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:308)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>> at java.lang.Thread.run(Thread.java:662)
>> Caused by: java.io.EOFException: null
>> at java.io.DataInputStream.readByte(DataInputStream.java:250)
>> at
>> com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType(BrowserChannel.java:1100)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:284)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>> at java.lang.Thread.run(Thread.java:662)
>>
>>
>>
>>
>> On Tuesday, August 28, 2012 2:07:02 AM UTC+2, Brian Slesinsky wrote:
>>>
>>> That's an interesting report. We always want to garbage collect the
>>> ClassLoader when the session is over and if that doesn't happen, it's a bug.
>>> I don't know why Firefox would behave differently; the JVM side should work
>>> the same way for Firefox versus Chrome. The only thing I can think of is
>>> some difference in distributed garbage collection, but that shouldn't matter
>>> once the session ends.
>>>
>>> Alan's not on the team anymore. I'd like to fix this, but I'm busy with
>>> other things and I don't have a good idea where to begin. If someone's handy
>>> with a memory profiler, figuring out what's preventing the classloader from
>>> being gc-ed in this case would be very useful.
>>>
>>> - Brian
>>>
> --
> 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/-/5saLTgZ7UjEJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Best practices waiting for DOM parsing

2012-08-28 Thread Alfredo Quiroga-Villamil
Hi Joseph:

Not as familiar with SVG as I am with Canvas, but I am thinking that
you can likely (assuming I interpreted the documentation correctly)
hook into the SVG load event. Do investigate this, as I am not sure,
but below are a couple of sources. Take a look at SVGLoad, perhaps you
can use something like that instead of you doing the checking,
leverage if it's valid the callback that's native there.

http://www.w3.org/TR/SVG/interact.html

Then something like:

http://stackoverflow.com/questions/3883257/loading-svg-into-svgweb-dynamically-with-jquery

svg.addEventListener('SVGLoad', function() {
  svg = this; // this will correctly refer to your SVG root
  alert('loaded!');
}, false);
// also supported:
svg.onsvgload = function() {
  alert('loaded!');
}

Best regards,

Alfredo

On Tue, Aug 28, 2012 at 9:33 AM, Joseph Lust  wrote:
> I wanted to ask the community's opinion on the best practice for waiting for
> a DOM resource to become available.
>
> Use Case:
> You make an elaborate component via UiBinder or injecting some HTML/SVG into
> the DOM and upon executing the following statement trying to access an
> element that was injected, the DOM does not see it (i.e. inject 2MB of SVG)
> due to DOM parsing lag.
>
> Work Arounds:
>
> Schedule recurring timer to check if the element is available and then
> continue the program flow (now that the element's accessible in the DOM).
> OR Schedule a deferred timer and then continue (less robust, does not always
> work).
>
> So, curious what other folks have been using in this case where the GWT code
> must wait to wait for DOM parsing lag time. It seems to me like this is
> something there should be an official GWT function for doing as other
> frameworks do have functions to wait until an object becomes available in
> the DOM.
>
>
> 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/-/JpBdhNvNWbIJ.
> 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.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Parsing error after update WebCore Elemental

2012-08-28 Thread Cristian Rinaldi
I updated WebCore (third_party) from de Dart Project and when run build 
script the following error occurs:

Traceback (most recent call last):
  File "./scripts/elemental_fremontcutbuilder.py", line 217, in 
sys.exit(main())
  File "./scripts/elemental_fremontcutbuilder.py", line 214, in main
return build_database(idl_files, database_dir)
  File "./scripts/elemental_fremontcutbuilder.py", line 139, in 
build_database
builder.import_idl_file(file_name, webkit_options)
  File 
"/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/databasebuilder.py", 
line 474, in import_idl_file
idl_file = self._load_idl_file(file_path, import_options)
  File 
"/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/databasebuilder.py", 
line 88, in _load_idl_file
raise RuntimeError('Failed to load file %s: %s' % (file_name, e))
RuntimeError: Failed to load file 
./scripts/../third_party/WebCore/html/canvas/Int8Array.idl: At line 37 
offset 26: Expected "]" or "(" or "," but "c" found: "   
 TypedArray=signed char"
Traceback (most recent call last):
  File "./scripts/elementaldomgenerator.py", line 164, in 
sys.exit(main())
  File "./scripts/elementaldomgenerator.py", line 155, in main
database_dir, use_database_cache)
  File "./scripts/elementaldomgenerator.py", line 120, in GenerateDOM
systems = systems)
  File 
"/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/elementalgenerator.py", 
line 279, in Generate

self.PopulateMixinBase(self._database.GetInterface('ElementalMixinBase'), 
mixins)
  File "/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/database.py", 
line 188, in GetInterface
raise RuntimeError('Interface %s is not loaded' % interface_name)
RuntimeError: Interface ElementalMixinBase is not loaded

---
File /../third_party/WebCore/html/canvas/Int8Array.idl:

module html {
interface [
ConstructorTemplate=TypedArray,
ConstructorParameters=1,
NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
CustomToJSObject,
DoNotCheckConstants,
   * TypedArray=signed char*
] Int8Array : ArrayBufferView {
const unsigned long BYTES_PER_ELEMENT = 1;

readonly attribute unsigned long length;
Int8Array subarray(in [Optional=DefaultIsUndefined] long start,
   in [Optional] long end);

// void set(in Int8Array array, [Optional] in unsigned long offset);
// void set(in sequence array, [Optional] in unsigned long 
offset);
void set();
};
}

-- 
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/-/qaYWazWhwX8J.
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: Clear Cell table data

2012-08-28 Thread lucky
Can any one help me on this?

On Monday, 11 June 2012 21:13:45 UTC+5:30, lucky wrote:
>
> How to clear celltable data when i click on the Button 'Clear'?
>
> i tried with cellTable.setRowCount(0);
> and
> private void clearTable() {
> if (dataProvider.getDataDisplays() != null && 
> dataProvider.getDataDisplays().isEmpty() == false) {
> dataProvider.removeDataDisplay(cellTable);
> }
>
> 
> cellTable.setVisibleRangeAndClearData(resultListGrid.getVisibleRange(), 
> true);
> 
> }
>
> but this is not working for me.
>
> Could you please tell me did i do any thing wrong ?
> or let me know the best way to clear the cellTable data
>
> Thanks in advance.
>

-- 
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/-/9c-T_-LkYvwJ.
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: Best serverside architecture(framework/stack) to use with GWT for large application...please show me the light

2012-08-28 Thread Derek
Hi Seth,

I personally am not a fan of Spring. I'm generally not a fan of anything 
that says, "First, create a bunch of XML files" (GWT excepted :) ). That's 
why I gravitated to Guice for all my DI needs. That said, Guice and Spring 
aren't quite the same thing, and you could leverage both of them.

However, it is probably unnecessary to do both Guice and Spring in a GWT 
app. You can do anything with one DI framework that you can do with the 
other, and if you are leaning to Spring, you make a fine choice and you can 
ignore the rest of my post.

At my workplace, the way we do GWT projects is we create a WebXml.java in 
the server package that implements GuiceServletContextListener and point 
the web.xml to that class. The WebXml contains servlet mapping modules, db 
connection modules, and other Guice modules as needed.

On the client side, we generally use MVP structure with GIN. The MVP 
structure is a lifesaver for large projects in my mind. Our more recent 
projects have used the Activity and Places framework described on GWT's 
website with the main exception that the ClientFactory object is 
unnecessary since GIN provides the various resources instead of 
ClientFactory.

At my work we've got two projects that clock in around 34k and 46k lines of 
Java (not including XML or other artifacts) as well as smaller projects and 
they use the methodology I described.

Derek

On Monday, August 27, 2012 5:18:13 PM UTC-4, GWTter wrote:
>
> Hi Derek,
>
> Thanks a lot for the reply. I did consider Guice for DI on the serverside 
> but not sure if it would be redundant if using a framework like Spring. I 
> do want to utilize RF though as it has a nice set of features which I'd 
> like to include, e.g. caching and only delta posts. And I'll definitely 
> take a look at GIN again since DI on my clientside might be pretty nice 
> too. Thanks again,
>
> -Seth
>
> On Monday, August 27, 2012 4:05:05 PM UTC+2, Derek wrote:
>>
>> I use Guice on the server side and GIN on the client side. I generally 
>> use DTOs over GWT-RPC since RequestFactory isn't what I need / want to 
>> migrate to.
>>
>> On Saturday, August 25, 2012 7:48:12 PM UTC-4, GWTter wrote:
>>>
>>> Hi all,
>>>
>>> I've been doing research on this for the past 2, almost 3 days now. I 
>>> feel like I've googled everything under the sun on the matter (including 
>>> these forums) and am almost all tutorialed-out. Before I go into any more 
>>> details on the question I just want to give a quick overview of the scope 
>>> and plan for the project to see what will suit it best:
>>>
>>> -Large application, non-trivial
>>> -50+ DB tables
>>> -Large user base
>>> -User management/authentication/sessions
>>> -transactions
>>> -security
>>> -MVP (as per GWT recommendation)
>>> -focus on performance and scalability (naturally :), am using GWT after 
>>> all)
>>>
>>> I've also read and watched all of the best practices on architecture for 
>>> large applications (Google/GWT).
>>>
>>> Now in the last talk I could find on best architecture practices 
>>> involving GWT was back in 2010 by Ray Ryan in which he states that they 
>>> don't think JavaBeans and property change events work terribly well so it's 
>>> better to use DTOs for the Model.
>>>
>>> My big questions are if this is still the belief and the recommended 
>>> route, and if so, what should I be looking at in order to achieve this? a 
>>> Framework?
>>>
>>> My preference would be to keep coding in Java on the serverside since 
>>> I'm already doing so with GWT on the client. I've been investigating 
>>> serverside frameworks and seem to have arrive at 2: Seam or Spring? However 
>>> I can figure out which of these are best suited for the task. All of the 
>>> doc I've found out there discussing the issue is at the most recent about a 
>>> year old but most of it is from <=2010 so it makes it even harder to tell 
>>> considering that both of these frameworks have evolved considerably since 
>>> then. There's also been the coming of JEE 6.
>>>
>>> Can anyone give any insight on who's best suited for the task, or what I 
>>> should do to fulfill my requirements but stay inline with what is 
>>> recommended by GWT? I know I only mentioned Seam and Spring since that's 
>>> what I've been led to mostly, but I'm open to any suggestions that fit what 
>>> I'm looking for. I've already ruled a couple of solutions such as Spring 
>>> Roo for this kind of task.
>>>
>>> This is my first project of this scale and the last thing I want to do 
>>> is head down a path and figure out that I've wasted a lot of my and my 
>>> team's time and energy because of some wrong decisions I made at the get-go.
>>>
>>> Thanks a lot in advance for your help, I really just want to figure this 
>>> out so I can get back to coding instead of googling the ends of the earth 
>>> ;).
>>>
>>> -Seth
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on th

Re: How to size a widget for optimal presentation?

2012-08-28 Thread Jens
First

pnl.setWidth("100%");

and instead of lbl_Tournament.setWidth("200px") I think you should do 
pnl.setCellWidth(btn_Select, "50px"); btn_Select.setWidth("100%");

This should limit the cell that contains the button to fixed 50px width and 
as you have not specified any width for the label cell and the label itself 
it should take the remaining space.

-- 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/-/F0Y28tLuAcYJ.
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: DART vs. GWT

2012-08-28 Thread dhoffer
+1 Very well said.

On Monday, August 27, 2012 9:33:36 AM UTC-6, Ryan Shillington wrote:
>
> Google is an incubator.  They throw a lot of "darts" at the wall to see 
> what sticks (pun intended).  When you have 10 irons in the fire, one or 2 
> of them are bound to glow hot.  
>
> There's no reason to believe that Dart will win over GWT in the next 2-3 
> years if you're building something of modest complexity.  My company (
> onlyinsight.com) is a start-up.  We use wordpress for our main site (so 
> basically PHP) which is super-simple (5-10 pages).  For our first big real 
> product, with half a million lines of code, we're using GWT (and wouldn't 
> consider Ruby/PHP).  Ruby/Rails/PHP to me is like a chainsaw - it's 
> super-easy to cut down trees with, but it's just as easy to cut your arm 
> off.  You don't want a million lines of a scripting language.
>
> Ryan
>
> On Sunday, August 26, 2012 6:42:07 PM UTC-5, b0b wrote:
>>
>>
>>
>> On Wednesday, 22 August 2012 17:57:42 UTC+2, deepak chauhan wrote:
>>>
>>> One question is disturbing me from a long time. Why Google invented 
>>> DART, when GWT is already there?
>>
>>
>> To have one more project to can in a few months/years, instead of puting 
>> all resources behind GWT. 
>>
>

-- 
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/-/gG2HPMzR7mQJ.
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: Best practices waiting for DOM parsing

2012-08-28 Thread Chris Price
I was under the impression that all DOM manipulation calls are
synchronous, are you sure it's not GWT using the Scheduler under the
hood to run some of your code asynchronously? Can you give some
example code?

On Tue, Aug 28, 2012 at 2:33 PM, Joseph Lust  wrote:
> I wanted to ask the community's opinion on the best practice for waiting for
> a DOM resource to become available.
>
> Use Case:
> You make an elaborate component via UiBinder or injecting some HTML/SVG into
> the DOM and upon executing the following statement trying to access an
> element that was injected, the DOM does not see it (i.e. inject 2MB of SVG)
> due to DOM parsing lag.
>
> Work Arounds:
>
> Schedule recurring timer to check if the element is available and then
> continue the program flow (now that the element's accessible in the DOM).
> OR Schedule a deferred timer and then continue (less robust, does not always
> work).
>
> So, curious what other folks have been using in this case where the GWT code
> must wait to wait for DOM parsing lag time. It seems to me like this is
> something there should be an official GWT function for doing as other
> frameworks do have functions to wait until an object becomes available in
> the DOM.
>
>
> 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/-/JpBdhNvNWbIJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

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



Best practices waiting for DOM parsing

2012-08-28 Thread Joseph Lust
I wanted to ask the community's opinion on the best practice for waiting 
for a DOM resource to become available.

Use Case:
You make an elaborate component via UiBinder or injecting some HTML/SVG 
into the DOM and upon executing the following statement trying to access an 
element that was injected, the DOM does not see it (i.e. inject 2MB of SVG) 
due to DOM parsing lag.

Work Arounds:

   1. Schedule recurring timer to check if the element is available and 
   then continue the program flow (now that the element's accessible in the 
   DOM).
   2. OR Schedule a deferred timer and then continue (less robust, does not 
   always work).

So, curious what other folks have been using in this case where the GWT 
code must wait to wait for DOM parsing lag time. It seems to me like this 
is something there should be an official GWT function for doing as other 
frameworks do have functions to wait until an object becomes available in 
the DOM.


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/-/JpBdhNvNWbIJ.
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-visualization-api] Export chart to image

2012-08-28 Thread Victor
Renato Beserra  writes:

> 
> 
> Hi guys,My team is working on an application that uses Google Image Chart api 
to generate a few charts. We are finishing a new analysis component and the 
number of generated charts will increase a lot. So, we'd like to use a more 
sofisticated solution. The new google visualization api appeared to be perfect 
for us. But we noticed there is not a feature to export the SVG chart as an 
image which is necessary for us. We could continue to use the Image Chart Api 
to 
provide the export feature, but the problem is that it seems to be deprecated. 
If we make the same call to a ImageLineChart and to a LineChart, for example, 
we 
see that the labels of the Image Chart are overlapped. Therefore, it doesn't 
seem smart to use both apis.So, I would like to know if there is a workaround 
for this problem.I would also be thankful for suggestions of other non-flash 
solutions for charts, that can be easily exported.Thanks in advance.
> []'s -- Renato Beserra Sousa
> 
> 


Hi Renato,

i've been using the new aka Visualization API for displaying interactive graphs 
in my GWT application. Now, i have the need to export these graphs to a PDF 
report, so i need to convert them to image format. I'm planning to use both 
APIS 
(aka Visualization API for interactive charts and Imagen Chart API for printing 
charts in PDF format) as I don't find any better solution.

Looking for other options i've seen you had such a problem some mounths ago, 
but 
i don't see any responses to your message...Did you finally come up with a 
better solution than using different APIS for different purposes? Other options 
i've seen are 

a) convert SVG charts to images using JavaScript code
http://www.battlehorse.net/page/topics/charts/save_google_charts_as_image.html

b) making a screenshot of the browser using a tool like this one
http://code.google.com/p/speak-
lib/source/browse/#svn/trunk/WebShot%3Fstate%3Dclosed

Thanks in advance! 

Victor

-- 
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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2012-08-28 Thread Fille

Is there any reason for not using just gwt HTML or somthing else with 
@UiHandler("loginButton") to make a RPC-call for log in?

Ex:

UiBinder:

 
 
  LOGIN 



Composite:
@UiHandler("loginButton")
void onLoginClick(ClickEvent e) {
// make RPC-call and validate user.
}

Or is it just for autocomplete?



Den torsdagen den 26:e februari 2009 kl. 18:21:23 UTC+1 skrev Thomas Broyer:
>
> If you want to have browsers auto-complete username/password in your 
> application's login form, you probably did (*I* did) this: 
> 1. follow recommandations from 
> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ, 
>
> i.e. your form and fields have to be in the original markup and you 
> mustn't use .submit() but let the browser submit using, say... a 
> submit button? 
> 2. use something like that in your code: 
>// note the "true" second argument, to create a hidden iframe 
>FormPanel form = FormPanel.wrap(Document.get().getElementById 
> ("login"), true); 
>form.addFormPanel(new FormPanel() { 
>   public void onSubmit(FormSubmitEvent event) { 
>  // do some validation before submitting (non-empty fields) 
>  // and call event.setCancelled(true) if needed. 
>   } 
>   public void onSubmitComplete(FormSubmitCompleteEvent event) { 
>  // somehow "parse" event.getResults() to know whether it 
>  // succeeded or not. 
>   } 
>}); 
> 3. Your server have to send its response in with Content-Type:text/ 
> html, even if its JSON (hence the "parse" above) 
>
>
> But there's actually an alternative! 
>
> It never occured to me before someone pointed me to a login page that 
> does it: if your form submits to a javascript: URL, then the browser's 
> "auto-complete" feature will work (provided the form and fields were 
> in the original HTML page markup, same limitation as above). 
>
> What it means is that you can use GWT-RPC or RequestBuilder!!! 
>
> Your code now looks like: 
>private static native void injectLoginFunction() /*-{ 
>   $wnd.__gwt_login = @com.example.myapp.client.App::doLogin(); 
>}-*/; 
>
>private static void doLogin() { 
>   // get the fields values and do your GWT-RPC call or 
>   // RequestBuilder thing here. 
>} 
>... 
>// notice that we now pass "false" as the second argument 
>FormPanel form = FormPanel.wrap(Document.get().getElementById 
> ("login"), false); 
>form.setAction("javascript:__gwt_login()"); 
>
> And of course, you can still validate the form before it's submitted: 
>
>form.addFormPanel(new FormPanel() { 
>   public void onSubmit(FormSubmitEvent event) { 
>  // do some validation before submitting (non-empty fields) 
>  // and call event.setCancelled(true) if needed. 
>   } 
>   public void onSubmitComplete(FormSubmitCompleteEvent event) { 
>  // will never be called. 
>   } 
>}); 
>
>
> Tested in IE7, Firefox 3.0 and Opera 10alpha; please update if it 
> works (or doesn't work) for you in other browsers. 
> The previous solution (using the iframe) was successfully tested in 
> IE6, IE7, IE8 (beta 1 at that time), Firefox 2 and 3.0, Opera (9.62 at 
> that time), Safari 3 for Windows and Google Chrome (1 and 2).

-- 
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/-/-ktcdiMB_nAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to size a widget for optimal presentation?

2012-08-28 Thread Magnus
Hello,

I have a Widget "SelectionField", which extends Composite and contains a 
label and a button, within a HorizontalPanel.

The label should always occupy all the horizontal space that is available 
besides the button.

I tried to set its width to "100%". I also tried around with RequiresResize 
and onResize, but nothing worked.

How would you do this?

Thanks
Magnus

-


public class SelectionField extends Composite implements
{
 private HorizontalPanel pnl = new HorizontalPanel ();
 private Label   lbl_Tournament = new Label ();
 private PushButton  btn_Select = new PushButton (">");
 
 public SelectionField()
 {
  super ();
 
  initWidget (pnl);

  pnl.setBorderWidth(1);
  pnl.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
  
  pnl.add (lbl_Tournament);
  pnl.add (btn_Select);

  lbl_Tournament.setWidth("200px");
 }
}

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



SOLVED - Re: CellTable - Synchronization problem with AsyncDataProvider

2012-08-28 Thread Magnus
Hi,

I'm sorry, but I made a stupid mistake. I set both row data and row count 
within on RangeChanged, but I only used the (correct) user filter when 
fetching the row data via RPC call. When fetching the row count via RPC 
call I used a new, empty user filter, so the count was wrong.

Sorry for the time...
Magnus

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



Maven gwt module dependency with an other gwt module dependency

2012-08-28 Thread Saik0
Hi @all

i'm have an issue with maven and external jars as gwt module jars.

Given is the following project structure:

1) Root Projekt : gwt-main

2) Singe GWT View : gwt-viewer-test

3) Model : gwt-model

The Root Projekt use the gwt-viewer-test and gwt-model project. The 
gwt-model project is also used by the gwt-viewer-test project. The 
dependencies are organized with maven. If i build the root project i have 
still this issue:

[ERROR] : public class de.gwt.viewer.test.ViewerTest
private [unresolved] de.gwt.model.ModelTest model

This looks like gwt could not obtain the sources of the gwt-model project 
that is used in gwt-test-viewer and in the root project. if i build the 
root project without the viewer project gwt finds the sources of the model 
project.
What i'm missing?

greetings
Saik0

-- 
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/-/WBDB_XD8O3YJ.
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: FF DevMode plugin + Memory leaks (+ "Address already in use")

2012-08-28 Thread Thomas Broyer
In other words: it looks like the Firefox plugin doesn't send a QuitMessage 
to the DevMode, and worse, is kept alive in the background!

On Tuesday, August 28, 2012 11:05:38 AM UTC+2, Chris Lercher wrote:
>
> I analyzed this a bit more (this time on Linux), and I noticed, that the 
> number of Thread also grows: 1 thread per reload. Again, this happens only 
> with Firefox, not with Chrome. So probably the ClassLoader references will 
> be discarded only when the Thread terminates...
>
> One more thing that might be interesting: When closing the entire FF 
> instance (just closing the tab is not enough), then the threads are 
> discarded, and Heap/PermGen space can be garbage collected.
>
> By the way, closing the FF instance leads to the following Exception 
> printed by the DevMode server:
>
> 10:53:21.549 [ERROR] [mymodule] Remote connection lost
>
> com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote 
> connection lost
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:308)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.EOFException: null
> at java.io.DataInputStream.readByte(DataInputStream.java:250)
> at 
> com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType(BrowserChannel.java:1100)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:284)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
> at java.lang.Thread.run(Thread.java:662)
>
>
>
>
> On Tuesday, August 28, 2012 2:07:02 AM UTC+2, Brian Slesinsky wrote:
>>
>> That's an interesting report. We always want to garbage collect the 
>> ClassLoader when the session is over and if that doesn't happen, it's a 
>> bug. I don't know why Firefox would behave differently; the JVM side should 
>> work the same way for Firefox versus Chrome. The only thing I can think of 
>> is some difference in distributed garbage collection, but that shouldn't 
>> matter once the session ends.
>>
>> Alan's not on the team anymore. I'd like to fix this, but I'm busy with 
>> other things and I don't have a good idea where to begin. If someone's 
>> handy with a memory profiler, figuring out what's preventing the 
>> classloader from being gc-ed in this case would be very useful.
>>
>> - Brian
>>
>>

-- 
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/-/5saLTgZ7UjEJ.
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: FF DevMode plugin + Memory leaks (+ "Address already in use")

2012-08-28 Thread Chris Lercher
I analyzed this a bit more (this time on Linux), and I noticed, that the 
number of Thread also grows: 1 thread per reload. Again, this happens only 
with Firefox, not with Chrome. So probably the ClassLoader references will 
be discarded only when the Thread terminates...

One more thing that might be interesting: When closing the entire FF 
instance (just closing the tab is not enough), then the threads are 
discarded, and Heap/PermGen space can be garbage collected.

By the way, closing the FF instance leads to the following Exception 
printed by the DevMode server:

10:53:21.549 [ERROR] [mymodule] Remote connection lost

com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection 
lost
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:308)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(DataInputStream.java:250)
at 
com.google.gwt.dev.shell.BrowserChannel$Message.readMessageType(BrowserChannel.java:1100)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:284)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:662)




On Tuesday, August 28, 2012 2:07:02 AM UTC+2, Brian Slesinsky wrote:
>
> That's an interesting report. We always want to garbage collect the 
> ClassLoader when the session is over and if that doesn't happen, it's a 
> bug. I don't know why Firefox would behave differently; the JVM side should 
> work the same way for Firefox versus Chrome. The only thing I can think of 
> is some difference in distributed garbage collection, but that shouldn't 
> matter once the session ends.
>
> Alan's not on the team anymore. I'd like to fix this, but I'm busy with 
> other things and I don't have a good idea where to begin. If someone's 
> handy with a memory profiler, figuring out what's preventing the 
> classloader from being gc-ed in this case would be very useful.
>
> - Brian
>
>

-- 
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/-/0tBYLSRxh1AJ.
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: FlowPanel problem.

2012-08-28 Thread Antoine Lever
float: left worked perfectly - thank you very much!


On Saturday, August 25, 2012 4:55:59 AM UTC+1, Alfredo Quiroga-Villamil 
wrote:
>
> This should be of help: 
>
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#LayoutPanels
>  
>
> "HorizontalPanel is a bit trickier. In some cases, you can simply 
> replace it with a DockLayoutPanel, but that requires that you specify 
> its childrens' widths explicitly. The most common alternative is to 
> use FlowPanel, and to use the float: left; CSS property on its 
> children. And of course, you can continue to use HorizontalPanel 
> itself, as long as you take the caveats above into account." 
>
> Best regards, 
>
> Alfredo 
>
>
>
> On Thu, Aug 23, 2012 at 11:16 AM, Antoine Lever 
> > wrote: 
> > I want to add a number of DecoratorPanels horizontally until there's no 
> more room and then move onto another row.  I'm therefore trying to use a 
> FlowPanel.  No matter what I do, the DecoratorPanels appear vertically and 
> not horizontally.  What am I doing wrong?  Please help! 
> > 
> > Thank you 
> > 
> > public void onModuleLoad() { 
> > FlowPanel fp = new FlowPanel(); 
> > 
> > AbsolutePanel ap1 = new AbsolutePanel(); 
> > AbsolutePanel ap2 = new AbsolutePanel(); 
> > AbsolutePanel ap3 = new AbsolutePanel(); 
> > 
> > DecoratorPanel dp1 = new DecoratorPanel(); 
> > DecoratorPanel dp2 = new DecoratorPanel(); 
> > DecoratorPanel dp3 = new DecoratorPanel(); 
> > 
> > ap1.setSize("50px", "100px"); 
> > ap2.setSize("50px", "100px"); 
> > ap3.setSize("50px", "100px"); 
> > 
> > dp1.add(ap1); 
> > dp2.add(ap2); 
> > dp3.add(ap3); 
> > 
> > fp.add(dp1); 
> > fp.add(dp2); 
> > fp.add(dp3); 
> > 
> > RootPanel.get().add(fp); 
> > } 
> > 
> > -- 
> > 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/-/uYjm10JAoH8J. 
> > To post to this group, send email to 
> > google-we...@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. 
> > 
>
>
>
> -- 
> Alfredo Quiroga-Villamil 
>
> AOL/Yahoo/Gmail/MSN IM:  lawwton 
>

-- 
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/-/Brky9SZmq14J.
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: SuggestBox implementation

2012-08-28 Thread Ümit Seren
public class CustomSuggestOracle extends SuggestOracle{

List citySugggestions = null;

@Override
public void requestSuggestions(Request request, Callback callback) {

Response response  = new
Response(getMatchingCities(request.getQuery(), request.getLimit()));
callback.onSuggestionsReady(request,response);
}

private List getMatchingCities(String query, int 
limit) { 

List list = new ArrayList();
//get List of suggested from the backend with RPC

}
}

And when you create the SuggestBox you pass your CustomSuggestOracle
as a constructor parameter

On Mon, Aug 27, 2012 at 8:50 PM, Deepak Singh  wrote:
> I would be using RPC and returning the List.
>
> Then how should i go ahead for implementation of CustomSuggestOracle ?
>
>
> On Mon, Aug 27, 2012 at 8:26 PM, Ümit Seren  wrote:
>>
>> it depends how you access your backend? How do you transmit your DTO's
>> from the backend to the frontend?
>> Manually parsing JSON? RequestFactory? RPC?
>>
>> On Mon, Aug 27, 2012 at 4:49 PM, Deepak Singh 
>> wrote:
>> > I understand this. But my question is how do i implement
>> > CustomSuggestOracle.java
>> >
>> > What will be implementation of the method getMatchingCities() in
>> > customSuggestionOracle ?
>> >
>> > Thanks
>> > Deepak
>> >
>> >
>> > On Mon, Aug 27, 2012 at 12:42 PM, Ümit Seren 
>> > wrote:
>> >>
>> >> It depends how you want to access your backend. Assuming you do a
>> >> normal
>> >> Ajax call you could do something like this:
>> >>
>> >> private List getMatchingCities(String query, int
>> >> limit)
>> >> {
>> >> List list = new ArrayList();
>> >> RequestBuilder request = new
>> >> RequestBuilder(RequestBuilder.GET,url+"?query="+query+"&limit=" +
>> >> limit);
>> >> request.setCallback(new RequestCallback() {
>> >> @Override
>> >> public void onResponseReceived(Request request, Response response) {
>> >> //parse the result (maybe JSON) and populate your ArrayList
>> >> }
>> >> @Override
>> >> public void onError(Request request, Throwable exception) {
>> >> // TODO Auto-generated method stub
>> >> }
>> >> });
>> >> try
>> >> {
>> >> request.send();
>> >> }
>> >> catch (Exception e) {
>> >> }
>> >> }
>> >>
>> >> On Sunday, August 26, 2012 11:20:31 PM UTC+2, Deepak Singh wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I tried this way
>> >>>
>> >>> public class CustomSuggestion implements Suggestion{
>> >>> public CityNameDTO dto = null;
>> >>> public CustomSuggestion(CityNameDTO dto) {
>> >>> this.dto = dto;
>> >>> }
>> >>> @Override
>> >>> public String getDisplayString() {
>> >>> return dto.getCityName();
>> >>> }
>> >>>
>> >>> @Override
>> >>> public String getReplacementString() {
>> >>> return dto.getCityId();
>> >>> }
>> >>>
>> >>> }
>> >>>
>> >>>
>> >>> public class CustomSuggestOracle extends SuggestOracle{
>> >>>
>> >>> List citySugggestions = null;
>> >>> @Override
>> >>> public void requestSuggestions(Request request, Callback callback) {
>> >>> Response response  = new
>> >>> Response(getMatchingCities(request.getQuery(),
>> >>> request.getLimit()));
>> >>> }
>> >>> private List getMatchingCities(String query, int
>> >>> limit)
>> >>> {
>> >>> List list = new ArrayList();
>> >>> }
>> >>> }
>> >>>
>> >>>
>> >>> Now i am not able to understand how to go ahead with this
>> >>> customSuggestOracle.
>> >>>
>> >>> Could you pls guide me here?
>> >>>
>> >>> Thanks
>> >>> Deepak
>> >>>
>> >>> On Sun, Aug 26, 2012 at 11:18 PM, Thomas Broyer 
>> >>> wrote:
>> 
>> 
>> 
>>  On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote:
>> >
>> > But after selecting a value, how do i get the id of the selected
>> > value?
>> 
>> 
>>  SuggestBox works best if you use the ID as the "replacementString"
>>  and
>>  the label as the "displayString" of the Suggestions in your
>>  SuggestOracle.
>>  In that case, you don't have to do anything, the ID will be set in
>>  the text
>>  box upon selecting a suggestion.
>>  (e.g. the "replacement string" is an email address, and the display
>>  string also contains the full name, the oracle using both the full
>>  name and
>>  email address for providing suggestions)
>> 
>>  --
>>  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/-/Ldxgth8ifd0J.
>> 
>>  To post to this group, send email to google-we...@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.
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Deepak Singh
>> >>
>> >> --
>> >> You