Re: Header + Footer with GWT 2.1 MVP
A Place is equivalent to a URL, this is "where you are", and is global to your application. Instead of having multiple places at once, you instead have ActivityMapper that react differently to the same place. In your case, for the default place, your HeaderActivityMapper would return the HeaderActivity.
See http://tbroyer.posterous.com/gwt-21-activities and http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni
If, however, your header does not change across the whole life time of your app, then you don't have to make it a display region, with its ActivityMapper and Activity, you can just put a Header widget within your DockLayoutPanel, just like any widget inside a container widget.
-- 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home