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

2010-03-10 Thread David Pollak
if they have > any effect on each other and or that they can enclose each other... > > Maybe I"m way off too ,, sorry , Help is much apreciated... > > I will try the ajax way too, and I guess I could repost the > RequestVar.. need to try that too.. > > Thanks, > > h

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 8:02 AM, Timothy Perrett wrote: > 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. He's also got some

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 1:51 AM, Timothy Perrett wrote: > 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 points as we > have

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 1:40 AM, Mads Hartmann Jensen wrote: > +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 amazing GSoC

Re: [Lift] Re: Serious widget action

2010-03-10 Thread David Pollak
On Wed, Mar 10, 2010 at 7:29 AM, aw wrote: > > On Mar 10, 1:15 am, Timothy Perrett wrote: > > Personally, I would say forget ExtJS, compared to Cappuccino its streets > behind: > > > > http://cappuccino.org/ > > > > Easily the most exciting UI framework out there right now > > Perhaps I should a

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 wrote: > 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" -> SHtml.text(user.last_name, use

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 wrote: > Hi, > I have 2 Stateful snippets in a page : > > 1. a

Re: [Lift] Re: File Download

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 1:45 PM, DavidV 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 { case Req("image" :: name ::

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

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 1:11 PM, Stuart Roebuck wrote: > Once again, thanks for all of this. I will now go away and > contemplate it all. > > On the face of it, as a newby, this JavaScript DSL adds another layer > of complexity to using Lift with JavaScript. Is there an option to > use mostly raw

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 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, erro

Re: [Lift] Re: London Lift talk

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 11:45 AM, Marius wrote: > Really nice talk Richard. Great stuff !!! > It's excellent stuff! > > On Mar 9, 9:05 pm, Richard Dallaway wrote: > > On Sat, Feb 20, 2010 at 8:22 PM, andy wrote: > > > The London Scala User Group (LSUG) will be presenting a talk by > > > Richa

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 reque

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 wrote: > >> Can you be a little more specific? >> > > Sure ;-) > I am looking for a method like this: > def stringNullTest(s: Str

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

2010-03-09 Thread David Pollak
re to properly secure this stuff -- 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: > > > > > >

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread David Pollak
default... with package objects, we could 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 dis

Re: [Lift] NodeSeq to JsExp how to?

2010-03-09 Thread David Pollak
On Tue, Mar 9, 2010 at 9:14 AM, Ross Mellgren 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", > ns)).toJsCmd +

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 *ver

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 unders

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 To: Lift Sent: Tue, Mar 9, 2010 03:15:31 GMT+00:00 Subject: [Lift] Re: asHtml

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 To: Lift Sent: Tue, Mar 9, 2010 01:42:10 GMT+00:00 Subject: [Lift] Re: More dynamic Lift What's the advantage of this sort of setup over

[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 d

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread David Pollak
on all? > Also, is it possible to run MapperSpecs for all the drivers in parallel, > and if so would that cause it to finish faster? > > Thanks. > > - > David Pollak wrote: > > On Sun, Mar 7, 2010 at 12:47 PM, Naftoli Gugenhe

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 wrote: > 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 > branch? Don

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread David Pollak
On Sun, Mar 7, 2010 at 12:47 PM, Naftoli Gugenheim wrote: > 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 > framework/lift-persistence/lift-mapper/src/test/scala/net/liftweb/mapper: >

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 wrote: > 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 a bad one. I ran i

Re: [Lift] Re: Js normalizations

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 12:36 AM, Peter Robinett wrote: > +! > Does this translate to "I vote you must do this?" ;-) +1 > > On Mar 7, 11:11 pm, Heiko Seeberger > wrote: > > On 7 March 2010 19:37, Marius wrote: > > > > > > > > > If you think that this makes sense I'll add a ticket and put it i

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] lift-blog - lift based blogging app

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 4:51 AM, Lukasz Kuczera 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 demo ;) htt

Re: [Lift] Activity

2010-03-07 Thread David Pollak
On Sat, Mar 6, 2010 at 7:10 PM, Martin 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 houses it under a lan

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

