[Lift] Re: Js normalizations

2010-03-08 Thread Peter Robinett
+! On Mar 7, 11:11 pm, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 7 March 2010 19:37, Marius marius.dan...@gmail.com wrote: If you think that this makes sense I'll add a ticket and put it in my backlog. Makes a lot of sense for me. Go for it! Heiko Company:

Re: [Lift] Lift-M2 One To Many and CRUDify

2010-03-08 Thread Jeppe Nejsum Madsen
ojonam manojo10...@gmail.com writes: Hello all, I recently tested the wiki example of Book and Authors as an exercise, and extended them with CRUDify. On generation, however, the Author field in the Book create page says : Can't Change!, instead of giving me a select list of all the

[Lift] Re: BSON support in lift-json

2010-03-08 Thread Joni Freeman
This is a tricky one. The problem with extending the AST is that the AST is implemented as an algebraic data type. And by definition it is not possible to extend such a type. One way to add BSON support is to create a new AST for it which includes all extended literals. Then add a few core

Re: [Lift] Re: Javascript Dependencies

2010-03-08 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: On Mar 6, 9:14 pm, Peter Robinett pe...@bubblefoundry.com wrote: [...] Hmmm ... anything that is outputting (x)html. We have snippets, comet actors, LiftView-s. Any of these can called multiple times but IMHO registration should happen once. For

[Lift] Re: Javascript Dependencies

2010-03-08 Thread Peter Robinett
Marius, I love the simplicity of your proposal but I think that's also its problem. Let's say I have something with several dependencies: lift:MySnipet.work lift:dependencies script src=dep1.js/ script src=dep2.js/ script src=myLib.js/ // you got the idea /lift:dependencies

[Lift] Re: Javascript Dependencies

2010-03-08 Thread Marius
On Mar 8, 11:02 am, Peter Robinett pe...@bubblefoundry.com wrote: Marius, I love the simplicity of your proposal but I think that's also its problem. Let's say I have something with several dependencies: lift:MySnipet.work   lift:dependencies     script src=dep1.js/     script

[Lift] lift-blog - lift based blogging app

2010-03-08 Thread Lukasz Kuczera
Hi Folks. I've spawned very simple blog app on lift. This is alpha version and code base is not clean (i'm quite new to scala and lift). You can pull it from github: git://github.com/kukems/lift-blog.git And there is even demo ;) http://www.acidbits.org/lift-blog/ I need your assistance in

Re: [Lift] lift-blog - lift based blogging app

2010-03-08 Thread Timothy Perrett
http://www.acidbits.org/lift-blog/ gives a 404 error? Cheers, Tim On 8 Mar 2010, at 12:51, Lukasz Kuczera wrote: Hi Folks. I've spawned very simple blog app on lift. This is alpha version and code base is not clean (i'm quite new to scala and lift). You can pull it from github:

[Lift] Re: lift-blog - lift based blogging app

2010-03-08 Thread Lukasz Kuczera
It is some issue with name based virtual hosting in apache. If i try to connect using ip address it doesn't work. http://87.204.87.110/lift-blog Fortunately its on internet facing host. Try this one: http://gates.itigo.pl:8080/lift-blog On Mar 8, 2:14 pm, Timothy Perrett timo...@getintheloop.eu

Re: [Lift] Re: Lift-M2 One To Many and CRUDify

2010-03-08 Thread Naftoli Gugenheim
You mean MappedLongForeignMapper is deprecated? - ojonammanojo10...@gmail.com wrote: Hi Jeppe, that works indeed, thanks. Although, in 2.0-M2, technically you need to extend LongMappedMapper (as MappedForeignKey is deprecated). Anyway, here is the little bit

[Lift] How to use lazy-load?

2010-03-08 Thread Jeppe Nejsum Madsen
Hi, I have a page with a somewhat lengthy first-time load. So I found lazy-load that looked handy, but it doesn't seem to work. This is my template: lift:surround with=wide at=content h2Udvikling per måned/h2 lift:lazy-load lift:performanceChart div class=span-5 Vis:br/

