[Lift] Fwd: Watch Foursquare Lift talk live from NY

2009-12-07 Thread David Pollak
-- Forwarded message -- From: Dave Briccetti Date: Mon, Dec 7, 2009 at 3:15 PM Subject: Watch Foursquare Lift talk live from NY To: Bay Area Scala Enthusiasts http://www.justin.tv/n8han -- You received this message because you are subscribed to the Google Groups "Bay Area Scal

Re: [Lift] Re: Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread David Pollak
> > > > > > > > > ${scala.version} > > > > > > > > > > > >org.mortbay.jetty > > >maven-jetty-plugin > > > > > > / > > > 5 > >

Re: [Lift] Re: Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread David Pollak
or-maven-plugin > > > > compress > > > > > true > > > >org.apache.maven.plugins >maven-eclipse-plugin > > true > >org.scala-lang:scala-library >

Re: [Lift] Re: Mapper <-> JObject bridge

2009-12-07 Thread David Pollak
On the dpp_issue_213 branch On Mon, Dec 7, 2009 at 1:34 PM, glenn wrote: > David, > > I couldn't find encodeAsJSON_! on MetaMapper in the Lift source on > github. > Where is this code checked in? > > Glenn > > On Dec 2, 1:15 pm, David Pollak wrote: >

Re: [Lift] Re: How do I go about implementing my own auth?

2009-12-07 Thread David Pollak
On Mon, Dec 7, 2009 at 1:32 PM, DMB wrote: > SiteMap is out of the question. I don't need it at all on my site, by > design. > If you claimed "I don't need controllers by design" in an RoR site, then your example would not work. SiteMap is the access control mechanism for Lift. If you don't li

Re: [Lift] Managing templates with associated snippets?

2009-12-07 Thread David Pollak
Liam, Right now, there's no best practices for snippet/template integration. If you or anyone else has good ideas on this or desired IDE integration, please post them. Thanks, David On Sun, Dec 6, 2009 at 3:02 AM, Liam Clarke wrote: > Hi all, > > I'm quite new to Lift, just working my way th

Re: [Lift] Re: Sharing data between snippet functions during a single HTTP request

2009-12-07 Thread David Pollak
On Sun, Dec 6, 2009 at 5:44 AM, Alex Black wrote: > > We made this change for Lift 1.1. So, if you're using 1.1, the same > > instance of a snippet should be used for a given HTTP request. > > Hi David, I've just switch from Lift 1.0 to Lift 1.1-M6, do you think > this change is in M6? Yes. S

Re: [Lift] How to configure two database connection in Lift?

2009-12-07 Thread David Pollak
I've put together some sample code that describes how to access multiple databases from a single Lift app. It's enclosed. First, you need to identify different ConnectionIdentifiers for each connection: package com.liftcode.model import net.liftweb._ import mapper._ case object CatConnectionId

Re: [Lift] Re: Race conditions / database transaction isolation levels

2009-12-07 Thread David Pollak
On Mon, Dec 7, 2009 at 8:54 AM, Alex Boisvert wrote: > On Mon, Dec 7, 2009 at 8:02 AM, cody koeninger wrote: > >> >> >> On Dec 6, 9:16 pm, Alex Boisvert wrote: >> > Lift's mapper doesn't change the default isolation level of your >> > connections, nor does it make explicit use of pessimistic con

Re: [Lift] Re: Login progamatically

