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
t? > > > > I am trying to download plain text, but it is variable and dependent > > on some parameters and other variables in the particular Snippet > > class. Would I have to pass that data into the boot method in order > > to get the desired response? I would prefer

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
and Wizard (Wizard is a multi-page collection of Screens). If you can give me a idea of a good example for you, I'll work on it. Thanks, David > > Relevant threads: > - http://old.nabble.com/Multipage-wizards-td26504293.html (especially > Jeppe answer) > - > http://old.na

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
cope the currentClient RequestVar someplace, I'd suggest: object ViewClient extends ViewClient { object currentClient extends RequestVar... } So, please try putting the currentClient someplace where there's a single path (from a class perspective) to it and I'm guessing that your is

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
e code to be executed. import net.liftweb.util._ import Helpers._ Personally, I'd suggest "jQuery(" + AltXML.toXML(nodeSeq, false, true).encJs + ")" Thanks, David > > Then JQueryNodeSeq(ns) ~> JsFunc("dialog") > > -Ross > > On Mar 9, 2010, at 12:06

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread David Pollak
hen > > iterating new features, I always end up making lots of changes to > > Sitemap. And afaik everyone of those changes requires a restart > > > > For the rest I agree JRebel fits quite nicely (it does have it's > > problems as David points out) > > >

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
itations, do you guys thing the feature would be valuable? Should it be part of development mode or should there be another demarcation of the dynamic reload mode? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/14302

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
x27;ve addressed your concerns. If you are thinking about Lift for a production site (profit or non-profit), please contact me off-list to tell me about your project. I may have people that could help you communicate effectively with your team about the risks and benefits of going with Lift. Thanks

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
any Java web framework and many people choose Wicket. There are a number of Scala-specific web frameworks including Sweet with is an MVC framework that has better documentation than Lift. Slinky which is a very functionally flavored web framework and part of the ScalaZ package. There's Play,

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

[Lift] passwordReset bug or misunderstanding?

2010-03-05 Thread David Dearing
I'm a relative Lift newbie, but encountered something that seems like an error or could just be a misunderstanding on my part. In MetaMegaProtoUser's passwordReset(id: String) method, there is a call to user.uniqueId.reset().save that occurs when the page loads and a user is found. Since the uniq

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
ugh the other side (back to my browser) stripped from the XHTML. As I said, if there is a reproducible case that you can show against Lift 2.0-M3 or 2.0-SNAPSHOT, open a ticket. However, in the future, please do not expect that I'll spend any more of my time addressing your issues. David >

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
the Lift committers for adding so much to Lift! Thanks, David -- 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 -- You received this message because you are subscrib

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
} } val returnPath= urlEncode(S.hostAndPath + tmp) S.redirectTo(third_party_url+"?return=" + returnPath) } The high level session dispatcher was built for this very reason... further, the return URL is random and only associated with the current session so it makes hij

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

2010-03-04 Thread David Pollak
t;- json > } yield (messageId, timemillis)) > } yield ... > > Cheers Joni > > On Mar 4, 9:55 pm, Joni Freeman wrote: > > Hi David, > > > > Does this work? > > > > for { > > user <- WorkerMgr.find(UserId(user)) ?~ "User not fo

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
on) (_, timemillisJson) <- (json \ classOf[JField]).find(_._1 == "timestamp") timemillis <- Box.asA[JInt](timemillisJson) } yield ... The lines that look for messageId and timestamp and insure they are JInts are kinda verbose. Is there a better way to do wh

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

2010-03-04 Thread David Pollak
raged to open a ticket on it at https://liftweb.assembla.com/spaces/liftweb/tickets It'd be ideal if you could include a test application so we could verify it was doing the right thing. On Wed, Mar 3, 2010 at 6:04 PM, David Dearing wrote: > I'm new to Lift and am trying to use Lif

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
why it seems so complex... it's because it offers a ton of different flexibility. Thanks, David > Well, this doesn't quite work because I need a Req class instance, not > just the static object. > Also, to me, this determination is really at the Session level rather >

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 >

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

2010-03-03 Thread David Dearing
I'm new to Lift and am trying to use Lift within a subpath of my web application. For example, http://domain.com is an existing webapp, but my LiftFilter handles the "user_mgt" subpath (http://domain.com/ user_mgt/*). My existing webapp already handles user authentication, but I want to use the l

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] minified js artifacts (was Re: Re-opened #363)

2010-03-03 Thread David Bernard
Info about yuicompressor-maven-plugin : * could aggregate js * could be configured to avoid minified some files * could generate minified under src with suffix (default "-min") * could generate the gzip version and avoid doing it at runtime * could be invoked only in a profile (for release) or from

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 performa

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread David Pollak
tp://icanhascheezburger.com/2007/08/08/i-has-minions/ Thanks, David > > Thanks in advance > > John > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com

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

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
eviations from the mean. Looking forward to seeing lots of cool folks there. Thanks, David -- 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 -- You received this messag

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
the current 2.0-SNAPSHOT. If there is a defect or problem, please report it at https://liftweb.assembla.com/spaces/liftweb/tickets We'll work to determine if a fix needs to go into M3. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http:/

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 >

  1   2   3   4   5   6   7   8   9   10   >