Hi,
I am trying to implement Master and Details using activities and places. Below are code snippets
<g:FlowPanel>
<g:SimplePanel styleName="{style.entityDetails}" ui:field='master'></g:SimplePanel>
</g:FlowPanel>
<g:SimplePanel styleName="{style.entityDetails}" ui:field='details'></g:SimplePanel>
</g:FlowPanel>
Attached each activity mappers for views
final ActivityManager masterActivityManager = new ActivityManager(applicationMasterActivities, eventBus);
masterActivityManager.setDisplay(shell.getMasterPanel());
final ActivityManager detailsActivityManager = new ActivityManager(applicationDetailsActivities, eventBus);
detailsActivityManager.setDisplay(shell.getDetailsPanel());
Problem is when I got any place both the activities are getting evoked. I want details activity only when someone selects on celltable(which will be attached to master display)
Thanks,
Sai
Most of my apps use this pattern:
Activity/Place associated with the url / Activity making rpc and
loading a View
This also works if multiple Views need to be managed from the same
Activity.
If however different Views require their own data sources then the
pattern changes to:
Activity/Place associated with the url / Activity managing
multiple Presenters / Presenter making rpc and loading a View