From: Jani Laakso Date: Tue, 3 Apr 2007 06:54:56 +0000 (+0000) Subject: Added few demos more. Enhanced documentation and looks. X-Git-Tag: 6.7.0.beta1~6488 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3febfb5a1f30fd58ae1afcdea75ad6ab5b0c9458;p=vaadin-framework.git Added few demos more. Enhanced documentation and looks. svn changeset:1099/svn branch:trunk --- diff --git a/WebContent/ToolkitMashup.jsp b/WebContent/ToolkitMashup.jsp new file mode 100644 index 0000000000..d8fce6280a --- /dev/null +++ b/WebContent/ToolkitMashup.jsp @@ -0,0 +1,65 @@ +<% + // + // Demonstrates how Toolkit application can be integrated into jsp pages + // + String test = "This text comes from EmbeddedToolkit.jsp file"; + // Toolkit application name. This is servlet URL pattern, see web.xml + String applicationName = "TableDemo"; +%> + + + + + + + Embedding Toolkit to JSP pages + + + + + + + + + + + + + + + + + + + + + +
+

<%=test %> before Toolkit application.

+
+ + + +
Loading...
+
+ + + + + + +
+

<%=test %> after Toolkit application.

+
+
+
+ + + + \ No newline at end of file diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml index 0ce0ba0bd4..13d6344e40 100644 --- a/WebContent/WEB-INF/web.xml +++ b/WebContent/WEB-INF/web.xml @@ -2,6 +2,32 @@ IT Mill Toolkit + + LayoutDemo + com.itmill.toolkit.terminal.web.ApplicationServlet + + application + com.itmill.toolkit.demo.LayoutDemo + + + + LayoutDemo + /LayoutDemo/* + + + + SelectDemo + com.itmill.toolkit.terminal.web.ApplicationServlet + + application + com.itmill.toolkit.demo.SelectDemo + + + + SelectDemo + /SelectDemo/* + + features com.itmill.toolkit.terminal.web.ApplicationServlet @@ -20,7 +46,7 @@ com.itmill.toolkit.terminal.web.ApplicationServlet application - com.itmill.toolkit.example.Parameters + com.itmill.toolkit.demo.Parameters @@ -145,7 +171,6 @@ /shortcut/* - index.html index.htm @@ -154,4 +179,5 @@ default.htm default.jsp + diff --git a/WebContent/index.html b/WebContent/index.html index fe2acbc698..f1a5098e3d 100644 --- a/WebContent/index.html +++ b/WebContent/index.html @@ -12,7 +12,7 @@
-

Feature Browser

+

Feature Browser

Autodetected mode Use AJAX if supported by browser, otherwise fallback to HTML mode @@ -29,7 +29,7 @@
-

Simple applications

+

Simple application demos

HelloWorld Simple Toolkit application. @@ -41,52 +41,100 @@
+
+

Long lifecycle of Toolkit applications

+
+

+ Demonstrates sample Millstone application that was ajaxified (upgraded to Toolkit 4.0.0) + simply by changing three import namespaces and adding Toolkit libraries to classpath. + Initial IT Mill Toolkit framework has existed since 2001 (see Millstone) and is + ready for production use today. +

+ Note: This sample application was created on year 2002. +
+
+ +

OpenAjax Hub Conformance tests

- Integrates sample Toolkit application to HTML page which performs basic OpenAjax hub conformance tests. - See HTML source what is required for integration. +

+ Performs basic OpenAjax hub conformance tests against IT Mill Toolkit. + Also demonstrates how to integrate Toolkit applications into HTML pages. +

Note: Embedded FeatureBrowser application is the same application instance that can be accessed as standalone application, see FeatureBrowser.
-

Embedding Toolkit application to other frameworks

+

Toolkit application mashup

- Integrates sample Toolkit application to JSP page. See HTML source or respective jsp - file what is required for integration. Note: Embedded TableDemo application is the same +

+ Demonstrates how Toolkit application may be integrated into other frameworks. In this example we use JSP pages. + See HTML source or respective jsp file what code blocks are required for integration. +

+ Note: Integrated TableDemo application is the same application instance that can be accessed as standalone application, see TableDemo.
+
+

LayoutDemo

+
+

+ This example demonstrates layouts for Tookit application. +

+

+ Demonstrates: how to create + com.itmill.toolkit.ui.OrderedLayout, + com.itmill.toolkit.ui.GridLayout, + com.itmill.toolkit.ui.Panel and + com.itmill.toolkit.ui.TabSheet +

+
+
+

QueryContainerDemo

+

This example shows how Table, Select and Tree UI components can use Containers. QueryContainer is used to bind SQL table rows into Toolkit UI components. Table has few example actions added. Also embedding XHTML through Label components is used. +

+

Demonstrates: how to create com.itmill.toolkit.data.Container and set it as datasource to UI components com.itmill.toolkit.ui.Component.Tree, how to receive ExpandEvent and implement com.itmill.toolkit.ui.Tree.ExpandListener, how to use com.itmill.toolkit.event.Action. +

TableDemo

- Similar to QueryContainerDemo but uses table only. Two buttons demonstrate another - possibility how event framework works, in this example specific methods are - registered for button click events. Note: This application instance is embedded - to jsp page also, see EmbeddedToolkit.jsp above. +

+ Similar to QueryContainerDemo but uses only Table component. +

+

+ Two buttons demonstrate another + possibility how event framework may be used, in this example specific methods are + registered for button click events. +

+ Note: This application instance is embedded + to jsp page also, see ToolkitMashup.jsp.

TreeFilesystemContainer

- Browsable file explorer using Toolkit Tree component. Demonstrates: how to +

+ Browsable file explorer using Toolkit Tree component. +

+ Demonstrates: how to use com.itmill.toolkit.ui.Component.Tree datasource container, how to create com.itmill.toolkit.data.util.FilesystemContainer, how to read com.itmill.toolkit.ui.Component.Event objects, how @@ -106,10 +154,20 @@
+
+

SelectDemo

+
+

+ This example shows select component with default and lazy loading functionality enabled (a.k.a Google Suggest). + Click to first select component and type few letters to see it in action. Second select component has default functionality. +

+
+
+

Modal window

- Example of Modal Window. + Example of how Modal Windows may be created using Window component.
@@ -129,17 +187,6 @@
- -
-

Upgrading from Millstone 3 to Toolkit 4.0.0

-
- Login - Simple Millstone 3.1.1 application that was upgraded to Toolkit 4.0.0 by updating three import rows. -
-
-
-
-