Re: [Lift] Re: QueryParams and joins

2010-01-05 Thread David Pollak
concerned that this creates an instance for each of the users in tag tag even though i only need the top x. Thanks for helping me out :) On Jan 5, 1:47 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jan 4, 2010 at 3:24 PM, Mads Hartmann mads...@gmail.com wrote: Hello, I'm

Re: [Lift] Question: How to emulate exit behavior with LiftActors

2010-01-05 Thread David Pollak
On Tue, Jan 5, 2010 at 8:56 AM, Jcon javarad...@gmail.com wrote: I'm new to scala and lift, and I've been hacking with a LiftActor used to a local mail server for development based on the post by Ryan Donahue:

Re: [Lift] Minor breaking changes -- LiftRules.getResourceAsStream and LiftRules.finder

2010-01-05 Thread David Pollak
. ;-) And if you need laziness, you could use one of the usual suspects: lazy val, unapplied function, FatLazy, etc. alex On Thu, Dec 31, 2009 at 3:48 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I've changed LiftRules.getResourceAsStream and LiftRules.finder to return

Re: [Lift] findAll and inner/outer joins

2010-01-05 Thread David Pollak
On Wed, Dec 23, 2009 at 10:18 PM, Dmitry Olyenyov dmitry.olyen...@gmail.com wrote: Hi! Help me, please, with example of inner and outer relations in findAll query. Is it possible to do without manual BySQL()? I want to do following select: select * from payment_order o join client c on

Re: [Lift] Re: QueryParams and joins

2010-01-05 Thread David Pollak
faster, more stable and better supported than 1.0. On Jan 5, 8:54 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jan 5, 2010 at 11:51 AM, Mads Hartmann mads...@gmail.com wrote: Sure thing, it's quite long though :) Just one thing, i added the following for it to compile

Re: [Lift] Re: multiple forms on a page.

2010-01-05 Thread David Pollak
The easiest thing to do is for you to post your project as a complete runnable whole to GitHub (just make a public repository). I'll clone the repository, fix the issue and you'll see the diff and have a running project. Sound good? On Tue, Jan 5, 2010 at 6:32 PM, daiwhea daiw...@gmail.com

Re: [Lift] Re: Skittr example in bad shape

2010-01-05 Thread David Pollak
UserIdInfo(id, _,_,_) = Friend.findAll(By (Friend.owner, userId), By(Friend.friend, id)).foreach(_.delete_!) case _ = On 17 joulu, 16:35, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Dec 17, 2009 at 4:35 AM, Vesa brut...@gmail.com wrote: Hi, I was trying

Re: [Lift] Templating in lift

2010-01-04 Thread David Pollak
On Sun, Jan 3, 2010 at 4:10 PM, Mads Hartmann mads...@gmail.com wrote: Hello everyone, I just wrote a small blog post that contains an example of how you use templates in Lift when you need to iterate over a collection of data. This took me a bit of researching and coding to figure out so I'm

Re: [Lift] Problem with creating new project

2010-01-04 Thread David Pollak
Can you point us to where you found the instructions to use archetype:create so we can correct the source? On Sat, Jan 2, 2010 at 8:15 PM, Jaroslaw Zabiello hipertrac...@gmail.comwrote: I cannot create a new project because of Embedded error: The META- INF/maven/archetype.xml descriptor

Re: [Lift] Re: Minor breaking changes -- LiftRules.getResourceAsStream and LiftRules.finder

2010-01-04 Thread David Pollak
:48, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I've changed LiftRules.getResourceAsStream and LiftRules.finder to return Box[Applier[InputStream]] rather than Box[InputStream]. Applier has a single method, apply[T] which takes an InputStream = T and insures

Re: [Lift] Re: source of working demo of Lift+JPA on google app engine

2010-01-04 Thread David Pollak
On Sun, Jan 3, 2010 at 11:12 PM, qingshan qingshan@gmail.com wrote: Looks like no one knows the answer or don't want to answer my first post in Lift group. and the only thing I can do is to try JDO? (thanks a lot to ymnk) Thanks anyway, Qingshan On Dec 26 2009, 8:51 pm, qingshan

Re: [Lift] Re: Minor breaking changes -- LiftRules.getResourceAsStream and LiftRules.finder

2010-01-04 Thread David Pollak
at 7:58 AM, greekscala hellectro...@gmail.com wrote: Hello, I think applier is to general. applier for...? As Naftoli said, a name like StreamManager or StreamHandler is clearer for a newbie like me. best regards On 31 Dez. 2009, 21:48, David Pollak feeder.of.the.be

Re: [Lift] mapper CRUDify

