TabSwitcher is build inside afterCompose
This commit is contained in:
parent
3833ba9cbb
commit
6dc4a263e5
2 changed files with 2 additions and 8 deletions
|
|
@ -103,13 +103,6 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
@Autowired
|
||||
private IResourceDAO resourceDAO;
|
||||
|
||||
public TabsConfiguration getTabs() {
|
||||
if (tabsConfiguration == null) {
|
||||
tabsConfiguration = buildTabsConfiguration();
|
||||
}
|
||||
return tabsConfiguration;
|
||||
}
|
||||
|
||||
private TabsConfiguration buildTabsConfiguration() {
|
||||
planningTab = PlanningTabCreator.create(mode,
|
||||
companyPlanningController, orderPlanningController, orderDAO,
|
||||
|
|
@ -199,6 +192,7 @@ public class MultipleTabsPlannerController implements Composer {
|
|||
public void doAfterCompose(org.zkoss.zk.ui.Component comp) throws Exception {
|
||||
tabsSwitcher = (TabSwitcher) comp;
|
||||
breadcrumbs = comp.getPage().getFellow("breadcrumbs");
|
||||
tabsSwitcher.setConfiguration(buildTabsConfiguration());
|
||||
}
|
||||
|
||||
private TabsRegistry getTabsRegistry() {
|
||||
|
|
|
|||
|
|
@ -37,6 +37,6 @@
|
|||
<div id="idContextMenuTaskAssignment">
|
||||
<div />
|
||||
</div>
|
||||
<tabSwitcher self="@{define(content)}" configuration="@{multipleTabsPlanner.tabs}" apply="${multipleTabsPlanner}">
|
||||
<tabSwitcher self="@{define(content)}" apply="${multipleTabsPlanner}">
|
||||
</tabSwitcher>
|
||||
</zk>
|
||||
Loading…
Add table
Reference in a new issue