[Lift] Re: is there a name for this pattern?

2009-06-20 Thread Eric Bowman
Eric Bowman wrote: The basic trick where a superclass has its subclass as a type parameter, e.g. class User extends MegaProtoUser[User] I've run into this before, I remember struggling to get it, then getting it, but I can't recall the epiphany. But obviously this is a relatively common

[Lift] Re: is there a name for this pattern?

2009-06-20 Thread David Pollak
Having type parameters on Mapper classes helps with a lot of things and is not going to go away. Marius and I discussed this a bunch of months ago onlist. Basically, the QueryParam (stuff that's passed to find(), findAll(), etc.) must be type checked against the current Mapper so you don't pass

[Lift] Re: Making MetaMegaProtoUser templateable

2009-06-20 Thread David Pollak
2009/6/19 dflemstr david.flemst...@gmail.com Hello again and thank you for this solution! This is indeed a strange problem and it's difficult to find a good sustainable solution... One such that I think would be appropriate, however, would be to make bind take (String, = NodeSeq) instead of

[Lift] Re: redirect, page not found

2009-06-20 Thread Manfred
Alright, solved it. Since the page was not accessible in general when putting the link into the browser manually but the file was there I locking again through the master.pdf and SiteMap. Looks like the page needs to be defined for SiteMap in Boot class. After doing that it was accessible.

[Lift] Jetty and Apache

2009-06-20 Thread DFectuoso
I have a VPS in wiredtree where i would like to run a scala/lift application with jeety in a server that is running a LAMP stack. I want to use comet actors so i will be using the long http hack and i dont know if that would be important. So what options do i have? How can i achieve this? I

[Lift] Downloading...

2009-06-20 Thread Joe Wass
I'm trying to compile my Lift application but it seems that every time I do it tries to download something or other. Case in point, just now: Downloading: http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading:

[Lift] Re: Downloading...

2009-06-20 Thread Eric Bowman
Joe Wass wrote: I'm trying to compile my Lift application but it seems that every time I do it tries to download something or other. Case in point, just now: Downloading: http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading:

[Lift] Re: Downloading...

2009-06-20 Thread Kevin Wright
Nothing to do with gitThis is just maven attempting to download the distinct modules smack and smackx Maven behaviour is to attempt all known repositories until a given artifact was found, in this case you had two known repos: scala-tools.org and repo1.maven.org On Sat, Jun 20, 2009 at 10:14

[Lift] Re: On OSGi bundle mavens

2009-06-20 Thread Kjetil Valstadsve
On Jun 20, 5:01 pm, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Of course I would like to stick to the more common approach described above. Maybe you want to take a look at the POMs and analyze if/how the Felix Bundle plug-in can pick the compressed JavaScript libraries? I was

[Lift] Re: Stability of snapshots?

2009-06-20 Thread David Pollak
Please use scala 2.7.4. 2.7.5 differs in the way actors work because of memory leaks in 2.7.4 actors. I have worked around the 2.7.4 memory leaks and have not had time to figure out if 2.7.5 actually fixes the problems. In terms of stability of 1.1 snapshot, we just launched

[Lift] Re: Jetty and Apache

2009-06-20 Thread David Pollak
Apache does not deal well with long polling or lots of open connections. For low traffic sites, it won't be noticeable. However, I strongly recommend nginx... it's a much much better http server than apache and it's got a very small memory footprint. On my servers, I run nginx at port 80 and