Skip to content

Commit

Permalink
Removed a bunch of Java source code from the H2 tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
timperrett committed Apr 17, 2011
1 parent 689136b commit 854135d
Show file tree
Hide file tree
Showing 1,070 changed files with 9 additions and 268,514 deletions.
11 changes: 6 additions & 5 deletions chapter-15/src/main/scala/sample/snippet/Words.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class Words extends DispatchSnippet {
object WordHolder extends ContainerVar[String]("n/a")

def dispatch = {
case "update" => update _
case "update" => update
case "show" => show _
}
def update(xhtml: NodeSeq): NodeSeq = bind("f",xhtml,
"word" -> SHtml.text(WordHolder.is, WordHolder(_)),
"submit" -> SHtml.submit("Update >>", () => println("Submitted!"))
)

def update =
"type=text" #> SHtml.text(WordHolder.is, WordHolder(_)) &
"type=submit" #> SHtml.submit("Update >>", () => println("Submitted!"))

def show(xhtml: NodeSeq): NodeSeq = Text(WordHolder.is)
}
7 changes: 3 additions & 4 deletions chapter-15/src/main/webapp/words.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ <h2>The current word is: <lift:words.show /></h2>
<p>Well, thats just fantastic. See the form below if you want to update this value.</p>

<h2>Update</h2>
<lift:words.update form="post">
<p>Word to distribute: <f:word /> <f:submit /></p>
</lift:words.update>

<form lift="words.update?form=post">
<p>Word to distribute: <input type="text" /> <input type="submit" /></p>
</form>
</lift:surround>
Binary file removed tools/h2/docs/h2.pdf
Binary file not shown.
787 changes: 0 additions & 787 deletions tools/h2/docs/html/advanced.html

This file was deleted.

263 changes: 0 additions & 263 deletions tools/h2/docs/html/build.html

This file was deleted.

190 changes: 0 additions & 190 deletions tools/h2/docs/html/changelog.html

This file was deleted.

170 changes: 0 additions & 170 deletions tools/h2/docs/html/cheatSheet.html

This file was deleted.

Loading

0 comments on commit 854135d

Please sign in to comment.