Thursday, January 31, 2013

Re: Cancel CellList selection



On Tuesday, January 29, 2013 6:43:11 PM UTC+1, BM wrote:
I was looking something similar and your example is perfect. I am going with approach of having my custom SingleSelectionHandler i.e PromptingSelectionModel . My view is more like GWT Showcase CellList-DetailForm example. If I click on my cell, my code populates the form elements. My Form is a separate GWT custom widget FormAWidget with its own presenter FormAPresenter. 

So with that being said, I probably will be storing a variable "hasUnsavedChanged" in ClientFactory which gets updated whenever my form data is changed. How do I get that variable inside my PromptingSelectionModel class so that I can check that variable in my overridden setSelected method? Since I use GWT MVP structure my ViewA holds declaration of CellList and PromptingSelectionModel. The ActivityA has reference to ClientFactory, the only way I can think of is passing the ClientFactory to my ViewA class with setClientFactory(ClientFactory cf) and pass that ClientFactory object to PromptingSelectionModel constructor. I don't like the idea of my views now having reference of ClientFactory.

"ClientFactory" (if you copied it form the Dev Guide) is supposed to be about "manual dependency injection". You shouldn't pass it around (if you were using a JSR330 DI framework or similar, such as GIN, you wouldn't even pass it to the activities, you'd instead inject a Provider<HelloView>). If you happen to need it in the view, then give it to the view when it's constructed (the view is constructed by the ClientFactory, right?)

That said, I believe the selection model should live in the presenter: it's part of the "presentation logic".

Please advise if you can see any better way of doing this.


Avoid global shared state. Don't put "hasUnsavedChanges" in your ClientFactory. That information belongs to your form (and in this case, its presenter). Then inject objects into each other as needed so they have access to the information.

 

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

Re: Strange behavior with ie8 permutation

Ok, with the HTML5 doctype, IE8 will use Internet Explorer 8 for the document and the browser mode.
So, with your IE8 permutation, you have tried the IE8 document and browser mode.

Could you try the IE8 permutation with the Quirks Mode ? you can do that by enforcing ie to use it (Developer Tools -> document mode -> Quirks)


2013/1/31 Nicolas Wetzel <wetzeln@gmail.com>
Hello Damien,
Answer to the first question: the browser is IE8 for all tests and the doctype is switched from <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> to the standard : <!doctype html>
Answer to the second question:
actual configuration in production <set-property name="user.agent" value="gecko1_8,ie6,safari" />

testing configuration <set-property name="user.agent" value="gecko1_8,ie6,ie8,ie9,safari" />
with this testing configuration and IE8 browser, we can switch between ie6 and ie8 permutation with a click on the compatibility view button (close to the refresh button) on the browser, we can check in the ie cache that the ie6 permutation is loaded when the compatibility is activated.

2013/1/31 Damien Picard <picard.damien@gmail.com>
Hello,

When you start your application on ie8 without the compatibility tag, what are the browser and the document mode used ?

Furthermore, which permutation tag do you use in your .gwt.xml ?

Regards,


2013/1/30 Nicolas Wetzel <wetzeln@gmail.com>
Hello, 

We have  a gwt app with only one permutation for Internet Explorer (ie6) and the html tag  <meta http-equiv="X-UA-Compatible" content="IE=7"/> for compatibility.

We think about to add to ie8 and ie9 and remove the html tag. 

But after some performance tests on a IE8 browser, the ie8 permutation appears to be "slower" than the ie6 one.


With IE8, the application's initial loading (e.g the time measured between the forward of the host html page and the first statement in the EntryPoint onModuleLoad() method) takes 4 seconds while it only takes  2 seconds  when for the ie6 permutation + compatibilty tag.


The size of javascript compiled is about to 3.5 MB size for both permutations.

After this initial loading, the IE8 permutation seems to be more efficient (we can monitor all the javascript computation time) but waiting 4 seconds is to long to decide to switch.
We also started working on code splitting but it requieres a lot of effort & time.

Is there anyone who met this kind of problem?

nicolas

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



--
Damien Picard
Axeiya Services : http://axeiya.com/
stillcollab-surface : http://code.google.com/p/stillcollab-surface/
Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html

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

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



--
Damien Picard
Axeiya Services : http://axeiya.com/
stillcollab-surface : http://code.google.com/p/stillcollab-surface/
Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html

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

Implementing forgot password using gwt

I am implementing forgot password in my site. Create a link and send to gmailId and click on link and reset password. My problem is that i am sending emailid in encrypted form with link using(DES) so how to save key value for decription.

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

