[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread Timothy Perrett
Lift is perfect for these kind of REST abstractions... its what I do almost exclusively and I find Lift makes this process very smooth. My advice would be to go for a JSON api - nice and lightweight for streaming to an iPhone. Cheers, Tim On Jul 9, 1:43 am, Raphael erzengelr...@googlemail.com

[Lift] Re: license expired

2009-07-09 Thread Timothy Perrett
DFectuoso is correct - I must get around to removing JR from the lift installers. Sorry about that. Cheers, Tim On Jul 9, 4:05 am, DFectuoso santiago1...@gmail.com wrote: The license of javaRebel packed with lift expired a couple of days ago, there's already a couple of solutions (you can

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread marius d.
You can also use REST + Record Please see here: http://groups.google.com/group/liftweb/browse_thread/thread/b125f9d4e9ca10c8/5f871b2cf9f7099b?lnk=gstq=REST+%26+Record#5f871b2cf9f7099b It is a mechanism for automatically building Record objects from REST query string params. Hence Lift

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread Timothy Perrett
Good point marius - I know DPP committed to completing record DB support before 1.1, but any ideas when he is planning to implement it? Id say thats the next big lift feature. Cheers, Tim On Jul 9, 9:27 am, marius d. marius.dan...@gmail.com wrote: You can also use REST + Record Please see

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread marius d.
On Jul 9, 12:14 pm, Timothy Perrett timo...@getintheloop.eu wrote: Good point marius - I know DPP committed to completing record DB support before 1.1, but any ideas when he is planning to implement it? Id say thats the next big lift feature. Not sure yet but AFAIK he's also thinking to

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread Timothy Perrett
That would be pretty sweet - although right now I think most people would be happy with some base level persistence :-) Record is exciting though - especially looking forward to having a unified crud model for various backends. Cheers, Tim On 09/07/2009 11:12, marius d. marius.dan...@gmail.com

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread Raphael
So there is no framework like ActiveRecord in Rails that both builds the objects and persists them to a DB? On 9 Jul., 10:27, marius d. marius.dan...@gmail.com wrote: You can also use REST + Record Please see here:http://groups.google.com/group/liftweb/browse_thread/thread/b125f9d4e...

[Lift] Re: Web service with DB access - Lift required?

2009-07-09 Thread marius d.
What conditions the existent Mapper does not currently satisfy in terms of builds the objects and persists them to a DB? ... build Mapper objects from query strings? Br's, Marius On Jul 9, 3:13 pm, Raphael erzengelr...@googlemail.com wrote: So there is no framework like ActiveRecord in Rails

[Lift] Replacing scala.actors with LiftActor

2009-07-09 Thread Timothy Perrett
Hey guys, Im getting the following trace from my application: java.lang.InterruptedException at scala.actors.LinkedQueue.put(Unknown Source) at scala.actors.FJTaskRunnerGroup.execute(Unknown Source) at scala.actors.FJTaskScheduler2.execute (FJTaskScheduler2.scala:156)

[Lift] Re: license expired

2009-07-09 Thread Timothy Perrett
You also need to remove the .lic file - until JavaRebel provide a solution, our hands are a little tied for users who have an existing install. You can of course remove JavaRebel if you so wish - just delete the JAR, and change your MAVEN_OPTS. Thanks Tim On 09/07/2009 11:16, Sy

[Lift] Help with the eclipse plugin

2009-07-09 Thread Dan Gravell
I'm trying to learn about lift using the eclipse plugin but not really getting far... Currently trying to build a project hangs eclipse which is obviously something of a shortcoming. Eclipse 3.4.2 Scala plugin 2.7.5 Maven plugin Q4E (IAM) 0.10 So I create a new lift project externally using

[Lift] Set MappedLongForeignKey defaultValue...

2009-07-09 Thread Hannes
Hey Lifters, I wanna set the defaultValue for this object: object status extends MappedLongForeignKey(this, OrderStateMetaObj){ override def defaultValue = OrderStateMetaObj.find(By(OrderStateMetaObj.name, NEW)) openOr 0L } The problem is, that the referenced OrderState object doesn't

[Lift] Re: Replacing scala.actors with LiftActor

