hugoloza / gwt-platform

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

Improve Presenter.prepareFromRequest javadoc #445

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please update javadoc for 
com.gwtplatform.mvp.client.Presenter#prepareFromRequest to clearly indicate 
that this method wouldn't be called if presenter is not called directly.

For example, when url called directly #presener1;p=1/presenter2, 
prepareFromRequest for presenter1 wouldn't be called.

I found exmplanation here 
https://groups.google.com/forum/?fromgroups=#!searchin/gwt-platform/hierarchical
$20places/gwt-platform/TcmUC0JoLJY/xstjGWpgAJsJ 

"Daniel got it right, the goal of hierarchical presenters do not reveal all the 
presenters in the hierarchy, but to trace a "path" indicating how the user 
reached the last presenter. This path, in turn, can let you display 
"path-dependent information" in the page (i.e. breadcrumbs) or perform 
"path-dependent navigation" (i.e. back to the top-level parent, etc.)"

It looks like a bug, when you face it first time, and good javadoc could save 
some nerves for new adopters

Thank you

Original issue reported on code.google.com by vya...@gmail.com on 10 Nov 2012 at 6:37