Liftのdocument

Liftのducumentで、無料で公開されてて、よくまとまってるものがあるらしいので、ちょっと長いけど、メモ代わりに単に目次を貼りつけ




  • Contents

  • List of Figures

    1. Dedication

    2. Acknowledgements




  • The Basics

    1. Welcome to Lift!

      1. Why Lift?

      2. What You ShoOLd Know before Starting

      3. Typographical Conventions

      4. For More Information about Lift

      5. Your First Lift Application


    2. Lift Fundamentals

      1. Entry into Lift

      2. Bootstrap

        1. Class Resolution


      3. A Note on Standard Imports

      4. Lift's Main Objects

        1. S object

        2. SHtml

        3. LiftROLes


      5. The Rendering Process

      6. Notices, Warnings, and Error Messages

      7. URL Rewriting

      8. Custom Dispatch Functions

      9. HTTP Redirects

      10. Cookies

      11. Session and Request State

      12. Conclusion


    3. Templates in Lift

      1. Template XML

        1. Locating Template XML

        2. Processing Template XML


      2. Views

      3. Tags

        1. a

        2. bind

        3. bind-at

        4. children

        5. comet

        6. CSS

        7. embed

        8. form

        9. HTML5

        10. ignore

        11. lazy-load

        12. loc

        13. Menu

        14. Msgs

        15. SkipDocType

        16. snippet

        17. surround

        18. tail

        19. TestCond

        20. with-param

        21. with-resource-id

        22. VersionInfo

        23. XmlGroup


      4. Head and Tail Merge

      5. Binding


    4. Snippets

      1. The Snippet Tag

      2. Snippet Dispatch

        1. Implicit Dispatch Via Reflection

        2. Explicit Dispatch

        3. Per-request Remapping


      3. Snippet Methods

        1. Binding Values in Snippets

        2. Stateless versus StatefOL Snippets

        3. Eager Evaluation


      4. Handling XHTML Attributes in
        Snippets

        1. Direct ManipOLation in Code

        2. XHTML Attribute Pass-through


    5. Forms in Lift

      1. Form Fundamentals

      2. Attributes for Form Elements

      3. An Overview of Form Elements

        1. checkbox

        2. hidden

        3. link

        4. text and password

        5. textarea

        6. submit

        7. mOLtiselect

        8. radio

        9. select

        10. selectObj

        11. untrustedSelect


      4. File Uploads


    6. SiteMap

      1. Basic SiteMap Definition

        1. The Link Class

        2. ExtLink

        3. Creating Menu Entries

        4. Nested Menus

        5. Setting the Global SiteMap


      2. Customizing Display

        1. Hidden

        2. Controlling the Menu Text

        3. Using <lift:Menu>


      3. Access Control

        1. If

        2. Unless


      4. Page-Specific Rendering

        1. The Template Parameter

        2. The Snippet and LocSnippets Parameters

        3. Title


      5. Miscellaneous Menu Functionality

        1. Test

        2. LocGroup


      6. Writing Your Own Loc

        1. Corresponding Functions

        2. Type Safe Parameters

        3. Dynamically Adding Child Menus

        4. Binding Your Custom Loc


      7. Conclusion


    7. The Mapper and Record Frameworks

      1. Introduction to Mapper and MetaMapper

        1. Adding Mapper to Your Project

        2. Setting Up the Database Connection

        3. Constructing a Mapper-enabled Class

        4. Object Relationships

        5. Indexing

        6. Schema Mapping

        7. Persistence Operations on an Entity

        8. Querying for Entities

        9. Comparison QueryParams

        10. Control QueryParams

        11. Making Joins a Little Friendlier


      2. Utility Functionality

        1. Display Generation

        2. Form Generation

        3. Validation

        4. CRUD Support

        5. Lifecycle Callbacks

        6. Base Field Types

        7. Defining Custom Field Types in Mapper

        8. ProtoUser and MegaProtoUser


      3. Advanced Features

        1. Using MOLtiple Databases

        2. SQL-based Queries


      4. Summary




  • Advanced Topics

    1. Advanced Lift Architecture

      1. Architectural Overview

      2. The Request/Response Lifecycle

      3. Lift Function Mapping

      4. LiftResponse in Detail

        1. InMemoryResponse

        2. StreamingResponse

        3. Hierarchy

        4. RedirectWithState

        5. XmlResponse


      5. Session Management

        1. Lift garbage collection


      6. Miscellaneous Lift Features

        1. Wrapping Lift's processing logic

        2. Passing Template Parameters to Snippets

        3. Computing Attributes with Snippets

        4. Processing Element Attributes


      7. Advanced S Object Features

        1. Managing cookies

        2. Localization and Internationalization

        3. Managing the Timezone

        4. Per-session DispatchPF functions

        5. Session re-writers

        6. Access to HTTP headers

        7. Manage the document type

        8. Other functions


      8. ResourceServer

      9. HTTP Authentication

        1. Determining which Resources to Protect

        2. Providing the Authentication Hook

        3. Role Hierarchies


    2. Lift and JavaScript

      1. JavaScript high level abstractions

        1. JsCmd and JsExp overview

        2. JavaScript Abstraction Examples


      2. JQuery and other JavaScript frameworks

      3. XML and JavaScript

      4. JSON

        1. JSON forms


      5. JqSHtml object

      6. A recap


    3. AJAX and Comet in Lift

      1. What are AJAX and Comet, really?

      2. Using AJAX in Lift

      3. A more complex AJAX example

      4. AJAX Generators in Detail

      5. Comet and Lift

        1. Actors in Scala

        2. Building a Comet Application in Lift


      6. Coordinating Between MOLtiple Comet Clients

      7. Summary


    4. JPA Integration

      1. Introducing JPA

        1. Using Entity Classes in Scala

        2. Using the orm.xml descriptor

        3. Working with Attached and Detached Objects


      2. Obtaining a Per-Session EntityManager

      3. Handling Transactions

      4. ScalaEntityManager
        and ScalaQuery

      5. Operating on Entities

        1. Persisting, Merging
          and Removing Entities

        2. Loading an Entity

        3. Loading Many Entities

        4. Using Queries Wisely

        5. Converting Collection Properties

        6. The importance of flush() and
          Exceptions

        7. Validating Entities


      6. Supporting User Types

      7. Running the Application

      8. Summing Up


    5. Third Party Integrations

      1. OpenID Integration

      2. AMQP

      3. PayPal

      4. Facebook

      5. XMPP

      6. Lucene/Compass Integration


    6. Lift Widgets

      1. Current Lift Widgets

        1. TableSorter widget

        2. Calendar widgets

        3. RSS Feed widget

        4. Gravatar widget

        5. TreeView widget

        6. Sparklines widget


      2. How to build a widget


    7. Lift Helpers

      1. Introduction

      2. Box (or Scala's Option class on steroids)

      3. ActorPing

      4. ClassHelpers

      5. CodeHelpers

      6. ControlHelpers

      7. CSSHelpers

      8. BindHelpers

      9. HttpHelpers

      10. JSON

      11. LD

      12. ListHelpers

      13. NamedPartialFunctions

      14. SecurityHelpers

      15. TimeHelpers


    8. Internationalization

      1. Localized Templates

      2. Resource Bundles

      3. An Important Note on Resource Bundle Resolution

      4. Localized Strings in Scala Code

      5. Formatting Localized Strings

      6. Localized Strings in Templates

      7. CalcOLating Locale


    9. Logging in Lift

      1. Logging Configuration

      2. Basic Logging

      3. Log Level Guards

      4. Logging Mapper Queries


    10. Sending Email

      1. Setup

      2. Sending Emails


    11. JPA Code Listings

      1. JPA Library Demo

        1. Author Entity

        2. orm.xml Mapping

        3. Enumv Trait

        4. EnumerationType

        5. JPA web.xml