Re: [Lift] Need for lift application to coexist with spring in the same webapp

2009-11-25 Thread Chris Lewis
Don't forget that if the lift filter is inspecting the request before your servlet, you'll need to tell lift to pass it on. In boot: LiftRules.passNotFoundToChain = true chris sunanda wrote: > Hi David, > > Thank for all the help so far. > > My lift application needs to coexist with the s

Re: [Lift] Okay... part of the slow problem is javax.script

2009-11-23 Thread Chris Lewis
Does mvn dependency:tree help? chris David Pollak wrote: > Folks, > > I've narrowed down part of the slowness problem. There's a reference to > javax.script:script-js that's never satisfied. > > How can I track down what is including this reference or alternatively > blacklist the particular

Re: [Lift] labels for inputs

2009-11-23 Thread Chris Lewis
ttributes from the template as is. > This is in addition to being able to pass attributes to many SHtml methods; > being able to add attributes to the returned NodeSeq; binding on attributes; > and attribute snippets. > > --------- > Chris Lewis wrote: >

[Lift] labels for inputs

2009-11-22 Thread Chris Lewis
Hello list, I was looking for a way to attach elements to form inputs (via DOM id), and I came across this thread: http://www.mail-archive.com/liftweb@googlegroups.com/msg04821.html This suggests that bind points, when expanded, result in elements that have any attribute under the bind point

Re: [Lift] Mapper vs. Record vs. JPA

2009-11-22 Thread Chris Lewis
I'm writing an app to deploy to googele app engine, and so I'm using JPA. Here are the cons I've encountered: 1) JPA mandates conventions on model class code. In scala this usually means any persistent fields are public vars, which is theoretically dangerous (and generally frowned upon). I pers

Re: [Lift] JPA and eager fetch

2009-11-22 Thread Chris Lewis
No, CascadeType.ALL should work as expected. By chance does replacing the use of Model.persist with Model.mergeAndFlush work as you'd expected? Warren Strange wrote: > OK, I think I fixed my problem > > I did not call Model.persist on my linked child object. I thought the > cascade = ALL would t

Re: [Lift] opening new window from snippet.

2009-11-22 Thread Chris Lewis
I'm not sure what you mean exactly. If you have a link on a page that wants to open in a new window, just specify that in the template html: Home If you're wanting to wire up some ajax behavior to fire when a link is click and then open a window, you have several options. Here's one: the snipp

Re: [Lift] Three years of a Scala lust affair, the blog post

2009-11-20 Thread Chris Lewis
passed what it had to offer. I was sorely wrong. Thanks again, Chris Lewis David Pollak wrote: > Folks, > > I've been doing Scala for three years as of today. I wrote a blog post > about it: > http://blog.lostlake.org/index.php?/archives/97-Happy-3rd-Anniversay.html >

Re: [Lift] A sensible AJAX approach

2009-11-19 Thread Chris Lewis
y good way to handle the common-edit-dialog problem, and certainly the cleanest I've seen yet. I wonder though, is it intentional that bind points work when not explicitly wrapped in a snippet call tag? thanks! chris Jeppe Nejsum Madsen wrote: > Chris Lewis writes: > >> Classic use

[Lift] A sensible AJAX approach

