Re: [Lift] Multiple stateful snippets in a page , keeping the common state?

2010-03-10 Thread David Pollak
The short answer is no. The slightly longer answer is Can you put both into a single snippet? The even longer answer is Have you tried using Ajax forms so you don't even leave the page? On Tue, Mar 9, 2010 at 10:19 PM, hexa hex...@gmail.com wrote: Hi, I have 2 Stateful snippets in a page :

Re: [Lift] Re: non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 7:22 AM, Stuart Roebuck stuart.roeb...@gmail.comwrote: Okay, so I now understand what is happening a little better. When I saw a construct like: bind(example,xhtml, first_name - SHtml.text(user.first_name, user.first_name(_)), last_name -

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 7:29 AM, aw anth...@whitford.com wrote: On Mar 10, 1:15 am, Timothy Perrett timo...@getintheloop.eu wrote: Personally, I would say forget ExtJS, compared to Cappuccino its streets behind: http://cappuccino.org/ Easily the most exciting UI framework out there

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 1:40 AM, Mads Hartmann Jensen mads...@gmail.comwrote: +1 for cappuccino Played around with it a while back - it's pretty amazing. What kind of intergration are we talking about? I wouldn't mind taking a look at intergrating cappuccino. This would be a heck of an

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 1:51 AM, Timothy Perrett timo...@getintheloop.euwrote: The only possible thing that one could do would need two aspects: 1. The lift side to produce particular JSON 2. The capp side to consume said JSON Without a full package, there aren't really any integration

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 8:02 AM, Timothy Perrett timo...@getintheloop.euwrote: If you've already decided on ExtJS, why don't you just go use it? Dirk from Ext was originally going to do ExtJS integration, but he has disappeared into the ether never to be seen again. Yeah... I gotta ping him.

Re: [Lift] Re: Multiple stateful snippets in a page , keeping the common state?

2010-03-10 Thread David Pollak
will try the ajax way too, and I guess I could repost the RequestVar.. need to try that too.. Thanks, hexa On Mar 10, 9:33 am, David Pollak feeder.of.the.be...@gmail.com wrote: The short answer is no. The slightly longer answer is Can you put both into a single snippet? The even longer

Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread David Pollak
Can you be a little more specific? Are you saying that if you have a variable of type String that is a null reference that in certain cases, when that variable is in an xml literal, it becomes a zero length item, a Text(), or something else? Sorry for being pedantic, but I'm trying to

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread David Pollak
My development cycle has never worked well with JRebel. First, I've got so many machines I do development on (5, 3 of which get wiped each time Ubuntu releases a new version), getting all of those machines set up with JRebel is something of a pain. Further, having JRebel run in some cases is

Re: [Lift] NodeSeq to JsExp how to?

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 9:14 AM, Ross Mellgren dri...@gmail.com wrote: Try this (I haven't tested it, so there could be lurking bugs): case class JQueryNodeSeq(ns: NodeSeq) extends JsExp with JQueryLeft with HtmlFixer { override def toJsCmd = jQuery( + JsStr(fixHtml(NodeSeqDialog,

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread David Pollak
define LiftRules in the package objects to be differently visible to each request (a la RequestVars). Cheers, Tim On 9 Mar 2010, at 17:13, David Pollak wrote: So, based on our recent discussion about onboarding, some discussions Jeppe and I have been having, and my non-JRebel-friendly

Re: [Lift] Re: NodeSeq to JsExp how to?

2010-03-09 Thread David Pollak
-- either as an admin-only thing (understanding that that person has as much rights as you) or by scrubbing the XML thoroughly. -Ross On Mar 9, 2010, at 12:26 PM, David Pollak wrote: On Tue, Mar 9, 2010 at 9:14 AM, Ross Mellgren dri...@gmail.com wrote: Try this (I haven't tested

Re: [Lift] Converting a null String to an empty String

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 9:30 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 9 March 2010 16:48, David Pollak feeder.of.the.be...@gmail.com wrote: Can you be a little more specific? Sure ;-) I am looking for a method like this: def stringNullTest(s: String): String = if (s

Re: [Lift] RequestVar copy /clone ?

2010-03-09 Thread David Pollak
Howdy, Lift does rendering most basically with Snippets. Snippets are functions NodeSeq = NodeSeq... they take a NodeSeq and return a NodeSeq. Snippets are generally independent entities. They do not know about each other. They can ask about the state of the session and the state of the

Re: [Lift] Re: London Lift talk

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 11:45 AM, Marius marius.dan...@gmail.com wrote: Really nice talk Richard. Great stuff !!! It's excellent stuff! On Mar 9, 9:05 pm, Richard Dallaway dalla...@gmail.com wrote: On Sat, Feb 20, 2010 at 8:22 PM, andy andy1...@gmail.com wrote: The London Scala User

Re: [Lift] Re: field without mapper and Form validation

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 6:17 AM, Francois fan...@gmail.com wrote: Le 09/03/2010 10:12, Francois a écrit : Hello guys, I'm often using forms without anything to do persistence and RDBMS related, but I would like to be able to use Fields (StringField, EmailField, my owns, etc), validation,

Re: [Lift] Re: File Download

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 1:45 PM, DavidV david.v.villa...@gmail.com wrote: Any thoughts on this? Still trying to get it to work. See the enclosed example code. Specifically, there's a dpp.gif file in src/main/resources and in Boot.scala: LiftRules.statelessDispatchTable.append {

Re: [Lift] lift-blog - lift based blogging app

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 4:51 AM, Lukasz Kuczera kuk...@gmail.com wrote: Hi Folks. I've spawned very simple blog app on lift. This is alpha version and code base is not clean (i'm quite new to scala and lift). You can pull it from github: git://github.com/kukems/lift-blog.git And there is even

Re: [Lift] Re: IdPK Model boiler-plate

2010-03-08 Thread David Pollak
I'm going to implement this as a sub-trait of IdPK (anyone got a good name for the trait). So, by default, you'll get the current behavior, but if you think equality should be based on primary key rather than on the field values, you don't have to have all the boilerplate. On Sun, Mar 7, 2010 at

Re: [Lift] Re: Js normalizations

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 12:36 AM, Peter Robinett pe...@bubblefoundry.comwrote: +! Does this translate to I vote you must do this? ;-) +1 On Mar 7, 11:11 pm, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 7 March 2010 19:37, Marius marius.dan...@gmail.com wrote: If you

Re: [Lift] Re: BSON support in lift-json

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 12:50 AM, Joni Freeman freeman.j...@gmail.comwrote: This is a tricky one. The problem with extending the AST is that the AST is implemented as an algebraic data type. And by definition it is not possible to extend such a type. Just throwing an idea out and it's likely

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread David Pollak
On Sun, Mar 7, 2010 at 12:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Based on discussion on Review Board item 247, I want to propose the following change to the organization of Mapper specs. Currently there are four files in

Re: [Lift] Enable -Xcheckinit in 2.8 port?

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 10:01 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Just found out why the Logging stuff doesn't work on the 2.8 branch. Details here: http://permalink.gmane.org/gmane.comp.lang.scala.user/24469 Is it somehow possible to enable the -Xcheckinit flag for the 2.8

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 12:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I'm not 100% clear on your proposal. First of all, is what I've done (on RB) in the meantime okay (without a ticket)? What part of Please open a ticket first before putting stuff on RB. is unclear? You've consumed

[Lift] More dynamic Lift

2010-03-08 Thread David Pollak
Folks, I spent today cracking the code on how to implement a more dynamic Lift development cycle. Specifically, I figured out how to support (during development mode) having changes in compiled code reflected in the running application. The change to your Lift app will be a change in how you do

Re: [Lift] Re: More dynamic Lift

2010-03-08 Thread David Pollak
It's less sensitive to inner class name changes and supports changing interfaces. Connected by MOTOBLUR™ on T-Mobile -Original message- From: harryh har...@gmail.com To: Lift liftweb@googlegroups.com Sent: Tue, Mar 9, 2010 01:42:10 GMT+00:00 Subject: [Lift] Re: More dynamic Lift What's

Re: [Lift] Re: asHtml compiler exception traversing code ?

2010-03-08 Thread David Pollak
Try doing and mvn clean compile There are known issues with the Scala 2.7.x compiler related to nested traits and only partial recompilation. Connected by MOTOBLUR™ on T-Mobile -Original message- From: hexa hex...@gmail.com To: Lift liftweb@googlegroups.com Sent: Tue, Mar 9, 2010

Re: [Lift] toForm function passing problem ... ?

2010-03-07 Thread David Pollak
On Sun, Mar 7, 2010 at 9:54 AM, hexa hex...@gmail.com wrote: Hi, I'm trying to do something which should be simple I think .. passing a function to toForm like so : class AddClient { def add (inhtml: NodeSeq) : NodeSeq = { val client = Client.create def processEntry () = {

Re: [Lift] IdPK Model boiler-plate

2010-03-07 Thread David Pollak
Good idea. Please open a ticket at https://liftweb.assembla.com/spaces/liftweb/tickets and assign it to me. On Sun, Mar 7, 2010 at 10:57 AM, aw anth...@whitford.com wrote: My model classes mix-in IdPK and have the following boiler-plate for equals and hashCode: class Team extends

Re: [Lift] Re: [lift] superficial first impressions from a rails junkie

2010-03-07 Thread David Pollak
Jonathan, your comments are someplace between not helpful and troll-like. It'd be best if you did not continue to participate in this thread. On Sun, Mar 7, 2010 at 5:36 AM, jonathan mawson umpti...@gmail.com wrote: If there's no rational reason to use Lift, then perhaps you could find

Re: [Lift] Re: [lift] superficial first impressions from a rails junkie

2010-03-07 Thread David Pollak
this. First, there are a couple of links in my sig-line. The first one is to Apress's listing for my book: http://www.apress.com/book/view/1430219890 This page includes information about the author: David Pollak David Pollak has been writing commercial software since 1977. He wrote the award–winning Mesa

Re: [Lift] Activity

2010-03-07 Thread David Pollak
On Sat, Mar 6, 2010 at 7:10 PM, Martin martin.lyn...@gmail.com wrote: Hey, First of all, let me take the complete opposite stance observed from one of the most reason posts from a Rails Junkie. I'm very excited to see a framework that takes the good from so many different projects and

Re: [Lift] superficial first impressions from a rails junkie

2010-03-06 Thread David Pollak
Thanks for your comments. I did Ruby/Rails for 2 years until I found Scala in November 2006. Please allow me to rebut your thoughtful post. On Fri, Mar 5, 2010 at 8:43 PM, cageface milese...@gmail.com wrote: Like many other web developers, I abandoned some heavyweight Java web frameworks

Re: [Lift] superficial first impressions from a rails junkie

2010-03-06 Thread David Pollak
On Fri, Mar 5, 2010 at 9:58 PM, Warren Henning warren.henn...@gmail.comwrote: tl;dr Want a cookie for your efforts? If you don't like Lift, don't use it. Problem solved. Hooray, turkey for everyone! Warren -- this comment is way out of bounds for the Lift list. You know I love your

Re: [Lift] Re: [lift] superficial first impressions from a rails junkie

2010-03-06 Thread David Pollak
On Sat, Mar 6, 2010 at 9:02 AM, jonathan mawson umpti...@gmail.com wrote: Timothy Perrett wrote: By all means, come here with questions and you will find this group to be very responsive and helpful, but do not come here and automatically assume that you can illuminate to us the

Re: [Lift] Re: [lift] superficial first impressions from a rails junkie

2010-03-06 Thread David Pollak
On Sat, Mar 6, 2010 at 9:19 AM, jonathan mawson umpti...@gmail.com wrote: As this is likely to be very controversial, I'll recap one more time while my gf finishes dying her hair - - Don't ignore people like Mark. His feedback was detailed, thoughtful, and invaluable if want non-committers

Re: [Lift] Re: [lift] superficial first impressions from a rails junkie

2010-03-06 Thread David Pollak
On Sat, Mar 6, 2010 at 5:50 AM, jonathan mawson umpti...@gmail.com wrote: Jeppe Nejsum Madsen wrote: Timothy Perrett timo...@getintheloop.eu writes: Sorry Jeppe, but I disagree. On which part :-) Maybe the not really into the visual aesthetics. What I meant was not that we don't

