open domain-tab on login
This commit is contained in:
parent
2b24c2e9ff
commit
0a24cdb088
@ -38,6 +38,7 @@ public class EntryPoint extends CustomComponent {
|
||||
tab.addComponent(selectTable);
|
||||
tab.setSizeFull();
|
||||
setCompositionRoot(tab);
|
||||
setSizeFull();
|
||||
}
|
||||
|
||||
public void fillTable() {
|
||||
|
@ -42,13 +42,14 @@ public class EntryPointsSelector extends CustomComponent implements ItemClickLis
|
||||
private void createTabs() throws RpcException {
|
||||
final String role = getRole();
|
||||
final AbstractEntryPointsFactory entryPointsFactory = FactoryProducer.getEntryPointsFactory("default");
|
||||
boolean hasFirstTab = false;
|
||||
int tabCount = 0;
|
||||
for(String tabName : entryPointsFactory.getEntryPointNames(role)) {
|
||||
accordion.addTab(new EntryPoint(this, tabName), I18N.getText(tabName));
|
||||
hasFirstTab = true;
|
||||
tabCount++;
|
||||
}
|
||||
if (hasFirstTab) {
|
||||
final Component component = accordion.getTab(0).getComponent();
|
||||
if (tabCount > 0) {
|
||||
accordion.setSelectedTab(tabCount - 1);
|
||||
final Component component = accordion.getTab(tabCount - 1).getComponent();
|
||||
if (component instanceof EntryPoint) {
|
||||
((EntryPoint) component).fillTable();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user