2009-12-07 Thread David Pollak
If you're using MegaProtoUser, in your User object: override def autologinFunc = if (Props.devMode) Full(() => {User.find(1).foreach(User.LogUserIn)}) else Empty On Mon, Dec 7, 2009 at 10:17 AM, stephanos wrote: > it just occured to me that I can simply override my "is logged in"- > condition: >

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-07 Thread David Pollak
> On Dec 7, 2009, at 12:22 PM, Alex Boisvert wrote: > > On Sun, Dec 6, 2009 at 8:28 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> On Sun, Dec 6, 2009 at 7:25 PM, Alex Boisvert wrote: >> >>> Using the latest and greatest (master br

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-07 Thread David Pollak
On Mon, Dec 7, 2009 at 9:22 AM, Alex Boisvert wrote: > On Sun, Dec 6, 2009 at 8:28 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> On Sun, Dec 6, 2009 at 7:25 PM, Alex Boisvert wrote: >> >>> Using the latest and greatest (master branch)

Re: [Lift] Re: Newbie on Lift & Scala: Build in class source code?

2009-12-07 Thread David Pollak
On Mon, Dec 7, 2009 at 9:14 AM, itsjar wrote: > thanks again to the guys who put their efforts in answering questions > here. > I'll try a different approach this time. > I would suggest building the "To Do" app as a first step: http://liftweb.net/docs/getting_started/mod_master.html You'll get

Re: [Lift] Re: (Maybe it's a bug ?) About the Schedule's execute counts in the ActorComet

2009-12-07 Thread David Pollak
On Mon, Dec 7, 2009 at 5:45 AM, Neil.Lv wrote: > > I think maybe it's a bug ~? > > Btw, Does anybody know how to convert the CometActor to LiftActor. > A CometActor is a subclass of LiftActor If you can package up a complete simple implementation of the problem (an app I can run with mvn je

Re: [Lift] Next Lift version will be 2.0

2009-12-07 Thread David Pollak
Heiko, Thank you for shepherding this issue through and giving us a sane and well defined naming process. Thanks, David On Mon, Dec 7, 2009 at 12:32 AM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Lifters, > > Maybe you followed the discussion about the versioning policy for Lif

Re: [Lift] seeing JVM BUG(s) - cancelling interestOps==0

2009-12-06 Thread David Pollak
On Sun, Dec 6, 2009 at 10:21 PM, Xuefeng Wu wrote: > Hi, > > I always find the information from console: seeing JVM BUG(s) - cancelling > interestOps==0 > > What's the reason? > > I use jetty 6.1.21, and I'm afraid it will cause serious error if I deploy > the liftweb app in IBM WAS(WebSphere A

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-06 Thread David Pollak
On Sun, Dec 6, 2009 at 7:25 PM, Alex Boisvert wrote: > Using the latest and greatest (master branch), I can't reproduce the > MatchError but I can reproduce the issue with the attribute being generated > if the value is null. > How about adding a Box alternative rather than perpetuating a paradig

Re: [Lift] re: what changes would need to be made so LIFT can work with HTML5

2009-12-06 Thread David Pollak
Please do not use Lift 1.0.1. It was a broken release. If you are using Lift 1.0.2, please make sure that all of your Lift references (in your pom.xml file) are set to 1.0.2 and that the Scala version is set to 2.7.5. Then do a "mvn -U clean jetty:run" I cannot advise against using Lift 1.0.x s

Re: [Lift] Use of the % operator

2009-12-05 Thread David Pollak
On Sat, Dec 5, 2009 at 12:07 PM, Richard wrote: > Can someone tell me where the % operator is defined - I get that is's > used to set attributes in an xml element, but I'd like to see the docs > on it. > scala.xml.Elem > > thanks > Richard Williams > > -- > > You received this message because

Re: [Lift] Getting Started 'todo' fails - smack.jar

2009-12-04 Thread David Pollak
On Fri, Dec 4, 2009 at 10:06 AM, jlist9 wrote: > I'm just curious why is smack required. Does Lift use XMPP? Or is it there > in case someone uses XMPP in an application? > The 1.0 archetype references lift-core. lift-core is the umbrella for all the Lift modules including XMPP, AMQP, Facebook,

Re: [Lift] Newbie question on the Scala Todo sample application.

2009-12-03 Thread David Pollak
On Thu, Dec 3, 2009 at 3:47 PM, itsjar wrote: > Hi, > > when I was working on the tutorial I got to the point where it tells > you to run it and go to localhost:8080. > I was surprised to see a complete login/signup application which I > didn't code. > So when I set up the program by using the co

Re: [Lift] json form and checkboxes

2009-12-03 Thread David Pollak
Yeah... this is a bug in the way we serialize the form. Please open a ticket at http://github.com/dpp/liftweb/issues On Thu, Dec 3, 2009 at 1:33 PM, edgarchan wrote: > Hi > > i tried the json form tutorial (HowTo_use_JSON_forms) and everything > was ok until i put some checkboxes ... the thing i

Re: [Lift] Foreign Key constraints are not created by schemify

2009-12-03 Thread David Pollak
On Thu, Dec 3, 2009 at 1:47 PM, Derek Chen-Becker wrote: > I agree on both points (foreign keys and documentation). Please open a > ticket asking for proper foreign key support and I'll work on it next week. > > Please make sure it works on PG 8.0/8.1 as there is at least 1 Lift app in production

Re: [Lift] Re: Spaces getting removed from title in head merge?

2009-12-03 Thread David Pollak
On Thu, Dec 3, 2009 at 12:19 PM, Alex Black wrote: > Ah.. I've worked around the problem for now. If my snippet outputs > foo vs bar then the spaces don't get removed. > > I'm waiting on 1.1 to be released before upgrading - but if there is a > stable release now I might try it out. > In general

Re: [Lift] Re: Jetty question

2009-12-03 Thread David Pollak
On Wed, Dec 2, 2009 at 12:54 PM, Marius wrote: > > > On Dec 2, 10:26 pm, David Pollak > wrote: > > On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett < > timo...@getintheloop.eu>wrote: > > > > > Hey Marius, > > > > > Im not 100% sure tha

Re: [Lift] Re: Filtering of

2009-12-03 Thread David Pollak
Jon, The joys of being a committer is that you can open a ticket for adding this feature (and others), add it, get it reviewed and get it into Lift. My general rules is that if a pattern is useful for builders of one or two production apps, they'll probably be useful for others. So, please don't

Re: [Lift] Re: S.render function was removed

2009-12-03 Thread David Pollak
Yeah I'm not sure why this code was removed. Please open a ticket and I'll put it back. On Thu, Dec 3, 2009 at 3:04 AM, Paul Sandoz wrote: > > On Dec 3, 2009, at 11:33 AM, Marius wrote: > > > I think Dave commented it out and I remove it after it was commented > > out. I'm don't like very m

Re: [Lift] JSON Reponses

2009-12-03 Thread David Pollak
Matt, Lift has 2 major branches in its rendering pipeline: standard XHTML and Dispatch. The standard XHTML is the view-first, snippet-based mechanism that loads the templates and processes the snippet stuff in the templates. The dispatch mechanism requires that you register a handler during the

Re: [Lift] Can Lift be configured not to call request.getSession(true) in the servlet API?

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 5:39 PM, Shawn C wrote: > Is there a way to configure Lift not to call request.getSession(true) > in the servlet api? No. > I do not want to use the servlet api session > tracking. I plan on storing some of the state in an AES encrypted > cookie and the rest in hidden

[Lift] Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread David Pollak
Folks, It may or may not be true that for Jon Hoffman that "Martin Odersky praises [his] valuable contributions. [He] can read APIs in the dark."But Jon's made a valuable contribution to Lift as part of the community. Now, he's a committer. Please join me in welcomin

[Lift] Mapper <-> JObject bridge

2009-12-02 Thread David Pollak
Folks (HarryH -- this means you), I've just checked in code on the dpp_issue_213 that does Mapper <-> JObject bridging using the awesome lift-json library. The methods on MetaMapper: protected def encodeAsJSON_! (toEncode: A): JsonAST.JObject protected def decodeFromJSON_!(json: JsonAST.JObject):

Re: [Lift] Re: Jetty question

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 12:24 PM, Timothy Perrett wrote: > Hey Marius, > > Im not 100% sure that Servlet 3.0 will solve our problems... im > worried that the vendors will not standardise once again (they are > already diverging paths in "early access" servlet 3.0 > implementations)... > > To this e

Re: [Lift] Re: Filtering of

2009-12-02 Thread David Pollak
I think the feature has merits. I can see it either as an alternative to SetHtml (e.g., SetAndRun) or as a flag on SetHtml so existing code runs the same way. On Wed, Dec 2, 2009 at 11:00 AM, Marius wrote: > Personally I have reservations about this. If you want to include > templates in this m

Re: [Lift] Re: How to get the servlet context

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 5:27 AM, jhonig wrote: > David, > > > I'm all for putting stuff in a well-know location in the filesystem... > and > > defining that well known location in the props file. > > OK, then this is what I want. But you refer to "THE" props file. Do > you mean > a Jetty props

Re: [Lift] A second rewrite phase

2009-12-02 Thread David Pollak
On Wed, Dec 2, 2009 at 2:23 AM, Jeppe Nejsum Madsen wrote: > David Pollak writes: > > > Folks (especially Jeppe), > > > > I've added a second rewrite phase to Lift. The second phase takes place > > within S scope, so you get SessionVars, etc. The re

Re: [Lift] Is it possible to use Schemifier without DB Access?

2009-12-02 Thread David Pollak
On Tue, Dec 1, 2009 at 9:20 PM, Joern wrote: > Hi, > > I just want to see the statements Schemifier.schemify() would use to > create all my tables. Right now, it only creates statements, if there > is no such table in the DB. How could I avoid having it look at the > existing tables and just let

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-02 Thread David Pollak
null... shudder. :-) On Wed, Dec 2, 2009 at 12:32 AM, Jeppe Nejsum Madsen wrote: > Alex Black writes: > > > Is there a good/reasonable way to conditionally output > > checked="checked" or output nothing? > > If you output null for the attribute value, the attribute is not > rendered: > > scala>

Re: [Lift] Re: Image upload and serving example

2009-12-01 Thread David Pollak
ad field in the snippet, like you sugested. I > still wonder if the binding method is the best place for this, though. > > On Dec 1, 10:14 am, David Pollak > wrote: > > If you have the Req (request), you can do: > > > > val req: Req = ... > > val theFile: Option

Re: [Lift] Open discussion on Lift Name Calling practices

2009-12-01 Thread David Pollak
Jim, Thanks for spearheading this effort! Let's do what we can to give Jim feedback on the timeline and then get the ball rolling. Thanks, David On Tue, Dec 1, 2009 at 12:43 PM, Jim Barrows wrote: > Lift is getting very large. We've got singular names as lists, and plural > names that aren'

[Lift] A second rewrite phase

2009-12-01 Thread David Pollak
Folks (especially Jeppe), I've added a second rewrite phase to Lift. The second phase takes place within S scope, so you get SessionVars, etc. The review board posting is at http://reviewboard.liftweb.net/r/132/ Anyone who cares about what is accessible during this rewrite phase should pull the

Re: [Lift] Re: How can one bind value-less attributes?

2009-12-01 Thread David Pollak
On Tue, Dec 1, 2009 at 3:59 PM, Alex Black wrote: > I appreciate the suggestion, I did think of that, but one of my goals > is to keep the XHTML out of my code..! > > This seems a tough problem in general.. Ideally in snippets there > would be no presentation, just data I think, e.g. in this case

Re: [Lift] Re: Image upload and serving example

2009-12-01 Thread David Pollak
a "name" attribute to a file > upload input field? The reason is I have a legacy piece of code that > does HTTP uploads by simulating a form submit. This code requires that > the form field name be known in advance, for obvious reasons. > > On Nov 30, 9:26 pm, David Pollak

Re: [Lift] Beware of using a body tag in a surrounded template, especially with nested surrounds

2009-12-01 Thread David Pollak
ore that at it's done by putting stuff in the tag... with all this moving around, it's possible that a sub- tag might get eaten rather than rendered. I haven't tested it. > > -Ross > > On Dec 1, 2009, at 12:24 PM, David Pollak wrote: > > Putting a tag in tem

Re: [Lift] Beware of using a body tag in a surrounded template, especially with nested surrounds

2009-12-01 Thread David Pollak
Putting a tag in templates is pretty much the only way to go. If you don't put the body tag in the template that surrounds a given page's custom content, then you have significant issues related duplication in each page. It is the developer's responsibility to make sure that the HTML is valid.

Re: [Lift] **URGENT** Archetypes broken

2009-12-01 Thread David Pollak
On Mon, Nov 30, 2009 at 11:23 PM, Indrajit Raychaudhuri wrote: > > > On 01/12/09 10:58 AM, David Pollak wrote: > > > > > > On Mon, Nov 30, 2009 at 8:25 PM, Ross Mellgren > <mailto:dri...@gmail.com>> wrote: > > > >

Re: [Lift] method call from out of nowhere

2009-12-01 Thread David Pollak
On Mon, Nov 30, 2009 at 11:26 PM, Hannes wrote: > Hi David, > > > > On Mon, Nov 30, 2009 at 12:11 AM, Hannes wrote: > >> Hi David, >> >> In my LimitOrder Meta Object, I did: >> >> override def afterCreate >> >> to inform an Actor, everytime a new Order is created. The Actor than calls >> the jo

Re: [Lift] how to fill dropdown list with data in the database

2009-11-30 Thread David Pollak
if you have: val books: List[Book] = ... def chosenBook(in: Book): Unit = { ... this method will be called when the form is processed } SHtml.selectObj[Book](books.map(b => (b, b.name.is)), Empty, chosenBook _) Hope this helps. On Thu, Nov 19, 2009 at 7:55 PM, mr najmi wrote: > can anyone sh

Re: [Lift] **URGENT** Archetypes broken

2009-11-30 Thread David Pollak
notifications. archetype:generate forces me to answer questions (the whole point of having a script is so I can type the script name and have it work.) Sorry for being grumpy about this, but I don't like things changing/breaking without some form of warning. > > -Ross > &g

[Lift] Image upload and serving example

2009-11-30 Thread David Pollak
Folks, Lately there's been a bunch of chatter on the list about image upload and figuring out how to put the image files in the right place to serve them again. I've written a simple example of image uploading, storing the image in the RDBMS and then serving the image. You can find the code at:

[Lift] **URGENT** Archetypes broken

2009-11-30 Thread David Pollak
Folks, Somehow somebody broke the basic archetype. This is not acceptable. Here's what I typed and here's what happened: d...@sevenof9:~/tmp$ cat /home/dpp/bin/new_lift #!/bin/sh mvn archetype:create -U -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -Dar

Re: [Lift] Re: IN Query Param

2009-11-30 Thread David Pollak
On Mon, Nov 30, 2009 at 6:25 PM, Trevor Austin wrote: > Never mind, it just needed a type hint: > Sometimes the type inferencer gets it right and sometimes it needs some extra help. > > val users:List[User] = User.findAll(In(User.id, Tag.user, By > (Tag.tagType, this), OrderBy(Tag.created_at,

Re: [Lift] Multipage wizards

2009-11-30 Thread David Pollak
On Wed, Nov 25, 2009 at 12:30 AM, Jeppe Nejsum Madsen wrote: > David Pollak writes: > > > Folks, > > > > I've completed the first pass at multi-page input Wizards in Lift. You > can > > see an example at: http://demo.liftweb.net/wiz > > Great news

Re: [Lift] Re: Beef with LiftRules.explicitlyParsedSuffixes

2009-11-30 Thread David Pollak
toli Gugenheim wrote: > > By the way Microsoft uses some really long suffixes, e.g., MS Access > Developer Extension Deployment Wizard files, and Pocket PC emulator. > > > > -Original Message- > > From: David Pollak > > Sent: Wednesday, November

Re: [Lift] Re: How to get the servlet context

2009-11-30 Thread David Pollak
K guaranteed) and putting files in there is a failure waiting to happen. > > Cheers, Tim > > On 30 Nov 2009, at 22:30, David Pollak wrote: > > > Storing files inside the exploded WAR file is a tremendously bad idea. I > don't think we should be helping a user do s

Re: [Lift] How to redirect to a specify url when logged in successfully?

2009-11-30 Thread David Pollak
On Sun, Nov 29, 2009 at 12:17 AM, Neil.Lv wrote: > Hi all, > > I want to redirecto to a specify URL like this "/all_users" when > logged in successfully via the default link, > http://localhost:8080/user_mgt/login > > Is there a help method (i dont't find it) to configure it? > > When i logge

Re: [Lift] Re: Broken 1.1-M7 jpa archetypes

2009-11-30 Thread David Pollak
> Cheers, Indrajit > > On Nov 25, 3:23 am, David Pollak > wrote: > > Yes. This is a known issue. Seehttp:// > github.com/dpp/liftweb/issues#issue/161 > > > > On Tue, Nov 24, 2009 at 9:34 AM, Oscar Picasso >wrote: > > > > > It seems that 1.1-M7

Re: [Lift] Binding error in Ajax call : how to debug ?

2009-11-30 Thread David Pollak
On Fri, Nov 27, 2009 at 4:14 AM, Francois wrote: > Hello, > > When I use bind(namespace, template, bindings*) in an Ajax call, if > there is a binding error (for example, a misspelled word in the > template), I can't see any error, nor in the web broswer as it the case > for such error outside Aj

Re: [Lift] Refactoring Round 2

2009-11-30 Thread David Pollak
On Fri, Nov 27, 2009 at 7:30 AM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Excellent proposal! > +1 > > Heiko > > On Friday, November 27, 2009, Indrajit Raychaudhuri > wrote: > > Folks, > > > > In continuation to the refactoring initiative and following up on the > > discussio

Re: [Lift] MetaMapper - Count with Group By?

2009-11-30 Thread David Pollak
On Fri, Nov 27, 2009 at 10:07 PM, Joern wrote: > Hi there, > > is it possible, to create a select statement like "SELECT user_id, > count(*) FROM table GROUP BY user_id" with the MetaMapper? > No. Sorry. You could do: DB.runQuery("SELECT user_id, count(*) FROM table GROUP BY user_id", Nil)

Re: [Lift] Re: How to get the servlet context

2009-11-30 Thread David Pollak
Storing files inside the exploded WAR file is a tremendously bad idea. I don't think we should be helping a user do something that is going to continue to cause him pain. If he needs to upload images, etc. and then subsequently present them to the user, it's two tables in the RDBMS and a single s

Re: [Lift] Feedback on wizard code

2009-11-30 Thread David Pollak
On Sun, Nov 29, 2009 at 3:57 PM, Timothy Perrett wrote: > David, > > So I took a close look at the lift-wizard code with a view to do what > we discussed on the committers call. From that, I have the following > feedback and questions: > > - Wizard.scala, L192... You have hardcoded html tables; IM

Re: [Lift] method call from out of nowhere

2009-11-30 Thread David Pollak
On Mon, Nov 30, 2009 at 12:11 AM, Hannes wrote: > Hi David, > > In my LimitOrder Meta Object, I did: > > override def afterCreate > > to inform an Actor, everytime a new Order is created. The Actor than calls > the joinOtherOrders method. > # > I think I understand it now. Cause I'm creating new

Re: [Lift] method call from out of nowhere

2009-11-29 Thread David Pollak
On Sun, Nov 29, 2009 at 7:24 AM, Hannes wrote: > Hey Lifters, > How is joinOtherOrders being invoked? > > I've some really strange things going on here. Please consider this > method definition. I've put alot of print "debug" statements between > other statements. There's a while-loop that onl

Re: [Lift] Re: Can't find the jdbc:mysql driver in Production Mode ?

2009-11-28 Thread David Pollak
uested URL/fsdfwas not found on this server > > Is it in the production mode now? > > Cheers, > Neil > > > David Pollak wrote: > > Do a println to output the value of Props.get("db.driver") > > > > On Sat, Nov 28, 2009 at 6:06

Re: [Lift] Re: Can't find the jdbc:mysql driver in Production Mode ?

2009-11-28 Thread David Pollak
Do a println to output the value of Props.get("db.driver") On Sat, Nov 28, 2009 at 6:06 AM, Neil.Lv wrote: > > It generated by the archetype lift-archetype-basic. > > ## in the Boot.scala > object DBVendor extends ConnectionManager { > private var pool: List[Connection] = Nil > private v

Re: [Lift] Re: how does lift work with redis?

2009-11-27 Thread David Pollak
2009/11/27 Jim Barrows > 2009/11/26 surfman > > So, if I want to use nosql database with LIFT, what I have to use is >> JDBC driver, am I right? >> Any experienced suggestion? Google has very little searching result on >> it. >> I'd appreciate any idea on this topic. Thanks. >> > > No, you can u

Re: [Lift] derby

2009-11-27 Thread David Pollak
On Thu, Nov 26, 2009 at 12:54 PM, jlist9 wrote: > Hi David, > > Would you care to elaborate in what way Derby is inferior? > I understand H2 is probably faster as speed is one of its main > design goals. Does Derby have any other issues? > I needed to do a lot more "work arounds" for Derby in Ma

Re: [Lift] derby

2009-11-26 Thread David Pollak
On Wed, Nov 25, 2009 at 10:48 PM, jack wrote: > Could somebody point me to a quickstart or tutorial about how to use > Derby with Lift? > Derby is inferior in every way to H2 (another open source pure Java relational database). If you're building something for production, Postgresql is your bes

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread David Pollak
Kris blogged about a really nice pattern: http://logji.blogspot.com/ On Wed, Nov 25, 2009 at 3:16 PM, Jim Barrows wrote: > I'm using JPA, and need to do a One->Many, or master detail view. So I > tried the obvious: > > > > > > > However, the HTML that gets generated is the same form for b

Re: [Lift] Re: Strip header from a subset of pages

2009-11-25 Thread David Pollak
API's similar as they are > fairly close in terms of likely use cases. > > Cheers, Tim > > On 25 Nov 2009, at 23:18, David Pollak wrote: > > > object excludeXmlHeaderStuff extends RequestVar(false) > > > > in boot: > > > > val current = LiftRule

Re: [Lift] Re: Strip header from a subset of pages

2009-11-25 Thread David Pollak
object excludeXmlHeaderStuff extends RequestVar(false) in boot: val current = LiftRules.calculateXmlHeader LiftRules.calculateXmlHeader = (resp, node, contentType) => if (excludeXmlHeaderStuff) "" else current(resp, node, contentType) On Wed, Nov 25, 2009 at 2:09 PM, harryh wrote: > It is no

Re: [Lift] Validations

2009-11-25 Thread David Pollak
On Wed, Nov 25, 2009 at 11:52 AM, suls wrote: > Hi guys, > > It seems that I don't completely understand how validations work.. I > am having a model with the following property: > > object size extends MappedInt(this) { >override def validations = validPosition _ :: super.validations > >

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread David Pollak
hensive list on IANA (or some similar acronym) that we could grab and > implement - thoughts? > Sounds good. I'd rather see a fix sooner rather than later. Can you open a ticket? Can you own the ticket? > > Cheers, Tim > > Sent from my iPhone > > On 25 Nov 2009,

Re: [Lift] Beef with LiftRules.explicitlyParsedSuffixes

2009-11-25 Thread David Pollak
I'm not overly keen on the whitelist stuff. Someone's going to get cranky about it. I'm open to either adding a whole lot more to the white list or saying that everything < n characters (e.g., 5) is a suffix unless it's on a blacklist. On Wed, Nov 25, 2009 at 5:49 AM, Timothy Perrett wrote: > Y

Re: [Lift] Re: A sensible AJAX approach

2009-11-24 Thread David Pollak
asic lift archetype with a Role.scala added to the mapper > > package that > > contains all the relevant code. > > > > Here is the link to the application: > > > > http://github.com/glennSilverman/treeview > > > > If you run it as-is, you can add new roles to t

[Lift] Re: Strip header from a subset of pages

2009-11-24 Thread David Pollak
http://reviewboard.liftweb.net/r/124/ On Nov 24, 3:40 pm, David Pollak wrote: > I've created issue 207:http://github.com/dpp/liftweb/issues/#issue/207 > > > > On Mon, Nov 23, 2009 at 12:34 PM, harryh wrote: > > > It will eliminate both the doctype and the thing.

Re: [Lift] Re: Strip header from a subset of pages

2009-11-24 Thread David Pollak
I've created issue 207: http://github.com/dpp/liftweb/issues/#issue/207 On Mon, Nov 23, 2009 at 12:34 PM, harryh wrote: > > It will eliminate both the doctype and the thing. > > This does not appear to be the case. I just tried it (on M7). Also > looking at the code for NodeResponse this does

Re: [Lift] Does a Mapper MappedStringForeignKey check for existence when set?

2009-11-24 Thread David Pollak
On Tue, Nov 24, 2009 at 2:47 PM, Peter Robinett wrote: > I having some memory problems that I suspect are caused, at the end of > the day, by creating many Mapper instances and setting their > MappedStringForeignKey property. When I set it, is it being looked up > in the database? Based on a previ

Re: [Lift] Re: Change to support dynamic top level menu items

2009-11-24 Thread David Pollak
Mellgren wrote: > Understood. Thanks. > > -Ross > > On Nov 23, 2009, at 8:15 PM, David Pollak wrote: > > > > On Mon, Nov 23, 2009 at 4:55 PM, Ross Mellgren wrote: > >> As much as I subscribe to the "a lack of dissent is implicit assent" >> poli

Re: [Lift] Improving lift-flot

2009-11-24 Thread David Pollak
I'm all for enhancing the flot stuff. Do I see anyone raising their hand to own the changes? On Tue, Nov 24, 2009 at 12:57 AM, Jeppe Nejsum Madsen wrote: > Peter Robinett writes: > > > I've been working with lift-flot a lot recently and I'd like to share > > some thoughts and suggest some impro

Re: [Lift] Re: Page flows in Lift

2009-11-24 Thread David Pollak
See http://demo.liftweb.net/wiz2 The back button is acting hinky... it's not forcing a reload of the page... something's funky with the headers Lift sends back... but that's a separate issue On Tue, Nov 24, 2009 at 9:30 AM, klr8 wrote: > Tim, > > Thanks for the interest in trying the challenge!

Re: [Lift] Broken 1.1-M7 jpa archetypes

2009-11-24 Thread David Pollak
Yes. This is a known issue. See http://github.com/dpp/liftweb/issues#issue/161 On Tue, Nov 24, 2009 at 9:34 AM, Oscar Picasso wrote: > It seems that 1.1-M7 jpa archetypes other than lift-archetype-jpa-basic are > broken, both in snapshots and releases repositories. > > -- > You received this me

[Lift] Multipage wizards

2009-11-24 Thread David Pollak
Folks, I've completed the first pass at multi-page input Wizards in Lift. You can see an example at: http://demo.liftweb.net/wiz Wizards are declarative, type-safe mechanisms for describing multi-page workflows. They are stateful, isolated (you can run multiple copies of the same wizard in the

Re: [Lift] Re: overriding ConnectionManager.newSuperConnection

2009-11-24 Thread David Pollak
de def dbTableName = "someschema.user" > > ...for Mapper to issue the correct queries to the database. > > Thanks, > Juan > > > > On Nov 19, 6:23 pm, David Pollak > wrote: > > On Tue, Nov 17, 2009 at 10:50 AM, opyate wrote: > > > Hello Lifters, >

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

2009-11-24 Thread David Pollak
On Mon, Nov 23, 2009 at 9:34 PM, sunanda wrote: > Hi David, > > Thank for all the help so far. > > My lift application needs to coexist with the spring servlet in > the same web application. I have configured the web.xml file for both > of the spring servlet and lift filter. > Hence I need to

Re: [Lift] Re: Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread David Pollak
On Tue, Nov 24, 2009 at 1:03 AM, tommycli wrote: > Amazing - great. For future reference - what's the preferred method > for asking for code/feature to be integrated? > Discuss on this list, once everyone is happy, open a ticket at GitHub. > > On Nov 23, 9:46 pm, Ross Mellgren wrote: > > Adde

Re: [Lift] Plans for Record

2009-11-24 Thread David Pollak
On Mon, Nov 23, 2009 at 9:27 PM, Jason Felice wrote: > I'd like to chip in, but I'm not familiar with the intended design - > specifically anything about an RDBMS backend. (e.g. Go the way of > Mapper, or use a more comprehensive backend like JPA?) > Record is not going to match JPA any time soo

Re: [Lift] Generic Ajax exception handling

2009-11-24 Thread David Pollak
On Tue, Nov 24, 2009 at 4:09 AM, Marius wrote: > Hi, > > We have today the LiftRules.exceptionHandler that we can use as a > single point where we can capture exceptions during stateful > processing which is applied for stateful DispatchPF and page > rendering. > > It looks like we can applythe s

Re: [Lift] Re: Change to support dynamic top level menu items

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:55 PM, Ross Mellgren wrote: > As much as I subscribe to the "a lack of dissent is implicit assent" > policy, I'm hoping somebody deeply familiar with SiteMap can comment on > whether this change seems like a bad idea? I guess if I don't hear anything > I'll create an iss

Re: [Lift] Re: Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:54 PM, sunanda wrote: > No I don't have. > Do I need to have this. > If you don't define the pages, then you'll get a 404. > > On Nov 24, 11:49 am, David Pollak > wrote: > > On Mon, Nov 23, 2009 at 4:27 PM, sunanda > wrot

Re: [Lift] Re: Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:27 PM, sunanda wrote: > I get the HTTP Status 404 Error: The requested resource () is not > available > > Do you have items and SiteMap entries for /grid/index /grid/ ? > > On Nov 24, 11:21 am, David Pollak > wrote: > > On Mon, Nov 2

Re: [Lift] Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:13 PM, sunanda wrote: > Hi, > I need the url pattern for my application to be "/grid/*". > > I configured the web.xml file like this: > > > LiftFilter > Lift Filter > The Filter that intercepts lift calls > net.liftweb.http.LiftFilter > > > > > LiftFilter > /gr

Re: [Lift] Lift on Azure

2009-11-23 Thread David Pollak
n Thu, Nov 19, 2009 at 3:20 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> >> On Thu, Nov 19, 2009 at 1:51 PM, Matt Harrington wrote: >> >>> Java apps have gotten a lot easier to run on Azure this week. Here's >>> a video o

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

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 12:56 PM, Joni Freeman wrote: > David, it's probably a broken Specs 1.6.1 which causes this. Please > see this: > > http://github.com/robey/xrayspecs/issues/closed/#issue/1 > > Tnx! > Cheers Joni > > On 23 marras, 22:06, David Pollak >

Re: [Lift] Allowing only 'owners' to access objects

2009-11-23 Thread David Pollak
The method that's used to look up an item in CRUDify is: def findForParam(in: String): Box[CrudType] = find(in) You can override this method: override def findForParam(in: String): Box[CrudType] = find(in).filter(_.canBeViewedBy(User.currentUser)) And then implement: def canBeViewedBy(who

Re: [Lift] Re: Strip header from a subset of pages

2009-11-23 Thread David Pollak
en a ticket and we'll add a LiftRule for it. > > -harryh > > On Nov 23, 3:03 pm, David Pollak > wrote: > > If you set S.skipDocType = false during the processing of the request for > > these devices, the stuff will be omitted. > > > > > > >

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

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 12:02 PM, Ross Mellgren wrote: > mvn dependency:tree > Cool. Thanks! > > -Ross > > On Nov 23, 2009, at 2:55 PM, David Pollak wrote: > > Folks, > > I've narrowed down part of the slowness problem. There's a reference to > ja

Re: [Lift] Strip header from a subset of pages

2009-11-23 Thread David Pollak
If you set S.skipDocType = false during the processing of the request for these devices, the stuff will be omitted. On Mon, Nov 23, 2009 at 11:49 AM, harryh wrote: > I want to send a subset (based on the path) of my pages without an xml? header. Is there an easy way to do this? > > I want to

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

2009-11-23 Thread David Pollak
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 reference?\ Thanks, David -- Lift, the simply functional web framewor

Re: [Lift] NPE in S.?! if used outside a request

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 11:01 AM, Ross Mellgren wrote: > So would you prefer no change or change to have better error message? > Change to have a better error message > > -Ross > > On Nov 23, 2009, at 1:55 PM, David Pollak wrote: > > I am okay with an NPE thrown from u

<    2   3   4   5   6   7   8   9   10   11   >