Re: [Lift] Re: Re: [lift] superficial first impressions from a rails junkie

2010-03-06 Thread David Pollak
On Sat, Mar 6, 2010 at 3:29 PM, jonathan mawson umpti...@gmail.com wrote: You mistake different with harder. People who are used to one way to do things will find different harder than the same. No, I don't. Different *is* harder. When there is a convention it should be followed unless

Re: [Lift] Re: superficial first impressions from a rails junkie

2010-03-06 Thread David Pollak
On Sat, Mar 6, 2010 at 12:13 PM, cageface milese...@gmail.com wrote: On Mar 6, 9:35 am, David Pollak feeder.of.the.be...@gmail.com wrote: Back when I was doing Rails, the state of Rails' documentation was not materially different from the current state of Lift's documentation

Re: [Lift] Re: Newbie Q: how to append html on ajaxForm submission

2010-03-05 Thread David Pollak
On Fri, Mar 5, 2010 at 2:00 AM, Lukasz Kuczera kuk...@gmail.com wrote: So i've solved it on my own :D Using jQuery in Lift :D Lift is so complex but once you wrap your head around it is so easy :D Glad you found the answer... and yes... it's good to build your own JavaScript helpers for Lift.

Re: [Lift] email validation configuration

2010-03-05 Thread David Pollak
If you set the Mailer.authenticator in Boot, that will do authentication for mail sending. On Fri, Mar 5, 2010 at 5:33 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Fri, Mar 5, 2010 at 2:21 PM, GA my_li...@me.com wrote: Hello guys, could you please let me know where I can find

