Skip to content

Commit

Permalink
fixed some stuff in the chp 13 bootup
Browse files Browse the repository at this point in the history
  • Loading branch information
timperrett committed Aug 29, 2011
1 parent 8997080 commit 42bd9a9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion chapter-13/src/main/resources/akka.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Modify as needed.

akka {
version = "1.0-RC6" # Akka version, checked against the runtime version of Akka.
version = "1.0" # Akka version, checked against the runtime version of Akka.

enabled-modules = [] # Comma separated list of the enabled modules. Options: ["remote", "camel", "http"]

Expand Down
2 changes: 1 addition & 1 deletion chapter-13/src/main/scala/bootstrap/liftweb/Boot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Boot extends LazyLoggable {
* Build the sitemap
*/
LiftRules.setSiteMap(SiteMap(
Menu("Home") / "index" >> EarlyResponse(() => Full(RedirectResponse("/localization/"))) >> Hidden,
Menu("Home") / "index" >> EarlyResponse(() => Full(RedirectResponse("/jee/"))) >> Hidden,
Menu("Java Enterprise Integration") / "jee" / "index" submenus(
Menu("JPA: Authors: List") / "jee" / "authors" / "index",
Menu("JPA: Authors: Add") / "jee" / "authors" / "add",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ object HelloWorldRemoteCaller {
import akka.actor.Actor.remote
private val actor = remote.actorFor("hello-service", "localhost", 2552)
def welcome = actor ! "Hello"
}
}
5 changes: 3 additions & 2 deletions chapter-13/src/main/scala/sample/comet/Calculator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ class CalculatorDisplay extends AkkaCometActor {
def render =
"#value_one" #> doubleInput(one = _) &
"#value_two" #> doubleInput(two = _) &
"#operation" #> SHtml.select(Seq("+","/","*").map(x => (x -> x)),
operation, v => operation = Full(v)) &
"#operation" #> SHtml.select(Seq("+","/","*")
.map(x => (x -> x)), operation,
v => operation = Full(v)) &
"type=submit" #> SHtml.ajaxSubmit("Submit", () => {
registry.actorFor[Calculator].map {
_ ! Compute(one,two,operation.openOr("+"))
Expand Down
4 changes: 2 additions & 2 deletions chapter-13/src/main/scala/sample/snippet/Authors.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Authors {
}

def add = {
val currentId = author.id
"type=hidden" #> SHtml.hidden(() => author.id = currentId) &
val current = author
"type=hidden" #> SHtml.hidden(() => authorVar(current)) &
"type=text" #> SHtml.text(author.name, author.name = _) &
"type=submit" #> SHtml.onSubmitUnit(() =>
tryo(Model.mergeAndFlush(author)) match {
Expand Down
7 changes: 0 additions & 7 deletions chapter-13/src/main/webapp/jee/jta.html

This file was deleted.

Binary file modified database/chapter_13.h2.db
Binary file not shown.

0 comments on commit 42bd9a9

Please sign in to comment.