Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-26 Thread Jim Barrows
Excellent. He's already where I was headed :) On Wed, Nov 25, 2009 at 8:51 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Kris blogged about a really nice pattern: http://logji.blogspot.com/ On Wed, Nov 25, 2009 at 3:16 PM, Jim Barrows jim.barr...@gmail.comwrote: I'm using JPA, and

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-26 Thread Timothy Perrett
Agreed - Kirs' idea is a nice one. It would be good to incorporate such a pattern in the lift examples. Cheers, Tim On 26 Nov 2009, at 15:42, Jim Barrows wrote: Excellent. He's already where I was headed :) On Wed, Nov 25, 2009 at 8:51 PM, David Pollak feeder.of.the.be...@gmail.com

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Derek Chen-Becker
I don't think that that should be happening, but I would need to see the code for PersonSnippets to really see what's going on. Derek On Wed, Nov 25, 2009 at 4:16 PM, Jim Barrows jim.barr...@gmail.com wrote: I'm using JPA, and need to do a One-Many, or master detail view. So I tried the

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
package com.nsfw.snippet import _root_.net.liftweb._ import common.{Empty, Full, Box} import sitemap.{Loc} import http._ import js.{JsCmd, JsCmds} import JsCmds._ import S._ import SHtml._ import util._ import Helpers._ import _root_.javax.persistence.{EntityExistsException,

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Timothy Perrett
Lift does not use markup like that - there is no magic mapping between persistence and view. You would most likly have to construct the appropriate master - detail code in your snippets and work like that. Cheers, Tim On 25 Nov 2009, at 23:16, Jim Barrows wrote: I'm using JPA, and need to

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
On Wed, Nov 25, 2009 at 4:26 PM, Timothy Perrett timo...@getintheloop.euwrote: Lift does not use markup like that - there is no magic mapping between persistence and view. You would most likly have to construct the appropriate master - detail code in your snippets and work like that.

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Derek Chen-Becker
That markup should be in a template file somewhere, which would then call the snippets appropriately. I don't see markup for a second form, but I might just be missing it. A couple of other notes: - Generally, on links, omit the suffix and Lift will then do I18N lookup for you as needed.

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
ARGGG It's contactMechanism:comment not contactMechanism.comment It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots in xhtml it's colons not dots in xhtml It's colons not dots in xhtml It's

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Ross Mellgren
Well, except for after the snippet class name in lift:Snippet tags ;-) -Ross On Nov 25, 2009, at 7:45 PM, Jim Barrows wrote: ARGGG It's contactMechanism:comment not contactMechanism.comment It's colons not dots in xhtml It's colons not dots in xhtml It's colons not dots

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread David Pollak
Kris blogged about a really nice pattern: http://logji.blogspot.com/ On Wed, Nov 25, 2009 at 3:16 PM, Jim Barrows jim.barr...@gmail.com wrote: I'm using JPA, and need to do a One-Many, or master detail view. So I tried the obvious: lift:PersonSnippets.save form=post !-- form --