embedd hsarweb in index.jsp
This commit is contained in:
parent
34242861e7
commit
a6efd768aa
@ -5,8 +5,25 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<title>HSAdmin Web Client</title>
|
<title>HSAdmin Web Client</title>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var vaadin = {
|
||||||
|
vaadinConfigurations: {
|
||||||
|
'hsarweb': {
|
||||||
|
appUri:'/hsarweb/MainApplication',
|
||||||
|
pathInfo: '/',
|
||||||
|
themeUri: '/hsarweb/VAADIN/themes/hs',
|
||||||
|
versionInfo : {}
|
||||||
|
}
|
||||||
|
}};
|
||||||
|
</script>
|
||||||
|
<script language='javascript' src='/hsarweb/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/com.vaadin.terminal.gwt.DefaultWidgetSet.nocache.js'>
|
||||||
|
</script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="/hsarweb/VAADIN/themes/reindeer/styles.css"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
|
||||||
|
<h1>HSAdmin Web</h1>
|
||||||
|
<div id="hsarweb" style="width:100%;height:800px;"
|
||||||
|
class="v-app v-app-loading v-theme-reindeer v-app-MainApplication"> </div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -18,11 +18,9 @@ import com.vaadin.terminal.Terminal;
|
|||||||
import com.vaadin.terminal.ThemeResource;
|
import com.vaadin.terminal.ThemeResource;
|
||||||
import com.vaadin.terminal.gwt.server.HttpServletRequestListener;
|
import com.vaadin.terminal.gwt.server.HttpServletRequestListener;
|
||||||
import com.vaadin.ui.Component;
|
import com.vaadin.ui.Component;
|
||||||
import com.vaadin.ui.CustomLayout;
|
|
||||||
import com.vaadin.ui.TabSheet;
|
import com.vaadin.ui.TabSheet;
|
||||||
import com.vaadin.ui.TabSheet.SelectedTabChangeEvent;
|
import com.vaadin.ui.TabSheet.SelectedTabChangeEvent;
|
||||||
import com.vaadin.ui.TabSheet.Tab;
|
import com.vaadin.ui.TabSheet.Tab;
|
||||||
import com.vaadin.ui.VerticalLayout;
|
|
||||||
import com.vaadin.ui.Window;
|
import com.vaadin.ui.Window;
|
||||||
import com.vaadin.ui.Window.Notification;
|
import com.vaadin.ui.Window.Notification;
|
||||||
|
|
||||||
@ -71,10 +69,6 @@ public class MainApplication extends Application implements HttpServletRequestLi
|
|||||||
showSystemException(e);
|
showSystemException(e);
|
||||||
}
|
}
|
||||||
Window mainWindow = new Window(localeConfig.getText("applicationtitle"));
|
Window mainWindow = new Window(localeConfig.getText("applicationtitle"));
|
||||||
VerticalLayout verticalLayout = new VerticalLayout();
|
|
||||||
verticalLayout.setSizeFull();
|
|
||||||
CustomLayout banner = new CustomLayout("../../hs/layout/header");
|
|
||||||
verticalLayout.addComponent(banner);
|
|
||||||
TabSheet tabs = new TabSheet();
|
TabSheet tabs = new TabSheet();
|
||||||
tabs.setSizeFull();
|
tabs.setSizeFull();
|
||||||
String modulesParamString = localeConfig.getText("modules." + role);
|
String modulesParamString = localeConfig.getText("modules." + role);
|
||||||
@ -96,11 +90,7 @@ public class MainApplication extends Application implements HttpServletRequestLi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
tabs.addListener(this);
|
tabs.addListener(this);
|
||||||
verticalLayout.addComponent(tabs);
|
mainWindow.setContent(tabs);
|
||||||
verticalLayout.setExpandRatio(tabs, 1.0f);
|
|
||||||
CustomLayout footer = new CustomLayout("../../hs/layout/footer");
|
|
||||||
verticalLayout.addComponent(footer);
|
|
||||||
mainWindow.setContent(verticalLayout);
|
|
||||||
setMainWindow(mainWindow);
|
setMainWindow(mainWindow);
|
||||||
setErrorHandler(new Terminal.ErrorListener() {
|
setErrorHandler(new Terminal.ErrorListener() {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
Loading…
Reference in New Issue
Block a user