[Lift] net.liftweb.mapper.PreCache doesn't work well as my expect

2009-08-23 Thread koji
Hi all, I want to avoid n+1 problem so i try to write my code as val users = User.findAll(PreCache(User.roomChoice), By(User.travel, travelId)) and i saw the sql generated only once for querying roomChoice. but when i using the u.fromPlace.obj, it always become Empty(u.fromPace has correct value)

[Lift] i want sample code for ajaxForm

2009-08-23 Thread pravin
Hi, i have one text box and one submit button on my html form... how can i use ajaxForm method to do this,,, i go through the sample codes from sample application that lift provided ...but i want more details for ajaxForm Thanks in advance... -Pravin --~--~-~--~~~-

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
On Aug 24, 12:06 am, David Pollak wrote: > On Sun, Aug 23, 2009 at 10:45 AM, marius d. wrote: > > > Hmmm .. I'm wondering if we can write a Scala compiler plugin that > > transform functions provided to Lift's S/SHtml function etc. into a > > richer FunctionX implementation that knows how to "

[Lift] Re: JPA blank archetype

2009-08-23 Thread Charles F. Munat
Nope. Same error, even after blowing away m2 and rerunning the basic archetype to create a new app. Chas. Charles F. Munat wrote: > No on blowing away m2. I did switch to the blank archetype (which is > what I actually wanted) and it worked fine. But I can try again with the > basic and blowi

[Lift] simple Ajax form

2009-08-23 Thread jack
I am trying to make a simple ajax form. The code is below. The Javascript error I am getting when I hit the send button is: uncaught exception ReferenceError: F777221462447MPT is not defined Am I missing something? Hello FormAjax Hello Who : create src

[Lift] Re: error while SHtml.ajaxInvoke call

2009-08-23 Thread pravin
hi, its former method i am using in my app(u mentioned it in last reply). i have one text box and submit button. when i click on submit button - i have to show employee info on my GUI page. (in text box i will enter emp Id)) This info have to table one table have information with ajax and othe

[Lift] Re: JPA blank archetype

2009-08-23 Thread Charles F. Munat
No on blowing away m2. I did switch to the blank archetype (which is what I actually wanted) and it worked fine. But I can try again with the basic and blowing away m2. Chas. Derek Chen-Becker wrote: > It looks like this is still the older archive before HttpServletRequest > → HTTPRequest. Th

[Lift] Re: JPA blank archetype

