GWT XTender Setup Guide

unalaskaweepingInternet και Εφαρμογές Web

19 Ιουλ 2012 (πριν από 4 χρόνια και 9 μήνες)

260 εμφανίσεις

XTT™ v 6.0.0
GWT XTender Setup Guide
Table of Contents
Copyright..........................................................................................................................................................1/6
GWT XTender.................................................................................................................................................2/6
What is GWT XTender.........................................................................................................................2/6
Installation Instructions........................................................................................................................2/6
XTT/GWT XTender plugins are installed; Now What?.......................................................................2/6
Create GWT_HOME Classpath variable.......................................................................................2/6
Download the xtender−examples workspace for Eclipse..............................................................3/6
Compile and Run XTender sample application.............................................................................3/6
Next steps..............................................................................................................................................4/6
Appendices........................................................................................................................................................5/6
Appendix A: About the GWT XTender...............................................................................................5/6
Getting Further Assistance....................................................................................................................6/6
GWT XTender Setup Guide
i
Copyright
Copyright © 2000−2008 InsiTech, Inc. All Rights Reserved.
Restricted Rights Legend
This software and documentation is subject to and made available only pursuant to the terms of the InsiTech,
Inc. End−User License Agreement (EULA) and may be used or copied only in accordance with the terms of
that agreement. It is against the law to copy the software except as specifically allowed in the agreement. This
document may not, in whole or in part, be copied photocopied, reproduced, translated, or reduced to any
electronic medium or machine readable form without prior consent, in writing, from InsiTech, Inc.
Use, duplication or disclosure by the U.S. Government is subject to restrictions set forth in the InsiTech, Inc.
EULA and in subparagraph (c)(1) of the Commercial Computer Software−Restricted Rights Clause at FAR
52.227−19; subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software Clause at DFARS
252.227−7013; subparagraph (d) of the Commercial Computer Software−Licensing clause at NASA FAR
supplement 16−52.227−86; or the equivalent.
Information in this document is subject to change without notice and does not represent a commitment on the
part of InsiTech, Inc. THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT
WARRANTY OF ANY KIND INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. FURTHER, INSITECH, INC.
DOES NOT WARRANT, GUARANTEE, OR MAKE ANY REPRESENTATIONS REGARDING THE
USE, OR THE RESULTS OF THE USE, OF THE SOFTWARE OR WRITTEN MATERIAL IN TERMS OF
CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE.
Trademarks or Service Marks
XTT, XTTC, XTTS, GWT XTender are trademarks of InsiTech, Inc.
XTT − Copyright © 2000−2008 InsiTech Inc. All rights reserved. Patent pending.•
Java API for XML Processing (JAXP 1.1) − Copyright © 1995−2001 Sun Microsystems, Inc.•
Apache Tomcat − Apache is a trademark of The Apache Software Foundation, and is used with
permission.

kXML − Open source parser hosted at kxml.org. Available under the GNU Public License (GPL),
V2.0.

Hypersonic SQL (HSQLDB) − Copyright (c) 1995−2000 by the Hypersonic SQL Group. All rights
reserved. Please refer to the EULA ("software license agreement.txt" found in your InsiTech
installation folder) for full legal details concerning usage of this product.

All other product names may be trademarks of the respective companies with which they are
associated.

1/6
GWT XTender
What is GWT XTender
GWT XTender provides a MVC (Model−View−Control) pattern for any application built with GWT (Google
Web Toolkit). The primary feature of XTender is its data binding. It does the following:
Allows via eclipse wizard to create data binding between UI Widgets and data objects•
Data binding code generated is typically 1 or 2 lines.•
All data changes can be tracked in the GWT client application (Supports change tracking for client
side data.)

Automated "Save Changes" capability.•
Provides a clear separation between data model and displayed data in visual controls.•
Provides hooks for custom data validation and formatting of the data.•
Consumes GWT RPC and REST style messages.•
Allows you to have the flexibility of choosing a data from some feed and via data binding point it to
the GUI Widget of your choice without the need of rewriting large parts of the application.

