Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Enterprise Application Development with Ext JS and Spring

You're reading from   Enterprise Application Development with Ext JS and Spring Designed for intermediate developers, this superb tutorial will lead you step by step through the process of developing enterprise web applications combining two leading-edge frameworks. Take a big leap forward in easy stages.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781783285457
Length 446 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Gerald Gierer Gerald Gierer
Author Profile Icon Gerald Gierer
Gerald Gierer
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Preparing Your Development Environment FREE CHAPTER 2. The Task Time Tracker Database 3. Reverse Engineering the Domain Layer with JPA 4. Data Access Made Easy 5. Testing the DAO Layer with Spring and JUnit 6. Back to Business – The Service Layer 7. The Web Request Handling Layer 8. Running 3T on GlassFish 9. Getting Started with Ext JS 4 10. Logging On and Maintaining Users 11. Building the Task Log User Interface 12. 3T Administration Made Easy 13. Moving Your Application to Production A. Introducing Spring Data JPA
Index

Let's log on!

It is now time to enable our controllers and test the functionality. Update the Application.js file as displayed in the following code:

Ext.define('TTT.Application', {
    name: 'TTT',
    extend: 'Ext.app.Application',
    requires: ['TTT.view.Viewport', 'TTT.view.LogonWindow'],
    models: ['User'],
    controllers: ['MainController', 'UserController'],
    stores: ['User'],
    init: function(application){
        TTT.URL_PREFIX = 'ttt/';
        Ext.Ajax.on('beforerequest', function(conn, options, eOpts){
            options.url = TTT.URL_PREFIX + options.url;
        });        
    },
    launch: function() {
        var me = this;
        TTT.console = function(output) {
            if (typeof console !== 'undefined') {
                console.info(output);
            }
        };
        me.logonWindow = Ext.create('TTT.view.LogonWindow...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image