[Lift] Re: Welcome Peter Robinett to the Lift committers

2009-12-09 Thread Marius
Welcome Peter !! On Dec 10, 12:08 am, David Pollak wrote: > Folks, > > Please join me in welcoming Peter Robinett to the Lift committers.  Peter's > been active on the Lift list helping people and asking questions (a great > combo.)  As Peter's project has progressed, he's developed artifacts tha

Re: [Lift] New Lift release process wiki page

2009-12-09 Thread Heiko Seeberger
David, I do not understand the naming convention "Lift_x_version". Is this something like "Lift_x_2.0" or "Lift_2.0" or ...? git checkout -b Lift_x_version Maybe it is possible to find a better symbol, e.g. "Lift_MAJOR.MINOR[.MICRO][-QUALIFIER]" with QUALIFIER something like "M8"? Anyway, could

Re: [Lift] Open discussion on Lift Name Calling practices

2009-12-09 Thread Kris Nuttycombe
On Tue, Dec 1, 2009 at 1:43 PM, Jim Barrows wrote: > Lift is getting very large.  We've got singular names as lists, and plural > names that aren't lists.  We've got people calling roses red flowers, spades > diamonds and other mass chaos.  Well, it's not that bad, but you get the > idea.  This is

[Lift] Re: Understanding SessionVars and Objects

2009-12-09 Thread johncch
Thanks for the explanation! > SessionVars are kind of like thread local variables. They have an internal > "name" (which is guaranteed to be unique and is maintained by Lift) which is > used to check in a dictionary the session keeps around with the values of > each SessionVar for the current s

[Lift] Multi-Ćolumn MappedField

2009-12-09 Thread Joern
Hi there, I want to create a MappedField, which has one column as Type Long and another column as Type Boolean, but I don't know, what I should put into "dbFieldClass" and/or targetSQLType. If I look at MappedPassword for example, I just see classOf[String] or Types.VARCHAR, which somehow makes se

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-09 Thread Xuefeng Wu
That's great! Thank you for your help. On Thu, Dec 10, 2009 at 11:06 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Wed, Dec 9, 2009 at 5:35 PM, Xuefeng Wu wrote: > >> doCompetenceB render a button which user click and will pop a dialog for >> create a competence. >> *The comp

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-09 Thread David Pollak
On Wed, Dec 9, 2009 at 5:35 PM, Xuefeng Wu wrote: > doCompetenceB render a button which user click and will pop a dialog for > create a competence. > *The competence have category property, I want this pop dialog know the > category which user already selected from the category tree.* > That doe

Re: [Lift] Understanding SessionVars and Objects

2009-12-09 Thread Ross Mellgren
On Dec 9, 2009, at 8:44 PM, johncch wrote: > Hi, > > I'm trying to understand the implementation of MetaMegaProtoUser, > reading the code, there are a couple of conceptual questions that I'd > like to ask. > > I understand object as a singleton class, or perhaps vaguely similar > to a static cla

[Lift] Understanding SessionVars and Objects

2009-12-09 Thread johncch
Hi, I'm trying to understand the implementation of MetaMegaProtoUser, reading the code, there are a couple of conceptual questions that I'd like to ask. I understand object as a singleton class, or perhaps vaguely similar to a static class (as in Java) so I'm wondering why is, in the MetaMegaProt

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-09 Thread Xuefeng Wu
doCompetenceB render a button which user click and will pop a dialog for create a competence. *The competence have category property, I want this pop dialog know the category which user already selected from the category tree. * On Thu, Dec 10, 2009 at 7:19 AM, David Pollak wrote: > > > On Mon, D

Re: [Lift] Sharing data between snippet functions during a single HTTP request

2009-12-09 Thread David Pollak
On Mon, Dec 7, 2009 at 9:14 PM, Xuefeng Wu wrote: > Hi David & Ross, > > Thank you for your help, > I understand RequestVar now, which muse be used in the same request. > > My case is that I have a tree and a separate button. > When use click the tree node, the separate button should know which n

[Lift] New Lift release process wiki page

2009-12-09 Thread David Pollak
http://wiki.github.com/dpp/liftweb/committer-release-process Please note the "branch" vs. "tag" change in the process. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics

Re: [Lift] Welcome Peter Robinett to the Lift committers

2009-12-09 Thread Derek Chen-Becker
Welcome Peter! On Wed, Dec 9, 2009 at 3:08 PM, David Pollak wrote: > Folks, > > Please join me in welcoming Peter Robinett to the Lift committers. Peter's > been active on the Lift list helping people and asking questions (a great > combo.) As Peter's project has progressed, he's developed arti

Re: [Lift] LiftConsole and JPA

