Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created February 18, 2011 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmpwizard/833968 to your computer and use it in GitHub Desktop.
Save fmpwizard/833968 to your computer and use it in GitHub Desktop.
Add a named cometactor using Lift
object PutCometOnPage {
def render(xhtml: NodeSeq): NodeSeq = {
val id= "browser" + versionString
debug("Using CometActor with name: %s".format(id))
for (sess <- S.session) sess.sendCometActorMessage(
"BrowserDetails", Full(id), versionString
)
<lift:comet type="BrowserDetails" name={id}>{xhtml}</lift:comet>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment