Extjs: Eclipse and spket Development Environment Construction

Source: Internet
Author: User

1.4 How to Learn extjs
How to Learn ext is a question that readers who are new to it will ask? The best way to learn ext is to implement an application system independently. The functions of this demo system can be improved based on the examples in the ext package, in the process of implementing the system, you will certainly encounter such a problem. You can solve or try to analyze the source code of ext from the relevant forum to analyze the problem. Before development, we must first know where to download Ext, how to build a quick development environment and good forums. The following sections describe these aspects.
Obtain and deploy the source code
First, we need to obtain the ext source code or related files. We can download the latest website from http://www.extjs.com/products/extjs/download.php. The current version is 2.2,

Click Download next to the extjs2.2 SDK to download the required ext class library. It includes source code, instances, documents, etc.
After the download is complete, in order to run its documents or examples, we need to decompress the files and deploy them in containers, such as IIS and tomcat. You only need to copy the root directory folder to the corresponding container. Next, you can use
Http: // localhost: 8080/ext-2.2/docs/index.html this way to access its documentation, or through
Http: // localhost: 8080/ext-2.2/examples/samples.html to access its instance,

 


 
We can analyze the implementation process through the demonstration of its instance.
Build the development environment of eclipse and spket
We also need to find a good tool before using and developing Ext. Ext has many classes and methods, which basically cannot remember every Spelling. We need to find the relevant prompt tool. But it is very difficult to prompt JavaScript. Apanata can be said to have done a good job, but the ext prompt is not reversed. Spket is a powerful tool for developing Ext. Not only supports dot-string prompts, but also supports chainedCodeView. This is of great help for learning Ext.
Spket can be used for free. It is provided as an Eclipse plug-in. We can integrate spket with fewer powerful functions in eclipse. In this way, other code or JS can be developed in the same tool. Installing spket in eclipse is simple: the steps are as follows:
1. In the eclipse menu, choose help> Software Updates> Find and install...> search for new features to install-> new remote site .... A window is displayed, for example, enter "spket" in name:, and enter http://www.spket.com/update/in URL /. Click OK. Then follow the prompts to perform related operations step by step. After the download is complete, restart eclipse.

 


2. Choose WINDOW> preferences> spket> JavaScript profiles> new from the eclipse menu. In the displayed window, enter "extjs" and click "OK. In this case, extjs will appear in the main window. Select "extjs" and click "add library" to bring up a small window. In this small window, select "extjs" from the drop-down menu ", specify the type for extjs. Next select "extjs" in the main window and click "add file", then select the "Ext. JSB" file in your./ext-2.x/source directory;
3. Set the new extjs profile, select and click the "defalut" button on the right of the "javascript profiles" dialog box;
4. Open Js in window-> preferences-> General-> editors-> file... select JS as spket JavaScript Editor (default ).
Now we can use spket in ext. Let's take a look at its functions. As long as you place the cursor in the relative method, its usage instructions will pop up. In code writing, it will automatically prompt, which provides great convenience for development and learning. In addition, when you press Ctrl +, the system will jump to the source code of the method. As shown in


Learning Forum
when learning and using Ext, you will certainly encounter various problems. If you cannot solve these problems by yourself, you have to turn to others. EXT is widely used and has many forums on the Internet to discuss related technologies. I will introduce some common forums.
U ext official forum
ext official forum is the most authoritative forum for discussing ext technology. It is a window for ext to communicate with users. It not only provides many ext extension components. It also provides new ext functional requirements, help and many other sections. The problem can be basically solved here. Its website is http://www.extjs.com/forum /.
U javaeye Forum
unlike Ext, javaeye is a Chinese forum. Its Ajax module has basically become a specialized edition for Chinese ext experts to discuss ext technology. Here you can quickly get the relevant ext technical help and learning materials. Its website is http://www.javaeye.com/forums.
U dojo China
dojo China was originally designed to implement a Chinese Ajax website for dojo. However, it is now a website where ext-related knowledge is explained. From the perspective of its name, ext is a nondescribable domain name, however, some articles and video tutorials are of great help to beginners. Its website is http://www.dojochina.com /.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.