Maybe this might be of help: https://github.com/ArcBees/GWTP/wiki/Presenter-%22Slots%22
- I wouldn't recommend to call the lifecycle method manually. It should work just fine without them.
- You want to use the
setInSlot()
method because at any point only onePresenterWidget
is active.
However you are using different SLOTS for each PresenterWidget
. The way setInSlot()
works is that it replaces whatever PresenterWidget
that was assigned to that slot. Because you use different slots for each tab, it won't remove the other PresenterWidgets
. The other PresenterWidget
s stay in their slots and probably that's the reason why onReset()
is called on them.
You have 2 choices:
- If you want to keep the different slots you should call
removeFromSlot
on all non-visiblePresenterWidgets
. - Specify just one slot (TAB_CONTENT) and simply use
setInSlot()