[Lift] Conversation Context

2009-01-22 Thread Bryan
Does lift offer conversation contexts? If so, could someone provide me with an example. I am not sure if conversation context is the proper term, but I am using this term as it is used by JBoss Seam. A partial description would be an approach that allows state to be scoped to a unit of work

[Lift] Re: Heartbeat

2009-01-22 Thread Marius
Hmmm ... personally I'm not that thrilled about it. Can't we have an internal keep-alive mechanism that keeps the HTTP session not to expire? ... I wonder if just getting the HttpSession reference periodically and just don't do much with it would make the container to not expire the

[Lift] Re: Heartbeat

2009-01-22 Thread David Pollak
On Thu, Jan 22, 2009 at 9:35 AM, Marius marius.dan...@gmail.com wrote: On Jan 22, 7:17 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 22, 2009 at 9:12 AM, Marius marius.dan...@gmail.com wrote: Hmmm ... personally I'm not that thrilled about it. Can't we have an

[Lift] Re: Conversation Context

2009-01-22 Thread David Pollak
Bryan, There's no much in Lift to support what you're looking to do. For 1.1, there will be something like SmartMode Wizard (see https://www.lostlake.org/wizard.wmv ) If you can tell us something about your application, requirements, use cases, whatever, we'll work to tailor a solution for you.

[Lift] Re: Conversation Context

2009-01-22 Thread Bryan
That type of Wizard would be nice, though I am not a big fan of XML. Thank you for your willingness to come up with a solution, but I don't have a specific need for it right now. There is a project I may be working on in the future that is similar to the hotel website featured in that document I

[Lift] Re: Conversation Context

2009-01-22 Thread David Pollak
Bryan, On Thu, Jan 22, 2009 at 10:54 AM, Bryan germ...@gmail.com wrote: That type of Wizard would be nice, though I am not a big fan of XML. There will be no XML in Lift. All Lift code is in Scala. Java did not allow for DSL creation, so in SmartMode we used XML. Scala allows for very

[Lift] Re: Reading BLOB (images) from database with Mapper

2009-01-22 Thread Tim Perrett
Hey David, Interesting, thanks ­ excuse my ignorance, but will I need anything else to output those images from the database col? Cheers, Tim On 22/01/2009 19:15, David Pollak feeder.of.the.be...@gmail.com wrote: Tim, Make it a MappedBinary field. That corresponds to MySQL Blob.

[Lift] Starting with Lift - a quick-start.

2009-01-22 Thread TylerWeir
You can find a quick-start guide that allows you to jump right into Lift development here: http://static.liftweb.net/StartingWithLift.pdf This combines a tutorial written by Dave Pollak with the first chapter of the Lift book, http://www.github.com/tjweir/liftbook/ .

[Lift] Bug in with-param ?

2009-01-22 Thread Tim Perrett
Guys, I think I might have just found a bug in the with-param use in layouts... If I do: lift:with-param name=topimage img src=/images/generic_top.jpg alt=Some image / /lift:with-param The bind doesn't actually work, and the img tag gets inserted just above the main content bind

[Lift] Re: Heartbeat

2009-01-22 Thread David Pollak
LoL :-) On Jan 22, 2009 12:46 PM, Jorge Ortiz jorge.or...@gmail.com wrote: Summary: DPP: I can haz heartbeat? Marius: Heartbeat? I dunno... that sounds ugly... DPP: It comes with GC too! Marius: Oh hellz yeah! --j On Thu, Jan 22, 2009 at 10:30 AM, Marius marius.dan...@gmail.com wrote: On

[Lift] Re: Bug in with-param ?

2009-01-22 Thread Meredith Gregory
David, Do you have a schema to govern lift tags so that this sort of syntactic constraint could be statically checked? Best wishes, --greg On Thu, Jan 22, 2009 at 2:11 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 22, 2009 at 12:33 PM, Tim Perrett

[Lift] Re: Bug in with-param ?

2009-01-22 Thread David Pollak
On Thu, Jan 22, 2009 at 2:18 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: David, Do you have a schema to govern lift tags so that this sort of syntactic constraint could be statically checked? No. Perhaps it's something we should add to our documentation to-do list. Best

[Lift] Re: Bug in with-param ?

2009-01-22 Thread Tim Perrett
The lift:with-param/ tag has to be a child of the lift:surround/ tag. I'm in the process of checking in a change to relax this constraint, but it will have a negative impact on the ability to do nested lift:surround/ tags. It being a child of lift:surround is not directly the problem.

[Lift] Fwd: lift production experience was Re: [scala-user] Are there any Scala friend small embeddable HTTP Severs?

2009-01-22 Thread Meredith Gregory
P.S. the liftweb alias escaped the cc line -- Forwarded message -- From: Meredith Gregory lgreg.mered...@gmail.com Date: Thu, Jan 22, 2009 at 2:38 PM Subject: lift production experience was Re: [scala-user] Are there any Scala friend small embeddable HTTP Severs? To: David Pollak

[Lift] Re: Bug in with-param ?

2009-01-22 Thread Meredith Gregory
David, If you can give me some quick and dirty informal description of the constraints, i can code up a schema in short order. Best wishes, --greg On Thu, Jan 22, 2009 at 2:20 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 22, 2009 at 2:18 PM, Meredith Gregory

[Lift] Re: Bug in with-param ?

2009-01-22 Thread David Pollak
Greg, I'm going to spend some time late next week cleaning up the render pipeline. I'll prepare the notes during my cleaning session. It would also be nice to have tests for the expected behaviors. Any volunteers out there? Thanks, David On Thu, Jan 22, 2009 at 2:47 PM, Meredith Gregory

[Lift] JPA is killing me. Enumeration hell.

2009-01-22 Thread Charles F. Munat
I have an entity thus: @Entity @Table{val name = cocktails} class Cocktail extends BaseEntity { @Id @GeneratedValue{val strategy = GenerationType.AUTO} var id : Long = _ var name : String = var description : String = var ingredients : String = @Column{val name =

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Jorge Ortiz
I don't really know much about JPA, but just a quick observation on the code you posted: Your code has line: abstract class EnumvType(val et: Enumeration with EnumTrait) extends UserType { whereas JPA Demo has line: abstract class EnumvType(val et: Enumeration with Enumv) extends UserType {

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread David Pollak
On Thu, Jan 22, 2009 at 4:05 PM, Jorge Ortiz jorge.or...@gmail.com wrote: I don't really know much about JPA, but just a quick observation on the code you posted: Your code has line: abstract class EnumvType(val et: Enumeration with EnumTrait) extends UserType { whereas JPA Demo has

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Jorge Ortiz
Ahh, I see what the problem might be. There was another change to EnumvType: Replace this line: return et.valueOf(value) With this line: return et.valueOf(value).getOrElse(null) I'm sorry this is causing you so much trouble Chas. I made changes to classes in JPADemo and didn't realize they

[Lift] Re: Bug in with-param ?

2009-01-22 Thread David Pollak
On Thu, Jan 22, 2009 at 2:11 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 22, 2009 at 12:33 PM, Tim Perrett he...@timperrett.comwrote: It appears that to make with-param work you need to have a root node inside the with-param node and that the single closed element

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Charles F. Munat
Thank you! Thank you! Thank you! Thank you! Thank you! That worked. I should've seen it though as I'd already made that fix on other sites. I don't know how I missed it. Tired, I guess. Pressure off now for a moment at least. Chas. Jorge Ortiz wrote: Ahh, I see what the problem might be.