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

Re: [Lift] labels for inputs

2009-11-23 Thread Chris Lewis
Thanks Naftoli, that did it. I wonder, why use a new method -% for attribute preservation? Naftoli Gugenheim wrote: This was changed. Instead, with the regular arrow - attributes are not preserved at all, and a new arrow was introduced -% that preserves all attributes from the template as

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: a href=/home target=homeHome/a 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

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 take

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

[Lift] labels for inputs

2009-11-22 Thread Chris Lewis
Hello list, I was looking for a way to attach label 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

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

2009-11-20 Thread Chris Lewis
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 There are a lot of people to thank

[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] A sensible AJAX approach

2009-11-19 Thread Chris Lewis
not explicitly wrapped in a snippet call tag? thanks! chris Jeppe Nejsum Madsen wrote: Chris Lewis burningodzi...@gmail.com writes: 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

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

[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

[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

[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

[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

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

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
in the SiteMap? Jeppe Nejsum Madsen wrote: Chris Lewis burningodzi...@gmail.com 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 their local entity only if it's their first

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
. 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: Thanks for that link, however it doesn't seem like rewrite rules fire for paths that are mapped in the SiteMap. Can anyone

[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, it

[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

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Great suggestions - thanks guys! Jeppe Nejsum Madsen wrote: Timothy Perrett timo...@getintheloop.eu 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

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

[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

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

[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 tyler.w...@gmail.com wrote: Wonderful! On Aug

[Lift] Re: Dependency Injection in Lift

2009-09-02 Thread Chris Lewis
Jeppe Nejsum Madsen wrote: Chris Lewis burningodzi...@gmail.com 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 java, says to write

[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 code.

[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

[Lift] Re: Dependency Injection in Lift

2009-09-01 Thread Chris Lewis
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: On Tue, Sep 1, 2009 at 5:56 AM, Chris Lewis burningodzi

[Lift] Re: authentication and access control

2009-08-30 Thread Chris Lewis
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 burningodzi...@gmail.com mailto:burningodzi...@gmail.com wrote: Lift users, I'm

[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

[Lift] Re: Dependency Injection in Lift

2009-08-30 Thread Chris Lewis
. Br's, Marius On Aug 30, 6:21 pm, Chris Lewis burningodzi...@gmail.com wrote: 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

[Lift] Re: Dependency Injection in Lift

2009-08-30 Thread Chris Lewis
be at all usable. sincerely, chris Jeppe Nejsum Madsen wrote: Chris Lewis burningodzi...@gmail.com writes: I am specifically talking about decoupling my web logic, ie, event handlers for forms in lift snippets, from the persistence layer. As currently implemented, snippets know exactly

[Lift] Re: authentication and access control

2009-08-28 Thread Chris Lewis
in ProtoUser implementation for login, registration, forgot password etc. Br's, Marius On Aug 28, 4:42 am, Chris Lewis burningodzi...@gmail.com wrote: 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

[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

[Lift] Re: ProtoUser and securing pages

2009-07-14 Thread Chris Lewis
in. :-) On Jul 14, 4:02 am, Chris Lewis burningodzi...@gmail.com mailto:burningodzi...@gmail.com wrote: 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

[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 burningodzi...@gmail.com 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-13 Thread Chris Lewis
? _, 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 display the menu item or let you access that page. Is this what you're looking for? On Mon, Jul 13, 2009 at 8:23 PM, Chris Lewis burningodzi...@gmail.com