[Lift] Wow... Lift has some amazing stats

2010-03-05 Thread David Pollak
Folks, I just looked at Lift's stats on ohloh. ( http://www.ohloh.net/p/liftweb ) A couple of key items: Very large, active development team Over the past twelve months, 33 developershttp://www.ohloh.net/p/liftweb/contributorscontributed new code to Lift http://www.ohloh.net/p/liftweb. This

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
- NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
is sending JSON containing what the user entered in the form. Based on the above, it sounds like we should strip the binary characters when processing the JSON commands. Thanks. Dan On Mar 5, 10:49 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Mar 5, 2010 at 10:26 AM

Re: [Lift] Re: Lift or Scala first?

2010-03-05 Thread David Pollak
of Beginning Scala by David Pollak. then you are ready to start working through lift's tutorial, samples, etc. On Fri, Mar 5, 2010 at 12:19 PM, Mini Naim minin...@gmail.com wrote: Hi guys: I have a simple question, it's necessary to learn Scala first? or i can go with Lift framework

Re: [Lift] Re: non snapshot version of lift for scala 2.8

2010-03-04 Thread David Pollak
I've been using Lift's 280_port_refresh branch for developing Goat Rodeo and it's been working quite well for me. We're going to wait a little while (probably until a Scala 2.8 release candidate) before publishing a Lift on Scala release (vs. snapshot). On Thu, Mar 4, 2010 at 6:36 AM, Lukasz