2010-03-07 Thread David Pollak
e. So, let's work through 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 soft

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 wrote: > > > > If there's no rational reason to use Lift, then perhaps you could find > another community

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 wrote: > My model classes mix-in IdPK and have the following boiler-plate for > equals and hashCode: > > class Team extends LongKeyedMapper[Team] with

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

2010-03-07 Thread David Pollak
On Sun, Mar 7, 2010 at 9:54 AM, hexa 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] Re: superficial first impressions from a rails junkie

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

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 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 there is a

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 wrote: > > > > Jeppe Nejsum Madsen wrote: > > > > Timothy Perrett 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 care, but more that

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 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 to use Lift

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 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 errors in

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 wrote: > 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 sarcasm and your grumpy

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 wrote: > Like many other web developers, I abandoned some heavyweight Java web > frameworks about 6 years ago for

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

2010-03-05 Thread David Pollak
ighly recommend first you read chapter 1-5 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 wrote: > > > Hi guys: >

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
> As to JSON, our client side code 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 Pol

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
t; >>> theliftdemo website, it appears the issue with characters is > mostly > > > > >>> addressed except for the "Misc code" section. Specifically, the > > > > >>> "Wizard", "Wizard Challenge" and "Arc Challe

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
ML parsing errors. > > > > >>> For these problems, I am not sure if the issue if the example or the > > >>> framework. If the issue is with the example, it would be good to > know > > >>> whatLiftapps need to do to avoid getting bitten by binary c

[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 developerscontributed new code to Lift . Th

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 wrote: > On Fri, Mar 5, 2010 at 2:21 PM, GA wrote: > > Hello guys, > > > > could you please let me know where I can find information about how to > confi

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 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. Most of the

Re: [Lift] Re: Lift security vulnerability

2010-03-04 Thread David Pollak
t; Dan > > > > > On Feb 17, 11:06 am, Dano wrote: > > > > > > Hello, > > > > > > I was wondering if the fix for the control characters issue was > > > > included in 2.0-M2. I just did a test with ourLiftapplication built > >

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

2010-03-04 Thread David Pollak
d 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. > > > -Andy > > On Mar 4, 3:56 pm, David Pollak wrote: > > On Thu, Mar 4, 2010 at 2:00 PM, andythedestroyer < &g

Re: [Lift] Resuming a Statefull Snippet.

2010-03-04 Thread David Pollak
On Thu, Mar 4, 2010 at 2:00 PM, andythedestroyer 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 could just use snippet

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

2010-03-04 Thread David Pollak
und" > > json <- r.json > > JField("messageId", JInt(messageId)) <- json > > JField("timestamp", JInt(timemillis)) <- json > > } yield .. > > > > Cheers Joni > > > > On Mar 4, 9:28 p

Re: [Lift] Re: SQL error

2010-03-04 Thread David Pollak
On Thu, Mar 4, 2010 at 1:10 PM, Mads Hartmann Jensen wrote: > 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 why this is

[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] 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 t

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 wrote: > 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, check out a t

Re: [Lift] Re: Response Optimizations too aggressive

2010-03-04 Thread David Pollak
On Thu, Mar 4, 2010 at 9:27 AM, aw wrote: > On Mar 4, 6:56 am, Naftoli Gugenheim 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 a request-by-request basis. You

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 Kucz

[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 wrote: > The Lift Web Framework team is pleased to announce the framework-2.0- > M3 release! > > Lift is an expressive and elegant framework for writing web >

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 Fail

Re: [Lift] Re: Snippets in subpackages?

2010-03-03 Thread David Pollak
On Wed, Mar 3, 2010 at 10:08 AM, Ross Mellgren 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 < &

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, 201

Re: [Lift] Snippets in subpackages?

2010-03-03 Thread David Pollak
On Wed, Mar 3, 2010 at 8:27 AM, Ross Mellgren 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 wrote: >>> >&

Re: [Lift] Transactions with Mapper

2010-03-03 Thread David Pollak
On Tue, Mar 2, 2010 at 5:53 AM, Timothy Perrett wrote: > 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 wrote: > > ced writes:

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 wrote: > >> >> >> On Tue, Mar 2, 2010 at 1:05 PM, Heiko Seeberger < >> heiko.seeber...@googlemail.com> wrote: >> >

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 wrote: > 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 http://blog.lostlake.org/index.php?/archives/19-Keeping-the-meaning-with-the-bytes

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 type="com.acme.snippet.subpackage.SnippetClass">? > > If not, what's the best way to deal with a large number of sni

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 wrote: > Thanks to all for the feedbackjust one remaining question below: > > On Tue, Mar 2, 2010 at 7:11 PM, David Pollak > wrote: > > [...] > > > Unless you're going to update the graph synchronously, the

Re: [Lift] Lift 2.0M2 LiftMerge order?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 1:21 PM, Rick R wrote: > > > > On Tue, Mar 2, 2010 at 11:07 AM, Rick R > 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 conce

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 wrote: > 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 that I'm hoping the

Re: [Lift] Lift 2.0M2 LiftMerge order?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 11:07 AM, Rick R 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 comet and ajax suppor

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

2010-03-02 Thread David Pollak
On Mon, Mar 1, 2010 at 10:57 PM, wm 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 change an inn

Re: [Lift] Setting cookie with ajax link

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 10:41 AM, Mads Hartmann 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 this: > > bind("ba

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 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. > Req.uploadedFiles: Lis

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 12:27 AM, Jeppe Nejsum Madsen wrote: > David Pollak 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 m

Re: [Lift] Re: First comet steps

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 8:03 AM, Nolan Darilek wrote: > 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 GitHub, I'll fix the

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 wrote: > 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 case is this:

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 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 correct. There

Re: [Lift] Re: Transactions with Mapper

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 7:03 AM, ced 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 know how Spring does stuf

Re: [Lift] reload application.properties

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 12:48 AM, Jeppe Nejsum Madsen wrote: > David Pollak writes: > > [...] > > >> 1) Change the menu structure? Restart server > >> > > > > Yes. This is a problem. > > > > > >> 2) Change the menu text? Restart serv

Re: [Lift] reload application.properties

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 12:30 PM, Jeppe Nejsum Madsen wrote: > David Pollak 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. If there are

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, t

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 wrote: > Ahh just saw David beat me to it with the other reply :-) > > John Pletka writes: > > > It is a business application - lots of forms, reports, data lookups. I'm > > not too concerned about the performance on a single node - at any give

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 12:29 PM, John Pletka 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 transparently shutdow

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

