Lift 2.0 is a Scala-based web framework that uses a hybrid programming model combining object-oriented and functional programming. It offers a simple API for configuring web applications, including site maps, URL rewriting, database connections, and localization. Lift uses a model-view-controller architecture with templates, snippets, and views to render pages and forms. It also supports features like sessions, requests, JavaScript integration, Comet applications, Scala actors, and Ajax.
4. Lift offers simple API to configure web
application
SiteMap
UrlRewriting
Database connection
Requests specific handling
Localization changing
Customizing 404 - Page Not Found
web.xml
...
16. Forms
<lift:Search.generateForm form="POST">
<f:search/>
<f:submit/>
</lift:Search.generateForm>
class Search extends StatefulSnippet {
var searchText
def generateForm(in : NodeSeq) : NodeSeq =
bind("f", in,
"search" -> SHtml.text(searchText, searchText = _)
"submit" -> SHtml.submit("Search", processSearch))
}
17. JavaScript + jQuery and the band
JsExp
JsCmd
JsCmds._
JsRaw
artifact defining in Boot
18. Comet applications
Comet - according to wiki:
Comet is a neologism to describe a web application model in which a long-held HTTP request allows a web server to push data
to a browser, without the browser explicitly requesting it.
Scala Actors
Ajax in Lift
SHtml.ajaxCall
SHtml.ajaxForm
ajaxText, ajaxSubmit and many more...