Re: [Lift] Re: Response Optimizations too aggressive

2010-03-04 Thread David Pollak
On Thu, Mar 4, 2010 at 9:27 AM, aw anth...@whitford.com wrote: On Mar 4, 6:56 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How about LiftRules.stripComments.default.set( () = !Req.isIE) etc.? This is where Lift's FactoryMaker shines. You can modify the behavior of stripComments on

Re: [Lift] Textmate bundle with codecompletion (beta)

2010-03-04 Thread David Pollak
I might have to fire up my Mac to try this out. ;-) On Wed, Mar 3, 2010 at 3:34 PM, Mads Hartmann Jensen mads...@gmail.comwrote: Ok, This is the last time I'll bump this (I promise) - anyone using TextMate can follow the bundle on github. I improved the bundle and it's fairly usable now,

Re: [Lift] Newbie Q: can I manually create a LiftSession?

2010-03-04 Thread David Pollak
Do you want to create/access a LiftSession from outside a Lift-handed request, but make sure the same LiftSession is available when you access the Lift parts of your app? (sorry, I want to make sure I understand the problem) Right now, there's no good way to do that... sorry :-( Feel encouraged

[Lift] JSON help...

2010-03-04 Thread David Pollak
Folks, I'm working on parsing through some JSON that's posted/put as part of a request. I'd like to find the messageId field and only get it if its type is JInt. I'm doing this within a for comprehension that has a Box at the top of it, so the resulting expression must play well with Box. What

