[jboss-cvs] jboss-seam/examples/remoting/gwt/view ...
Shane Bryzak
sbryzak at redhat.com
Mon Oct 15 21:15:17 EDT 2007
User: sbryzak2
Date: 07/10/15 21:15:17
Added: examples/remoting/gwt/view HelloWorld.html gwt.js
history.html
Log:
re-added new versions
Revision Changes Path
1.3 +1 -12 jboss-seam/examples/remoting/gwt/view/HelloWorld.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HelloWorld.html
===================================================================
RCS file: HelloWorld.html
diff -N HelloWorld.html
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ HelloWorld.html 16 Oct 2007 01:15:17 -0000 1.3
@@ -0,0 +1,49 @@
+<html>
+ <head>
+
+ <!-- -->
+ <!-- Any title is fine -->
+ <!-- -->
+ <title>Wrapper HTML for HelloWorld</title>
+
+ <!-- -->
+ <!-- Use normal html, such as style -->
+ <!-- -->
+ <style>
+ body,td,a,div,.p{font-family:arial,sans-serif}
+ div,td{color:#000000}
+ a:link,.w,.w a:link{color:#0000cc}
+ a:visited{color:#551a8b}
+ a:active{color:#ff0000}
+ </style>
+
+ </head>
+
+ <!-- -->
+ <!-- The body can have arbitrary html, or -->
+ <!-- you can leave the body empty if you want -->
+ <!-- to create a completely dynamic ui -->
+ <!-- -->
+ <body>
+
+ <script language="javascript" src="org.jboss.seam.example.remoting.gwt.HelloWorld.nocache.js"></script>
+
+ <!-- OPTIONAL: include this if you want history support -->
+ <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
+
+ <h1>HelloWorld</h1>
+
+ <p>
+ This is an example of a host page for the HelloWorld application.
+ You can attach a Web Toolkit module to any HTML page you like,
+ making it easy to add bits of AJAX functionality to existing pages
+ without starting from scratch.
+ </p>
+
+ <table align=center>
+ <tr>
+ <td id="slot1"></td><td id="slot2"></td>
+ </tr>
+ </table>
+ </body>
+</html>
1.3 +19 -574 jboss-seam/examples/remoting/gwt/view/gwt.js
(In the diff below, changes in quantity of whitespace are not shown.)
Index: gwt.js
===================================================================
RCS file: gwt.js
diff -N gwt.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gwt.js 16 Oct 2007 01:15:17 -0000 1.3
@@ -0,0 +1,36 @@
+// Copyright 2007 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+//
+// This startup script is for legacy support and is now deprecated. Instead of
+// using this script, just include the selection script directly.
+//
+(function(){
+ var metas = document.getElementsByTagName("meta");
+ for (var i = 0, n = metas.length; i < n; ++i) {
+ var meta = metas[i], name = meta.getAttribute("name");
+ if (name == "gwt:module") {
+ var modName, content = meta.getAttribute("content");
+ if (content) {
+ var eqPos = content.lastIndexOf("=");
+ if (eqPos != -1) {
+ modName = content.substring(eqPos + 1);
+ content = content.substring(0, eqPos) + '/' + modName;
+ } else {
+ modName = content;
+ }
+ document.write('<script src="' + content + '.nocache.js"></script>');
+ }
+ }
+ }
+})();
1.3 +7 -6 jboss-seam/examples/remoting/gwt/view/history.html
(In the diff below, changes in quantity of whitespace are not shown.)
Index: history.html
===================================================================
RCS file: history.html
diff -N history.html
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ history.html 16 Oct 2007 01:15:17 -0000 1.3
@@ -0,0 +1,21 @@
+<html>
+<head>
+<script>
+function hst() {
+ var search = location.search;
+ var historyToken = '';
+ if (search.length > 0)
+ historyToken = search.substring(1);
+
+ document.getElementById('__gwt_historyToken').value = historyToken;
+ if (parent.__gwt_onHistoryLoad) {
+ parent.__gwt_onHistoryLoad(historyToken);
+ }
+}
+</script></head>
+<body onload='hst()'>
+
+<input type='text' id='__gwt_historyToken'>
+
+</body>
+</html>
More information about the jboss-cvs-commits
mailing list