Archive for December, 2009
Add/Edit/Remove items in lift sample 1- Create the menu in boot in src/main/scala/bootstrap/liftweb/Boot.scala // List items menu val itemsMenu = Menu(Loc("Items", "items" :: "index" :: Nil, "List items")) // Build SiteMap val entries = Menu(Loc("Home", List("index"), "Home")) :: itemsMenu :: Nil 2- Define the default database The properties in src/main/resources/props/default.props with the connection url db.driver [ READ MORE ]
Here’s a post about Lift and testing, using scala specs and dbunit. We can use dbunit to populate a sample database for testing purposes, in this example we are going to use the embedded h2 database. 1. Create a sample liftweb (1.1-M8) application using maven 2.2 mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-blank \ -DarchetypeVersion=1.1-M8 \ [ READ MORE ]
Get every new post delivered to your Inbox.