2009-12-09 Thread Derek Chen-Becker
The exception is being thrown by Hibernate: java.lang.NoClassDefFoundError: javax/transaction/SystemException at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:39) at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(Entity

[Lift] Re: rest service

2009-12-09 Thread wstrange
You could look at Jersey. They have a user contributed module that integrates with lift. On Dec 9, 7:43 am, Niels Boldt wrote: > Hi, > > What is the best way to create a rest service in lift that support both xml > and json. > > Are there any tools to use besides lift-json. The end result of

[Lift] Welcome Peter Robinett to the Lift committers

2009-12-09 Thread David Pollak
Folks, Please join me in welcoming Peter Robinett to the Lift committers. Peter's been active on the Lift list helping people and asking questions (a great combo.) As Peter's project has progressed, he's developed artifacts that he is looking to contribute to Lift and I for one am looking forwar

[Lift] Re: Documentation for 1.1

2009-12-09 Thread Randinn
I'm sorry I didn't reply to this earlier. Yes, I am looking for docs so I can keep my newbie questions to a minimum. I know I can ask anything here but I'd rather see you all moving Lift forward then dealing with my simplistic questions. On Dec 8, 10:50 am, Timothy Perrett wrote: > You are aware

Re: [Lift] Next Lift version will be 2.0

2009-12-09 Thread Indrajit Raychaudhuri
On 09/12/09 11:01 PM, Heiko Seeberger wrote: > Indrajit, > > Sorry for the very late reply :-( > > 2009/12/7 Indrajit Raychaudhuri > > > Grand stuff! > > > Thank you! > > Indeed, I was wondering if we could sync this up with the Round 2 of > Refactoring exe

Re: [Lift] re: what changes would need to be made so LIFT can work with HTML5

2009-12-09 Thread Alex Boisvert
Just to follow-up on this, I've now added a new built-in snippet in master that sets the HTML5 DOCTYPE on the Lift response, just add this snippet anywhere in your template for pages you want to be delivered as HTML5, cheers, alex On Mon, Dec 7, 2009 at 8:08 PM, David Pollak wrote: > > > On M

Re: [Lift] Next Lift version will be 2.0

2009-12-09 Thread Heiko Seeberger
Indrajit, Sorry for the very late reply :-( 2009/12/7 Indrajit Raychaudhuri > Grand stuff! > Thank you! > Indeed, I was wondering if we could sync this up with the Round 2 of > Refactoring exercise > ( > http://groups.google.com/group/liftweb/browse_thread/thread/450a3e741999b5df > ). > New

[Lift] Re: I was giving a short interview for JavaBooks.org about Lift & Scala

2009-12-09 Thread Marius
lol On Dec 9, 7:13 pm, David Pollak wrote: > On Wed, Dec 9, 2009 at 9:11 AM, Derek Chen-Becker > wrote: > > > Great interview! Your "crappy English" is better than some Americans I've > > heard speak, so don't sweat it :) > > And your hand gestures are strangely similar to mine... it was fun to

Re: [Lift] LiftConsole and JPA

2009-12-09 Thread Janico Greifenberg
The stack trace is attached. So long Janico On Wed, Dec 9, 2009 at 4:05 PM, Derek Chen-Becker wrote: > I'm not sure why the console would need JTA, especially if you've set things > to RESOURCE_LOCAL. If you could send a full stack trace of the exception > that might help pinpoint it. > > Derek

Re: [Lift] I was giving a short interview for JavaBooks.org about Lift & Scala

2009-12-09 Thread David Pollak
On Wed, Dec 9, 2009 at 9:11 AM, Derek Chen-Becker wrote: > Great interview! Your "crappy English" is better than some Americans I've > heard speak, so don't sweat it :) > And your hand gestures are strangely similar to mine... it was fun to watch you. > > Derek > > > On Mon, Dec 7, 2009 at 12:5

Re: [Lift] I was giving a short interview for JavaBooks.org about Lift & Scala

2009-12-09 Thread Derek Chen-Becker
Great interview! Your "crappy English" is better than some Americans I've heard speak, so don't sweat it :) Derek On Mon, Dec 7, 2009 at 12:59 AM, Marius wrote: > Hi, > > After a long day I ended up giving this interview. > > http://vimeo.com/7986506 > > Br's, > Marius > > P.S. Please forgive m

[Lift] Re: Multi-Database Transactions

2009-12-09 Thread deadfolk
As Jeppe says, I'm avoiding XA.. This is because when we tried it in a Java project, we had a problem where connections were dropped over time and no new ones could be created. Luckily this never got past our test system. We were unable to recreate it and so could never verify any fix. After th

Re: [Lift] rest service

2009-12-09 Thread David Pollak
HarryH posted some very interesting REST services stuff in his Lift preso (I learned a thing or two): http://docs.google.com/present/view?id=dcbpz3ck_24f3v83ggz On Wed, Dec 9, 2009 at 7:48 AM, Jeppe Nejsum Madsen wrote: > Niels Boldt writes: > > > Hi, > > > > What is the best way to create a res

Re: [Lift] rest service

2009-12-09 Thread Jeppe Nejsum Madsen
Niels Boldt writes: > Hi, > > What is the best way to create a rest service in lift that support both xml > and json. > > Are there any tools to use besides lift-json. The end result of my service > call will be a pojo object that is grabbed from a database and should be > transformed to the appr

[Lift] Re: lift-stamped - Traits for logging changes MetaMapper-Records

2009-12-09 Thread Franz Bettag
Hello Xuefeng, you should take a look at the source. It is done via an ActionLog model which stores every change. It doesn't log *WHAT* has changed *yet*, but it is on my todo list. best regards On 9 Dez., 08:16, Xuefeng Wu wrote: > That's great! > > What's more, > I'm not sure whether every mo

Re: [Lift] LiftConsole and JPA

2009-12-09 Thread Derek Chen-Becker
I'm not sure why the console would need JTA, especially if you've set things to RESOURCE_LOCAL. If you could send a full stack trace of the exception that might help pinpoint it. Derek On Wed, Dec 9, 2009 at 2:35 AM, Janico Greifenberg wrote: > I had excluded JTA in the pom.xml, because I copied

[Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread Marius
On Dec 9, 3:41 pm, Xuefeng Wu wrote: > Hello Marius, > > I have an other question about S.error. > When I use: S.error("can not delete this department.") > > I get: > try{jQuery("#lift__noticesContainer__").each(function(i) {this.innerHTML = > "Errorcan not delete. ";});} catch (e) {} > > What I

[Lift] rest service

2009-12-09 Thread Niels Boldt
Hi, What is the best way to create a rest service in lift that support both xml and json. Are there any tools to use besides lift-json. The end result of my service call will be a pojo object that is grabbed from a database and should be transformed to the appropriate output. I hoped to do that

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread Xuefeng Wu
created. http://github.com/dpp/liftweb/issues/#issue/235 Thanks! On Wed, Dec 9, 2009 at 10:04 PM, David Pollak wrote: > I think this particular use case is very interesting. There should be a > flexible (LiftRules or in the Msgs snippet) mechan

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread David Pollak
I think this particular use case is very interesting. There should be a flexible (LiftRules or in the Msgs snippet) mechanism for making this behavior flexible... doing it for all users, doing it on a user-by-user basis. Please open a ticket at http://github.com/dpp/liftweb/issues referencing thi

Re: [Lift] lift-stamped - Traits for logging changes MetaMapper-Records

2009-12-09 Thread David Pollak
On Tue, Dec 8, 2009 at 6:33 PM, Franz Bettag wrote: > Hi guys, > > thanks to this great community i could finish a project today which i > found worth to be made available public. > > The topic says it all, check it out at > https://github.com/fbettag/lift-stamped/ > > Tell me what you guys think

Re: [Lift] Re: Multi-Database Transactions

2009-12-09 Thread David Pollak
On Wed, Dec 9, 2009 at 12:09 AM, Jeppe Nejsum Madsen wrote: > On Wed, Dec 9, 2009 at 5:05 AM, David Pollak > wrote: > > I think what you want is the Lift JTA module: > > > > http://github.com/dpp/liftweb/tree/master/lift-modules/lift-jta/ > > I think the OP wanted to avoid XA transactions. But of

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread Xuefeng Wu
Hello Marius, I have an other question about S.error. When I use: S.error("can not delete this department.") I get: try{jQuery("#lift__noticesContainer__").each(function(i) {this.innerHTML = "Errorcan not delete. ";});} catch (e) {} What I want this try{jQuery("#*lift__noticesContainer___error*"

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread Xuefeng Wu
It's not make sense for my project. I separate business transaction from UI logic. When create or update business model will occur notice or error, and then do something for UI by the business transaction for example: business: def MyBusinessTransaction(v: String) : Option[MyModel] = { val

Re: [Lift] Re: highlight the lift notices in some seconds

2009-12-09 Thread Philippe Monnaie
You could try: object Config{ def error(xs) = { S.error(xs) fadeOutErrors(5 seconds, 1 second) } } and call Config.error(xs) instead of S.error(xs) or something similar. I'm sure someone can come up with a more elegant solution than this. Just the first thing that popped into my head

Re: [Lift] Re: Fwd: Watch Foursquare Lift talk live from NY

2009-12-09 Thread Timothy Perrett
I simply could not disagree more on this point. You forget that there was a time when RoR was *very* exotic... you might have heard of a little startup called 37 signals? ;-) Imperative to functional is a shift, but most developers (bar the lazy ones) usually enjoy a mental challenge. All the d

[Lift] Re: Fwd: Watch Foursquare Lift talk live from NY

2009-12-09 Thread DMB
>> Because you're sick and tired of maintaining other peoples >> EJB/Struts/whatever You'll be just as sick and tired of maintaining other people's (and your own) Scala code in six to nine months, except you'll be doing it for less money and the code will be in flux all the time. The solution to

Re: [Lift] LiftConsole and JPA

2009-12-09 Thread Janico Greifenberg
I had excluded JTA in the pom.xml, because I copied the dependencies from the JPADemo example. After I removed that exclusion, the console works, so the practical problem is solved. I'm still a bit confused, however, why I need JTA when I use RESOURCE_LOCAL as transaction-type. And why does it work

Re: [Lift] Re: Multi-Database Transactions

2009-12-09 Thread Jeppe Nejsum Madsen
On Wed, Dec 9, 2009 at 5:05 AM, David Pollak wrote: > I think what you want is the Lift JTA module: > > http://github.com/dpp/liftweb/tree/master/lift-modules/lift-jta/ I think the OP wanted to avoid XA transactions. But of course, if data integriity is important this is the right way to go. I h