concept control in category lift

appears as: control, controls, controls
Lift in Action: The Simply Functional Web Framework for Scala

This is an excerpt from Manning's book Lift in Action: The Simply Functional Web Framework for Scala.

You can see that this snippet takes the list of auctions received by the query , and by calling map on the resulting List[Auction] iterates through, binding the various fields of the Auction instance to HTML nodes within the template. In addition, notice that the enclosing selector is marked as ".auction_row *", which tells Lift that it needs to replace the subordinate elements with nested transformation statements . Specifically, these bindings, or transformation statements, attach a bit of dynamic content to an element in the HTML template by choosing it with these CSS-style selectors. The auction name and description are both bound to elements by their class attribute, whereas the link to the auction details page is bound to an anchor element’s href attribute. Finally, the description is processed as Textile markup using Lift’s Textile support, so this gives the administrator a good level of control over how the content is rendered while still being safe and secure.

Now that the Mapper entities are defined and the database schema has automatically been generated, you’re left with a fresh, empty database complete with all the necessary tables. This section covers the controls provided by Mapper for constructing, querying, updating, and deleting records in the backend database. Section 10.2.1 details how you can insert data into the database purely by interacting with the Mapper entities, and section 10.2.2 demonstrates the different ways in which you can use Mapper to construct type-safe queries, or even write your own SQL statements directly.