Lift in Action: The Simply Functional Web Framework for Scala

Lift in Action: The Simply Functional Web Framework for Scala

Timothy Perrett

Language: English

Pages: 424

ISBN: 1935182803

Format: PDF / Kindle (mobi) / ePub


Summary

Lift in Action is a step-by-step exploration of the Lift framework. It moves through the subject quickly using carefully crafted, well-explained examples that make you comfortable from the start. This book is written for developers who are new to both Scala and Lift.

About the Technology

Lift is a Scala-based web framework designed for extremely interactive and engaging web applications. It's highly scalable, production-ready, and will run in any servlet container. And Lift's convention-over-configuration approach lets you avoid needless work.

About this Book

Lift in Action is a step-by-step exploration of the Lift framework. It moves through the subject quickly using carefully crafted, well-explained examples that make you comfortable from the start. You'll follow an entertaining Travel Auction application that covers the core concepts and shows up architectural and development strategies. Handy appendixes offer a Scala crash course and guidance for setting up a good coding environment.

This book is written for developers who are new to both Scala and Lift and covers just enough Scala to get you started.

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

What's Inside

  • Complete coverage of the Lift framework
  • Security, maintainability, and performance
  • Integration and scaling
  • Covers Lift 2.x

Table of Contents

    PART 1 GETTING STARTED
  1. Introducing Lift
  2. Hello Lift
  3. PART 2 APPLICATION TUTORIAL
  4. The auction application
  5. Customers, auctions, and bidding
  6. Shopping basket and checkout
  7. PART 3 LIFT IN DETAIL
  8. Common tasks with Lift WebKit
  9. SiteMap and access control
  10. HTTP in Lift
  11. AJAX, wiring, and Comet
  12. Persistence with Mapper
  13. Persistence with Record

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Show sample text content

Invoke Basket.items snippet Define template for basket when empty 93 Implementing the basket and checkout process Once again, this template uses the TestCond snippet to determine whether the user is logged in or not B. From there, the Basket.items snippet determines the appropriate content node in the XHTML C. Specifically, if the basket has items, it renders the

suppose the following listing shows the contents of a parent template called default.html found in webapp/templates-hidden. Listing 6.1 Example of a parent template 109 Templates, snippets, and views My Application B Bind placeholder For the

allows you to execute a side-effecting function with full access to the incoming Req instance. The final step before moving on to a stateless dispatch, is ensuring that this request doesn’t have any HTTP authentication applied, based on the definition at LiftRules.httpAuthProtectedResource, which we touched on in chapter 7. With the request now through the preservice validation, Lift checks to see if the request should be dealt with via the stateless dispatch mechanism (covered in section 8.3) or

Download sample

Download