Re: [Lift] Re: SQL error

2010-03-04 Thread David Pollak
On Thu, Mar 4, 2010 at 1:10 PM, Mads Hartmann Jensen mads...@gmail.comwrote: This has already been on reviewboard and comitted to master - should i send out a breaking change note? Yeah. Send out a breaking change note. The likelihood of breakage is low, but possible. I'm not sure i get

Re: [Lift] Re: JSON help...

2010-03-04 Thread David Pollak
} yield .. Cheers Joni On Mar 4, 9:28 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'm working on parsing through some JSON that's posted/put as part of a request. I'd like to find the messageId field and only get it if its type is JInt. I'm doing

Re: [Lift] Resuming a Statefull Snippet.

2010-03-04 Thread David Pollak
On Thu, Mar 4, 2010 at 2:00 PM, andythedestroyer andythedestro...@gmail.com wrote: Hello, I have a simple use case where there is a 2 page form wizard then a redirect to a third party ( for some external validation ) which redirects back to a third and final page of the wizard. I know I

Re: [Lift] Re: Resuming a Statefull Snippet.

2010-03-04 Thread David Pollak
contained state. Being able to define a throw-away URL was the best answer. Please add this to the wiki. Good stuff. Thanks again you smart smart man. blush/ -Andy On Mar 4, 3:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Mar 4, 2010 at 2:00 PM, andythedestroyer

Re: [Lift] Re: Lift security vulnerability

2010-03-04 Thread David Pollak
exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed

Re: [Lift] Snippets in subpackages?

2010-03-03 Thread David Pollak
On Tue, Mar 2, 2010 at 11:42 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 3 March 2010 00:03, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, Isn't it possible to put snippets

Re: [Lift] Transactions with Mapper

2010-03-03 Thread David Pollak
On Tue, Mar 2, 2010 at 5:53 AM, Timothy Perrett timo...@getintheloop.euwrote: Probally worth sticking this on the wiki Cheers, Tim Sent from my iPhone Wait... you've got a broken hand and you can still type on your iPhone?!?! :-) On 2 Mar 2010, at 14:37, Jeppe Nejsum Madsen

Re: [Lift] Snippets in subpackages?

2010-03-03 Thread David Pollak
On Wed, Mar 3, 2010 at 8:27 AM, Ross Mellgren dri...@gmail.com wrote: On Mar 3, 2010, at 11:25 AM, David Pollak wrote: On Tue, Mar 2, 2010 at 11:42 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 3 March 2010 00:03, David Pollak feeder.of.the.be...@gmail.comwrote: On Tue

Re: [Lift] Re: Snippets in subpackages?

2010-03-03 Thread David Pollak
On Wed, Mar 3, 2010 at 9:30 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Yep, that would help a lot! Cool. Please open a ticket and assign it to Ross... if he wants, he can assign it to me or you. ;-) Heiko On Wednesday, March 3, 2010, David Pollak feeder.of.the.be

