lift

Lift image upload, resize, store in database, display

Is there a succinct example of how to upload an image, resize it, store it in a database and then serve the image up using Lift? I'm sure I could piece it together from the file upload, Java 2D API, Lift Mapper and Response APIs. But is there any example code I can follow to do it the 'correct' or recommended way? ...

How do I import the User object in Scala's web framework Lift?

I'm following the Lift tutorial and it is referencing to a User object. It doesn't say where it's coming from. I also could not find it in the API. Does anyone know what I have to import to get it? Here's the sample code with a FK to User in the model: object owner extends MappedLongForeignKey(this, User) ...

PermGen problems with Lift and Jetty

I'm developing on the standard Lift platform (maven and jetty). I'm repeatedly (once every couple of days) getting this: Exception in thread "7048009@qtp-3179125-12" java.lang.OutOfMemoryError: PermGen space 2009-09-15 19:41:38.629::WARN: handle failed java.lang.OutOfMemoryError: PermGen space This is in my dev environment. It's not ...

What Scala web-frameworks are available?

Hello! I've just started learning Scala and the first thing I'm going to implement is a tiny web-application. I've been using Erlang for the last year to implement server-side software, but I've never wrote web-applications before. It will be a great experience. Here is my question: are there web-frameworks for Scala except for Lift? ...

Lift style views in a PHP framework

Hi, just wondering if a PHP web framework or templating engine exists, that uses the clean view philosophy used in Lift, the Scala webframework. In short the clean view philosophy, is that there should be zero code in the views. And that the view should be valid HTML. I would like to replace a typical piece of PHP code like this: <ul...

Creating two different types of Users (Scala, Lift)

Hi all- I am creating a website which will need two types of users: students and providers. In a traditional java setting I would create a user class (or interface) and then create two classes which inherited from the user. Is this the best course in scala too, using the "extends" and "with" modifiers? If that is indeed the best way ...

Boot.scala in lift..

I'm trying to modify the boot.scala in lift and running into a funny error. This is what I currently have: val entries = Menu(Loc("Home", List("index"), "Home")) :: Menu(Loc("StudentLogin", List("studentlogin"), "Student Login")) :: Menu(Loc("ProviderLogin", List("providerlogin"), "Provider Login")) LiftRules.setSiteMap(...

Problems with Text() (Scala Lift)

Hi all- I have this snippet: class WelcomeSnippet{ def list (xhtml : NodeSeq) : NodeSeq = { object sessionUserType extends SessionVar[String](null) Helpers.bind("entry", xhtml, "edit" -> SHtml.link("/provider",() => sessionUserType("provider"), Text("Edit"))) } } I think its ok, but I keep getting this: Not found:...

Storing Session Variables in Lift Scala

Hi all- I am trying to store a session variable and then use it to modify the menu in Boot.scala. Here is how I am storing the variable in a snippet: object sessionUserType extends SessionVar[String](null) def list (xhtml : NodeSeq) : NodeSeq = { Helpers.bind("sendTo", xhtml, "provider" -> SHtml.link("/provid...

If values in Boot.scala (Scala Lift)

Hi all- I feel like I'm monopolizing the stack for Scala/Lift, so I apologize, but the questions keep coming. Here's the latest. I'm trying to restrict access to anything in the /login/* to those users who have not yet logged in. Here is how I'm trying to do it: val entries = Menu(Loc("Home", List("index"), "Home")) :: //login stuff...

Lift and Eclipse RCP Integration

I work on a fairly simple but large two-tier application that consists approximately 40 Eclipse RCP plugins. We have a new use case that is taking us to the web for a very small portion of this functionality. I'd like to prototype this using Lift. Clearly, I'm facing a few challenges. Lift + OSGi. Can Lift get at OSGi bundles? Can...

How to do testing with lift applications?

How to do testing and is there something similar like Rack::Test with ruby frameworks? ...

Why are my Scala types not matching?

I have the following variable series: var series: List[FlotSerie] = List( new FlotSerie() { override val label = Full("Min") }, new FlotSerie() { override val label = Full("Max") }, new FlotSerie() { override val label = Full("Avg") } ) Unfortunately, I am getting a compiler error with the following method, whi...

Refactoring val to method results in compile-time error

I currently have def list(node: NodeSeq): NodeSeq = { val all = Thing.findAll.flatMap({ thing => bind("thing", chooseTemplate("thing", "entry", node), "desc" -> Text(thing.desc.is), "creator" -> thing.creatorName.getOrElse("UNKNOWN"), "delete" -> SHtml.link("/test", () => delete(thing), Text("delete"...

Lift CometActor: Organizing HTML generated by render and fixedRender

I'm trying to build a simple search application as an learning experiment with Comet and the Lift Framework. The plan is to have a page with a text entry and space for search results. When a search term is entered, it should be transmitted as an ajax request and the results should be pushed back by the server and rendered on the same pag...

Need opinion regarding design/architecture of a web application

I am working on a web application which needs to get data from some local and some non local resources and then display it. As it could take arbitrary amount of time to get the data from these resources I am thinking of using the actors concept so that each actor is responsible for getting data from the respective resource. The request t...

Scala 2.8 and Lift status

Whats the status of Lift working with Scala 2.8? I'm finding fragments of conversations about it on the web. I've been trying tweaking the pom.xml but I'm getting errors from the Lift side of things. ...

Write table on the fly...

Hi, I have the following function, and I would like to write to the page instead of the println. How can I do that? I need a table with that information in my page, But I did't find any information about that, I saw how to write collections to the page, but I would rather prefer write to the page on the fly. Thanks in advance and I hop...

create a database with scala/lift and a simple interface to log in

Hi, I'm a beginner with scala/lift and POO. At first, i would like to create a database and a simple interface to log in (ID and password). Then create an application to allow the user to modify this database. My problem is: i didn't find anything (like a tutorial) to do something like that. Maybe somebody could help? ...

What's the Future of Lift framework and current work being done?

I keep reading the developments being done on frameworks like Grails and other Java frameworks but not much of a buzz in the Lift camp. And also Lift 1.0 was announced long back. Is the community working on Lift framework? What are the future prospects of the framework? Is it better than Grails and other Java frameworks? (Groovy being le...