setting a tab sheet caption from code doesnt seem to be working. I tried both in the beforeShowEvent and AfterShowEvent. Nnote that Im using a fragment but I don’t expect this to be an issue, with a debugger I can see the code being executed.
@Named("tabsheet.myTab")
private VBoxLayout myTab;
@Subscribe(target = Target.PARENT_CONTROLLER)
private void onAfterShowHost(Screen.AfterShowEvent event) {
myTab.setCaption("Some caption");
}
@Subscribe(target = Target.PARENT_CONTROLLER)
private void onBeforeShowHost(Screen.BeforeShowEvent event) {
myTab.setCaption("does this work?");
}