hugoloza / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Add new life cycle method to presenters that is called before they are hidden #432

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I propose an additional life cycle method to presenters that gets called just 
before the presenter is hidden. 

An example for this use is to integrate the GWT Editor framework with the leave 
confirmation of GWTP place manager so the presenter has a chance to check if 
the view is dirty (any changes made) before it is hidden. If there are changes 
the leave confirmation is set and the user will have to confirm that they want 
to leave the page.

Workaround:
Make a custom event, e.g BeforeNavigationEvent and build a custom place manager 
that fires it.

See this Google groups thread for discussion regarding this issue and example 
code of place manager:
https://groups.google.com/forum/#!topic/gwt-platform/JW4a3Pb6qhs

Original issue reported on code.google.com by sarkhee on 1 Aug 2012 at 12:42

GoogleCodeExporter commented 9 years ago
There's already onHide, couldn't you use that?

Original comment by goudreau...@gmail.com on 27 Nov 2012 at 2:41

GoogleCodeExporter commented 9 years ago
The problem is that onHide is called when the presenter is hidden, and there is 
no way of preventing it from being hidden in onHide (AFAIK).

In order to set the placeManager.setOnLeaveConfirmation() you need to do it 
before onHide().

Original comment by sarkhee on 27 Nov 2012 at 3:05

GoogleCodeExporter commented 9 years ago
I surprised with the analysis you made to make this particular publish 
incredible. Wonderful activity .  
http://www.genemedics.com/hormone-replacement-for-men/

Original comment by contenta...@gmail.com on 26 Jan 2013 at 11:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is an interesting and so well maintained blog. Whole article is too good 
and well 
written.http://www.realestatepatron.com/dubai-real-estate-companies.html

Original comment by tariqash...@gmail.com on 30 Jan 2013 at 10:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had been looking through several of your articles for this website and I 
believe this site is extremely informative! Keep in 
posting.http://www.sleekcarhire.co.uk

Original comment by tariqash...@gmail.com on 31 Jan 2013 at 7:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Great post i must say and thanks for the information. Education is definitely a 
sticky subject. 
http://www.cheapcar4hire.co.uk

Original comment by tariqash...@gmail.com on 4 Feb 2013 at 5:43

GoogleCodeExporter commented 9 years ago
live more at a dark up to on the reaction a state on ill grade rule in the 
offing in give you an position for on the be trial on behalf of up of out 
overtake.
http://dissertationproposal.info/sociology-dissertation-writing.htm

Original comment by dejakali...@gmail.com on 11 Apr 2013 at 3:29

GoogleCodeExporter commented 9 years ago
This is impressive and also great information. I personally liked going through 
your solid points on this topic. Many thanks for creating such excellent 
material. This is excellent.
<a href="http://www.5thavenueapps.com/">Android Application Development</a>

Original comment by AlinaBil...@gmail.com on 26 Nov 2013 at 5:51

GoogleCodeExporter commented 9 years ago
This framework is really a tough to do like this all data are settle by the 
programmer and manage it self. http://www.dissertationavenue.co.uk/

Original comment by williamp...@gmail.com on 28 Nov 2013 at 5:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you for this amazing post. I'll share this with others also. 
http://www.theclippingpathindia.com/clipping-path-service.html

Original comment by ahshan...@gmail.com on 25 Jun 2014 at 5:59