2009-07-09 Thread David Pollak
On Thu, Jul 9, 2009 at 5:34 AM, Timothy Perrett timo...@getintheloop.euwrote: Hey guys, Im getting the following trace from my application: java.lang.InterruptedException at scala.actors.LinkedQueue.put(Unknown Source) at scala.actors.FJTaskRunnerGroup.execute(Unknown

[Lift] Re: Replacing scala.actors with LiftActor

2009-07-09 Thread Timothy Perrett
No.  The Lift Actor stuff is completely independent of the Scala Actor stuff. This I understand of course. First, it looks like your app is 2.7.4, I'd suggest switching to 2.7.5. 2.7.5 using the java.util.concurrent package for actor scheduling rather than some random version of the Fork

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenhem
mvn eclipse:eclipse doesn't seem to like scala. Why don't you initialize everything from the IAM GUI? - Dan Gravelldan.grav...@talk21.com wrote: I'm trying to learn about lift using the eclipse plugin but not really getting far... Currently trying to build

[Lift] Re: Replacing scala.actors with LiftActor

2009-07-09 Thread David Pollak
On Thu, Jul 9, 2009 at 8:08 AM, Timothy Perrett timo...@getintheloop.euwrote: No. The Lift Actor stuff is completely independent of the Scala Actor stuff. This I understand of course. First, it looks like your app is 2.7.4, I'd suggest switching to 2.7.5. 2.7.5 using the

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Ellis
Hi Dan, I don't have an answer to your question, but maybe a suggestion. Eclipse does not work well with maven/scala/lift, and I really doubt it will anytime soon. According to exchanges on this list, IntelliJ IDEA apparently has the best working implementation so far. I've been using NetBeans

[Lift] Anyone tried to use Velocity with scala/lift?

2009-07-09 Thread Ewan
All I am trying to create an email using a velocity template all wired up with Apache Camel. The camel stuff aside I can't seem to get velocity to render Scala lists along the lines of: #foreach($email in $headers.emailAddresses) hello $email #end where headers is a map and emailAddresses

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread David Pollak
On Thu, Jul 9, 2009 at 9:27 AM, Kevin Wright kev.lee.wri...@googlemail.comwrote: The fabled 2.8 eclipse plugin will be the one to use when it's here, should be any day now... This is normally my cue to rant about the state of the Eclipse plugin. First some background... I've been part of the

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Miles Sabin
On Thu, Jul 9, 2009 at 5:45 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: But, until Martin's magic brain has yielded code for us, I would recommend avoiding Eclipse for Scala and Lift related development. Unsurprisingly I disagree. Bug reports and more contributions to documentation

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Jeppe Nejsum Madsen
Ellis ellis.whiteh...@gmail.com writes: Hi Dan, I don't have an answer to your question, but maybe a suggestion. Eclipse does not work well with maven/scala/lift, and I really doubt it will anytime soon. I don't know about the Maven part, but Eclipse works with Scala Lift. It's not nearly

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Jeppe Nejsum Madsen
Miles Sabin mi...@milessabin.com writes: On Thu, Jul 9, 2009 at 5:45 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: But, until Martin's magic brain has yielded code for us, I would recommend avoiding Eclipse for Scala and Lift related development. Unsurprisingly I disagree. Bug

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Miles Sabin
On Thu, Jul 9, 2009 at 6:14 PM, Jeppe Nejsum Madsenje...@ingolfs.dk wrote: A major show stopper atm is that Lift, afaik, doesn't work with Scala 2.8 which makes it difficult to actually use the trunk plugin. It is my (maybe incorrect?) impression that there's not a lot of activity happening

[Lift] Re: Code review for some Mailer enhancements

2009-07-09 Thread Derek Chen-Becker
The code looks OK. Stylistically I would do things a little differently for getJndiSession: import net.liftweb.util.{Box,Full,Failure,Helpers} import Helpers._ private def getJndiSession: Box[Session] = jndiName.flatMap { jndiSessionName = tryo(thrown = Log.error(Cannot lookup session from

[Lift] This is the official support channel for Lift

2009-07-09 Thread David Pollak
Folks, This mailing list is the official support channel for Lift. The IRC channel is a popular, but unofficial, support channel for Lift. The following are not ways to get support for Lift (or my positive attention): - Personal email unless we know each other (if you have a question about

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread David Pollak
On Thu, Jul 9, 2009 at 10:14 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Miles Sabin mi...@milessabin.com writes: On Thu, Jul 9, 2009 at 5:45 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: But, until Martin's magic brain has yielded code for us, I would recommend avoiding

[Lift] Re: This is the official support channel for Lift

2009-07-09 Thread TylerWeir
I think we should sticky this thread. On Jul 9, 1:28 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, This mailing list is the official support channel for Lift.  The IRC channel is a popular, but unofficial, support channel for Lift. The following are not ways to get support

[Lift] Typesafe JSON builder?

2009-07-09 Thread Jeppe Nejsum Madsen
Hi, Has anyone made a typesafe JSON builder? Many Javascript libraries provides support for extensive customization, usually via a JSON object (eg. http://www.jqplot.com/docs/files/optionsTutorial-txt.html#Options_Tutorial It would be nice to generate this from Scala which would then give you

[Lift] Re: Anyone tried to use Velocity with scala/lift?

2009-07-09 Thread Ewan
Bit of googling and came across some wicket/scala folks having a similar problem who got around the problem with the following: implicit def listToJavaList[T](l: Seq[T]) = l.foldLeft(new java.util.ArrayList[T](l.size)){(al, e) = al.add(e); al} and magically I can pull out the value now. What

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenhem
I'm using eclipse for lift. I'm not saying it's perfect but it's very usable. My understanding is that the important thing is not to use mv eclipse:eclipse. - Miles Sabinmi...@milessabin.com wrote: On Thu, Jul 9, 2009 at 5:45 PM, David

[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-07-09 Thread David Pollak
On Wed, Jul 8, 2009 at 7:40 PM, fbettag fr...@bett.ag wrote: using CDATA makes maven compile break. Altho i've been coding javascript for quite some time (like 8 years), and i've never seen IE complaining about double quotes ;) Please provide an example of the CDATA making Maven break.

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenhem
Completion works for me, when there are no basic syntax errors in the file (mismatched bracketd etc.). Also, I use lift without running maven from the command line. I create the project with m2eclipse, and I don't recall having to set M2_REPO. - Jeppe Nejsum

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Jeppe Nejsum Madsen
Naftoli Gugenhem naftoli...@gmail.com writes: Completion works for me, when there are no basic syntax errors in the file (mismatched bracketd etc.). Also, I use lift without running maven from the command line. I create the project with m2eclipse, and I don't recall having to set M2_REPO.

[Lift] Re: license expired

2009-07-09 Thread Sy
Yep, removing .lic file works. But now after successful 'mvn jetty:run', I point my browser to 'http://localhost:8080/'. Then I get 'Welcome to Jetty 7' page instead of 'Welcome to your project!' index.html page from helloworld/src/main/ webapp/, ?? My apology for another newbie question, I

[Lift] Re: Maven Lift archetype errors

2009-07-09 Thread David Pollak
On Tue, Jul 7, 2009 at 1:21 PM, glenn gl...@exmbly.com wrote: The command line I used is: mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=1.1-SNAPSHOT -DremoteRepositories=http:// scala-tools.org/repo-snapshots

[Lift] Re: This is the official support channel for Lift

2009-07-09 Thread David Pollak
On Thu, Jul 9, 2009 at 12:00 PM, DFectuoso santiago1...@gmail.com wrote: that unless you are a committer and you have written the code yourself, it doesn't get into So maybe it would be a good idea to know how one becomes a committer! Is it just by new modules? working close to the

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Dan Gravell
Ok... my feelings are that is not so much the scala stuff as the maven plugin that was borking eclipse. So I took Jeppe's advice, which seems to be to use maven outside of eclipse. At least it doesn't seem to hang anymore, which is a significant step forward! Thanks everyone for their thoughts.

[Lift] Re: Help with the eclipse plugin

2009-07-09 Thread Naftoli Gugenheim
So maybe we can say... either use it only outside or only inside... On Thu, Jul 9, 2009 at 4:00 PM, Dan Gravell dan.grav...@talk21.com wrote: Ok... my feelings are that is not so much the scala stuff as the maven plugin that was borking eclipse. So I took Jeppe's advice, which seems to be to

[Lift] Commercial Users of Functional Programming '09 Call for Participation

2009-07-09 Thread David Pollak
Folks, Commercial Users of Functional Programming Workshop (CUFP) 2009 Functional Programming As a *Means*, Not an *End* Call for Participation Sponsored by SIGPLAN http://www.acm.org/sigs/sigplan/ Co-located with ICFP 2009 http://www.cs.nott.ac.uk/%7Egmh/icfp09.html

[Lift] Re: JPA, Hibernate, c3p0

2009-07-09 Thread Derek Chen-Becker
Whoops. Forgot about this one. I just pushed a fix in scalajpa 1.2-SNAPSHOT that adds a shutdown method to LocalEMF. Please let me know if that works as expected or if there are any other issues. Derek On Thu, Jul 9, 2009 at 2:05 PM, Ryan Donahue donahu...@gmail.com wrote: Hi Derek, just