diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-27 14:20:21 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2011-04-27 14:20:21 +0000 |
commit | d4b866253fc80c8771833821e446d7d13eadb975 (patch) | |
tree | 2bd43d6a507ec768dac8dde7d34146c31b051fcb /WebContent/multiwidgetset.html | |
parent | 3e2dbdf311ec68e3d7c2ca632f4829531521ca3c (diff) | |
download | vaadin-framework-d4b866253fc80c8771833821e446d7d13eadb975.tar.gz vaadin-framework-d4b866253fc80c8771833821e446d7d13eadb975.zip |
preliminary support for multiple widgetset on a same host page
svn changeset:18507/svn branch:6.6
Diffstat (limited to 'WebContent/multiwidgetset.html')
-rw-r--r-- | WebContent/multiwidgetset.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/WebContent/multiwidgetset.html b/WebContent/multiwidgetset.html new file mode 100644 index 0000000000..1fee38fb22 --- /dev/null +++ b/WebContent/multiwidgetset.html @@ -0,0 +1,68 @@ +<!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 : { + 'fb' : { + appUri : '/sampler', + // sampler only works with sampler widgetset + widgetset : 'com.vaadin.demo.sampler.gwt.SamplerWidgetSet', + themeUri : '/VAADIN/themes/sampler-reindeer', + versionInfo : { + vaadinVersion : "6.0.0-INTERNAL-NONVERSIONED-DEBUG-BUILD", + applicationVersion : "NONVERSIONED" + } + }, + '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/sampler-reindeer', + versionInfo : { + vaadinVersion : "6-INTERNAL-NONVERSIONED-DEBUG-BUILD", + applicationVersion : "NONVERSIONED" + } + }, + 'colorpicker' : { + appUri : '/colorpicker', + widgetset : 'com.vaadin.demo.colorpicker.gwt.ColorPickerWidgetSet', + themeUri : '/VAADIN/themes/sampler-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> +<script language='javascript' + src='/VAADIN/widgetsets/com.vaadin.demo.sampler.gwt.SamplerWidgetSet/com.vaadin.demo.sampler.gwt.SamplerWidgetSet.nocache.js'></script> +<link rel="stylesheet" type="text/css" + href="/VAADIN/themes/sampler-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 three 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="fb" style="height: 400px; border: 2px solid red; margin: 0"></div> + <div id="calc" style="border: 2px solid green; margin: 0"></div> + <div id="colorpicker" style="border: 2px solid blue; margin: 0"></div> +</body> +</html> |