[Lift] Re: RFC: Restructuring Lift Codebase

2009-09-28 Thread Heiko Seeberger
Indrajit, Impressive work! See my comments below ... Heiko 2009/9/27 Indrajit Raychaudhuri indraj...@gmail.com [A] lift-* prefix looks superfluous, but it's best to have one for all artifacts that generate jar (packagingjar/packaging). Also Maven reactor feels happier when artifactId ==

[Lift] Lift and Hibernate validators

2009-09-28 Thread etorreborre
Hi, I'm trying to get a Lift/JPA demo rolling but I can't get Scala work with Hibernate validators (as it has been noticed before: https://lampsvn.epfl.ch/trac/scala/ticket/1846, https://lampsvn.epfl.ch/trac/scala/ticket/2245, https://lampsvn.epfl.ch/trac/scala/ticket/2252). My question is:

[Lift] Re: automaticly generated forms and submit button naming

2009-09-28 Thread Martin
Hi, Ross, thank you for your help. This code works perfectly for me. I heaven't noticed I could group many elements in one lift tag. I changed somethings in your code. Maybe it's not worth mentioning but if someone has similar problems it can help a little. I corrected only to things: changed

[Lift] Seeking for Simple Sample .scala and .html that mimics CRUDify/Seam-Gen

2009-09-28 Thread yk
I have had plowing through the internet for two weeks now, for a simple tutorial that can point me in the right direction to catch on the Lift/Scala bandwagon. I am a CodeCharge studio coder and have had exposed to seam-gen codes deploying on JBoss AS at the rookie level. I had tried RoR and

[Lift] Re: automaticly generated forms and submit button naming

2009-09-28 Thread Ross Mellgren
Ah, that's because it should be a flatMap not a map -- f.toForm.toList.flatMap(form = { bind(...) }) should typecheck. The way you have it now, if the bind expands to more than one element or node, the ones after the first will be dropped. Glad it (mostly) worked for you. -Ross On Sep 28,

[Lift] Re: Tabbed browsing and session state

2009-09-28 Thread marius d.
On Sep 27, 10:31 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Do you mean multiple browser tabs? They won't interfere, because which stateful snippet is used in a given request depends on which is registered in that request which depends on which function is called which depends on

[Lift] Re: CometActor timeout problem

2009-09-28 Thread David Pollak
Jack, Here's a working example. Here's the source for the CometActor: package com.liftcode.comet import net.liftweb._ import http._ import util._ class Background extends CometActor { private val values = new Array[Box[Int]](100) // render the information def render = div ul

[Lift] Re: Db.addLogFunc

2009-09-28 Thread Derek Chen-Becker
I tested it locally on my own code and it works. Just for giggles, does anything print on the console if you change those lines to println? Derek On Wed, Sep 23, 2009 at 2:39 PM, David david.b...@gmail.com wrote: Hello, I'm trying to use the new logging information as described here. In my

[Lift] Re: TreeView widget doesn't work with IE 8

2009-09-28 Thread Derek Chen-Becker
Can you do two things: 1. Open a ticket on GitHub: http://github.com/dpp/liftweb/issues 2. In the ticket, can you give some more details about what does and doesn't work? If you're getting javascript errors it would help to have those, too. Derek On Wed, Sep 23, 2009 at 3:43 PM, glenn

[Lift] Re: Db.addLogFunc

2009-09-28 Thread David
Nope, changed to println(): DB.addLogFunc { case (query, time) = { println(All queries took + time + ms: ) query.allEntries.foreach({ case DBLogEntry(stmt, duration) = println(stmt + took + duration + ms)}) println(End queries) } }

[Lift] Re: RFC: Restructuring Lift Codebase

2009-09-28 Thread David Pollak
Indrajit, Excellent work! My thoughts inline. On Sun, Sep 27, 2009 at 1:44 PM, Indrajit Raychaudhuri indraj...@gmail.comwrote: Folks, As followup to the proposed goal of Keeping lift-core neat and small, here is the first iteration of the revised structure of Lift codebase. liftweb -

[Lift] Re: Code Plugability in Lift

2009-09-28 Thread Derek Chen-Becker
It's a really ugly corner that JPA paints us into here. There aren't any vendor-neutral APIs for programmatically wiring entities up, so it's going to have to be some sort of trickery. On Fri, Sep 25, 2009 at 4:23 PM, Timothy Perrett timo...@getintheloop.euwrote: Are you feeling OK david? For a

[Lift] Re: SHtml.a not active when used via innerHtml

2009-09-28 Thread David Pollak
On Fri, Sep 25, 2009 at 5:43 PM, KP horse.headed.fish@gmail.com wrote: David, This works like a charm. Thanks. There is essentially zero chance I would have figured this out on my own. Yeah... it took a fair amount of digging into SetHtml and dusting off old parts of my brain to

[Lift] Re: How can I replace SHtml.a with a Loc

2009-09-28 Thread David Pollak
On Fri, Sep 25, 2009 at 10:28 AM, glenn gl...@exmbly.com wrote: David, In this case, I was trying to see if there was a way to use the standard Lift menu generator to create a link with a callback for ajax handling, similar to SHtml.a. I don't know about menu generation from SiteMap.

[Lift] Re: Lift and Hibernate validators

2009-09-28 Thread Derek Chen-Becker
The simplest would be to define your own getter/setter pairs just like you would in Java and put the annotations there. Ugly, but it should work. On Mon, Sep 28, 2009 at 1:41 AM, etorreborre etorrebo...@gmail.com wrote: Hi, I'm trying to get a Lift/JPA demo rolling but I can't get Scala work

[Lift] Java 5 support?

2009-09-28 Thread Derek Chen-Becker
I was just about to work on issue #67 (build breaks on Java 5), but when I went to get a Java 5 JDK to compile/test with, Sun says that it's EOL as of October 30, 2009. I don't have a problem fixing things to work with Java 5, but I don't want to do work that's going to be tossed out in a month.

[Lift] Re: RFC: Restructuring Lift Codebase

2009-09-28 Thread Timothy Perrett
Indrajit, What is the purpose of lift-resources? We cannot make the lift installer part of the build process - belive me, i've looked into this extensively... basically, it boils down to needed install4j licensed on that machines which would be a stupid requirement to place on any person

[Lift] Re: Db.addLogFunc

2009-09-28 Thread Derek Chen-Becker
I can't rule it out, but because the new logging implements methods on java.sql.Statement that don't exist in Java 5, I would expect some classloading issues or exceptions. On Mon, Sep 28, 2009 at 11:47 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Could this be a JDK 1.5 vs. 1.6

[Lift] Re: Java 5 support?

2009-09-28 Thread Timothy Perrett
Hmm - had this problem the other day. The only real downside of not letting it build on 1.5 from my position is that people on Mac will need to tweak the PATH because the default JDK is 5, not 6 (which is installed too, oddly) Might be some others, but I cant think of them. Cheers, Tim

[Lift] Re: Java 5 support?

2009-09-28 Thread David Pollak
On Mon, Sep 28, 2009 at 11:51 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: My main concern is that after October 30, Java 5 costs money (I'm guessing not a trivial amount, either). I can get the JDK right now, but if some bug in the Java libraries pops up that would prevent things from

[Lift] Re: [scala] EclipseLink?

2009-09-28 Thread Meredith Gregory
Dear Ismael, Thanks. i knew about that and tried it. My version of maven barf'ed on the download url and so it didn't work for me. i would much prefer not to have to ferret out and maintain the jar myself. ;-) Best wishes, --greg On Mon, Sep 28, 2009 at 12:56 PM, Ismael Juma mli...@juma.me.uk

[Lift] Re: Java 5 support?

2009-09-28 Thread David Pollak
Crud. This just isn't going to be easy, is it? On Mon, Sep 28, 2009 at 2:04 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Another issue, which may be more problematic, is that in my case I'm compiling against the java.sql.Statement interface. If I remove the troublesome methods so that

[Lift] Re: Java 5 support?

2009-09-28 Thread Ross Mellgren
In some code we have at work that has to support Java 1.6 and down for certain things, we had to resort to having multiple versions and dynamically Class.forName the right one in at runtime. I would be overjoyed to hear of a better solution :-/ -Ross On Sep 28, 2009, at 6:00 PM, David

[Lift] Re: Seeking for Simple Sample .scala and .html that mimics CRUDify/Seam-Gen

2009-09-28 Thread yk
Dont mind my previous message. I've finally located net.liftweb.example package from git. The Simple example is exactly what I am looking for. Cheers On Sep 28, 8:45 pm, yk ying.kwang...@gmail.com wrote: I have had plowing through the internet for two weeks now, for a simple tutorial that