2010-01-04 Thread David Pollak
On Fri, Jan 1, 2010 at 11:04 AM, Gang wangga...@gmail.com wrote: Hi, I'm a newbie with Lift. with CRUDify, is it possible to override _showAllTemplate to show a limited number of columns? My table is big so I don't want to show everything when the List All menu is invoked. Unfortunately,

Re: [Lift] warning: value rewrite in object LiftRules is deprecated

2010-01-04 Thread David Pollak
On Thu, Dec 31, 2009 at 1:55 PM, Alex Black a...@alexblack.ca wrote: Two questions: 1. Whats the replacement for LiftRules.rewrite? 2. Is there a way I can write a custom Loc so that SiteMap is aware of the re-writing? Yes. Please see the Wiki code in example:

Re: [Lift] QueryParams and joins

2010-01-04 Thread David Pollak
On Mon, Jan 4, 2010 at 3:24 PM, Mads Hartmann mads...@gmail.com wrote: Hello, I'm having a problem and I'm sure it's an easy fix for someone with a bit more experience I have 3 model classes: tag, user, tweet and a join class TagUser. A tag has a list of users. If i want all of the users

Re: [Lift] IE6 Strict mode - skip ?xml version 1.0... header

2010-01-04 Thread David Pollak
On Mon, Jan 4, 2010 at 6:45 PM, Alex Black a...@alexblack.ca wrote: I've read here: http://css-discuss.incutio.com/?page=RenderingMode and here: http://hsivonen.iki.fi/doctype/ that if you include the xml declaration: ?xml version=1.0 encoding=utf-8? Then IE6 (and others?) go into

[Lift] Re: Simple deployment of Lift apps on Jetty/Nginx

2010-01-04 Thread David Pollak
:49 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I've been deploying a fair number of apps using Jetty and Nginxhttp://sysoev.ru/en/and been very pleased with the results. I've put together a package to make it wicked simple for you to do the same. To run one or more

Re: [Lift] Re: Issue with Context Handling

2009-12-31 Thread David Pollak
On Thu, Dec 31, 2009 at 8:39 AM, Marius marius.dan...@gmail.com wrote: O I think I know what the problem is: We have both: LiftRules.calcContextPath ... used by LiftSession.contextpath AND LiftRules.calculateContextPath ... used by Req.contextPath which leads to confusing

Re: [Lift] DB problems on Jetty restart

2009-12-31 Thread David Pollak
On Wed, Dec 30, 2009 at 5:15 PM, Nathan Parry npa...@gmail.com wrote: Searching turned up a few older threads similar to the problem I'm seeing, but I couldn't find any solution. Using just the skeleton project created by lift-archetype-basic, I'm getting these exceptions out of jetty:

Re: [Lift] Re: Postmortem thoughts on a small production Lift site

2009-12-31 Thread David Pollak
On Wed, Dec 30, 2009 at 4:01 PM, Nathan npa...@gmail.com wrote: Jetty seems to do questionable things with filehandles, opening multiple copies of the same template file and keeping them open too long. Setting ulimit fixes the issue of Too many open files exceptions failed

[Lift] Re: DB problems on Jetty restart

2009-12-31 Thread David Pollak
)) Note the ;AUTO_SERVER=TRUE part of the DB URL. This makes the H2 restart issue go away. There's an additional issue of ActorPing which is not restarting correctly. I've got a fix for that as well and I'll have the code up on review board in a little while. On Dec 31, 10:13 am, David Pollak