Extensible to any GWT capable UI Widget set.•
Installation Instructions
GWT XTender is build alongside of XTT. To ensure proper installation of GWT XTender please follow
installation instructions for XTT as outlined in the Setup Guide.
GWT XTender widget binding wizard is currently supported only with the Eclipse IDE.
The GWT XTender plugin contributes a project, a wizard, and new libraries. They are outlined in Appendix
A.
XTT/GWT XTender plugins are installed; Now What?
We will use xtender−examples project workspace to demonstrate the capabilities of XTender. The
demonstration will use the ANT−based flavor of the XTT Examples project workspace.
Create GWT_HOME Classpath variable
GWT_HOME variable needs to point to the root of the GWT installation. You define a new Eclipse
classpath variable with these steps: Window−> Preferences...−> Java −> Build Path −> Classpath Variables
−> New...
Use GWT_HOME for the 'Name' and the location of GWT installation (ie: 'c:\gwt−windows−1.4.61') for the
'Path'.
2/6
Download the xtender−examples workspace for Eclipse
Please follow this link http://www.insitechinc.com/download.php3 and download the accompanying the
ANT−based xtender−examples project workspace. It is not contained in the shipped plugins.
Now you need to import xtender−examples project into Eclipse. The steps to accomplish this are the same as
for the xtt−examples project workspace. They are outlined in: Setup Guide under the following headings:.
XTT plugins are installed; Now What?•
Download the xtt−examples workspace for Eclipse♦
Unzip the xtt−examples workspace for Eclipse♦
Open the xtt−examples workspace in the IDE♦
Once the xtender−examples projects are imported into Eclipse, you can move to the next step 'Compile and
Run XTender sample application'.
Compile and Run XTender sample application
Compile XTender projects
In the Package Explorer tab select xtt−examples project.1.
Right click on the selected xtender project and choose XTT Wizards > Export and WAR. This
action performs two tasks:
It generates the buildfiles (build.xml) for each projectA.
It runs the make−war target of the Ant script file xttbuild.xml. This Ant script does the
following:
Aggregates the client libraries under the web application root (required for Java Web
Start and Java Plug−in deployments)

Builds a distributable WAR file for the web project (created in the
xtt−examples/dist folder).

Run GWT compiler on Java code and complies it into runnable JavaScript.◊
B.
2.
Wait until you see the "Finished assembling WAR." message in the Console.3.
GWT XTender Setup Guide
3/6
Run XTender sample application
In the Package Explorer tab open xtender−gwt project and open xttbuild.xml file with1.
In the xttbuild.xml run the run−gwt−main task. This task will launch the XTender GWT
application using the projects's own scripts.
2.
You should see the application:3.
Next steps
You have successfully completed the setup.
Please consult the GWT XTender Developer Guide (in the Eclipse menu under Help > Help Contents >
XTT Help > Product Documentation > GWT XTender Developer Guide) for further instructions.
GWT XTender Setup Guide
4/6
Appendices
Appendix A: About the GWT XTender
The GWT XTender 6.0.0 contributes the following items to the Eclipse IDE.
GWT XTender Widget Binding Wizard is available in the context menus of the Java editor only when
working with in GWT type project .
XTT Wizards −> GWT XTender Widget Binding Wizard♦
1.
A new palette tab is now available; GWT XTender. This palette contains extend GWT UI Widgets
that are data bound.
2.
The following libraries are now available to be added to projects:
GWT XTender Client Library♦
GWT XTender Server Library♦
GWT XTender EXT2 Widget Library♦
GWT XTender MYGWT Widget Library♦
XTT Server Dozer Dependencies Library♦
XTT Server Dozer Library♦
XTT Server Velocity Library♦
3.
A new GWT XTender Project. This project needs to be added to the XTT workspace in order to use
the GWT XTender Widget Binding Wizard . New GWT XTender Project creation tools available
under the New Project menu.
4.
5/6
Getting Further Assistance
To get free assistance installing XTT, please email InsiTech support at support@itgp.com.
GWT XTender Setup Guide
6/6