Need Help Getting a LiftWeb Getting Started Tutorial

I am trying to go through the LiftWeb Getting Started Tutorial .

This is what I did:

  • Download and unzip the tar file .

  • (Here I tried to perform sbt update , as indicated in the instructions, but it failed.)

  • Copied lift_blank/* for root run.

  • Then sbt update (successful this time)

  • I copied the source code for Chat.scala and entered the tag in webapp / index.html according to the instructions.

  • Done by sbt ~jetty-run

  • Opened http: // localhost: 8080 in a browser.

But I only see the following:

enter image description here

which does not look like a chat application for me.

What am I doing wrong?

+6
scala lift
source share
1 answer

I tried this myself, and I have to say that in the tutorial it is not very clear where to insert the div block.

Here is what I did in addition to the instructions on the tutorial page:

I pasted this div fragment into the existing main div block index.html.

 <div id="main" class="lift:surround?with=default;at=content"> <div class="lift:comet?type=Chat"> <ul> <li>line</li> </ul> </div> </div> 

That should do it.

After launching the pier, I could use a simple chat application.

Here is a screenshot of what I see after running sbt ~jetty-run lift_basic

Hope Thomas helps

Btw, it even works with lift_blank:
lift_blank

+8
source share

All Articles