2009-11-19 Thread Chris Lewis
Classic use case: a user chooses to view/edit and object by clicking on a link. This causes the app to fetch an edit view (form) and render it asynchronously, probably rendering it as a modal dialog. To specify the case a bit more, consider a table of like objects that allows you to edit them (

Re: [Lift] scala eclipse plugin with lift

2009-11-17 Thread Chris Lewis
I can't say I enjoy eclipse for scala code, but did you make sure your project has the Scala Nature? Oscar Picasso wrote: > Hi, > > I did import a new created lift project in a eclipse as a maven project. > The project is recognized as a scala project but there is neither syntax > syntax highli

[Lift] Re: Lift & Scala style.

2009-11-16 Thread Chris Lewis
On a related note, I suggest that the lift community read through the general Scala style guide proposed by Daniel Spiewak. Lift set a few norms of its own; I'm wondering what the reaction of the core team might be to some of the suggestions. http://www.codecommit.com/scala-style-guide.pdf si

[Lift] JS event source in a server side handler

2009-11-15 Thread Chris Lewis
Hello list, Often in an AJAX handler I need to update something on the client side; usually a UI control that initiated the handler. The only way I know to handle this is to generate a DOM id in the snippet during a rendering call (like a bind() call in a flatMap over a dataset), look for that

[Lift] Re: JPADemo 1.1-SNAPSHOT: id with auto-increment (MySQL or H2)

2009-11-03 Thread Chris Lewis
, and I agree Derek that it would be great to > have this updated in the Archetype when you get a chance. > > Troy > > On Mon, Nov 2, 2009 at 11:55 AM, Derek Chen-Becker > mailto:dchenbec...@gmail.com>> wrote: > > If updating the pom hibernate version fixes t

[Lift] Re: JPADemo 1.1-SNAPSHOT: id with auto-increment (MySQL or H2)

2009-11-02 Thread Chris Lewis
Troy, I ran into the same problem. It seems to be a hibernate issue - that archetype uses an older version of hibernate that breaks with mysql. Change the version in your pom for hibernate (I don't remember the latest, maybe 3.4GA). I meant to post this a while ago, as it cost me an hour or m

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Great suggestions - thanks guys! Jeppe Nejsum Madsen wrote: > Timothy Perrett writes: > >> Ah. In that case, does this help: >> >> Menu(Loc("Some", List("some","page"), "Some", >>EarlyResponse(() => { >> // do some response here, >> // return Empty if you dont wan

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
jlist9 wrote: > It's often hard to describe some (I'd say most) of the Scala syntax > if you want to search for an answer online. I can't relate with that. I've been coding scala for 3-4 months, and I've never had any problem finding method definitions. Most of this probably had to do with th

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
My head just exploded. Twice. ngocdaothanh wrote: > Because Lift's ad is so good. *boom* For example: > > "Lift is the only new framework in the last four years to offer fresh > and innovative approaches to web development. It's not just some > incremental improvements over the status quo, i

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
you are rewriting to already has (or has > not) been allowed access via sitemap. > > Sounds like your trying to add rewritten URLs to your sitemap? > > Cheers, Tim > > PS: Jeppe, thanks for the link recycling!! > > On 23 Oct 2009, at 16:43, Chris Lewis wrote: > >

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
hes a page in the SiteMap? Jeppe Nejsum Madsen wrote: > Chris Lewis writes: > >> Hi list, >> >> I'm working on an appengine app, and need to store some user >> information. I authenticate the user with their google account, and I >> need to create

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
bob wrote: > i believe that one of the best ways to learn a new programming > language is to read software written in it > > when reading Scala code, I rarely say "i don't understand how that > works" and when I do, there's usually a good explanation of it > somewhere on the web. > > usually I

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
I *think* you're referring to a thread I started some time ago: http://www.nabble.com/functional-newbie,-domain-entities-td22957479.html It turned out to be a lively discussion. On a related note, Jonas Boner gisted this in August: http://gist.github.com/173921 It's not full code, but it gi

[Lift] catch a URL

2009-10-22 Thread Chris Lewis
Hi list, I'm working on an appengine app, and need to store some user information. I authenticate the user with their google account, and I need to create their "local" entity only if it's their first time logging in. When a user logs in via google, they are redirected back to your app, to a

[Lift] Re: Question about the Getting Started Guide

2009-09-30 Thread Chris Lewis
Maven stores artifacts in your local repository, which by default is in ~/.m2/repository. jli...@gmail.com wrote: > Hello Indrajit and those who replied, thanks for all your help. > Finally I got it working. It probably had something to do with > the proxy in my work environment. > > BTW, do yo

[Lift] Re: all page URLs appended with ;jsessionid=knq01t90ajh7

2009-09-18 Thread Chris Lewis
It has nothing to do with lift, but the servlet container. "jsessionid" is a specified standard, and appending it I *think* is part of the mandate when implementing the servlet api. That is to say, the automatic appending will probably occur on any servlet container. Google around and you'll f

[Lift] Re: CMS for Lift?

2009-09-17 Thread Chris Lewis
javax.script glenn wrote: > I think the trick to a really vibrant CMS is the ability to create > plugins - modules in > Lift that can be dynamically installed. I'm not sure how to affect > this except through > OSGi. > > On Aug 19, 8:55 am, TylerWeir wrote: >> Wonderful! >> >> On Aug 19, 11:03

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Chris Lewis
Charles F. Munat wrote: > It's not the AS, it's the souped-up Tomcat (JBoss Web). All their > examples are WARs. But sure, send an EAR along, Mr. Van Gogh. nice. > > Chas. > > Derek Chen-Becker wrote: >> Also, if you're loading this up in JBoss, it might make more sense to >> bundle the ar

[Lift] Re: Dependency Injection in Lift

2009-09-02 Thread Chris Lewis
Timothy Perrett wrote: > Chris, > > I read your comments with interest - just to clarify, are you against > changing code / would prefer a configuration file? I sort of got that > vibe from some of your posts... Personally, im not down with > configuration files and prefer code that configures

[Lift] Re: Dependency Injection in Lift

2009-09-02 Thread Chris Lewis
Jeppe Nejsum Madsen wrote: > Chris Lewis writes: > >> Take a payment service example. I start off with PayPal and some >> months later I switch my processor to CyberSource. I don't want to tie >> the snippet to a specific processor, so my mind, transposing jav

[Lift] Re: Dependency Injection in Lift

2009-09-01 Thread Chris Lewis
tenance headache - I feel like I'm missing your point here. I get the answer to "mocking" lift internals, but hot-swapping service implementations without incurring a maintenance hit is still unclear. Thanks again! sincerely, chris David Pollak wrote: > >

[Lift] Re: Dependency Injection in Lift

2009-09-01 Thread Chris Lewis
David, I'm still investigating options, but I wanted to restate my main issue simply. It is the requirement snippets have on global data; that is it. The way they receive data from and expose data to templates is really nice. However, without the use of global objects (including lift infrastr

[Lift] Re: authentication and access control

2009-08-31 Thread Chris Lewis
r. Maybe that's too dirty, but I'm just thinking of possibilities. thanks again, chris David Pollak wrote: > > > On Sun, Aug 30, 2009 at 8:21 AM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote: > > > Thanks David, > > That does hel

[Lift] Re: Dependency Injection in Lift

2009-08-30 Thread Chris Lewis
al execution I'm not sure where you can plug something in. I'd still love to hear more thoughts, and if this method could be at all usable. sincerely, chris Jeppe Nejsum Madsen wrote: > Chris Lewis writes: > >> I am specifically talking about decoupling my web logic, ie,

[Lift] Re: Dependency Injection in Lift

2009-08-30 Thread Chris Lewis
there are chances for the application to use a > different persistence mechanism then say JDBC. But many application > don't really need such a rigorous decoupling so using mapper/record > from snippets makes a lot of sense. > > Br's, > Marius > > On Aug 30, 6:2

[Lift] Dependency Injection in Lift

2009-08-30 Thread Chris Lewis
I like the Lift framework. It has its rough edges, but it's a great way to get into web app development using scala. It borrows many good ideas from other frameworks, most notably its convention over configuration structure (rails) and its scriptless view layer (wicket). One thing I'm not a bi

[Lift] Re: authentication and access control

2009-08-30 Thread Chris Lewis
which ultimately stores keyed objects on the session, right? Thanks again for your dedication and commitment to the lift community. chris David Pollak wrote: > > > On Thu, Aug 27, 2009 at 6:42 PM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote: > > > Lift

[Lift] Re: authentication and access control

2009-08-28 Thread Chris Lewis
>> >> See /examples/http-authentication application. >> >> As far as Mapper goes it has a built in ProtoUser implementation for >> login, registration, forgot password etc. >> >> Br's, >> Marius >> >> On Aug 28, 4:42 am, Chris Lewis wrote

[Lift] authentication and access control

2009-08-27 Thread Chris Lewis
Lift users, I'm curious what you all are using for user access control (Mapper users excluded). I'm seriously evaluating lift for a project that will use JPA. My full time job uses Spring Security, which while nice in that it stays out of the way, is too clunky for my tastes. I haven't disse

[Lift] Re: ProtoUser and securing pages

2009-07-16 Thread Chris Lewis
I did use an archetype, but it was a 1.0 and must have been the bare-bones (there were no models generated). David Pollak wrote: > > > On Wed, Jul 15, 2009 at 3:17 AM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote: > > > I didn't, but I'd b

[Lift] Re: ProtoUser and securing pages

2009-07-14 Thread Chris Lewis
, chris David Pollak wrote: > > > On Tue, Jul 14, 2009 at 3:32 PM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote: > > > I guess the first question I should have asked is how do I go about > logging a user in. I have my user model, which now mixes

[Lift] Re: ProtoUser and securing pages

2009-07-14 Thread Chris Lewis
l content. And because they're XML docs, FF is rendering XML. I'm only assuming those templates surround their content at "content" (as they do in the 1_1 example). I don't think this is a 1.0 issue, but it's possible. thanks chris David Pollak wrote: > &

[Lift] Re: ProtoUser and securing pages

2009-07-14 Thread Chris Lewis
o I turn this off? > > > Upgrade based on the fix I just checked in. :-) > > > > > > On Jul 14, 4:02 am, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote: > > Too easy! Thanks for the help David - I'll msg the channel when &g

[Lift] Re: ProtoUser and securing pages

2009-07-14 Thread Chris Lewis
Too easy! Thanks for the help David - I'll msg the channel when the app is on github. Fine job with Lift - it's been a joy so far! David Pollak wrote: > > > On Mon, Jul 13, 2009 at 8:57 PM, Chris Lewis <mailto:burningodzi...@gmail.com>> wrote: > > >

[Lift] Re: ProtoUser and securing pages

2009-07-13 Thread Chris Lewis
Menu(Loc("Protected", List("protected"), "Protected", > If(User.loggedIn_? _, "You must be loggd in to view this page"))) :: > User.sitemap > > > Note the "If()" clause that tests if the user is logged in and will not > disp

[Lift] ProtoUser and securing pages

2009-07-13 Thread Chris Lewis
Hello list, I'm writing a lift app for a presentation Wednesday. It's a simple little app that is all but done, missing only the ability to secure pages. I've got a /really/ simple registration page (template with a user name field, bound in a snippet that persists the User model). What's missing