Re: [Lift] Re: Snippets in subpackages?

2010-03-03 Thread David Pollak
On Wed, Mar 3, 2010 at 10:08 AM, Ross Mellgren dri...@gmail.com wrote: Haha okay okay I'll write it, but *you* have to review it ;-) Will do. -Ross On Mar 3, 2010, at 12:37 PM, David Pollak wrote: On Wed, Mar 3, 2010 at 9:30 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote

Re: [Lift] ParamFailure : why a subtype ?

2010-03-03 Thread David Pollak
The short answer is that sometimes inheritance is better than a flat ADT. A Box can be full or empty: Full or EmptyBox An empty box can contain no additional information as to why it's empty (the Empty singleton) or it can contain more information as to why the Box is empty: Failure. Now, a

[Lift] Re: [Lift Announce] Lift Web Framework 2.0 Milestone 3 released

2010-03-03 Thread David Pollak
Awesome work team! A special thanks to Charles and Indrajit for spinning the build! On Wed, Mar 3, 2010 at 8:10 PM, Indrajit Raychaudhuri indraj...@gmail.comwrote: The Lift Web Framework team is pleased to announce the framework-2.0- M3 release! Lift is an expressive and elegant framework

Re: [Lift] reload application.properties

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 12:48 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: [...] 1) Change the menu structure? Restart server Yes. This is a problem. 2) Change the menu text? Restart server (yes I use properties for text

Re: [Lift] Re: Transactions with Mapper

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 7:03 AM, ced docpom...@googlemail.com wrote: Another question: Is it possible to nest DB.use? I'd like to have the same behavior as with the @Transaction annotation from Spring. DB.use nests. Only when the last DB.use is exited does the transaction commit. I don't

Re: [Lift] Re: Is CometActor the right tool for this job?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 6:09 AM, ced docpom...@googlemail.com wrote: I have a similar use case and from my experience using a CometActor is just great for this. 1) I assume each page get their own instance of the actor so they can hold their own data. Is this correct? Yes. No, it's not

Re: [Lift] Is CometActor the right tool for this job?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 5:55 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I haven't used Lift's comet support at all, but now it seems like a use case has popped up. I can do this with POA (Plain Ol Ajax), but, at least for me, it looks like CometActor might be a better fit. The use

Re: [Lift] Re: First comet steps

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 8:03 AM, Nolan Darilek no...@thewordnerd.infowrote: Just wondering if anyone had any thoughts on this? I still can't bind fields in an embedded template. They're returned as is, not transformed. Not sure what I'm doing wrong. If you put up a runable Maven project on

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 12:27 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: If the mechanism was something more along the lines of: display name calculator: (Mapper[_], Locale, String) = Box[String] // we could use Lift's factory

Re: [Lift] what's the equivalent of php's var $_FILES in lift?

2010-03-02 Thread David Pollak
On Mon, Mar 1, 2010 at 10:35 PM, wm min...@gmail.com wrote: http://php.net/manual/en/reserved.variables.files.php i.e. the array of items uploaded to the current script via the HTTP POST method. I know there is FileParamHolder, but I want to get multiple files in the array.

Re: [Lift] Setting cookie with ajax link

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 10:41 AM, Mads Hartmann mads...@gmail.com wrote: Hello everyone, I can't seem to get my lift app to set a cookie when clicking an ajax- link. By looking around the list it looks like it's possible but i've failed to get it working. Right now my test-code looks like

Re: [Lift] how to override superUser.dbDisplay_? = false

