Re: [Lift] Re: Netty integration

2010-01-31 Thread Timothy Perrett
I've looked at your code and it looks good - im not a couch user, but the implementation looks good to me. Push to master ;-) Cheers, Tim On 27 Jan 2010, at 16:31, Marius wrote: I'd strongly encourage you to do it. I was planning to work on it but I never seem to find slots for it :( If

Re: [Lift] Re: Image resize code

2010-01-31 Thread Timothy Perrett
IMO, these are separate concerns. lift-imaging is purely for image manipulation and caching etc does not belong there. Cheers, Tim On 28 Jan 2010, at 20:25, Strom wrote: By caching I mean like EHCache, where you serve an image from the cache (some folder on the file system) instead of

Re: [Lift] lift-couchdb

2010-01-31 Thread Timothy Perrett
Ross, I've just got back from Italy... taken a look at your code and it looks good to me. Go for it :) Cheers, Tim On 25 Jan 2010, at 19:24, David Pollak wrote: Ross, Thanks for this contribution!! I don't have the bandwidth to review it but would encourage folks from the community

[Lift] [lift] static data

2010-01-31 Thread Channing Walton
Hi, I am building an app which needs some static data added whenever we rebuild the database. I would like to do that using the mapper api but it looks like I need to do it table by table by overriding dbAddTable. I would prefer to do this in one place for the whole model, preferably using the

Re: [Lift] Re: beginner help

2010-01-31 Thread Lachlan Deck
On 31/01/2010, at 2:57 PM, David Pollak wrote: Scala is very, very version sensitive. So I've read (at least from 2.7.x to 2.8). Until there's a version of the Scala plugin that's built with Scala 2.8 Beta1, you are going to see lots of subtle and not so subtle issues. Yeah I'm prepared

Re: [Lift] Re: beginner help

2010-01-31 Thread Lachlan Deck
On 31/01/2010, at 3:08 PM, Naftoli Gugenheim wrote: Two possible reasons for the J that come to mind are (1) the project lost its Scala nature; add it again via the context menu; I had actually tried that. It still had the nature - so I tried removing and readding. But that made no difference

[Lift] should use getColumnLabel insead of getColumnName in DB.resultSetToXXX

2010-01-31 Thread Jarod Liu
http://github.com/dpp/liftweb/issues/issue/316 by using getColumnLabel I can chose between a real column name or a alias name by the AS clause in SQL. with the getColumnName method I don't have a choice I wrap the DB.performQuery result to a map list in my app, and this really hurt me. -- You

[Lift] Re: mapper CRUDify

2010-01-31 Thread Gang
Looks like there is also a bug with pagination on List All page. It seems going forward with Next is fine, though I haven't tried going all the way to the end. But I can't go back to the first page with Previous. The farthest I can back to is second page. I'll have to re-enter the List all to

[Lift] Re: static data

2010-01-31 Thread Timothy Perrett
You could in theory have some run task that just essentially executed a bunch of mapper calls, but it sounds like you want more of a build up and tear down approach a la: http://code.google.com/p/scala-migrations/ Perhaps that is what you are after? Cheers, Tim On Jan 31, 11:59 am, Channing

[Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread Timothy Perrett
I just attempted to build the branch and got the following: Running net.liftweb.common.BoxSpecTest org.apache.maven.surefire.booter.SurefireExecutionException: org/specs/ matcher/AnyBaseMatchers$$anon$4; nested exception is java.lang.NoClassDefFoundError: org/specs/matcher/AnyBaseMatchers$$anon

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread Indrajit Raychaudhuri
Welcome back, Tim! I am suspecting that an incorrect spec version is sneaking in. Just to confirm - the maintained 2.8 port branch is 280_port_refresh. Cheers, Indrajit On 31/01/10 11:02 PM, Timothy Perrett wrote: I just attempted to build the branch and got the following: Running

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread Timothy Perrett
Thanks Indrajit :) That was my thought also, running a top level mvn clean install on 280_port_refresh results in the stack trace below, yes. Cheers, Tim On 31 Jan 2010, at 18:07, Indrajit Raychaudhuri wrote: Welcome back, Tim! I am suspecting that an incorrect spec version is sneaking

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread Indrajit Raychaudhuri
The output is fine. Curious to know what puzzled you in the output. Can you please send me the output of mvn help:effective-pom for lift-common? Cheers, Indrajit On 31/01/10 11:47 PM, Timothy Perrett wrote: However, the dependency tree looks like: [INFO]

Re: [Lift] lift-couchdb

2010-01-31 Thread Ross Mellgren
Thanks! can you throw a ship it on the issue306 RB request for documentation purposes? Also, if you feel like reviewing issue305 which it depends on while you're there... ;-) -Ross On Jan 31, 2010, at 6:56 AM, Timothy Perrett timo...@getintheloop.eu wrote: Ross, I've just got back

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread Indrajit Raychaudhuri
I was suspecting Java 1.5 (if you were on 10.5). That's not the case. So I am completely stumped now. See if you can compare with the Hudson copy (http://hudson.scala-tools.org/view/Lift/job/lift-framework-scala280/) - IRC On 01/02/10 12:55 AM, Timothy Perrett wrote:

[Lift] Re: [lift] static data

2010-01-31 Thread Channing Walton
That does look interesting - reminds me of liquibase but being in Scala is more useful. I was hoping there was a way to do this under lift's framework so that I can work with model objects. Your idea of using a run task may be the way. Would it make sense to have a hook in schemifier that is

[Lift] Re: [lift] static data

2010-01-31 Thread Channing Walton
Looking around MetaMapper and Schemifier, it looks like I could override BaseMetaMapper.afterSchemifier to do what i want although I would need to nominate a mapper to do this work (User would suffice). I'll try it... Timothy Perrett wrote: You could in theory have some run task that just

[Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread Timothy Perrett
Im just doing a fresh clone and checkout to see if something was screwed in my local build. Cheers, Tim On Jan 31, 7:44 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote: I was suspecting Java 1.5 (if you were on 10.5). That's not the case. So I am completely stumped now. See if you can

Re: [Lift] Re: [lift] static data

2010-01-31 Thread David Pollak
On Sun, Jan 31, 2010 at 12:17 PM, Channing Walton channingwal...@mac.comwrote: Looking around MetaMapper and Schemifier, it looks like I could override BaseMetaMapper.afterSchemifier to do what i want although I would need to nominate a mapper to do this work (User would suffice). The

Re: [Lift] Re: [lift] static data

2010-01-31 Thread Naftoli Gugenheim
If you only initialize the database all at once, why not just put the code in Boot? - Channing Waltonchanningwal...@mac.com wrote: Looking around MetaMapper and Schemifier, it looks like I could override BaseMetaMapper.afterSchemifier to do what i want

[Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread Timothy Perrett
OK, so that really didn't help. How is it building OK on hudson?! That makes no sense at all. I guess for the moment i'll just have to work with the JARs built by hudson. Cheers, Tim On Jan 31, 8:44 pm, Timothy Perrett timo...@getintheloop.eu wrote: Im just doing a fresh clone and checkout to

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-31 Thread David Pollak
The problem is that there's no ScalaCheck version for Scala 2.8.0 Beta1. The Beta1-RC5 compilation of ScalaCheck was causing the wrong Scala libraries to be loaded. This is seriously suboptimal. On Sun, Jan 31, 2010 at 12:44 PM, Timothy Perrett timo...@getintheloop.euwrote: Im just doing a

Re: [Lift] Re: [lift] static data

2010-01-31 Thread David Pollak
On Sun, Jan 31, 2010 at 12:54 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: If you only initialize the database all at once, why not just put the code in Boot? Because if the code's in Boot, it will be executed every time the code is run. - Channing

[Lift] Re: Re: [lift] static data

2010-01-31 Thread Channing Walton
Yes I could do that - not sure what I need to do with connections etc to make that happen though :wistle: Naftoli Gugenheim wrote: If you only initialize the database all at once, why not just put the code in Boot? - Channing

Re: [Lift] should use getColumnLabel insead of getColumnName in DB.resultSetToXXX

2010-01-31 Thread David Pollak
Please do not open tickets without a discussion on this list first. Please close the ticket and start a discussion. On Sun, Jan 31, 2010 at 5:12 AM, Jarod Liu liuyuan...@gmail.com wrote: http://github.com/dpp/liftweb/issues/issue/316 by using getColumnLabel I can chose between a real column

Re: [Lift] Re: beginner help

2010-01-31 Thread David Pollak
On Sun, Jan 31, 2010 at 4:09 AM, Lachlan Deck lachlan.d...@gmail.comwrote: On 31/01/2010, at 2:57 PM, David Pollak wrote: Scala is very, very version sensitive. So I've read (at least from 2.7.x to 2.8). For every single version of Scala. The way that traits are implemented makes this

[Lift] CRUDify Date picker

2010-01-31 Thread The Trav
Hi All, I've been chasing this one for a while and found a few posts dancing around the edge, but so far I haven't seen any solid answer on it. Most MappedTypeField's have auto generated form fields, including Select elements if you override the correct method. I was hoping MappedDateTime would

[Lift] CRUDify Menus as sub menus

2010-01-31 Thread The Trav
Ok, this one is a bit of a beginner question, but here goes anyway. I've got a bunch of auto generated menus as part of my top level menu (about 2 per model element) and it's starting to look pretty cluttered. What I want to do, is have a crud menu, then a sub element for every model object, and

Re: [Lift] PasswordField in lift-record

2010-01-31 Thread David Pollak
On Sat, Jan 30, 2010 at 4:11 PM, Ross Mellgren dri...@gmail.com wrote: lift-mapper's MappedPassword has a method match_?, but PasswordField in lift-record does not, and I can't see a way around using it since salt_i is protected, other than subclassing PasswordField. I think a match_? method

Re: [Lift] Re: beginner help

2010-01-31 Thread Naftoli Gugenheim
I'm doing okay with eclipse's completion on 2.7.7. It usually works when there are no mismatched brackets etc. or else after closing reopening the editor. But of course I seem to be in the minority. :) - David Pollakfeeder.of.the.be...@gmail.com wrote: On

Re: [Lift] Re: [lift] static data

2010-01-31 Thread Naftoli Gugenheim
I thought there was an implicit in scope that said conditionally. :) - David Pollakfeeder.of.the.be...@gmail.com wrote: On Sun, Jan 31, 2010 at 12:54 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: If you only initialize the database all at once, why not

Re: [Lift] CRUDify Menus as sub menus

2010-01-31 Thread Naftoli Gugenheim
I'm not sure what you're asking. You want a List and Create submenu under each model without duplicate code? - The Travthe.t...@gmail.com wrote: Ok, this one is a bit of a beginner question, but here goes anyway. I've got a bunch of auto generated menus as

[Lift] JSON forms and multiple submit buttons

2010-01-31 Thread ced
I've implemented a JSON form similar to the one described in the Lift book. I need two submit buttons, each triggering a different action. So how to distinguish the submits? Unfortunately, the submit buttons themselves are not taken into account for the transferred JSON so that something like

[Lift] Re: Re: [lift] static data

2010-01-31 Thread Channing Walton
ok cool, sounds like a plan! bearfeeder wrote: On Sun, Jan 31, 2010 at 12:17 PM, Channing Walton channingwal...@mac.comwrote: Looking around MetaMapper and Schemifier, it looks like I could override BaseMetaMapper.afterSchemifier to do what i want although I would need to nominate a

Re: [Lift] Re: Upgrade to Flot 0.6

2010-01-31 Thread David Pollak
Peter, Please keep in mind the Lift IP policy. We don't pull from other repositories nor do we accept patches. We'll have to do the Flot 0.6 ourselves. Thanks, David On Fri, Jan 29, 2010 at 4:44 PM, Peter Robinett pe...@bubblefoundry.comwrote: Aaron, thanks so much for taking the

Re: [Lift] Re: Upgrade to Flot 0.6

2010-01-31 Thread Aaron Valade
I'm more than happy to submit the patch under the Lift IP policy, but I understand if you don't feel comfortable with that. And I can submit it anyway that works for you. I'm just looking to help give back to everyone that's helped me out. Albeit in a very, very small way. Sent from my iPhone On

[Lift] Re: CRUDify Menus as sub menus

2010-01-31 Thread The Trav
I'm not sure what you're asking. You want a List and Create submenu under each model without duplicate code? Current menu tree is: + Home + Create Foo + List Foo + Create Bar + List Bar + Create Ork + List Ork + Some Business + Other Business What I want is: +Home - Crud - Foo +

Re: [Lift] Re: CRUDify Menus as sub menus

2010-01-31 Thread Naftoli Gugenheim
Does this work? List(Foo, Bar).map{model: CRUDify = Menu(Loc(...), model.menus: _*) } Not tested. - The Travthe.t...@gmail.com wrote: I'm not sure what you're asking. You want a List and Create submenu under each model without duplicate code? Current

Re: [Lift] Re: Upgrade to Flot 0.6

2010-01-31 Thread Timothy Perrett
It seems like peter will take ownership of this and make it happen ASAP so a patch / diff should not be needed. Peter, please confirm when you will roll this in a branch and put it on review board? Cheers, Tim Sent from my iPhone On 31 Jan 2010, at 22:48, Aaron Valade aval...@gmail.com

[Lift] Question on Javascript calls

2010-01-31 Thread pere.vill...@gmail.com
HI all, first of all, I should present myself, as it's my first post in the group: I'm Pere Villega, a Java developer living in Dublin and learning Scala and Lift in my spare time. As a good newbie, I'll start with an obvious question: I've been reading the Lift book, and I got confused on the

[Lift] Re: should use getColumnLabel insead of getColumnName in DB.resultSetToXXX

2010-01-31 Thread Jarod Liu
david, sorry, i closed the ticket. do you accept my proposal On Feb 1, 5:06 am, David Pollak feeder.of.the.be...@gmail.com wrote: Please do not open tickets without a discussion on this list first. Please close the ticket and start a discussion. On Sun, Jan 31, 2010 at 5:12 AM, Jarod Liu

Re: [Lift] Re: Passing attributes to bound elements

2010-01-31 Thread Adam Warski
Hello, This was considered later on a defect, and not a feature. To preserve markup attributes in your bind use -% instead of - thanks, although the -% is missing support for the .toForm, as it returns a Box[NodeSeq]. And for % you need an Elem. Any ideas how to deal with that? :)

[Lift] Re: Question on Javascript calls

2010-01-31 Thread Marius
Yes Lift's JavaScript stuff is mostly used when returning Ajax response. You can also use it to serve fictive *.js files and instead of returning a js file content you can serve the request (using LiftRules.dispatch) and the actual JS returns is produced by composition of JsCmd-s. We actually do