2009-08-23 Thread Derek Chen-Becker
It looks like this is still the older archive before HttpServletRequest → HTTPRequest. The code in master has the change applied, so I'm not sure why it's failing. The warnings are normal (I haven't figured out all of the tricks with the velocity templating), but something isn't being pulled correc

[Lift] Re: JPA blank archetype

2009-08-23 Thread Charles F. Munat
I found this in the lift book and used it: mvn archetype:generate \ -DarchetypeRepository=http://scala-tools.org/repo-snapshots \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-jpa-basic \ -DarchetypeVersion=1.1-SNAPSHOT \ -DgroupId=com.foo.jpaweb \ -DartifactId=JPADemo \ -

[Lift] JPA blank archetype

2009-08-23 Thread Charles F. Munat
Anyone know offhand what the mvn command is to create a blank JPA project (split, not single)? We should probably collect all the archetype commands and put them on the new wiki (and keep them up to date with the latest version number). I'm happy to do it if I can figure out what the right ver

[Lift] Re: Lift Core Missing on mvn install

2009-08-23 Thread David Pollak
You need to put the snapshots repository in your repository listing: scala-tools.org Scala-Tools Maven2 Repository http://scala-tools.org/repo-releases scala-tools.org.snapshots Scala-Tools Maven2 Repository for Snapshots http://scala-tools.org/

[Lift] Re: Lift Core Missing on mvn install

2009-08-23 Thread Peter Robinett
Hi Derek, I hadn't tried deleting my .m2 directory but unfortunately that didn't help: http://gist.github.com/173501 Peter On Aug 22, 5:46 am, Derek Chen-Becker wrote: > I don't see anything in the pom.xml that should be causing an issue. Have > you tried wiping your .m2 repository? Sometimes

[Lift] Re: Structuring Web Application

2009-08-23 Thread greekscala
Hello David, thanks for helping. Do you mean by composing my business logic with traits like the example of Jonas Boner http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di.html ? I understand the example. What do you mean by objects? The object Scala keyword? It would be

[Lift] Re: alternate webroot using Boot?

2009-08-23 Thread David Pollak
Are you just looking to pass certain requests down the Servlet's filter chain so they can be handled generically by the app server? You can set: LiftRules.liftRequest.append { case Req("static_stuff" :: _, _, _) => false } That'll make /static_stuff/... all get passed through to the web contain

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread David Pollak
On Sun, Aug 23, 2009 at 10:45 AM, marius d. wrote: > > Hmmm .. I'm wondering if we can write a Scala compiler plugin that > transform functions provided to Lift's S/SHtml function etc. into a > richer FunctionX implementation that knows how to "serialize" it's > members. We could restrict the typ

[Lift] Re: Include build # in LiftVersion?

2009-08-23 Thread Jeppe Nejsum Madsen
On Wed, Aug 19, 2009 at 6:26 PM, David Pollak wrote: > > On Wed, Aug 19, 2009 at 5:44 AM, Jeppe Nejsum Madsen > wrote: >> >> Hi, >> >> When living on the bleeding edge (i.e. 1.1-SNAPSHOT) it is sometimes >> difficult to figure out which version of lift is in use and deployed. >> >> LiftRules.lift

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
Thanks Greg. Your points on the compiler are well taken. A compiled language with higher order functions, general functional programming paradigms and all the rest that Scala has is great. I also like Haskell, but like you, I think the JVM and surrounding Java Culture, to the extent that it is usef

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
Sure thing Greg. On Aug 23, 9:59 pm, Meredith Gregory wrote: > Marius, > > This is closely related to the proposal to deal with http streams via > delimited continuations. Sorry i haven't fleshed this out a bit. Let me put > my thoughts on paper/pseudo code and email it out for comment in a day

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
This was just what I needed to push me over the edge. Actually I was there already and the biggest two reasons were a compiled, functional language and Lift's comet support. Thanks for the quick responses everybody, and David, I will keep in mind what you said about developers. I am on the verge o

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
Thanks Marius. I agree its a no brainer. Just wanted some independent confirmation!. On Sun, Aug 23, 2009 at 1:08 PM, marius d. wrote: > > Looks like you don't need to be convinced :) ... Scala with its > features + Java compatibility + Lift's rich set of features + > performance of Scala & Lif

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread Meredith Gregory
Marius, This is closely related to the proposal to deal with http streams via delimited continuations. Sorry i haven't fleshed this out a bit. Let me put my thoughts on paper/pseudo code and email it out for comment in a day or so. Best wishes, --greg On Sun, Aug 23, 2009 at 10:45 AM, marius d.

[Lift] Re: MappedDateTime losing time?

2009-08-23 Thread Jeppe Nejsum Madsen
Derek Chen-Becker writes: > It should be very safe to use 1.0.1-SNAPSHOT. I'm planning on spinning the > release of 1.0.1 GA next Wednesday, so we're in a code freeze starting > Sunday. Really, the 1.0 line is strictly bug-fix at this point (1.1-SNAPSHOT > is where new features make it in). So f

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
Thanks Derek for the quick and helpful response. I am going to go with Lift. On Sun, Aug 23, 2009 at 12:49 PM, Derek Williams wrote: > On Sun, Aug 23, 2009 at 8:45 AM, jack wrote: > >> I really do want to use Lift instead of Rails. Could somebody please >> convince me? :) >> > > I used to strug

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread Ryan Donahue
Marius, this sound like a very good idea. This would allow the app developer to decide whether to spend the extra time thinking about serialization/session replication. If you don't need it, then you don't use the compiler plugin and just continue building lift apps as you have been. If you do

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
On Aug 23, 9:47 pm, Ryan Donahue wrote: > Marius, this sound like a very good idea.  This would allow the app > developer to decide whether to spend the extra time thinking about > serialization/session replication.  If you don't need it, then you > don't use the compiler plugin and just contin

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread Kevin Wright
Also FlyObjectSpace (http://www.flyobjectspace.com/) It comes with a suitable licence and has a Scala version. Not used it myself but I'm definitely about to check it out... I'd also be willing to be that the devs would be extremely accommodating if it were being used in a high profile project su

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
Hmmm .. I'm wondering if we can write a Scala compiler plugin that transform functions provided to Lift's S/SHtml function etc. into a richer FunctionX implementation that knows how to "serialize" it's members. We could restrict the types that as LiftSerializable on top of primitives, Calenars, Se

[Lift] Re: Lift vs Rails

2009-08-23 Thread Meredith Gregory
Jack, For my money Rails is somewhat more mature than lift, but lift is on a trajectory to overtake Rails feature-wise and is certainly already there performance-wise. The real issue, to me, is Scala vs Ruby. Quite apart from being more slightly more performant and equally expressive, the real win

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
At a first glace Java serialization is needed because of its awareness of the reference graph. But in the same time it does not perform well. One way might be the byte level instrumentation that would induce code to figure out the reference graph and know how to stream-ify it using a given efficie

[Lift] Re: Problem building my app in Windows

2009-08-23 Thread DFectuoso
Yea, my steps where install java 1.5_20, then ran the windows installer i got from liftweb.com, then tried to run the application and basicly got into this problem, seems like maven is trying to download information from lift's repo and it get an error while trying to store it on localhost, i'll k

[Lift] Re: Problem building my app in Windows

2009-08-23 Thread David Pollak
Please make sure you are: - Using Maven 2.0.9 or greater - Running things from the Windows command prompt (not the Git shell or Cygwin) I regularly use Windows for Scala development. I wrote *Beginning Scala* on a Windows machine and my traveling laptop is a Windows machine. I have not experienc

[Lift] Re: Lift vs Rails

2009-08-23 Thread David Pollak
Jack, I started doing Rails in 2004. At the time, there was one Rails book and a few Ruby books. There had been a few RubyConf conferences and SD Forum had the first Ruby & Rails conference in Silicon Valley. Ruby was mid-pack in the second set of the Tiobe index. By those metrics, Lift and Sca

[Lift] Re: Structuring Web Application

2009-08-23 Thread David Pollak
On Sun, Aug 23, 2009 at 5:15 AM, greekscala wrote: > > Hello Timothy, > > thank you. > I know that I do not need Spring for Scala. > I dont expressed it well. How do I glue my app parts > together. And how do I glue the lift part with a facade or > application service of my domain layer. Use tr

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread Arthur
On Sun, Aug 23, 2009 at 7:04 PM, David Pollak wrote: > On Sun, Aug 23, 2009 at 4:50 AM, Kevin Wright > wrote: >> >> I'm wondering if we can't leverage JavaSpaces to handle a lot of this >> stuff.  From my experience with the technology it seems to be a pretty good >> fit for the problem. > > Two

[Lift] Re: Lift vs Rails

2009-08-23 Thread marius d.
Looks like you don't need to be convinced :) ... Scala with its features + Java compatibility + Lift's rich set of features + performance of Scala & Lift makes it a no brainer. Enumerating all the pros of Scala and Lift would just take way to long. The list of Scala books and the Lift book are

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread David Pollak
On Sun, Aug 23, 2009 at 4:50 AM, Kevin Wright wrote: > I'm wondering if we can't leverage JavaSpaces to handle a lot of this > stuff. From my experience with the technology it seems to be a pretty good > fit for the problem. Two reasons: - JavaSpaces is as far as I know, GPL and we will not m

[Lift] Re: Lift vs Rails

2009-08-23 Thread Derek Williams
On Sun, Aug 23, 2009 at 8:45 AM, jack wrote: > I really do want to use Lift instead of Rails. Could somebody please > convince me? :) > I used to struggle with Rails (and to a lesser extent Merb) because it was difficult to do things that weren't the "Rails Way". Lift does have a recommended way

