Lift Cookbook Recipes from the Community for Building Web Applications with Scala 190
Chapter 1 : Installing and Running Lift
Downloading and Running Lift
Creating a Lift Project from Scratch Using SBT
Developing Using a Text Editor
Incorporating JRebel
Developing Using Eclipse
Developing Using IntelliJ IDEA
Viewing the lift_proto H2 Database
Using the Latest Lift Build
Using a New Version of Scala
Chapter 2 : HTML
Testing and Debugging CSS Selectors
Sequencing CSS Selector Operations
Setting Meta Tag Contents
Setting the Page Title
HTML Conditional Comments
Returning Snippet Markup Unchanged
Snippet Not Found When Using HTML5
Avoiding CSS JavaScript and Caching
Adding to the Head of a Page
Custom 404 Page
Other Custom Status Pages
Links in Notices
Link to Download Data
Test on a Req
Rendering Textile Markup
Chapter 3 : Forms Processing in Lift
Plain Old Form Processing
Ajax Form Processing
Ajax JSON Form Processing
Use a Date Picker for Input
Making Suggestions with Autocomplete
Offering Choices with Radio Buttons
Conditionally Disable a Checkbox
Use a Select Box with Multiple Options
File Upload
Chapter 4 : REST
DRY URLs
Missing File Suffix
Missing .com from Email Addresses
Failing to Match on a File Suffix
Accept Binary Data in a REST Service
Returning JSON
Google Sitemap
Calling REST Service from a Native iOS Application
Chapter 5 : JavaScript, Ajax, and Comet
Trigger Server-Side Code from a Button
Call Server When Select Option Changes
Creating Client-Side Actions in Your Scala Code
Focus on a Field on Page Load
Add a CSS Class to an Ajax Form
Running a Template via JavaScript
Move JavaScript to End of Page
Run JavaScript on Comet Session Loss
Ajax File Upload
Format a Wired Cell
Chapter 6 : Request Pipeline
Debugging a Request
Running Code When Sessions Are Created (or Destroyed)
Run Code When Lift Shuts Down
Running Stateless
Catch Any Exception
Streaming Content
Serving a File with Access Control
Access Restriction by HTTP Header
Accessing HttpServletRequest
Force HTTPS Requests
Chapter 7 : Relational Database Persistence with Record and Squeryl
Configuring Squeryl and Record
Using a JNDI DataSource
One-to-Many Relationship
Many-to-Many Relationship
Adding Validation to a Field
Custom Validation Logic
Modify a Field Value Before It Is Set
Testing with Specs
Store a Random Value in a Column
Automatic Created and Updated Timestamps
Logging SQL
Model a Column with MySQL MEDIUMTEXT
MySQL Character Set Encoding
Chapter 8 : MongoDB Persistence with Record
Connecting to a MongoDB Database
Storing a Hash Map in a MongoDB Record
Storing an Enumeration in MongoDB
Embedding a Document Inside a MongoDB Record
Linking Between MongoDB Records
Using Rogue
Storing Geospatial Values
Running Queries from the Scala Console
Unit Testing Record with MongoDB
Chapter 9 : Around Lift
Sending Plain-Text Email
Logging Email Rather than Sending
SMTP Authentication
Sending Authenticated Email
Sending Email with Attachments
Run a Task Later
Run Tasks Periodically
Fetching URLs
Chapter 10 : Production Deployment
Deploying to CloudBees
Deploying to Amazon Elastic Beanstalk
Deploying to Heroku
Distributing Comet Across Multiple Servers
Chapter 11 : Contributing, Bug Reports, and Getting Help
you'd Like Some Help
How to Report Bugs
Contributing Small Code Changes and ScalaDoc
Contributing Documentation
How to Add a New Recipe to This Cookbook
Sharing Code in Modules
Index
Colophon
- АвторRichard Dallaway
- КатегоріяПрограмування
- МоваАнглійська
- Сторінок256
- Формат145х215 мм
- Термін поставки7-10 дней
допоможіть тим, хто ще не читав