[Lift] Re: Caching JPA entities and JPA vs Hibernate

2008-09-16 Thread Derek Chen-Becker
You're probably on the right track, although I want to clarify: are the entity and its collections something that won't change often? Do you need transactional views on it (i.e. changes made by one session are immediately visible in others)? From your question about caching at Boot it sounds like

[Lift] Re: Lift, Jetty and OneJar

2008-09-16 Thread Derek Chen-Becker
Do you mean a JAR that you can just run, a la java -jar mywebapp.jar ? On Mon, Sep 15, 2008 at 5:25 PM, David Pollak [EMAIL PROTECTED] wrote: Folks, Has anyone built a Lift app that's deployable as a JAR file with Jetty as the container? Thanks, David

[Lift] Re: JPA Table annotation

2008-09-16 Thread Derek Chen-Becker
Technically you can drop the constructor parens as well so it looks like @Table{val name=roles} Derek On Mon, Sep 15, 2008 at 5:08 PM, Tim Perrett [EMAIL PROTECTED] wrote: Chas, Change you annotation to this: @Table(){val name=roles} Scrap the xml attribute, then it will work no

[Lift] Re: Lift, Jetty and OneJar

2008-09-16 Thread David Bernard
There is a maven plugin that allow to do it with winstone instead of jetty: http://alchim.sourceforge.net/winstone-maven-plugin/usage.html /davidB On Tue, Sep 16, 2008 at 2:08 PM, Derek Chen-Becker [EMAIL PROTECTED] wrote: Do you mean a JAR that you can just run, a la java -jar mywebapp.jar

[Lift] Re: Caching JPA entities and JPA vs Hibernate

2008-09-16 Thread Tim Perrett
Hey Derek, You're probably on the right track, although I want to clarify: are the entity and its collections something that won't change often? Do you need transactional views on it (i.e. changes made by one session are immediately visible in others)? From your question about caching at

[Lift] Re: Lift - 1.0 (was: WebService example and versions of Lift)

2008-09-16 Thread TylerWeir
I had a quick conversation with Derek over IM. We're in the process of putting together an outline and schedule for docs. I'll put together a new post as soon as I can (hoping tonight). On Sep 15, 4:44 pm, David Pollak [EMAIL PROTECTED] wrote: Derek, We'd love to have you help out.  Perhaps

[Lift] Re: Caching JPA entities and JPA vs Hibernate

2008-09-16 Thread Derek Chen-Becker
Cool. For now I'd say just load it once, although you might want to make your own object to manage it. You could easily make it a lazy var for now and turn it into a synchronized def later if you need flush behavior. Derek On Tue, Sep 16, 2008 at 6:59 AM, Tim Perrett [EMAIL PROTECTED] wrote:

[Lift] Custom snippet attributes

2008-09-16 Thread Tim Perrett
Hey guys, If you have a call like: lift:mysnippet form=post is translated to form method=post action=blah however, is there a way to set the id attribute on that node? Simply adding the id in the markup is removed by lifts processing, so thats no good as most javascript / css things either

[Lift] Re: Lift, Jetty and OneJar

2008-09-16 Thread David Pollak
David Bernard wrote: There is a maven plugin that allow to do it with winstone instead of jetty: http://alchim.sourceforge.net/winstone-maven-plugin/usage.html I found this. I need Jetty for continuations... thus Winstone is not my first choice. Thanks, David /davidB On Tue, Sep

[Lift] Re: JPA Table annotation

2008-09-16 Thread Charles F. Munat
That's cleaner. I'll try it. Thanks, Chas. Derek Chen-Becker wrote: Technically you can drop the constructor parens as well so it looks like @Table{val name=roles} Derek On Mon, Sep 15, 2008 at 5:08 PM, Tim Perrett [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Chas,

[Lift] Re: Custom snippet attributes

2008-09-16 Thread Marius
It looks to me like a typo bug in LiftSession.porcessSnippet: For instance at the end of this function we have: attrs.get(form).map(ft = ( (form action={S.uri} method={ft.text}{ret}/form % checkMultiPart(attrs)) % checkAttr(class, attrs)) % checkAttr(id,attrs) )

[Lift] Re: Massive Twitter Updates

2008-09-16 Thread David Pollak
You might ask this question on the GitHub list. Jorge Ortiz wrote: If you're following @liftweb on Twitter, I apologize for the massive updates tonight. It seems that whenever I merge changes from 'master' into 'scala-snapshot', all those commits get re-tweeted by Github. Anyone know if

[Lift] Re: snippets and html

2008-09-16 Thread David Pollak
Jorge Ortiz wrote: The mixinAttributes function is now in BindHelpers. Excellent! Thanks! --j On Fri, Aug 15, 2008 at 7:06 AM, David Pollak [EMAIL PROTECTED] wrote: On Thu, Aug 14, 2008 at 10:42 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: The abstraction for it isn't baked