TabSwitcher is build inside afterCompose

This commit is contained in:
Óscar González Fernández 2009-12-05 19:20:25 +01:00
parent 3833ba9cbb
commit 6dc4a263e5
2 changed files with 2 additions and 8 deletions

View file

@ -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() {

View file

@ -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>