Re: [Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-31 Thread David Pollak
important to me that when people are at our site's home page, its just http://oursite.com;, not http://oursite.com/index;. Then for people who are using a container where this is a problem, it will work fine, but others can avoid the index in the url. - Alex On Dec 30, 12:49 pm, David Pollak

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-31 Thread David Pollak
merge and give you the ability to do anything Lift does. - Alex On Dec 30, 2:54 pm, David Pollak feeder.of.the.be...@gmail.com wrote: In Boot.scala (the boot method): LiftRules.passNotFoundToChain = false LiftRules.uriNotFound.prepend { case _ = generate404

[Lift] Minor breaking changes -- LiftRules.getResourceAsStream and LiftRules.finder

2009-12-31 Thread David Pollak
Folks, I've changed LiftRules.getResourceAsStream and LiftRules.finder to return Box[Applier[InputStream]] rather than Box[InputStream]. Applier has a single method, apply[T] which takes an InputStream = T and insures the InputStream is closed. This change is unlikely to impact much code out

Re: [Lift] cookie vs url sessionId precedence

2009-12-31 Thread David Pollak
I don't think there's a way to do this right now. Please open a ticket for it. I think this is Marius' department and he'll likely have good ideas. If it's a high priority issue for you, please put your timeframe in the ticket and post a link to the ticket in reply to this message. On Thu, Dec

[Lift] Happy New Year!

2009-12-31 Thread David Pollak
Folks, For some of the Lift community, it's already 2010... for others, the new year is a scant few hours away. Before I sign off until Monday, I want to wish all of you a happy, healthy, and fun 2010. Thanks for being part of the Lift community. David -- Lift, the simply functional web

Re: [Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-30 Thread David Pollak
On Tue, Dec 29, 2009 at 9:19 PM, Alex Black a...@alexblack.ca wrote: I've changed my sitemap from: Menu(Loc(index, Pair(index :: Nil, false), Home)) :: Yes, the / directory will be rendered by Lift as /index There's no way around that one. Can you explain? I don't understand.

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread David Pollak
On Tue, Dec 29, 2009 at 7:16 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Does anyone object to this approach? Any source file that's being reviewed (hopefully one or very few at a time) should be uploaded to Google Docs as a text document. Discussion can consist of the built in google

Re: [Lift] Re: Sitemap: Using instead of index and still having the current menu selected?

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 9:43 AM, Alex Black a...@alexblack.ca wrote: In a 1.1-M8 based project, http://localhost:8080/andhttp://localhost:8080/indexboth cause the Home menu item to be non-clickable. The definition of the Home menu item is Menu(Loc(Home, List(index), Home)) Understood.

Re: [Lift] Re: Handle Exception

2009-12-30 Thread David Pollak
On Thu, Dec 24, 2009 at 6:14 PM, Xuefeng Wu ben...@gmail.com wrote: It's helpful, thank you! On Thu, Dec 24, 2009 at 7:03 PM, Marius marius.dan...@gmail.com wrote: If you want a popup a dialog when an exception is thrown from an Ajax function you can do something like: import

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 8:26 AM, Marius marius.dan...@gmail.com wrote: Please open a defect here http://github.com/dpp/liftweb/issues ... whether or not this solution will make it in master will be subject for reviewboard. The solution I proposed has a breaking change by the introduction of

Re: [Lift] Happy New Year!

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 4:12 AM, koveen liep...@xs4all.nl wrote: I would like to wish everybody on this list a happy new year. A year in which it will be fun to learn more about Lift Thanks! Happy New Year to you too! Greetings, Ko -- You received this message because you are

Re: [Lift] Re: Problem with LiftFilter in 2.8.0

2009-12-30 Thread David Pollak
this, do not expect me to answer your questions or help you out in the future. Alan On Dec 23, 5:32 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 23, 2009 at 12:29 PM, Alan M alan.morten...@gmail.com wrote: So the 2.8 port branch(I'm used to subversion lingo) is broken right

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 10:30 AM, Alex Black a...@alexblack.ca wrote: Overall this feature seems most similar to 'rewriting'. E.g. the url comes in as http://localhost/foobar;, we don't recognize it, so we'll re-write it to template 404. It's not rewriting. Rewriting is the change of the

Re: [Lift] Binding error

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 11:03 AM, Igor igor...@gmail.com wrote: Hi everyone, Long time lurker, first time poster here, I've been trying to pick up Lift recently and am stuck with a seemingly simple bind: div subject:videos videos:count/ out of videos:total/ videos videos:list

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-30 Thread David Pollak
In Boot.scala (the boot method): LiftRules.passNotFoundToChain = false LiftRules.uriNotFound.prepend { case _ = generate404() } In the Boot class: def generate404(): LiftResponse = { import scala.xml.Node val resp: Box[Node] = S.setVars(expandAll - true) {

Re: [Lift] Postmortem thoughts on a small production Lift site

2009-12-30 Thread David Pollak
Cody, Thanks for such a thoughtful set of feedback. On Thu, Dec 24, 2009 at 1:11 PM, cody koeninger c...@koeninger.org wrote: We recently implemented a small, mostly static content site (http:// www.goldenfrog.com/) using Lift. Thought I'd offer up a postmortem on what worked well and what

Re: [Lift] csv request answer

2009-12-29 Thread David Pollak
On Tue, Dec 29, 2009 at 2:34 PM, Niels Boldt nielsbo...@gmail.com wrote: Hi, We need to return comma separated values as answer to an request(csv files), and I was wondering if there are any modules/plugins/extensions to lift that provides functionality to this purpose. I tried googling and

Re: [Lift] Re: How can I set a custom response StatusCode in a snippet?

2009-12-29 Thread David Pollak
As has been discussed, there are lots of ways to do a custom 404 in Lift or in the container. What other use cases are there for changing the response code for an XHTML page? On Tue, Dec 29, 2009 at 1:40 PM, Alex Black a...@alexblack.ca wrote: Hi Marius, I was trying to find a way to give a

Re: [Lift] Sitemap: Using instead of index and still having the current menu selected?

2009-12-29 Thread David Pollak
On Tue, Dec 29, 2009 at 1:23 PM, Alex Black a...@alexblack.ca wrote: I've changed my sitemap from: Menu(Loc(index, Pair(index :: Nil, false), Home)) :: Yes, the / directory will be rendered by Lift as /index There's no way around that one. All other subdirectories (e.g., Loc(foo,

Re: [Lift] Re: Lift with MS Access database

2009-12-29 Thread David Pollak
On Sun, Dec 27, 2009 at 6:56 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Although in general I think that instead of Lift hardcoding its set of drivers, it should allow anyone to subclass DriverType and supply it to Lift. It does. On Sun, Dec 27, 2009 at 12:41 PM, Timothy Perrett

Re: [Lift] Re: Lift with MS Access database

2009-12-29 Thread David Pollak
On Tue, Dec 29, 2009 at 12:44 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: If you're going to switch anyway, note that DPP generally recommends PostgreSQL over MySQL. I'd use H2 in place of access. There's no need to install anything and H2 will perform as well as Access.

Re: [Lift] Re: Nice 404s sans Redirect

2009-12-29 Thread David Pollak
Keep in mind that Lift's behavior for 404s differs between development and production mode in Lift 1.1-xxx To have your app/Lift handle a 404 rather than passing it to your web container, in Boot.scala: LiftRules.passNotFoundToChain = false LiftRules.uriNotFound.prepend { case _ =

Re: [Lift] Re: Sitemap - A catch-all loc?

2009-12-29 Thread David Pollak
Please don't do this. It will open up every xml, html, and xhtml file in your webapp directory to viewing. It is very, very dangerous. On Tue, Dec 29, 2009 at 9:09 AM, Alex Black a...@alexblack.ca wrote: I got this working, like this: Menu(Loc(Catchall, Pair(Nil, true), , homepageTemp1

Re: [Lift] Re: Form does not want to send

2009-12-29 Thread David Pollak
On Tue, Dec 29, 2009 at 5:44 AM, greekscala hellectro...@gmail.com wrote: I dont think I have to take care to reference jQuery myself for lift. Lift should insert the version it needs automatically. Lift used to do this and people got in a huff about Lift requires jQuery. Further, the cost of

Re: [Lift] Snippet lifetime

2009-12-29 Thread David Pollak
On Mon, Dec 28, 2009 at 8:04 AM, Adam Warski a...@warski.org wrote: Hello, Yes, the article is out of date now... Lift now makes sure that multiple references to a single snippet in the same request context use the same instance of that snippet. I see, so the rationale behind using

Re: [Lift] Snippet lifetime

2009-12-29 Thread David Pollak
On Tue, Dec 29, 2009 at 3:36 PM, Ross Mellgren dri...@gmail.com wrote: On Dec 29, 2009, at 6:28 PM, David Pollak wrote: On Mon, Dec 28, 2009 at 8:04 AM, Adam Warski a...@warski.org wrote: Hello, Yes, the article is out of date now... Lift now makes sure that multiple references

Re: [Lift] Re: Snippet lifetime

2009-12-29 Thread David Pollak
On Tue, Dec 29, 2009 at 1:58 AM, Adam Warski a...@warski.org wrote: Hello, Well for changing the tutorial form into an ajax form I guess the best solution is to store the model instance in a RequestVar and simply set it to a new instance after saving. So I don't have any immediate

Re: [Lift] Re: [ANN] Lift 1.1-M8

2009-12-29 Thread David Pollak
somewhere else now? Or do they typically get added a bit later? -- Jim On Mon, Dec 14, 2009 at 11:37:02AM -0800, David Pollak wrote: Date: Mon, 14 Dec 2009 11:37:02 -0800 From: David Pollakfeeder.of.the.be...@gmail.com To: liftwebliftweb@googlegroups.com Subject: [Lift

Re: [Lift] Lift is awesome (with reservations)

2009-12-29 Thread David Pollak
Folks, I'm going to respond to this thread in a single post. First, let me step back and give a little of my history. I've been writing commercial software for more than 30 years. I've delivered commercial software in BASIC, Pascal, 6502 Assembly Language, 8051 Assembly language, C, Lightspeed

Re: [Lift] Re: Problem with LiftFilter in 2.8.0

2009-12-23 Thread David Pollak
:55 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Lift *DOES NOT* work on Scala 2.8 Beta1 RC4 5. Do not even try it. We are currently working with EPFL to resolve these issues. Lift 1.1-M8 and Lift 1.1-SNAPSHOT only work with Scala 2.7.7. That is the *only

[Lift] Re: [scala-internals] RC5 candidate for the first 2.8.0 beta

2009-12-22 Thread David Pollak
I'm cc'ing this to the Lift list. Perhaps Indrajit or another Maven guru can help out. On Tue, Dec 22, 2009 at 2:32 AM, martin odersky martin.oder...@epfl.chwrote: On Tue, Dec 22, 2009 at 11:11 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/12/22 martin odersky

Re: [Lift] accessing Glassfish javamail through jndi

2009-12-22 Thread David Pollak
On Tue, Dec 22, 2009 at 4:35 AM, Sandeep san...@gmail.com wrote: hi guys, Just starting out with the lift framework. My intention is to get lift webapps working within glassfish app server. I wanted to know whether it is possible to access a Glassfish javamail configuration (say,

[Lift] Re: [scala-internals] RC5 candidate for the first 2.8.0 beta

2009-12-22 Thread David Pollak
Martin, You can download a tarball from: http://github.com/dpp/liftweb/tree/280_port/ Go to that page and look for the download button. You'll be presented with the option of tar or zip. I'll also send you the tarball privately. Thanks, David On Tue, Dec 22, 2009 at 5:12 AM, martin odersky

Re: [Lift] Lift and chunked transfer-encoding

2009-12-22 Thread David Pollak
On Tue, Dec 22, 2009 at 2:38 PM, Alex Black a...@alexblack.ca wrote: I've got a large response I'd like to send out, and I'd like to chunk it up. http://en.wikipedia.org/wiki/Chunked_transfer_encoding Does Lift provide any built in support for this? No. I've explored using

Re: [Lift] Re: Lift and chunked transfer-encoding

2009-12-22 Thread David Pollak
it as a big file on disk and use the StreamingResponse class? - Alex On Dec 22, 5:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Dec 22, 2009 at 2:38 PM, Alex Black a...@alexblack.ca wrote: I've got a large response I'd like to send out, and I'd like to chunk it up

Re: [Lift] Re: Problem with LiftFilter in 2.8.0

2009-12-22 Thread David Pollak
Lift *DOES NOT* work on Scala 2.8 Beta1 RC4 5. Do not even try it. We are currently working with EPFL to resolve these issues. Lift 1.1-M8 and Lift 1.1-SNAPSHOT only work with Scala 2.7.7. That is the *only* version of Scala that Lift 1.1-M8 and SNAPSHOT work with. If you have any other

Re: [Lift] Re: 280_port and yuicompressor problem

2009-12-22 Thread David Pollak
We are not officially supporting Scala 2.8 Beta1 RCxxx. Until Scala 2.8 Beta1 is released, there will be no attempts to make this stuff work. Please use Scala 2.7.7 If you have a production application and a compelling reason for using Scala 2.8, please contact me off-list to discuss support

Re: [Lift] Status of DB backend for record?

2009-12-21 Thread David Pollak
I think it's safe to say Mapper will live into the indefinite future, so please make your changes on Mapper. On Mon, Dec 21, 2009 at 6:30 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, What's the status of the DB backend for Record? I'm asking because, I'm about to start adding temporal

Re: [Lift] Re: **Important** Announcing the Lift 2.0 branch

2009-12-21 Thread David Pollak
On Sun, Dec 20, 2009 at 10:37 PM, Xuefeng Wu ben...@gmail.com wrote: That's great that Lift2.0 is on Scala 2.8 Lift is not on Scala 2.8 at this time. There is an experimental branch that we're using to track master which compiles a subset of Lift against Scala 2.8. At some point in the

Re: [Lift] The future of lift-core

2009-12-21 Thread David Pollak
On Sun, Dec 20, 2009 at 11:39 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: Folks, lift-core is a 'meta' project that can be added as a dependency to a Lift project to pull in all the Lift modules. This serves as a singular configuration point in a Lift based application. However,

Re: [Lift] Directory structure

2009-12-21 Thread David Pollak
On Sun, Dec 20, 2009 at 12:48 PM, Alex Boisvert alex.boisv...@gmail.comwrote: I don't think it's worth a lot of effort. If it's been tried and doesn't work nicely, I'm fine with sticking with the current structure. +1 I dislike the current lift-xxx structure, but we've got higher

Re: [Lift] PayPal X

2009-12-21 Thread David Pollak
On Sun, Dec 20, 2009 at 2:42 PM, Timothy Perrett timo...@getintheloop.euwrote: Guys, Is their any appetite for adding support for the new Paypal X services? https://www.x.com/index.jspa Basically it allows you to seamlessly integrate the billing cycle without transferring to paypal I

Re: [Lift] Re: CMS or wiki built with Lift?

2009-12-21 Thread David Pollak
On Sun, Dec 20, 2009 at 1:43 PM, jlist9 jli...@gmail.com wrote: Thanks! No checkins for hoisted yet. I'll check out Democritus. I started working on Hoisted for my local elementary school and got un-sidetracked with paying work. Sorry. On Sun, Dec 20, 2009 at 12:44 PM, Randinn

Re: [Lift] Validation errors shown on CRUDify models?

2009-12-21 Thread David Pollak
On Mon, Dec 21, 2009 at 1:53 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: tommycli tommy...@ucla.edu writes: Are validation errors shown on CRUDify create/edit pages? I have validators set up like this: object subdomain extends MappedString(this,64) { override def

Re: [Lift] Re: PayPal X

2009-12-21 Thread David Pollak
, all is good. Cheers, Tim On Dec 21, 6:58 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Dec 20, 2009 at 2:42 PM, Timothy Perrett timo...@getintheloop.euwrote: Guys, Is their any appetite for adding support for the new Paypal X services? https://www.x.com

Re: [Lift] How can i specify the Interval time for the Comet ?

2009-12-19 Thread David Pollak
Neil, The polling is not periodic, it's constant and the polling for Comet takes place immediately (well 100ms after the page loads). What is the advantage that you see to a periodic poll rather than the continuous long poll that is currently implemented? Thanks, David On Sat, Dec 19, 2009 at

Re: [Lift] [lift] Building Lift with scala 2.8.0

2009-12-19 Thread David Pollak
Do you have a production app that depends on Scala 2.8? Is there a part of Lift that you immediately need ported to 2.8? On Sat, Dec 19, 2009 at 1:15 PM, Channing Walton channingwal...@mac.comwrote: I would like to use Lift with scala 2.8.0 but need some helping building the branches. I've

Re: [Lift] Re: (Maybe bug)comet long polling into javascript loop?

2009-12-18 Thread David Pollak
On Fri, Dec 18, 2009 at 1:58 AM, Andrea Peruffo a.peru...@mcmspa.it wrote: And this does not affect performances? or server side computations? The short answer is that it does increase the amount of HTTP traffic, but with HTTP keep-alive, that's not a lot of new TCP/IP connections. On the

Re: [Lift] Re: Problem in Lift 1.1-SNAPSHOT ?

2009-12-18 Thread David Pollak
(the other Lift modules) once 2.8 Beta 1 is out and the Scala depencies are ported to 2.8 Beta1 On 12月18日, 午前8:38, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Dec 17, 2009 at 2:08 PM, ngocdaothanh ngocdaoth...@gmail.com wrote: I checkout the source code from GitHub, do mvn

Re: [Lift] stable identifier required - problems with rewriting requests

2009-12-18 Thread David Pollak
For stable identifers, see the Scala Language Specification, section 8.1.4: http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaReference.pdf You can also see this discussion: http://old.nabble.com/About-Class-Type-match-td22309426.html Short answer is that you

Re: [Lift] Re: MetaMapper broke LifecycleCallbacks ?

2009-12-18 Thread David Pollak
On Fri, Dec 18, 2009 at 9:28 AM, night_stalker usur...@gmail.com wrote: Got it, I was a little bit confused :) class X extends LongKeyedMapper[X] with IdPK { ... } object X extends X with LongKeyedMetaMapper[X] { override def beforeSave = List((x: X) = { println(hi) () }) }

[Lift] Re: [scala-tools] Nexus/Hudson maitenance on scala-tools.org

2009-12-18 Thread David Pollak
On Fri, Dec 18, 2009 at 12:38 PM, Josh Suereth joshua.suer...@gmail.comwrote: All, Nexus/Hudson will be temporarily disabled Saturday/Sunday from 8-11pm EST. These services are being upgraded. I'll post an email 15 minutes before the actual shutdown and immediately after things are back

Re: [Lift] Radio labels

2009-12-18 Thread David Pollak
On Sun, Dec 13, 2009 at 9:08 PM, Todd ojint...@gmail.com wrote: Looking to properly label my radios with label for=inputid/ labelinput id=inputid /. Here's my current snippet: def create(xhtml: NodeSeq) : NodeSeq = { def submitHandler() = {

Re: [Lift] jsonCall for clickable links

2009-12-18 Thread David Pollak
On Thu, Dec 10, 2009 at 12:13 PM, Nolan Darilek no...@thewordnerd.infowrote: Hello, all. I'm sure this is an incredibly silly mistake on my part, but I've never really done AJAX until playing with Lift and am at a loss as to what's going wrong. I'm dusting off my old geolocation web app. My

Re: [Lift] More AJAX issues

2009-12-18 Thread David Pollak
On Fri, Dec 11, 2009 at 8:21 AM, Nolan Darilek no...@thewordnerd.infowrote: Hello. Sorry for being the squeaky wheel on this one, but I'm really at a loss with no way to know if this is an issue with me, or with how I'm doing things in Lift. I've also been at this particular problem for a bit

Re: [Lift] Ajax Forms and Binding

2009-12-18 Thread David Pollak
On Fri, Dec 18, 2009 at 3:22 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi all, I think there is a simple answer to this, but I'm a little confused. I want to update a bound element when my Ajax form is submitted. Here's a simple version based upon what I gleaned from the wiki and the

Re: [Lift] JS event source in a server side handler

2009-12-18 Thread David Pollak
This code does what I think you want: package com.liftcode.snippet import _root_.scala.xml.{NodeSeq, Text} import _root_.net.liftweb.util._ import _root_.net.liftweb.common._ import com.liftcode.lib._ import Helpers._ import _root_.net.liftweb.http._ import js._ import JsCmds._ import JE._

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

2009-12-18 Thread David Pollak
( loginPageURL, RedirectState( ()={loginRedirect.set(uri)}) ) } ) ... } ### Cheers, Neil On Dec 1, 8:15 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Nov 29, 2009 at 12:17 AM, Neil.Lv anim...@gmail.com wrote: Hi all, I want to redirecto to a specify

Re: [Lift] Re: API-Doc generation help, pls

2009-12-18 Thread David Pollak
On Mon, Nov 16, 2009 at 12:33 PM, alux alu...@googlemail.com wrote: Back to the first computer: I get the impression, its problems were result of bad connection. now it looks different. But 1. still wrong, 2. different then computer 2 :- ( See below. Thank you. a.

Re: [Lift] Re: DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-18 Thread David Pollak
= e.printStackTrace; Empty } } def releaseConnection(conn: Connection) { conn.close } } On Dec 18, 8:05 am, David Pollak feeder.of.the.be...@gmail.com wrote: Please try doing a mvn clean and then retry your application. I have seen no problems with the dozen+ Lift

Re: [Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-18 Thread David Pollak
in postings.* * * On Fri, Dec 18, 2009 at 7:22 PM, Jarod Liu liuyuan...@gmail.com wrote: * the attached package is the sources. It just the lift-archetype-basic project with changes to use mysql. without the changes work fine using h2 DB. On Dec 19, 8:51 am, David Pollak feeder.of.the.be

Re: [Lift] Skittr example in bad shape

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 4:35 AM, Vesa brut...@gmail.com wrote: Hi, I was trying to run the skittr example from the lift-examples and it doesn't seem to work. It's demonstrating usage of comet but it doesn't get that far as the comet actor never receives any messages due to a bug. Also the

Re: [Lift] Re: Funny behavior of head merging with nested head blocks

2009-12-17 Thread David Pollak
not overwrite a tag. with best regards On 16 Dez., 21:54, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 11:55 AM, Ross Mellgren dri...@gmail.com wrote: I was diagnosing some incorrect HTML in our application using Lift, and I found a strange behavior of head

Re: [Lift] Problem in Lift 1.1-SNAPSHOT ?

2009-12-17 Thread David Pollak
Did you do an mvn clean compile? On Thu, Dec 17, 2009 at 9:27 AM, earthling_paul paul.ber...@gmail.comwrote: While compiling my samples with Lift 1.1-SNAPSHOT I get this Compiler- Error: [ERROR] D:\Projekte\TestProjects\hello-lift-11\src\main\scala\net \liftweb\hello\snippet\TD.scala:76:

Re: [Lift] Generalized jQuery function missing?

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 2:59 PM, Jonathan Hoffman jonhoff...@gmail.comwrote: Does something like this exist? I didn't see it, but maybe it was in my blind spot case class JqFunc(function:String, params:JsExp*) extends JsExp with JQueryRight with JQueryLeft { override val toJsCmd =

Re: [Lift] Re: Problem in Lift 1.1-SNAPSHOT ?

2009-12-17 Thread David Pollak
on the master branch always compiles. I just did a checkout and compilation of the lift-jta module and it worked just fine. On Dec 18, 3:17 am, David Pollak feeder.of.the.be...@gmail.com wrote: Did you do an mvn clean compile? On Thu, Dec 17, 2009 at 9:27 AM, earthling_paul paul.ber

Re: [Lift] Confused about validation

2009-12-17 Thread David Pollak
I think I have to split the wizard stuff out so you can declare a single screen with validation. On Thu, Dec 17, 2009 at 11:23 AM, Alex Boisvert alex.boisv...@gmail.comwrote: I think the idea is to be a little more declarative on defining the form and separate the low-level concerns of

Re: [Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-17 Thread David Pollak
Please try doing a mvn clean and then retry your application. I have seen no problems with the dozen+ Lift apps I work with related to connections not working between M7 and M8. On Thu, Dec 17, 2009 at 5:59 AM, Jarod Liu liuyuan...@gmail.com wrote: The same code works fine in 1.1M7. Anyone

[Lift] AWS related Lift modules

2009-12-17 Thread David Pollak
Folks, Jon mentioned he's got some S3-related code he might dump into Lift when he has a chance. Having that sooner rather than later would be a win for me... also if anyone out there has SQS related code, I'd love to see that in Lift... or I'll write it next week. Thanks, David -- Lift, the

Re: [Lift] Re: use S and templating without state?

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 4:17 PM, Peter Robinett pe...@bubblefoundry.comwrote: Sorry, I forget you wanted to use templating. You'd want your showAchievements() to return an XHTMLResponse with the html you've build. TemplateFinder can help, but LiftSession.processSurroundAndInclude which you'd

Re: [Lift] By default DB.buildLoanWrapper is eager (Jeppe, please read)

2009-12-17 Thread David Pollak
On Tue, Dec 8, 2009 at 12:34 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: Folks, A month or so ago, I made the DB.buildLoanWrapper lazy. While it provided a request-duration transaction, it did not actually pull the JDBC connection

Re: [Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-17 Thread David Pollak
server is on the same machine, and that appears to have corrected the problem... to that end, has any of the connection stuff changed in mapper of late? If so, potentially there is a problem. Cheers, Tim On 18 Dec 2009, at 00:05, David Pollak wrote: Please try doing a mvn clean and then retry

Re: [Lift] lift_successRegisterGC()

2009-12-16 Thread David Pollak
On Wed, Dec 16, 2009 at 5:47 AM, Alex Black a...@alexblack.ca wrote: I see the following javascript on each of my pages in my site: // ![CDATA[ jQuery(document).ready(function() {lift_successRegisterGC();}); var lift_page = 'F1212351415633FZT'; // ]] I don't think its necessary for what

Re: [Lift] Funny behavior of head merging with nested head blocks

2009-12-16 Thread David Pollak
On Wed, Dec 16, 2009 at 11:55 AM, Ross Mellgren dri...@gmail.com wrote: I was diagnosing some incorrect HTML in our application using Lift, and I found a strange behavior of head merging (I assume) when you emit a head tag into a head tag from the snippet. The code speaks better than I do

Re: [Lift] Re: Duplicate Keys Created by Schemefier

2009-12-16 Thread David Pollak
On Wed, Dec 16, 2009 at 11:07 AM, Peter Robinett pe...@bubblefoundry.comwrote: Fair enough, but isn't this still a non-optimal situation with the MySQL database driver? What is your proposed change? Peter On Dec 15, 7:23 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue

Re: [Lift] Re: lift_successRegisterGC()

2009-12-16 Thread David Pollak
On Wed, Dec 16, 2009 at 5:56 AM, Alex Black a...@alexblack.ca wrote: Are you using any Comet or Ajax or any Lift generated form elements? If you are using any of these (anything where Lift is storing a function on the server-side and presenting the function as a GUID on the client side),

Re: [Lift] Re: lift_successRegisterGC()

2009-12-16 Thread David Pollak
) of a page? I'm betting that you're using some GUID - function stuff... it's pretty hard not to in Lift. On Dec 16, 4:03 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Dec 16, 2009 at 5:56 AM, Alex Black a...@alexblack.ca wrote: Are you using any Comet or Ajax or any Lift

Re: [Lift] Re: Location on Mac?

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 8:32 AM, Donald McLean dmclea...@gmail.com wrote: Due to the practical realities of the organization that I work in, I'm not using Maven at all. Is there some way that I can just download the Lift jars and install them somewhere? The Lift jars are located at:

Re: [Lift] How to revert json to lift model?

2009-12-15 Thread David Pollak
On Tue, Dec 15, 2009 at 4:37 AM, Xuefeng Wu ben...@gmail.com wrote: Hi, I store the lift model to json, but cannot revert json to lift model, any idea? For example: My model: class Book extends LongKeyedMapper[Book] with IdPK{ def getSingleton = Book object name extends

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