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
Java EE 7 Web Application Development

You're reading from   Java EE 7 Web Application Development Develop Java enterprise applications to meet the emerging digital standards using Java EE 7

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781782176640
Length 486 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Peter Pilgrim Peter Pilgrim
Author Profile Icon Peter Pilgrim
Peter Pilgrim
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Digital Java EE 7 FREE CHAPTER 2. JavaServer Faces Lifecycle 3. Building JSF Forms 4. JSF Validation and AJAX 5. Conversations and Journeys 6. JSF Flows and Finesse 7. Progressive JavaScript Frameworks and Modules 8. AngularJS and Java RESTful Services 9. Java EE MVC Framework A. JSF with HTML5, Resources, and Faces Flows B. From Request to Response C. Agile Performance – Working inside Digital Teams D. Curated References Index

UnderscoreJS


I will introduce you to one more JavaScript framework that can be helpful in development. UnderscoreJS (http://underscorejs.org/) is a framework that brings functional programming constructs and techniques to the language. The library contains over 100 methods that add functional support to JavaScript.

UnderscoreJS is a single JavaScript file downloaded just like jQuery and RequireJS. If you add the requisite versioned underscore.js file to the /js/lib folder, then you already have the means to inject it into your application. Here is the additional configuration in the file, require-setup.js:

var require = {
  shim: {
    "bootstrap" : { "deps" :['jquery'] },
    "jquery": { exports: '$' },
    "underscore": { exports: '_'}
  },
  paths: {
    "jquery" : "jquery-2.1.3",
    "bootstrap" : "bootstrap-3.2.0",  
    "underscore" : "underscore-1.8.2"
  }
};

UnderscoreJS exports the symbol underscore (_) for its library to a developer and its function methods are accessible through...

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