[Lift] Re: A coupel of quick questions

2008-10-09 Thread Charles F. Munat
David Pollak wrote: If you're cool with looking up the snippet by class/method name use the plain old snippet. If you want some control before the method gets invoked (e.g., changing the behavior based on current session state), use the dispatch snippet. Is there a good example of this

[Lift] Re: A coupel of quick questions

2008-10-09 Thread Tim Perrett
Is there a good example of this in the example sites somewhere? I'm a bit confused but intrigued. http://github.com/dpp/liftweb/tree/master/sites/example/src/main/scala/net/liftweb/example/snippet/CountGame.scala That should help you get started Cheers, Tim

[Lift] Re: A coupel of quick questions

2008-10-09 Thread Charles F. Munat
OK, I have two mapped classes: class Page extends KeyedMapper[Long, Page] { def findPageSections: List[PageSection] = PageSection.findAll(PageSection.page, this.id) } and class PageSection extends KeyedMapper[Long, PageSection] { object page extends MappedLongForeignKey(this, Page)

[Lift] Re: A coupel of quick questions

2008-10-09 Thread Charles F. Munat
Very helpful. Thanks! Tim Perrett wrote: Is there a good example of this in the example sites somewhere? I'm a bit confused but intrigued. http://github.com/dpp/liftweb/tree/master/sites/example/src/main/scala/net/liftweb/example/snippet/CountGame.scala That should help you get started

[Lift] Re: NetBeans and complex parser combinator files

2008-10-09 Thread Viktor Klang
Is it permGen OOM or Heap OOM? On Wed, Oct 8, 2008 at 7:21 PM, David Pollak [EMAIL PROTECTED] wrote: Folks, I've been using NetBean pretty successfully... except for projects that refer to complex parser combinator files (e.g., Lift's Textile parser.) NetBeans looks for stuff on the

[Lift] lift-paypal module

2008-10-09 Thread Tim Perrett
Guys, I've spent some time gutting my extremely boiler plate paypal code now its in master. I've only implemented the PDT data types and response so far, but im going to do IPN tomorrow / over the weekend. So then, its all properly immutable now and is just generally a lot more sensible. To use

[Lift] Re: NetBeans and complex parser combinator files

2008-10-09 Thread David Pollak
Erik Engbrecht wrote: I haven't tried this, but if possible I'd suggest moving them into a separate libary and only letting NetBeans see the compiled jar. Unfortunately, that doesn't work. Anything that is seen as part of the project is parsed. So, I can't edit the Lift Example code

[Lift] Re: NetBeans and complex parser combinator files

2008-10-09 Thread Miles Sabin
On Thu, Oct 9, 2008 at 1:55 PM, Erik Engbrecht [EMAIL PROTECTED] wrote: As a side note, I bet the Eclipse plugin has the same problem. It'd be much appreciated if someone could give this a try ... Cheers, Miles --~--~-~--~~~---~--~~ You received this message

[Lift] Re: A coupel of quick questions

2008-10-09 Thread David Pollak
Charles F. Munat wrote: OK, I have two mapped classes: class Page extends KeyedMapper[Long, Page] { def findPageSections: List[PageSection] = PageSection.findAll(PageSection.page, this.id) } and class PageSection extends KeyedMapper[Long, PageSection] { object page extends

[Lift] JPA Demo with JTA and JNDI

2008-10-09 Thread Derek Chen-Becker
I'm very close to getting this working. I can look up the EM via JNDI as well as the UserTransaction, but I'm getting a weird error with Atomikos: Message: java.lang.RuntimeException: Transaction Service Not Running? com.atomikos.icatch.jta.J2eeUserTransaction.checkSetup(Unknown Source)

[Lift] Re: lift-paypal module

2008-10-09 Thread Charles F. Munat
Outstanding! And just in time. I need to implement PayPal functionality on a site next week. Thank you very much, Tim. Chas. Tim Perrett wrote: Guys, I've spent some time gutting my extremely boiler plate paypal code now its in master. I've only implemented the PDT data types and response

[Lift] Re: lift-paypal module

2008-10-09 Thread Tim Perrett
Sweet - I'll be implementing IPN soon as well, so we'll have the braces and belt as it were. My plan for that right now is two fold: a) A hadnling class that is implemented as part of a DispatchPf setup, and a subsequent ResponseState to satisfy the paypal POST to the client web server. Perhaps

[Lift] Re: A coupel of quick questions

2008-10-09 Thread Charles F. Munat
Ah! I thought that's what the QueryParams were, but they weren't in your original post so I was confused. Excellent. Thanks a lot. Chas. David Pollak wrote: Charles F. Munat wrote: OK, I have two mapped classes: class Page extends KeyedMapper[Long, Page] { def findPageSections:

[Lift] Re: lift-paypal module

2008-10-09 Thread Charles F. Munat
Of course I'll be happy to pass along suggestions, bugs I find, etc. This is a good opportunity to get something like this into the wild, as this is a paying client and they are *very* aggressively pushing me to get PayPal online ASAP. I hope to start implementing this next week if I can get

[Lift] Re: lift-paypal module

2008-10-09 Thread David Pollak
There are two projects I'm working on that will use the PayPal module in the next month as well. Rock and Roll! Charles F. Munat wrote: Of course I'll be happy to pass along suggestions, bugs I find, etc. This is a good opportunity to get something like this into the wild, as this is a