This file contains hidden or 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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<title>Chat demo</title> | |
<script id="jquery" src="/classpath/jquery.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<lift:bind name="content" /> |
This file contains hidden or 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
//imports class | |
Chat extends CometActor with CometListener { | |
private var msgs: List[String] = Nil | |
def render = | |
<div> | |
<ul> { msgs.reverse.map( m => <li>{m}</li> ) } </ul> | |
{ ajaxText("", s => {ChatServer ! s; Noop}) } | |
</div> |
This file contains hidden or 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
<lift:surround with="default" at="content"> | |
<lift:comet type="Chat"></lift:comet> | |
</lift:surround> |
This file contains hidden or 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
Welcome to Scala version 2.7.5.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_15). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> :load sake.scala | |
Loading sake.scala... | |
import sake.Project._ | |
buildDir: java.lang.String = build/ | |
distDir: java.lang.String = ../../dist/ | |
showStackTracesOnFailures: Boolean = false |
This file contains hidden or 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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/"> | |
<head> <!-- header stuff --> </head> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="column span-12 last" style="text-align: right"><h1 class="alt">sermo</h1></div> | |
<hr/> | |
<div class="column span-6 colborder sidebar"><hr class="space" /> | |
<lift:Menu.builder /> | |
<div><lift:snippet type="msgs"/><hr class="space" /></div> |
This file contains hidden or 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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/"> | |
<head> <!-- header stuff --> </head> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="column span-12 last" style="text-align: right"><h1 class="alt">sermo</h1></div> | |
<hr/> | |
<div class="column span-6 colborder sidebar"><hr class="space" /> | |
<lift:Menu.builder /> | |
<div><lift:snippet type="msgs"/><hr class="space" /></div> |
This file contains hidden or 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
#!/bin/bash | |
#just a quick script to alias svn pull to svn up and redirect everything else to svn command. | |
#alias svn=s in your .bashrc or something | |
if [ $# -eq 1 ] && [ $1 == "pull" ]; then | |
eval "svn up"; | |
exit 0; | |
fi | |
eval "svn $*" |
This file contains hidden or 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
java -Xmx512M -jar -Dsbt.log.noformat=true `dirname $0`/sbt-launch.jar "$@" |
This file contains hidden or 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
org.jboss.seam.InstantiationException: Could not instantiate Seam component: es.processInstanceListForCompany | |
at org.jboss.seam.Component.newInstance(Component.java:2144) | |
at org.jboss.seam.Component.getInstance(Component.java:2021) | |
at org.jboss.seam.Component.getInstance(Component.java:1983) | |
at org.jboss.seam.Component.getInstance(Component.java:1977) | |
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55) | |
at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50) | |
at org.jboss.seam.Namespace.get(Namespace.java:28) | |
at org.jboss.seam.el.SeamELResolver.resolveInNamespace(SeamELResolver.java:172) | |
at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:54) |
This file contains hidden or 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
class Chat extends CometActor with CometListener { | |
private var msgs: List[ChatCmd] = Nil | |
private var bindLine: NodeSeq = Nil | |
def registerWith = ChatServer | |
override def lowPriority = { | |
case m: List[ChatCmd] => { | |
val delta = m diff msgs | |
msgs = m |