On 12 nov, 01:24, Julio Faerman <[email protected]> wrote:
> I want to start one activity (my form) inside another (my app). I am
> trying to do that with the 2.1 MVP Framwork and would like to know...
>
> 1) Is it possible to configure the ActivityManager (or add place
> parameter) so that my FormActivity.start() receives a inner panel of
> my app instead of the outer one set by
> activityManager.setDisplay(appWidget) when the EntryPoint was loaded?

No.

> 2) The documentation reads "your app could create a CompositePlace,
> CompositeActivity, and CompositePlace.Tokenizer classes that delegate
> to the constituent members". Have anyone implemented that? (and would
> be kind enough to share)

We did create something similar to a "composite activity" (for a
"dashboard"). The idea is to *not* use an ActivityManager for these
inner parts, but manage your "sub activities" lifecycle "by hand".
In retrospect though, I don't think using the Activity interface for
our "dashlets" really brings us anything; we are nesting what I call
"MVP components", but not really "activities" (the dashboard is the
activity).

> 3) Is there another way or recommended practice?

I'd recommend reading 
http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni

Another approach could be that your "inner activity" isn't an "inner",
but rather an "outer", which shares some code with your current "outer
activity" (i.e. the FormActivity doesn't start *within* the other, but
it *replaces* it, just like any activity, and reuses part of its view,
and maybe part of its presentation logic too)

(you can also wait a bit and see what GWT-P developers will
propose ;-) )

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

Reply via email to