PacktLib: Lift Application Development Cookbook

Lift Application Development Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Getting Started with Lift Basics

Introduction

Creating a Lift application using SBT

Creating a Lift application using Maven

Defining a SiteMap

Logging using logback

Sending e-mails using Gmail's SMTP server

Working with HTML

Introduction

Transforming HTML elements using their IDs

Creating an HTML list using CSS selectors

Creating an HTML table with dynamically defined columns

Nesting snippets

Dynamic menu rendering

Localizing templates

Testing snippets using Specs2

Creating custom error pages

Sending JavaScript commands from the server

Invoking server-side functions from the client

Working with Forms

Introduction

Creating forms

Validating forms

Creating an Ajax form

Creating multipage forms

Defining a relation between form fields

Working with REST

Introduction

Getting data from the server

Creating data using the REST service

Modifying data using the REST service

Deleting data using the REST service

Testing a REST service using Specs2

Uploading a file using the REST service

Creating an RSS feed

Working with Databases

Introduction

Configuring a connection to database

Mapping a table to a Scala class

Creating one-to-many relationships

Creating many-to-many relationships

Creating CRUD features with CRUDify

Paginating result sets

Using an in-memory database in application tests

Working with Record

Introduction

Configuring a connection to a database using Squeryl

Mapping a table to a Scala class

Migrating the database using Liquibase

Creating one-to-many relationships

Creating many-to-many relationships

Paginating result sets using Record

Testing your application using an in-memory database

Working with MongoDB

Introduction

Connecting to MongoDB using record

Mapping a MongoDB collection to a Scala class

Mapping embedded objects

Mapping referenced objects

Querying with Rogue

Integrating Lift with Social Media

Introduction

Signing up using a Facebook account

Fetching a user's Facebook data

Signing up using a Gmail account

Fetching a user's Gmail data

Signing up using a LinkedIn account

Fetching a user's LinkedIn data

Signing up using a Twitter account

Fetching a user's Twitter data

Index