[Lift] Re: lift:with-params deprecation alternatives

2009-08-23 Thread marius d.
Currently both with-param and bind-at are supported. I'll try to update the wiki. Br's, Marius On Aug 23, 5:28 pm, _rogerio_ wrote: > I tried to find some info about the correct usage of template related > tags on wiki but I couldn't find the most recent information about it. > I'm starting wit

[Lift] Lift vs Rails

2009-08-23 Thread jack
I am doing a startup company that involves both a lot of processing on the backend (in the code) and a decent amount of comet/ajax in the frontend.It is very important that the code quickly on the server. I have seen the light with respect to Scala and Lift looks terrific. My only concern is how

[Lift] Re: lift:with-params deprecation alternatives

2009-08-23 Thread _rogerio_
I tried to find some info about the correct usage of template related tags on wiki but I couldn't find the most recent information about it. I'm starting with Lift and I couldn't find all information that I want on wiki pages, is there any chance to update the wiki with some info about these renam

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread Kevin Wright
I guess JGroups is another alternative here, it's a bit lower level, but does let you set up nodes manually - so it's not an issue that you need UDP broadcast (although it helps...) On Sun, Aug 23, 2009 at 1:09 PM, marius d. wrote: > > I've been playing with JINI a few years ago a liked it a lot