Re: Strange behavior with ie8 permutation

Hello Damien,
Answer to the first question: the browser is IE8 for all tests and the doctype is switched from <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> to the standard : <!doctype html>
Answer to the second question:
actual configuration in production <set-property name="user.agent" value="gecko1_8,ie6,safari" />

testing configuration <set-property name="user.agent" value="gecko1_8,ie6,ie8,ie9,safari" />
with this testing configuration and IE8 browser, we can switch between ie6 and ie8 permutation with a click on the compatibility view button (close to the refresh button) on the browser, we can check in the ie cache that the ie6 permutation is loaded when the compatibility is activated.

2013/1/31 Damien Picard <picard.damien@gmail.com>
Hello,

When you start your application on ie8 without the compatibility tag, what are the browser and the document mode used ?

Furthermore, which permutation tag do you use in your .gwt.xml ?

Regards,


2013/1/30 Nicolas Wetzel <wetzeln@gmail.com>
Hello, 

We have  a gwt app with only one permutation for Internet Explorer (ie6) and the html tag  <meta http-equiv="X-UA-Compatible" content="IE=7"/> for compatibility.

We think about to add to ie8 and ie9 and remove the html tag. 

But after some performance tests on a IE8 browser, the ie8 permutation appears to be "slower" than the ie6 one.


With IE8, the application's initial loading (e.g the time measured between the forward of the host html page and the first statement in the EntryPoint onModuleLoad() method) takes 4 seconds while it only takes  2 seconds  when for the ie6 permutation + compatibilty tag.


The size of javascript compiled is about to 3.5 MB size for both permutations.

After this initial loading, the IE8 permutation seems to be more efficient (we can monitor all the javascript computation time) but waiting 4 seconds is to long to decide to switch.
We also started working on code splitting but it requieres a lot of effort & time.

Is there anyone who met this kind of problem?

nicolas

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



--
Damien Picard
Axeiya Services : http://axeiya.com/
stillcollab-surface : http://code.google.com/p/stillcollab-surface/
Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html

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

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

How to best (de)-serialize objects?

Hi,

I want to serialize a bunch of objects to a file, and later derserialize it.
The purpose is to let a user draw something on a canvas, save the objects representing the drawing to a file, and later continue it's work.

So I'm probably looking for a way of JSON. I read of JSNI and GWT Overlay Types. But this would mean I have to manually define every property that is to be serialized back and forth.

Isn't there anything build-in mechanism to just save a whole bunch of objects/beans to JSON and later just read it and recreate the object? Without having to care about all properties contained?

Thanks

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

Re: Strange behavior with ie8 permutation

Hello,

When you start your application on ie8 without the compatibility tag, what are the browser and the document mode used ?

Furthermore, which permutation tag do you use in your .gwt.xml ?

Regards,


2013/1/30 Nicolas Wetzel <wetzeln@gmail.com>
Hello, 

We have  a gwt app with only one permutation for Internet Explorer (ie6) and the html tag  <meta http-equiv="X-UA-Compatible" content="IE=7"/> for compatibility.

We think about to add to ie8 and ie9 and remove the html tag. 

But after some performance tests on a IE8 browser, the ie8 permutation appears to be "slower" than the ie6 one.


With IE8, the application's initial loading (e.g the time measured between the forward of the host html page and the first statement in the EntryPoint onModuleLoad() method) takes 4 seconds while it only takes  2 seconds  when for the ie6 permutation + compatibilty tag.


The size of javascript compiled is about to 3.5 MB size for both permutations.

After this initial loading, the IE8 permutation seems to be more efficient (we can monitor all the javascript computation time) but waiting 4 seconds is to long to decide to switch.
We also started working on code splitting but it requieres a lot of effort & time.

Is there anyone who met this kind of problem?

nicolas

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



--
Damien Picard
Axeiya Services : http://axeiya.com/
stillcollab-surface : http://code.google.com/p/stillcollab-surface/
Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html

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

Re: GWT Application misbehaving on Chrome



On Thursday, January 31, 2013 9:27:49 AM UTC+1, Celinio Fernandes wrote:

I have the same problem with a DecoratedTabPanel, not a DeckLayoutPanel.
Is this also fixed in GWT 2.5 ?

GWT 2.5 fixes all animations.
But it shouldn't be an issue anymore anyway, as I'm told the change in Chrome has been reverted: https://groups.google.com/d/msg/google-web-toolkit/UBWsvHYM4SE/SZ7xwzqBGV8J

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