Re: [Lift] Re: Location on Mac?

2009-12-15 Thread Timothy Perrett
Correct - I generally only update the installers periodically with major or minor releases of maven... i haven't the time to update with every micro release. As david points out, not everyone has mac ports installed. You can of course use the macports version - the lift installer is just an

Re: [Lift] Re: How to disable XHTML?

2009-12-15 Thread Timothy Perrett
You need to put it in your Boot.scala file. determineContentType is of PartialFunction[(Box[Req], Box[String]), String] type - this means that you can match on particular paths: LiftRules.determineContentType = { case (Full(Req(some :: path :: Nil, pdf, GetRequest)), Full(accept))

[Lift] Re: Lift 1.1-M8

2009-12-15 Thread Oleg G.
I'm wondering about scala 2.8 compatibility, is it in or when is it planned? -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to

Re: [Lift] Re: Lift 1.1-M8

2009-12-15 Thread Timothy Perrett
No, it is not in yet. This is currently on the 2_8_0 branch and will be in Lift 2.0 (Scala 2.8 keeps being put back) Cheers, Tim On 15 Dec 2009, at 10:57, Oleg G. wrote: I'm wondering about scala 2.8 compatibility, is it in or when is it planned? -- You received this message because

[Lift] Re: How to disable XHTML?

2009-12-15 Thread Tweek
It still dosn't work :( this is path to my html file, which is using google maps api: ./ location/maps/testmap.html i put in my Boot.scala file this code: LiftRules.determineContentType = { case (Full(Req(location :: maps :: testmap :: Nil, html, GetRequest)), Full(accept))

[Lift] Re: How to disable XHTML?

2009-12-15 Thread Tweek
It still dosn't work :( this is path to my html file, which is using google maps api: ./ location/maps/testmap.html i put in my Boot.scala file this code: LiftRules.determineContentType = { case (Full(Req(location :: maps :: testmap :: Nil, html, GetRequest)), Full(accept))

[Lift] How to revert json to lift model?

2009-12-15 Thread Xuefeng Wu
Hi, I store the lift model to json, but cannot revert json to lift model, any idea? For example: My model: class Book extends LongKeyedMapper[Book] with IdPK{ def getSingleton = Book object name extends MappedPoliteString(this, 125) object desc extends MappedTextarea(this, 1320) }

Re: [Lift] Re: How to disable XHTML?

2009-12-15 Thread Tim Nelson
You need to remove the if guard on the first case match and change the second parameter you are passing to Req. The second param is for the context. Try this: LiftRules.determineContentType = { case (Full(Req(location :: maps :: testmap :: Nil, _, GetRequest)), Full(accept)) = text/html;

[Lift] Documentation

2009-12-15 Thread Daniel
Hey, I'm new to both Scala and Lift, but I don't have any professional Java experience. It seems that all of the documentation available for Lift is aimed at folks who have considerable professional experience with Java already. Is there any documentation available aimed for people like me who

Re: [Lift] Re: Location on Mac?

2009-12-15 Thread Donald McLean
Due to the practical realities of the organization that I work in, I'm not using Maven at all. Is there some way that I can just download the Lift jars and install them somewhere? -- Family photographs are a critical legacy for ourselves and our descendants. Protect that legacy with a digital

Re: [Lift] Re: Location on Mac?

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 8:32 AM, Donald McLean dmclea...@gmail.com wrote: Due to the practical realities of the organization that I work in, I'm not using Maven at all. Is there some way that I can just download the Lift jars and install them somewhere? The Lift jars are located at:

Re: [Lift] Foreign Key constraints are not created by schemify

2009-12-15 Thread Derek Chen-Becker
The code in the spec is: person.companies ++= companies person.save // Break some joins companies(3).delete_! // delete 4 companies(6).delete_! // delete 7 person.companies.refresh // reload joins so joinEntity.company.obj isn't cached person My plan is to make FKs

Re: [Lift] How to revert json to lift model?

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 4:37 AM, Xuefeng Wu ben...@gmail.com wrote: Hi, I store the lift model to json, but cannot revert json to lift model, any idea? For example: My model: class Book extends LongKeyedMapper[Book] with IdPK{ def getSingleton = Book object name extends

[Lift] Caching Comet Actors

2009-12-15 Thread Java1Guy
Hey all! I'm having great luck coding up my web site which consists of a handful of pages each of which contains a Flot graph. Behind each page is a CometActor which dynamically updates the graph. Since appetite grows while dining, I'm now interested in optimizing a bit. I presume I have the

Re: [Lift] Caching Comet Actors

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 9:54 AM, Java1Guy mark.cha...@gmail.com wrote: Hey all! I'm having great luck coding up my web site which consists of a handful of pages each of which contains a Flot graph. Behind each page is a CometActor which dynamically updates the graph. Since appetite grows

[Lift] Re: Please review a simple app for displaying Flickr pictures

2009-12-15 Thread Dave Briccetti
Thanks again for the help. Here are tho talk slides: http://www.slideshare.net/dcbriccetti/birdshow-a-lift-app-for-showing-flickr-photos-2720594 -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

Re: [Lift] Re: Please review a simple app for displaying Flickr pictures

2009-12-15 Thread Timothy Perrett
Awesome Dave! Thanks for the acknowledgement. Cheers, Tim On 15 Dec 2009, at 18:07, Dave Briccetti wrote: Thanks again for the help. Here are tho talk slides: http://www.slideshare.net/dcbriccetti/birdshow-a-lift-app-for-showing-flickr-photos-2720594 -- You received this message because

[Lift] Re: Caching Comet Actors

2009-12-15 Thread Java1Guy
Yes - it seems upon closer examination with jVisualVM that in fact the CometActors *are* reused for each page. Yet again, Lift Rules! (I had been looking at printouts of the uniqueid and thought i was seeing more than necessary...) Thanks, Mark On Dec 15, 11:06 am, David Pollak

[Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
Following the layout for building a Lift application using Ant, I put together a Hello, World application and deployed it. Deploying gives an error (see below). Any suggestions on what the problem is and how to fix it? Thank you, Donald Exception starting filter LiftFilter

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread David Pollak
Looks like you have a mess of wrong JAR files. What version of Lift are you using? On Tue, Dec 15, 2009 at 11:16 AM, Donald McLean dmclea...@gmail.com wrote: Following the layout for building a Lift application using Ant, I put together a Hello, World application and deployed it. Deploying

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
commons-fileupload-1.2.1.jar lift-util-1.0.2.jar lift-webkit-1.0.2.jar log4j-1.2.15.jar scala-library.jar (2.7.6, I believe) On Tue, Dec 15, 2009 at 2:21 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Looks like you have a mess of wrong JAR files. What version of Lift are you using?

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 11:25 AM, Donald McLean dmclea...@gmail.com wrote: commons-fileupload-1.2.1.jar lift-util-1.0.2.jar lift-webkit-1.0.2.jar log4j-1.2.15.jar scala-library.jar (2.7.6, I believe) Never, ever, ever for any reason use Scala 2.7.6. It's very broken. Lift 1.0.2 uses

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Timothy Perrett
That version of lift uses 2.7.5 scala - they are binary incompatible with 2.7.6. Moreover, that isn't enough dependencies for Lift - your probably missing a bunch of things. How big is the WAR? Cheers, Tim On 15 Dec 2009, at 19:25, Donald McLean wrote: commons-fileupload-1.2.1.jar

Re: [Lift] [ANN] Lift 1.1-M8

2009-12-15 Thread Jim McBeath
It looks like the source jars are missing from the M8 repository, at least for some of the libraries (for example, http://scala-tools.org/repo-releases/net/liftweb/lift-util/1.1-M8/). Are these perhaps located somewhere else now? Or do they typically get added a bit later? -- Jim On Mon, Dec

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
My mistake - it's 2.7.7 - should I go back to 2.7.5? On Tue, Dec 15, 2009 at 2:29 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Dec 15, 2009 at 11:25 AM, Donald McLean dmclea...@gmail.com wrote: commons-fileupload-1.2.1.jar lift-util-1.0.2.jar lift-webkit-1.0.2.jar

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 11:38 AM, Donald McLean dmclea...@gmail.com wrote: My mistake - it's 2.7.7 - should I go back to 2.7.5? *Lift 1.0.2 uses Scala 2.7.5 and only works with code compiled by the 2.7.5 compiler and with the 2.7.5 JAR files.* On Tue, Dec 15, 2009 at 2:29 PM, David Pollak

Re: [Lift] Help with exception deploying Hello World on GlassFish

2009-12-15 Thread Donald McLean
That worked. Thank you very much! Donald On Tue, Dec 15, 2009 at 2:40 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Dec 15, 2009 at 11:38 AM, Donald McLean dmclea...@gmail.com wrote: My mistake - it's 2.7.7 - should I go back to 2.7.5? Lift 1.0.2 uses Scala 2.7.5 and only

[Lift] Re: [lift] Documentation

2009-12-15 Thread Channing Walton
I'd start with the Beginning Scala book and work on some code kata like project euler. Lift is a jump in the deep end - I don't think knowing Java is much of a help there anyway. -- View this message in context: http://old.nabble.com/Documentation-tp26797233p26801361.html Sent from the liftweb

[Lift] Re: Documentation

2009-12-15 Thread Randinn
My suggestion is to get Programming in Scala, it explains the basics more than the others. Davids book and the rest are great but written for existing programmers. I also am learning not being a coder for years so I know how you feel. On Dec 16, 3:05 am, Daniel who.reads.th...@gmail.com wrote:

Re: [Lift] Re: Documentation

2009-12-15 Thread Alex Boisvert
And from there, my suggestion would be to experiment with existing sample Lift applications such as those in http://github.com/dpp/lift-samples to get the feel for Lift from working code. alex On Tue, Dec 15, 2009 at 12:49 PM, Randinn rand...@gmail.com wrote: My suggestion is to get

[Lift] Re: Lift 1.1-M8

2009-12-15 Thread DMB
Hmm. A word of warning - Netbeans 6.8 requires Scala 2.8. I found out the hard way. If anyone knows a workaround on how to make Netbeans 6.8 work with Lift, do share. On Dec 15, 3:16 am, Timothy Perrett timo...@getintheloop.eu wrote: No, it is not in yet. This is currently on the 2_8_0 branch

Re: [Lift] Re: Lift 1.1-M8

2009-12-15 Thread Naftoli Gugenheim
Then I guess you could use an older version of Netbeans, or the 2.8 branch despite its work-in-progress status (use git and build yourself). - DMBcombust...@gmail.com wrote: Hmm. A word of warning - Netbeans 6.8 requires Scala 2.8. I found out the hard way.

[Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread Peter Robinett
My tables created by Schemefier have multiple keys for the primary key when my Mapper model is declared like so: class myModel extends LongKeyedMapper[myModel] with IdPK. There is naturally the primary key but there is also a unique key on the column that simply duplicates the functionality of the

[Lift] Re: partialUpdate and bind

2009-12-15 Thread Peter Robinett
Thanks, David. In my case I want to update a Flot graph and some text boxes with new information. Since they have their source data in common, it seems to me it would be most efficient to update the two parts of the page simultaneously via a partialUpdate. Is this reasonable or am I abusing

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-15 Thread Naftoli Gugenheim
I compiled much of this thread into http://wiki.github.com/dpp/liftweb/about-naming-conventions in raw form. As we continue to discuss the naming goals and guidelines and vote or decide on controversial goals, that wiki page should become more consolidated and less of a copy-paste of a discussion.

Re: [Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 5:46 PM, Peter Robinett pe...@bubblefoundry.comwrote: My tables created by Schemefier have multiple keys for the primary key when my Mapper model is declared like so: class myModel extends LongKeyedMapper[myModel] with IdPK. There is naturally the primary key but there

Re: [Lift] Re: partialUpdate and bind

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 5:49 PM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, David. In my case I want to update a Flot graph and some text boxes with new information. Since they have their source data in common, it seems to me it would be most efficient to update the two parts of the

Re: [Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread Ross Mellgren
On Dec 15, 2009, at 10:23 PM, David Pollak wrote: On Tue, Dec 15, 2009 at 5:46 PM, Peter Robinett pe...@bubblefoundry.com wrote: Should this be fixed? Or is the more helpful answer 'Don't use MySQL'? ;-) I would use MySQL for a production site. Did you mean wouldn't? -Ross -- You

Re: [Lift] Duplicate Keys Created by Schemefier

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 7:33 PM, Ross Mellgren dri...@gmail.com wrote: On Dec 15, 2009, at 10:23 PM, David Pollak wrote: On Tue, Dec 15, 2009 at 5:46 PM, Peter Robinett pe...@bubblefoundry.comwrote: Should this be fixed? Or is the more helpful answer 'Don't use MySQL'? ;-) I would use

[Lift] Re: Documentation

2009-12-15 Thread Randinn
I also suggest possibly looking at http://www.scala-lang.org/node/104 and http://www.naildrivin5.com/scalatour might help a bit. Also working on the tuts at http://www.simplyscala.com/ are nice as you can see them in action. On Dec 16, 3:05 am, Daniel who.reads.th...@gmail.com wrote: Hey, I'm

[Lift] error locating template/main

2009-12-15 Thread jack
Without changing any code, I just got this error. The template main is where it always was. Any ideas? Error locating template/main. Message::1:6: expected scala.xml.dtd.ValidationException: :1:6: expectednet.liftweb.util.PCDataXmlParser.reportSyntaxError (PCDataMarkupParser.scala:169)

[Lift] Re: error locating template/main

2009-12-15 Thread jack
never mind :) On Dec 16, 1:09 am, jack jack.wid...@gmail.com wrote: Without changing any code, I just got this error. The template main is where it always was. Any ideas? Error locating template/main. Message::1:6: expected scala.xml.dtd.ValidationException: :1:6:

[Lift] load testing a lift application

2009-12-15 Thread jack
I need to load test my site. It uses Comet. I am trying JMeter but I'm not sure if it will work with Comet. The application I am testing is basically a search engine that returns results via Comet. What is a good tool to load and stress test this? -- You received this message because you are

Re: [Lift] Mapper - JObject bridge

2009-12-15 Thread Xuefeng Wu
Hi, I add two method to en/decode JObject/String def encodeAsJsonString(in: A): String = Printer.compact(JsonAST.render(encodeAsJson(in))) def buildFromJsonString(json: String): A = buildFromJson(JsonParser.parse(json).asInstanceOf[JsonAST.JObject]) Do there have better way? On Thu, Dec 3,