2010-03-02 Thread David Pollak
On Mon, Mar 1, 2010 at 10:57 PM, wm min...@gmail.com wrote: superUser is defined in ProtoUser. class User extends ProtoUser[User] { // I cannot make it work //override def superUser = override def dbDisplay_? = false } Because of limitations in Scala, it's not currently possible to

Re: [Lift] Lift 2.0M2 LiftMerge order?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 11:07 AM, Rick R rick.richard...@gmail.com wrote: I have a pair of templates which rely on both a Snippet and a CometActor. There appears to be a dependency injection Dependency injection is an entirely different concept. Lift rewrites the page as it goes out to insure

Re: [Lift] Converting a rails application to lift

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 11:56 AM, Achint Sandhu achint.san...@gmail.comwrote: Hi, I'm new to scala (2.7.7) and lift (2.0-M2) and as a learning exercise have taken on the translation of an existing rails project into a lift application. There are two things I have run into

Re: [Lift] Lift 2.0M2 LiftMerge order?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 1:21 PM, Rick R rick.richard...@gmail.com wrote: On Tue, Mar 2, 2010 at 11:07 AM, Rick R rick.richard...@gmail.com wrote: I have a pair of templates which rely on both a Snippet and a CometActor. There appears to be a dependency injection Dependency injection

Re: [Lift] Is CometActor the right tool for this job?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 2:33 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Thanks to all for the feedbackjust one remaining question below: On Tue, Mar 2, 2010 at 7:11 PM, David Pollak feeder.of.the.be...@gmail.com wrote: [...] Unless you're going to update the graph synchronously

Re: [Lift] Snippets in subpackages?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, Isn't it possible to put snippets in subpackages of xxx.snippet? Something like lift:snippet type=com.acme.snippet.subpackage.SnippetClass? If not, what's the best way to deal with a large number of

Re: [Lift] Re: Converting a rails application to lift

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 5:09 PM, Achint Sandhu achint.san...@gmail.comwrote: Hi, Is there any reason why aBook.author would not simply return a Box instead of requiring aBook.author.obj to get the Box ? For some background, see

Re: [Lift] Re: newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread David Pollak
If you set -darchetypeVersion to 1.0, then you'll get Lift 1.0 built on Scala 2.7.3. If you use 1.0.3 then you'll get the latest branch of Lift 1.0... built with Scala 2.7.7. I strong recommend you use 2.0-M2 which is also built with 2.7.7 Connected by MOTOBLUR™ on T-Mobile -Original

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 8:03 AM, Donald McLean dmclea...@gmail.com wrote: I just updated to Lift 2.0m2 and Scala 2.7.7 and now I'm getting this error message. I would greatly appreciate a suggestion on how to resolve this. This is a known bug in the Scala compiler. To fix it, do: mvn clean

Re: [Lift] ByList using OR instead of IN?

2010-03-01 Thread David Pollak
It used to be IN and then someone asked that it be changed to the current OR and they had a reasonable argument, so we changed it. On Sun, Feb 28, 2010 at 11:17 PM, aw anth...@whitford.com wrote: From reading Exploring Lift (Section 6.1, page 81), it says that ByList corresponds to the “field

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
files. Thank you, Donald On Mon, Mar 1, 2010 at 11:07 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 8:03 AM, Donald McLean dmclea...@gmail.com wrote: I just updated to Lift 2.0m2 and Scala 2.7.7 and now I'm getting this error message. I would greatly

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows jim.barr...@gmail.com wrote: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So your

Re: [Lift] reload application.properties

2010-03-01 Thread David Pollak
The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are things to vary, build an administrative interface or some other thingy (e.g., a separate HTTP listener) that allows you to manipulate

Re: [Lift] Newbie Q: Lift suitable as webgui for java 6 app with embedded webserver and no database ?

2010-03-01 Thread David Pollak
Jeppe gave a great answer. Just to reinforce that Lift's webkit is totally agnostic to the data being presented. As long as that data can be materialized as instances of objects in the JVM, you can use Lift. On Mon, Mar 1, 2010 at 4:54 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: mortench

[Lift] Lift 2.0-M3 code slush

2010-03-01 Thread David Pollak
Folks, The Lift master branch is now in code slush in anticipation of a late Wednesday March 3rd PST release of Lift 2.0 Milestone 3. If you are a committer: THANK YOU!! for working hard and working as a team to make M3 a reality. If you committed something to M3, please contact me privately

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 8:19 AM, Donald McLean dmclea...@gmail.com wrote: I appreciate the response but I'm not using Maven, I'm using Ant. If you could tell me what that would accomplish I could probably figure out the equivalent

[Lift] Emerging Languages Face Off: Scala, Go, Clojure and Ruby

2010-03-01 Thread David Pollak
Folks, I'll be representing Scala in an emerging languages face-off at http://www.sdforum.org/index.cfm?fuseaction=Calendar.eventDetaileventID=13632 Interestingly, Scala and Clojure and both functional languages... indicating that FP is gaining interest from folks inside 2 standard deviations

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
the whole kit-n-caboodle. It's just under 700k as a tar file. Where should I send it? Donald On Mon, Mar 1, 2010 at 12:32 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 9:28 AM, Donald McLean dmclea...@gmail.com wrote: That didn't help. The problem

Re: [Lift] About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread David Pollak
On Sun, Feb 28, 2010 at 8:28 PM, Neil.Lv anim...@gmail.com wrote: Hi all, I have a silly question about the url rewrite in the lift. It has another two params in the url after the img. http://localhost:8080/show/img/version/id The url works fine. = http://localhost:8080/show/img =

Re: [Lift] snakify and abbreviations

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 2:46 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Eager to use the new Mapper support for snake_case I discovered that the snakify method doesn' handle abbreviations well: StringHelpers.snakify(HTML) res5: java.lang.String = h_t_m_l

Re: [Lift] Less boilerplate in your specifications / tests

2010-03-01 Thread David Pollak
Eric, You're a Lift committer. Feel very encouraged to clean up the tests! Thanks, David On Sun, Feb 28, 2010 at 4:42 PM, etorreborre etorrebo...@gmail.com wrote: Hi all Lift-developers, I have noticed a few commits recently where the declarations for specifications could be reduced to

Re: [Lift] Emerging Languages Face Off: Scala, Go, Clojure and Ruby

2010-03-01 Thread David Pollak
, Jim Barrows wrote: Best of luck! Will you be facing off with swords or... oh wait.. never mind... ;) On Mon, Mar 1, 2010 at 10:50 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'll be representing Scala in an emerging languages face-off at http://www.sdforum.org

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 12:29 PM, John Pletka jple...@abraxis.com wrote: I was tasked with designing a new web-based application that has the requirement of being able to run on multiple servers that could be 1) Load balanced without requiring sticky sessions and 2) Single nodes could be

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 1:19 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Ahh just saw David beat me to it with the other reply :-) John Pletka jple...@abraxis.com writes: It is a business application - lots of forms, reports, data lookups. I'm not too concerned about the performance on

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread David Pollak
If the mechanism was something more along the lines of: display name calculator: (Mapper[_], Locale, String) = Box[String] // we could use Lift's factory mechanism here Then you have lots of room to keep the current implementation as the default if there is no actual name calculated. Further,

Re: [Lift] reload application.properties

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 12:30 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time

Re: [Lift] New logging code is in master

2010-02-28 Thread David Pollak
Excellent! We have the deprecations turned off in the pom.xml file by default... but gotta turn the deprecation warnings on post M3. On Sun, Feb 28, 2010 at 8:14 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: The new logging code is now in master and should be fully usable. Therefore, the

Re: [Lift] Eearly functions not working in 280_port_refresh

2010-02-27 Thread David Pollak
On Sat, Feb 27, 2010 at 8:32 AM, Michel michel.krae...@googlemail.comwrote: Hi! I compiles Lift myself using the branch 280_port_refresh. I registered a function to be called early in the request cycle to set the web servers character encoding: override def boot { def makeUtf8(r:

Re: [Lift] Reasoning Behind Box

2010-02-26 Thread David Pollak
Daniel, Thanks for asking the question and I hope the discussion will go better than the last time we had an in depth discussion on the topic. I'm going to respond in a Prologue, History, Reactions, Code Examples and Conclusion. *Prologue* I'm not a classically trained CS guy. I've never

  1   2   3   4   5   6   7   8   9   10   >