Re: [Lift] Trouble with lift-couchdb

2010-03-08 Thread Craig Blake
Writing into the database with the new field type works fine, but I'm running into a little hitch trying to access the value. Given the test code (again this is in the Github test project, g...@github.com:craigwblake/lift-couchdb-test.git): object TestEnum extends Enumeration { val

[Lift] Re: Lift-M2 One To Many and CRUDify

2010-03-08 Thread ojonam
Apologies, yes, that is what I meant (or rather LongMappedForeignMapper) : http://scala-tools.org/mvnsites/liftweb-1.1-M6/lift-mapper/scaladocs/net/liftweb/mapper/LongMappedForeignMapper.html Manohar On Mar 8, 3:01 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: You mean

Re: [Lift] Re: Lift-M2 One To Many and CRUDify

2010-03-08 Thread Naftoli Gugenheim
And it is used on the wiki? Would you volunteer to update it then? Thanks. - ojonammanojo10...@gmail.com wrote: Apologies, yes, that is what I meant (or rather LongMappedForeignMapper) :

[Lift] Re: How to use lazy-load?

2010-03-08 Thread Marius
Can you please send me a minimalistic example ? .. The comet actor shutdown looks correct to me as after the lazy content is rendered that comet is not needed anymore. Can you check with firebug if you get any asynchronous javascript back from the comet request? On Mar 8, 4:31 pm, Jeppe Nejsum

Re: [Lift] Re: IdPK Model boiler-plate

2010-03-08 Thread David Pollak
I'm going to implement this as a sub-trait of IdPK (anyone got a good name for the trait). So, by default, you'll get the current behavior, but if you think equality should be based on primary key rather than on the field values, you don't have to have all the boilerplate. On Sun, Mar 7, 2010 at

Re: [Lift] Re: IdPK Model boiler-plate

2010-03-08 Thread Jim Barrows
How about: PrimaryKeyEquality which would read something like: class foo extends IdPk with PrimaryKeyEquality On Mon, Mar 8, 2010 at 10:25 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I'm going to implement this as a sub-trait of IdPK (anyone got a good name for the trait). So,

[Lift] Re: lift-blog - lift based blogging app

2010-03-08 Thread TylerWeir
Cool stuff! On Mar 8, 12:20 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 8, 2010 at 4:51 AM, Lukasz Kuczera kuk...@gmail.com wrote: Hi Folks. I've spawned very simple blog app on lift. This is alpha version and code base is not clean (i'm quite new to scala and lift).

Re: [Lift] Re: BSON support in lift-json

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 12:50 AM, Joni Freeman freeman.j...@gmail.comwrote: This is a tricky one. The problem with extending the AST is that the AST is implemented as an algebraic data type. And by definition it is not possible to extend such a type. Just throwing an idea out and it's likely

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread David Pollak
On Sun, Mar 7, 2010 at 12:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Based on discussion on Review Board item 247, I want to propose the following change to the organization of Mapper specs. Currently there are four files in

[Lift] Re: [lift] 2.0-M3 JQuery 1.4

2010-03-08 Thread Channing Walton
I am interested in this too but I don't understand the lift:with-resource-id thing, where can I find out more? AnthonyW wrote: Ugh, I must have had a cache issue despite the fact that I certainly did hit refresh before... I am now seeing 1.4.2 JQuery. Regarding lift:with-resource-id, I

Re: [Lift] Re: IdPK Model boiler-plate

2010-03-08 Thread Naftoli Gugenheim
I'm very confused. Where is there currently an implementation of equals that compares all fields? And what's the difference between KeyedMapper checking primaryKeyField and IdPK checking id? - Jim Barrowsjim.barr...@gmail.com wrote: How about:

[Lift] Enable -Xcheckinit in 2.8 port?

2010-03-08 Thread Jeppe Nejsum Madsen
Hi, Just found out why the Logging stuff doesn't work on the 2.8 branch. Details here: http://permalink.gmane.org/gmane.comp.lang.scala.user/24469 Is it somehow possible to enable the -Xcheckinit flag for the 2.8 branch? Don't know how common that issue is, but it may help trap some subtle

Re: [Lift] Enable -Xcheckinit in 2.8 port?

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 10:01 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Just found out why the Logging stuff doesn't work on the 2.8 branch. Details here: http://permalink.gmane.org/gmane.comp.lang.scala.user/24469 Is it somehow possible to enable the -Xcheckinit flag for the 2.8

[Lift] Re: Lift security vulnerability

2010-03-08 Thread Dano
Thanks Joni! I appreciate the sample code. Dan On Mar 7, 8:10 am, Joni Freeman freeman.j...@gmail.com wrote: Note, it is very easy to clean up the JSON before rendering by using 'map' function: json map {   case JString(s) = JString(sripOutBinaryChars(s))   case x = x } (You just

Re: [Lift] Re: BSON support in lift-json

2010-03-08 Thread Ross Mellgren
I personally think hybrid approaches make sense for certain designs even if they are a little odd. My thought originally was having a new member of the ADT which is not final which represents extensions, e.g. JValue \_ JExtension \_ JDate where JExtensions could be ignored or passed

[Lift] Re: 2.0-M3 JQuery 1.4

2010-03-08 Thread Marius
The scaladocs of WithResourceId snippet looks like this: /** * Adds a resource id entity for each URI in order to control browser caching. * The rules of creating unique URI's are defined in LiftRules.attachResourceId function. * * pre * lt;lift:with-resource-id * lt;link ... / *

Re: [Lift] Customizing meta fields

2010-03-08 Thread Ross Mellgren
For your particular example, you can use head merge as Naftoli suggests. Head merge is a behavior of Lift templates where any head tags will be merged together for the final output, so you put your meta name=description in each of the specific places, any general head stuff you want in your

Re: [Lift] Trouble with lift-couchdb

2010-03-08 Thread Ross Mellgren
I'll have to look at this in more detail tonight. I took a quick couple hacks at it and I can honestly say I have no idea what kind of problem the Scala compiler is trying to tell you about :-/ If you avoid types, they clearly are of the same type and value (e.g.

Re: [Lift] Customizing meta fields

2010-03-08 Thread Martin Dale Lyness
Again, thank you so much for the help! The head merge feature is perfect for this situation i described and my next line of though is right inline with how you describe bind points! Thanks again! -- Martin On Mon, Mar 8, 2010 at 12:47 PM, Ross Mellgren dri...@gmail.com wrote: For your

Re: [Lift] Re: Js normalizations

2010-03-08 Thread Jim Wise
David Pollak feeder.of.the.be...@gmail.com writes: On Mon, Mar 8, 2010 at 12:36 AM, Peter Robinett pe...@bubblefoundry.com wrote: +! Does this translate to I vote you must do this? ;-) ``I vote to do this, and throw an exception if the vote is empty''? --

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Naftoli Gugenheim
I'm not 100% clear on your proposal. First of all, is what I've done (on RB) in the meantime okay (without a ticket)? Basically, I renamed ItemsListSpecs to MapperSpecs2 and put the test for issue 370 there. MapperSpecs2 only uses H2 memory db. (Any suggestions for a better name?) As for your

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Ross Mellgren
On Mar 8, 2010, at 3:00 PM, Naftoli Gugenheim wrote: I'm not 100% clear on your proposal. First of all, is what I've done (on RB) in the meantime okay (without a ticket)? Basically, I renamed ItemsListSpecs to MapperSpecs2 and put the test for issue 370 there. MapperSpecs2 only uses H2

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Jim Barrows
On Mon, Mar 8, 2010 at 1:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I'm not 100% clear on your proposal. First of all, is what I've done (on RB) in the meantime okay (without a ticket)? Basically, I renamed ItemsListSpecs to MapperSpecs2 and put the test for issue 370 there.

Re: [Lift] Re: How to use lazy-load?

2010-03-08 Thread Jeppe Nejsum Madsen
On Mon, Mar 8, 2010 at 5:42 PM, Marius marius.dan...@gmail.com wrote: Can you please send me a minimalistic example ? .. The comet actor shutdown looks correct to me as after the lazy content is rendered that comet is not needed anymore. Not easily. When I get some time I'll see if I can

[Lift] Re: [lift] 2.0-M3 JQuery 1.4

2010-03-08 Thread Channing Walton
thanks Marius, I didn't think to look for that class name. Marius Danciu-2 wrote: The scaladocs of WithResourceId snippet looks like this: /** * Adds a resource id entity for each URI in order to control browser caching. * The rules of creating unique URI's are defined in

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Naftoli Gugenheim
Currently what I did is combine ItemListSpecs with another test, so I gave it a more generic name than ItemsList, hence MapperSpecs2. The idea is that some tests really have zero to do with the vendor, but higher-level behavior. H2MemoryProvider is incidental--in memory databases are perfect

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Ross Mellgren
DriverIndependentSpecs? -Ross On Mar 8, 2010, at 3:59 PM, Naftoli Gugenheim wrote: Currently what I did is combine ItemListSpecs with another test, so I gave it a more generic name than ItemsList, hence MapperSpecs2. The idea is that some tests really have zero to do with the vendor, but

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Jim Barrows
On Mon, Mar 8, 2010 at 1:59 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Currently what I did is combine ItemListSpecs with another test, so I gave it a more generic name than ItemsList, hence MapperSpecs2. The idea is that some tests really have zero to do with the vendor, but

[Lift] Re: Js normalizations

2010-03-08 Thread Peter Robinett
Like Heiko, I vote for Marius to do what he proposes. ;-) On Mar 8, 9:47 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 8, 2010 at 12:36 AM, Peter Robinett pe...@bubblefoundry.comwrote: +! Does this translate to I vote you must do this? ;-) +1 On Mar 7, 11:11

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Naftoli Gugenheim
Not sure -- it sounded like you were describing a scenario with separate test files for each combination of area being tested and driver, where I was describing combining multiple areas in one file (like MapperSpecs is now). Maybe I misunderstood. - Jim

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Jim Barrows
On Mon, Mar 8, 2010 at 2:16 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Not sure -- it sounded like you were describing a scenario with separate test files for each combination of area being tested and driver, where I was describing combining multiple areas in one file (like MapperSpecs

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread David Pollak
On Mon, Mar 8, 2010 at 12:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I'm not 100% clear on your proposal. First of all, is what I've done (on RB) in the meantime okay (without a ticket)? What part of Please open a ticket first before putting stuff on RB. is unclear? You've consumed

[Lift] Re: Lift-M2 One To Many and CRUDify

2010-03-08 Thread ojonam
On Mar 8, 5:25 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: And it is used on the wiki? Would you volunteer to update it then? Thanks. It is updated, and I have also added a small section for CRUDify. Please feel free to comment or change if the text is not appropriate. Manohar -- You

[Lift] More dynamic Lift

2010-03-08 Thread David Pollak
Folks, I spent today cracking the code on how to implement a more dynamic Lift development cycle. Specifically, I figured out how to support (during development mode) having changes in compiled code reflected in the running application. The change to your Lift app will be a change in how you do

[Lift] Re: More dynamic Lift

2010-03-08 Thread harryh
What's the advantage of this sort of setup over using JavaRebel? -harryh -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to

[Lift] asHtml compiler exception traversing code ?

2010-03-08 Thread hexa
Hi all, I have this code : class ViewClient { val clientId = S.param (id) openOr val client = try { Client.findByKey (clientId.toLong) } catch { case e:NumberFormatException = Empty } def view (inhtml: NodeSeq) : NodeSeq = { client map ( { c = bind (client,

Re: [Lift] Re: More dynamic Lift

2010-03-08 Thread David Pollak
It's less sensitive to inner class name changes and supports changing interfaces. Connected by MOTOBLUR™ on T-Mobile -Original message- From: harryh har...@gmail.com To: Lift liftweb@googlegroups.com Sent: Tue, Mar 9, 2010 01:42:10 GMT+00:00 Subject: [Lift] Re: More dynamic Lift What's

[Lift] Re: asHtml compiler exception traversing code ?

2010-03-08 Thread hexa
Wow it seems that I now get that even without the asHtml... Using scala 2.7.7 with lift 1.1-M8 ... On Mar 8, 9:51 pm, hexa hex...@gmail.com wrote: Hi all,  I have this code : class ViewClient {   val clientId = S.param (id) openOr   val client = try {     Client.findByKey

Re: [Lift] Re: asHtml compiler exception traversing code ?

2010-03-08 Thread David Pollak
Try doing and mvn clean compile There are known issues with the Scala 2.7.x compiler related to nested traits and only partial recompilation. Connected by MOTOBLUR™ on T-Mobile -Original message- From: hexa hex...@gmail.com To: Lift liftweb@googlegroups.com Sent: Tue, Mar 9, 2010

[Lift] Re: asHtml compiler exception traversing code ?

2010-03-08 Thread hexa
Seems to work now I had a maybe weird way of getting an attribute from a box... I will try that next time Thanks! On Mar 8, 10:37 pm, David Pollakfeeder.of.the.be...@gmail.com wrote: Try doing and mvn clean compile There are known issues with the Scala 2.7.x compiler related to nested

Re: [Lift] Re: asHtml compiler exception traversing code ?

2010-03-08 Thread Naftoli Gugenheim
I had that problem a number of times and the fix was changing bindlabel - entity.field which uses implicits, to ... entity.field.is and/or ... entity.field.toString - hexahex...@gmail.com wrote: Seems to work now I had a maybe weird way of getting an attribute

Re: [Lift] Trouble with lift-couchdb

2010-03-08 Thread Ross Mellgren
So I looked into this as best I could and it seems to be a type inference error where the compiler is inferring a too-loose type binding for EnumType and therefore rejecting the assignment to a (supposedly) more specific Box[TestEnum.Value]. I have no idea how to fix the code so it deduces the

[Lift] RequestVar copy /clone ?

2010-03-08 Thread hexa
Hi, I have a RequestVar that I send to a snippet which will then do a post... But I would like the RequestVar to persist between the moment it it received in the post snippet and the post itself... The only way I found of doing it right now is like : Source Snippet : object ViewClient

[Lift] @Req for PermRedirectResponse after a site redesign

2010-03-08 Thread Bob Folkerts
I am switching my wife's hosted photography site to Liftweb, largely as a reason to learn Lift. Part of the conversion is moving the old directory structure to a cleaner structure. I wanted to redirect all of the old URI's to the modern equivalent. I read Chapter 13 of the Lift book and got the

Re: [Lift] @Req for PermRedirectResponse after a site redesign

2010-03-08 Thread Jeppe Nejsum Madsen
Bob Folkerts rob...@folkertsfotografie.com writes: I am switching my wife's hosted photography site to Liftweb, largely as a reason to learn Lift. Part of the conversion is moving the old directory structure to a cleaner structure. I wanted to redirect all of the old URI's to the modern

Re: [Lift] Re: More dynamic Lift

2010-03-08 Thread Jeppe Nejsum Madsen
On Tue, Mar 9, 2010 at 2:42 AM, harryh har...@gmail.com wrote: What's the advantage of this sort of setup over using JavaRebel? Sitemap and other things set in boot doesn't really change even if the class is reloaded by JRebel /Jeppe -- You received this message because you are subscribed to