Im using jmix 2.3.4
So i have a logic which is having fragment container in MainView and swap fragments with triggers like
...
Fragment newFragment = fragments.create(this, routes.get(route));
fragmentContainer.remove(activeFragment);
fragmentContainer.add(newFragment);
...
after this i want to load data with dataLoader in fragment itself with routePointDl.load()
, i tried to put it in callbacks like onAttachEvent, onReadyEvent, onHostBeforeShow and get something only from onReady and onAttach but then another problem encounters, dataLoader is null for some reason. Also i have dataLoaderCoordinator auto="true"
in main-view-.xml
. So the question is, how to mange dataContainers in programmatically added fragments?