blob: 4049b25be20d5b4d523d9607e4621855e68f6d33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
style="width:100%;height:100%;border:0;margin:0;">
<head>
<title>Multiple embedded applications</title>
<script type="text/javascript">
var vaadin = {
debug: true,
vaadinConfigurations : {
'calc' : {
appUri : '/Calc',
// no widgetset defined means don't care. Most widgetset have button and gridlayout.
// First injected widgetset will start this app.
themeUri : '/VAADIN/themes/reindeer',
versionInfo : {
vaadinVersion : "6-INTERNAL-NONVERSIONED-DEBUG-BUILD",
applicationVersion : "NONVERSIONED"
}
},
'colorpicker' : {
appUri : '/colorpicker',
widgetset : 'com.vaadin.demo.colorpicker.gwt.ColorPickerWidgetSet',
themeUri : '/VAADIN/themes/reindeer',
versionInfo : {
vaadinVersion : "6.0.0-INTERNAL-NONVERSIONED-DEBUG-BUILD",
applicationVersion : "NONVERSIONED"
}
}
}
};
</script>
<script language='javascript'
src='/VAADIN/widgetsets/com.vaadin.terminal.gwt.DefaultWidgetSet/com.vaadin.terminal.gwt.DefaultWidgetSet.nocache.js'></script>
<script language='javascript'
src='/VAADIN/widgetsets/com.vaadin.demo.colorpicker.gwt.ColorPickerWidgetSet/com.vaadin.demo.colorpicker.gwt.ColorPickerWidgetSet.nocache.js'></script>
<link rel="stylesheet" type="text/css"
href="/VAADIN/themes/reindeer/styles.css" />
</head>
<body>
<iframe id="__gwt_historyFrame"
style="width: 0; height: 0; border: 0; overflow: hidden"
src="javascript:false"></iframe>
<p>Experimental test page for multiple apps and multiple widgetsets
on the same page. Try with ?debug to see two VConsoles! Test well
before using this kind of setup in production. E.g. theme conflicts
and other unknown issues may arise. E.g. Glass can get broken in your
screen, even in LCD:s. Seriously, to save bandwidth and client side load,
it is highly recommended to use the classic shared widgetset approach.</p>
<div id="calc" style="border: 2px solid green; margin: 0"></div>
<div id="colorpicker" style="border: 2px solid blue; margin: 0"></div>
</body>
</html>
|