Created
March 29, 2010 12:10
-
-
Save tbje/347784 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val listFromDb : Box[List[String]]= ... should collect data from db, but throws exception ... | |
def render = { | |
listFromDb match { | |
case None => <p>No items.</p> | |
case Some(items) => | |
bind( | |
"myComet", defaultXml, | |
"content" -> transforListToXhtml(list)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val listFromDb : Box[List[String]]= ... should collect data from db, but throws exception ... | |
override def defaultXml = <p>Something went very wrong, but we managed to show this message</p> | |
def render = { | |
listFromDb match { | |
case None => <p>No items.</p> | |
case Some(items) => | |
bind( | |
"myComet", defaultXml, | |
"content" -> transforListToXhtml(list)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val listFromDb : Box[List[String]]= ... should collect data from db, but throws exception ... | |
override def defaultXml = <p>Something went very wrong, but we managed to show this message</p> | |
def render = { | |
listFromDb match { | |
case None => <p>No items.</p> | |
case Some(items) => | |
bind( | |
"myComet", super.defaultXml, | |
"content" -> transforListToXhtml(list)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment