[Lift] Re: what's in Classpath?

2009-08-31 Thread Indrajit Raychaudhuri
All that you see under src/main/resources/toserve are available via /classpath prefix. Specifically, you would be interested in the toserve path under lift- webkit and lift-widgets. The ones bundled with lift-webkit are available with zero config, just refer to them via /classpath/... in your

[Lift] Re: who can give me some case?

2009-08-31 Thread Heiko Seeberger
A Swiss job portal is about to. Cheers Heiko On Monday, August 31, 2009, Margaret mawei...@gmail.com wrote: who are using lift web now? - mawei...@gmail.com 13585201588 http://maweis.com -- My blog: heikoseeberger.name Follow me:

[Lift] Re: TableEditor article

2009-08-31 Thread Randinn
Ah, I looked for tableeditor in the scaladocs but was unable to find it. On Aug 22, 6:05 am, Naftoli Gugenheim naftoli...@gmail.com wrote: I should have thought of that problem. I could make TableEditor more flexible when I have time, but the truth is that I don't know if it's worth it. The

[Lift] Re: how to use thread in lift

2009-08-31 Thread pravin
Thanks its help me lot.. it made my lift easy. Thanks On Aug 28, 5:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Using threads in Lift is the same as using threads in any JVM-based application.  Scala has a particular friendly mechanism for dealing with threads called

[Lift] Re: who can give me some case?

2009-08-31 Thread Margaret
thanks - mawei...@gmail.com 13585201588 http://maweis.com On Mon, Aug 31, 2009 at 3:13 PM, Heiko Seebergerheiko.seeber...@googlemail.com wrote: A Swiss job portal is about to. Cheers Heiko On Monday, August 31, 2009, Margaret

[Lift] OneToMany fields in mapper

2009-08-31 Thread Andrea Peruffo
Hi all, I'm working around OneToMany relationships between objects, I wont to add them to my web interface just with CRUDify so I'm working on a couple of special fields. I have already done them but it seems that I need to do some save every time one reference is added or deleted and this

[Lift] Re: Menu direct link to pdf to download

2009-08-31 Thread Daniel Nelson
I'm not sure about the right way to do this in Lift, but an external menu link serves it up (with webapp as the base directory). Menu(Loc(FileDownload, ExtLink(content/StartingWithLift.pdf) , FileDownload)) :: On Aug 29, 9:11 pm, Jim Myers myer...@gmail.com wrote: I'm trying to put a link in

[Lift] Re: Something you might find useful: easy lazy loading of page sections

2009-08-31 Thread Derek Chen-Becker
Seems like this would be a pretty useful function to have expose as a snippet tag attribute (like how we have eager_eval). Maybe an async_load attr and a corresponding LiftRule NodeSeq var that controls what gets displayed while waiting? Derek On Thu, Aug 27, 2009 at 3:54 PM, Charles F. Munat

[Lift] Re: Something you might find useful: easy lazy loading of page sections

2009-08-31 Thread David Pollak
On Mon, Aug 31, 2009 at 9:24 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Seems like this would be a pretty useful function to have expose as a snippet tag attribute (like how we have eager_eval). Maybe an async_load attr and a corresponding LiftRule NodeSeq var that controls what gets

[Lift] Re: Proposed improvement to CRUDify

2009-08-31 Thread David Pollak
Done. Thanks for the suggestion. On Fri, Aug 28, 2009 at 4:15 PM, jon jonhoff...@gmail.com wrote: Hi, I think the _showAllTemplate should wrap the header and footer rows in thead and tfoot blocks respectively so that the table plays nice with the TableSorter widget. - Jon -- Lift,

[Lift] Re: Multiple sites, same login

2009-08-31 Thread Jean-Luc
Soory, a bit late ... Another option is CAS. http://www.jasig.org/cas, http://www.ja-sig.org/wiki/display/CASUM/Home Jean-Luc 2009/8/27 Charles F. Munat c...@munat.com This is good to know about. Thanks! Marc Boschma wrote: Maybe https://opensso.dev.java.net/ might be of interest? Might

[Lift] Re: Dependency Injection in Lift

2009-08-31 Thread David Pollak
Chris, I agree with Marius' comments. By using Scala's functions and partial functions, I have not found any need for Dependency Injection or many of the other Java limitation workaround patterns. Snippets are not associated in any way with persistence. Snippets can work any way you want and

[Lift] Re: model existing postgresql database

2009-08-31 Thread David Pollak
On Sat, Aug 29, 2009 at 7:12 PM, Jim Myers myer...@gmail.com wrote: I figured out I could pass in false to Schemifier to bypass this. Or you could remove the Schemifier line from your code all together. If you've got a schema that you're managing by hand, there's no need to use Schemifier.

[Lift] Re: MappedStringIndex Odd Behaviour/Problems

2009-08-31 Thread Derek Chen-Becker
This is somewhat related to this: http://github.com/dpp/liftweb/issues#issue/47 But my gut is that index fields should generally not be null, so please open a ticket on it. Derek On Fri, Aug 28, 2009 at 8:34 PM, Justin Reardon justin.rear...@gmail.comwrote: Hi, I've been attempting to use

[Lift] select and selectObj questions

2009-08-31 Thread xabi
Hello! I've got a problem using SHtml.select and SHtml.selectObj. In my little application. def create(xhtml:NodeSeq):NodeSeq = { val teams = Team.findAll var localTeam:Team = Team.create var visitorTeam:Team = Team.create var teamOptions = teams.map(team =

[Lift] Re: select and selectObj questions

2009-08-31 Thread David Pollak
On Mon, Aug 31, 2009 at 2:16 PM, xabi xavier.ta...@gmail.com wrote: Hello! I've got a problem using SHtml.select and SHtml.selectObj. In my little application. def create(xhtml:NodeSeq):NodeSeq = { val teams = Team.findAll var localTeam:Team = Team.create var

[Lift] Re: authentication and access control

2009-08-31 Thread David Pollak
On Mon, Aug 31, 2009 at 10:11 AM, Chris Lewis burningodzi...@gmail.comwrote: Thanks David, I hacked together some auth/restriction code built on JPA, based on the ProtoUser source (pretty simple). I've said before that I didn't really like Mapper (haven't played with Record), but my real

[Lift] Some Comet questions

2009-08-31 Thread Michel Klijn
Hello, I have created a simple test application to play around with comet. it's a live CRUD table the comet updates its clients with every change to the records( There is no database, just a List[Game] in the Game object). I have three questions about this: 1.I know that Comets won't work with

[Lift] Re: Some Comet questions

2009-08-31 Thread David Pollak
On Mon, Aug 31, 2009 at 2:32 PM, Michel Klijn michel.kl...@gmail.comwrote: Hello, I have created a simple test application to play around with comet. it's a live CRUD table the comet updates its clients with every change to the records( There is no database, just a List[Game] in the Game

[Lift] Re: select and selectObj questions

2009-08-31 Thread Naftoli Gugenheim
I think the problem is that since visitorTeam hasn't been saved, its id is -1 or 0, so assigning it is meaningless. Either save it first, or mix in LongMappedForeignMapper in addition to LongMappedForeignKey on the team field. The next time I commit G-d willing you'll be able to write extends

[Lift] Re: select and selectObj questions

2009-08-31 Thread David Pollak
On Mon, Aug 31, 2009 at 2:53 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I think the problem is that since visitorTeam hasn't been saved, its id is -1 or 0, so assigning it is meaningless. Either save it first, or mix in LongMappedForeignMapper in addition to LongMappedForeignKey on the

[Lift] Re: Some Comet questions

2009-08-31 Thread Michel Klijn
On Aug 31, 5:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 31, 2009 at 2:32 PM, Michel Klijn michel.kl...@gmail.comwrote: ... Since i had JBOSS 4.2.3AG already on my system i tried this, but without succes... What's the failure?  Does the Lift examples/example app

[Lift] initialization of back reference when using OneToMany

2009-08-31 Thread harryh
Consider the basic book/author relationship described here: http://wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many-relationships When dealing with the collection of Books for a single author I would like to be able to refer to the author field on each book without causing unnecessary

[Lift] Re: initialization of back reference when using OneToMany

2009-08-31 Thread harryh
I see what you're saying (I think). So should it always use a PreCache QueryParam? Let's say you have some code like so: author.books.flatMap(book = { bind(foo, xhtml, title - book.title, author - book.author.name); }) If you have 10 books for a given author this will generate 10 queries

[Lift] Re: initialization of back reference when using OneToMany

2009-08-31 Thread Naftoli Gugenheim
I see what you're saying (I think). So should it always use a PreCache QueryParam? - harryhhar...@gmail.com wrote: Consider the basic book/author relationship described here: http://wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many-relationships

[Lift] Re: initialization of back reference when using OneToMany

2009-08-31 Thread harryh
I see what you're saying (I think). So should it always use a PreCache QueryParam?   That's not exactly what I am saying. Let's say you have some code like so: author.books.flatMap(book = { bind(book, xhtml, title - book.title, author - book.author.name); }) If you have 10 books for a

[Lift] Re: initialization of back reference when using OneToMany

2009-08-31 Thread Naftoli Gugenheim
I wrote code in MappedOneToMany that calls primeObj on each child's foreign key. Do you think that makes sense? P.S. Not sure when I'll be able to push it to github. - harryhhar...@gmail.com wrote: I see what you're saying (I think). So should it always

[Lift] Mapper - Nullable fields

2009-08-31 Thread Naftoli Gugenheim
Maybe one way to address nullability of foreign key associations as well as other field types is as follows. Don't know if it's possible or backward compatible, but here's the concept. Make fields, including FKs, by default non-nullable--setting to Empty/null is an error, and maybe provide a

[Lift] Re: Some Comet questions

2009-08-31 Thread David Pollak
On Mon, Aug 31, 2009 at 3:06 PM, Michel Klijn michel.kl...@gmail.comwrote: On Aug 31, 5:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 31, 2009 at 2:32 PM, Michel Klijn michel.kl...@gmail.com wrote: ... Since i had JBOSS 4.2.3AG already on my system i tried