[Lift] Re: Structuring Web Application

2009-08-23 Thread greekscala
Hello Timothy, thank you. I know that I do not need Spring for Scala. I dont expressed it well. How do I glue my app parts together. And how do I glue the lift part with a facade or application service of my domain layer. Thanks for your help On 23 Aug., 13:12, Timothy Perrett wrote: > Can yo

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
I've been playing with JINI a few years ago a liked it a lot (not a simple programming model, but JavaSpace reduces a lot of such complexity) but I'm not sure how fitful it really is in stax like environments where broadcast UDP may not be supported so discovery service would be more difficult. B

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread Kevin Wright
I'm wondering if we can't leverage JavaSpaces to handle a lot of this stuff. From my experience with the technology it seems to be a pretty good fit for the problem. On Sun, Aug 23, 2009 at 11:06 AM, marius d. wrote: > > Changed the thread subject ... > > Marius > > On Aug 22, 6:17 pm, "marius

[Lift] Re: Include build # in LiftVersion?

2009-08-23 Thread Timothy Perrett
Indrajit, We actually discussed this a while back for the installers, and the long term plan is still that we do something like this to speed the getting started process if you know of any generation plugins that could potentially serve as a starting point that would be great! This stuff is

[Lift] Re: Structuring Web Application

2009-08-23 Thread Timothy Perrett
Can you please be more specific about your app tier that you wish to access - im unfortunately not seeing what hurdle stops you from accessing it just as you would from Java? Cheers, Tim On Aug 22, 9:45 pm, greekscala wrote: > Hello Lift Community, > > I want to implement a new Project in Scala

[Lift] Re: alternate webroot using Boot?

2009-08-23 Thread Timothy Perrett
Personally id do something a little more complex than have a sink url like /content/ :-) Cant you just write a regex to match various types of static content so its transparently served by NGINX irrespective of resource path? Of course, there are a few exceptions like liftAjax.js, but for the mo

[Lift] Re: Problem building my app in Windows

2009-08-23 Thread Timothy Perrett
Have you tried using the windows installer? Cheers, Tim On Aug 23, 6:08 am, DFectuoso wrote: > Hi, i have been working in linux and mac and having a wonderful time > with mvn and everything lift's got to offer =). Sadly i want to teach > lift to a person who uses Windows as he's only OS, so i a

[Lift] Re: Notes from 8/19/09 Lift Committers Call - LIFT SESSION REPLICATION DISCUSSION

2009-08-23 Thread marius d.
Changed the thread subject ... Marius On Aug 22, 6:17 pm, "marius d." wrote: > Great thing Dave. > > Roughly having a bound function f that user provided say in an > ajaxButton call.The function f may hold references to other functions, > session/request-vars,  references to the snippets instan