2010-03-01 Thread David Pollak
On 01/03/2010, at 19.53, 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

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 wrote: > Hi all Lift-developers, > > I have noticed a few commits recently where the declarations for > specifications could be reduced to something simpler.

Re: [Lift] snakify and abbreviations

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 2:46 AM, Jeppe Nejsum Madsen wrote: > 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 > > StringHelpers.snakify("HTMLEdito

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 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 > => http:

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
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 > wrote: > > > > > > On Mon, Mar 1, 2010 at 9:28 AM, Donald McLean > wrote: > >> > >> T

[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.eventDetail&eventID=13632 Interestingly, Scala and Clojure and both functional languages... indicating that FP is gaining interest from folks inside 2 standard deviations fr

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 9:28 AM, Donald McLean wrote: > That didn't help. The problem is related to the Lift-2.0-M2 libraries. > I went to 1.0.3 and it is fine. > If you can put together a reproduceable example, we'll look into it. > > Donald > > On Mon, Mar 1,

[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 wit

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 wrote: > mortench writes: > > > Hi

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 the

Re: [Lift] MapperRules.nameToDisplayName?

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

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
e .class files. > Thank you, > > Donald > > On Mon, Mar 1, 2010 at 11:07 AM, David Pollak > wrote: > > > > > > On Mon, Mar 1, 2010 at 8:03 AM, Donald McLean > wrote: > >> > >> I just updated to Lift 2.0m2 and Scala 2.7.7 and now I&#x

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 wrote: > From reading Exploring Lift (Section 6.1, page 81), it says that > ByList corresponds to the “field IN (x,y,z)” syntax

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 8:03 AM, Donald McLean 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 > > Donald >

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 mes

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 wrote: > The new logging code is now in master and should be fully usable. > Therefore, the existing logging c

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 wrote: > 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: HTTPRequest) { >//will

  1   2   3   4   5   6   7   8   9   10   >