📄 datasource.js
字号:
// 2. Download the SmartClient personality: // +externalLink{http://smartclient.com/product/SmartClient_ATF_Personality_1.0.zip,SmartClient_ATF_Personality_1.0.zip}<p>// 3. Unzip the above archive into your eclipse installation directory. This will create// three directories under the plugins directory: <i>com.smartClient.core_1.0.0,// com.smartClient.runtime_1.0.0, com.smartClient.ui_1.0.0</i>.<p>// 4. For the next step, you will need to have downloaded and unzipped a copy of the// SmartClient Evaluation SDK, available from// +externalLink{http://smartclient.com/product/download.jsp}. You can of course also use// any other licensed copy of SmartClient. From the SDK, copy the <i>isomorphic</i>// directory from smartclientRuntime into the// <i>eclipse/plugins/com.smartClient.runtime_1.0.0/resources</i> directory.// <p>// You're all set. When you next start Eclipse, you'll be able to select ATF->SmartClient as// a new Project Facet during project creation or add it as a facet to an existing project.// You can then create new SmartClient Applications by right-clicking on your project and// selecting New->Other->SmartClient->SmartClient Application. And you'll be able to use the// provided snippets to quickly create components. If you have any problems, please post to// the +externalLink{http://forums.smartclient.com,forums}.//// @title Eclipse Integration// @visibility external//<//> @groupDef featureExplorerOverview//// The +docTreeLink{FeatureExplorer, Feature Explorer} is an example shell designed to help you// explore the capabilities of SmartClient. Read on for a brief overview, including specific// instructions for using the example code in your own standalone application.// <p>// The tree on the left of the Feature Explorer contains examples grouped by logical// categories. Selecting an example brings it up on the right side of the screen, inside a// tabbed view. The default "View" tab shows the interactive example itself, while other// tabs show the underlying source. The "JS" tab shows the source for the example. There is// sometimes also an "XML" tab that shows the corresponding version in // +link{componentXML, Component XML} format. For databound examples, there are also// frequently additional tabs that show the +link{dataSource, DataSources} associated with the// example.// <p>// <b><u>How to create a standalone application using code from the Feature Explorer</u></b>// <p>// The Feature Explorer shell is designed to show many examples in one place and to enable// experimentation by providing a way for you to modify example code and try out your changes.// As a result, the Feature Explorer requires some basic server support and its examples omit// the usual SmartClient module includes that have to be in place for using SmartClient// components standalone.// <p>// If you'd like to use example code in your application to get started quickly, create a page// with SmartClient includes and then take the code from the "JS" tab and place it between// <SCRIPT> blocks as described +link{group:nonJavaBackend, here}. If the example also// includes a datasource, place the datasource definitions in the same file before the// component code. Note that DataSources (and components) written in XML require the optional// SmartClient server. If you're using the server, you can include them on your page using the // +link{group:loadDSTag} tag.// <p>// <b><u>Feature Explorer difference in the LGPL package</u></b>// <p>// The LGPL edition of SmartClient does not include the SmartClient Java Server as part of the// licensed software, but a trimmed down server is included in the package to support the// Feature Explorer shell. There are some examples that use DataSources that would normally// use the SmartClient server for persistence. In the LGPL package, these DataSources are// automatically turned into +link{group:clientOnlyDataSources, Client Only DataSources} and// the Feature Explorer loads the data for these one-time from the dataURL or testFileName// attributes specified on the DataSource. Subsequent DataSource operations work against this// client-side dataset, which is why changes to the data aren't permanent in these examples.// <p>// Check out the +link{clientServerIntegration, Client-Server Integration} overview topic for// an overview of your DataBinding options.//// @title Feature Explorer Overview// @visibility external//<//> @groupDef iscInstall//// This overview serves as a how-to for installing SmartClient into your web application.// Evaluators are urged to use the SmartClient SDK with the embedded tomcat servlet engine// during evaluation rather than persue installation into an existing web application up front,// however, reading this document and the related +link{group:clientServerIntegration,server// integration} materials is recommended to get an overview.// <P>// SmartClient has two pieces - the client components that run in the browser and the server// components that run in a J2SE compatible container. You don't need to use a Java back-end// to use SmartClient, but the SDK comes with some examples that assume the presence of the// Java back-end and, for some examples, a SQL Database. If you will be using SmartClient with// a Java back-end, see below for the list of J2SE application servers supported by the Java// implementation of the SmartClient server.// <p>// The SDK contains two top-level directories: <code>smartclientSDK</code> and// <code>smartclientRuntime</code>. The <code>smartclientSDK</code> directory contains the// membedded servlet engine, embedded database, examples, and documentation. The// <code>smartclientRuntime</code> directory contains just the client and server components of// the SmartClient product - use the contents of this directory when deploying SmartClient into// your application environment.// <p>// <u><b>Client integration</b></u>// <p>// To install the client-side portion of SmartClient, simply copy the <code>isomorphic</code>// directory from the smartclientRuntime webroot to the webroot of your application. Having// done this you can use SmartClient components on your pages regardless of the technologies// used on your back-end and you can bind to server-side componentry backed by arbitrary// technology - see the <i>Data Integration</i> section of the// +link{group:clientServerIntegration} section for more information.// <p>// <u><b>Server integration</b></u>// <p>// SmartClient can be +link{group:nonJavaBackend,integrated with any backend} without// installing the SmartClient Java server. However, the SmartClient server accelerates Java// integration and provides other useful facilities, including server-push and network// performance enhancements. See the +link{group:iscServer,SmartClient Server summary} for// details.// <P>// To integrate the server portion of SmartClient, you need to follow the steps below for each// application (WAR) that uses SmartClient. Note that, if installing into an environment that// uses multiple WARs, installation of SmartClient JARs into a directory shared by multiple// applications is not supported. Installation of a separate WAR with client-side SmartClient// modules for maintaining cache coherence across applications using the same version of ISC is// supported - contact Isomorphic support for more details on how to set that up. // <p>// <ul>// <li> Copy all files from WEB-INF/lib directory of the smartclientRuntime to your// WEB-INF/lib. SmartClient// leverages a number of third-party libraries - if there are conflicts with the versions you// want to use, use the versions you want - SmartClient has minimal dependencies on these// libraries. Contact Isomorphic with any specific questions about compatibility.// See the "Java Module Dependencies" section below for a dependency tree that will// help you select a minimal set of JARs to deploy.// <li> Copy the WEB-INF/classes/log4j.isc.config.xml from the smartclientRuntime to your// WEB-INF/classes// directory. This file contains the SmartClient server log configuration.// <li> Copy the WEB-INF/classes/server.properties from the smartclientRuntime to your WEB-INF/classes// directory. This file contains settings for basic file locations such the location of// webroot, the SmartClient SQL engine and DMI. The version under smartclientRuntime has a// basic, secure configuration. See the version of server.properties under the// smartclientSDK directory for sample SQL and other settings.// <li> Copy the WEB-INF/iscTaglib.xml from the smartclientRuntime to your WEB-INF directory.// This file enables the use of custom SmartClient tags in your JSPs. // <li> Merge portions of the WEB-INF/web.xml into your application's web.xml. To use// SmartClient JSP tags like <loadISC>, you'll need to merge the <jsp-config>// section from web.xml. Also there are some mandatory and optional servlets and filters to// merge - see below.// </ul>// <u>Merging web.xml</u>// <p>// The following is a description of the servlets and filters you'll find in the web.xml file// contained in the smartclientRuntime and what they do:// <p>// <i>Core Functionality</i>// <ul>// <li>Init servlet- <b>required:</b> initializes the SmartClient server componentry from config files// at container startup time. Notice that this servlet has no mapping - it's purely an// initialization servlet.// <li>IDACall servlet - <b>required</b> for +link{DMI}, built-in RPC operations and built-in DataSource// operations to work. All databound examples in the SDK use this servlet. If you're planning on// using a custom actionURL for all your RPC requests, then you don't need this servlet.// <li>FileDownload servlet - required for serving the Isomorphic framework code compressed and with// caching headers as well as for serving skin images with caching headers. It is highly// recommended that you use this for production but is not required. // <li>PreCache servlet - loads resources into memory on container startup. Not required, but if you// exclude this servlet there may be a slow response to the very first request.// <li>jsp-config section - the iscTaglib registration block is required to use// <isomorphic> tags, and the *.isc and *.rpc mappings. These are optional, if you want// to use these as handy development tools.// </ul>// <p>// <i>Optional Functionality</i>// <ul>// <li>HttpProxy - used by the RPCManager when sending AJAX RPCs to a server other than the// server that serves the main application page. You need to install this servlet if, for// example, your application will be querying web services exposed by servers other than the// server that is serving the rest of the application. See the javadoc for this servlet for// various configuration options, such as how to restrict the URLs that are allowed to be// proxied. // <li>MessagingServlet - used by the realtime messaging system. If you're planning// on using this subsystem, you'll need this servlet.// <li>CompressionFilter - required if you want to use dynamic compression of html and js// files.// <li>JSSyntaxScannerFilter - development tool that looks for trailing commas in JS// source (scans html files for <script> tags and scans .js files in their entirety).// This is a useful development tool, but should not be included in production.// <li>NoCacheFilter - development tool that makes any content it intercepts non-cacheable in// order to ensure developers are looking at the latest version of a file when modifying// examples. Not for production use.// </ul>// Note that not all of the servlets and filters listed under <i>Optional Functionality</i>// above are present in the web.xml that ships with the smartclientRuntime - if you need to use// any of these, copy their configuration from the web.xml available under the WEB-INF// directory of smartclientSDK. Other servlets, filters and configuration files from the// smartclientSDK should not be copied to your deployment, simply because the SDK includes many// developer tools that are not extensively audited from a security standpoint.// <p>// <u><b>Java Module Dependencies</b></u>// <p>// The following is a description of what functionality is contained in each SmartClient JAR// file, and which other SmartClient JARs and third party libraries are required to enable that// functionality. Note that actual filenames in WEB-INF/lib will typically contain the version// number of the library, whereas the library names below simply list the base name.// <ul>// <li><b>isomorphic_core_rpc</b>: This is the core SmartClient module. It provides the RPC, DMI,// and DataSource support.<br>// <u>Requires</u>:<br>// commons-cli<br>// commons-collections<br>// commons-pool<br>// commons-codec<br>// isc-jakarta-oro<br>// log4j<br>// commons-jxpath<br>// commons-httpclient<br>// velocity<br>// <u>Optionally Requires</u>:<br>// xercesImpl - if you're using JDK < 1.5<br>// xml-apis - if you're using JDK < 1.5<br>// commons-fileupload - if you plan to use the upload form item with// SmartClient processing.<br>// </li>// <li><b>isomorphic_web_services</b>: Web services examples only. Contains code backing the// SmartClientOperations.wsdl example. Do not deploy in production.<br>// <u>Requires</u>:<br>// isomorphic_core_rpc<br>// axis<br>// axis-schema<br>// commons-discovery<br>// commons-logging<br>// jaxrpc<br>// saaj<br>// wsdl4j<br>// </li>// <li><b>isomorphic_tools</b>: Contains back-end logic for the "Admin Console" tool visible in// the Developer Console, and also standalone from the SDK home page. This is an SDK-only// tool, not intended for production deployment, and further intended for rapid prototyping// only. Do not deploy this module to production, but you may use it in your development if// you're using the SmartClient rapid prototyping SQL engine.<br>// <u>Requires</u>:<br>// isomorphic_core_rpc<br>// isomorphic_sql<br>// </li>// <li><b>isomorphic_embedded_tomcat</b>: This contains the bootstrap class for the Embedded// Tomcat engine shipped with the SmartClient SDK. It is not intended to be used in any way// other than via the start_embedded_tomcat.bat|sh|command scripts in the webRoot of the// SDK.<br>// <u>Requires</u>:<br>// isomorphic_core_rpc<br>// All JARs under WEB-INF/embeddedTomcat/lib<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -