[Lift] Need Help with the RuntimeException

2009-04-12 Thread sailormoo...@gmail.com
Hello: I've got this exception accessing one of the page, but I cannot find the reason ( and the runtime exception gives very ambigulous information). Can someone help to get the reason? Thanks. Message: java.lang.RuntimeException: FATAL scala.Predef$.error(Predef.scala:76)

[Lift] Attribute as MappedField efficiency concerns

2009-04-12 Thread Giuseppe Fogliazza
I have been surprised looking at how Mapper and Record frameworks use object of anonymous classes extending (Mapped)Field to represent attributes. This provide a powerful mechanisms to incorporate in Field traits and classes, services for persistency and representation. Based on this I am trying

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-04-12 Thread mal3
Thanks David. That frees us up to choose JDO or JPA. PS: I've read the PDF of the Lift book and about half the PDF of your Scala book. I have to say the quality of writing and clarity of content is very high. And the productivity of the authors is simply phenomenal. Mal. On Apr 12, 3:27 pm,

[Lift] Re: stateful vs stateless snippet

2009-04-12 Thread Oliver Lambert
On Sun, Apr 12, 2009 at 3:49 PM, marius d. marius.dan...@gmail.com wrote: As I said you CAN use it to span the same snippet instance for multiple pages. Please see the two fundamental functions offered by StatefulSnippet: link and redirect. Lift book provided correct information. It can be

[Lift] Re: Need Help with the RuntimeException

2009-04-12 Thread David Pollak
You have malformed XML in your view file. If you're using Lift 1.0, you should be able to type mvn test from the command line and all of the view files will be tested for correctness and failures should be reported. On Sun, Apr 12, 2009 at 1:55 AM, sailormoo...@gmail.com sailormoo...@gmail.com

[Lift] Re: Attribute as MappedField efficiency concerns

2009-04-12 Thread marius d.
Personally I'm not aware of a benchmark yielding concrete comparison numbers. However this questions extends to Scala's anonymous class files generation and surprisingly Scala's performance is unbelievably close to Java's. JIT compilers really do their job. Now comparing Record fields which are

[Lift] Re: stateful vs stateless snippet

2009-04-12 Thread David Pollak
On Sun, Apr 12, 2009 at 5:29 AM, Oliver Lambert olambo...@gmail.com wrote: On Sun, Apr 12, 2009 at 3:49 PM, marius d. marius.dan...@gmail.comwrote: As I said you CAN use it to span the same snippet instance for multiple pages. Please see the two fundamental functions offered by

[Lift] Re: [scala] Google App Engine for Scala!

2009-04-12 Thread Atsuhiko Yamanaka
Hi there, On Sun, Apr 12, 2009 at 12:46 AM, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Sat, Apr 11, 2009 at 10:43 PM, David Pollak feeder.of.the.be...@gmail.com wrote: GAE supports JPA and there's a lot of Lift JPA support... so maybe we can update the example code to use

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-04-12 Thread David Pollak
On Sun, Apr 12, 2009 at 3:42 AM, mal3 malcolm.gor...@gmail.com wrote: Thanks David. That frees us up to choose JDO or JPA. Yes. If you choose JDO, it'd be great for you to blog and/or send stuff to this list about how to do it. PS: I've read the PDF of the Lift book and about half the

[Lift] Re: Attribute as MappedField efficiency concerns

2009-04-12 Thread David Pollak
To amplify on Marius' comment: The cost of extra classes is trivial. While there is start-up time associated with loading the classes, for a long-running process, you'll see no measurable difference for using lots of different classes. Martin has run the numbers and lots of other people have

[Lift] Re: Lift helloworld on App Engine: java.lang.NoClassDefFoundError: Could not initialize class net.liftweb.http.LiftRules$

2009-04-12 Thread 刘浩
I have tried the build from http://github.com/ymnk/liftweb/tree/master It works fine for simple example. I am testing JPA. I did not encounter the class not found problem and list my problem below a. Actor problem, solved with new build (I only use lift-util, lift-webkit) b. Session problem, add

[Lift] Re: TemplateCache

2009-04-12 Thread Timothy Perrett
Interesting marius - I havent checked out the code yet, but did you manage to work around the thread safe issues? Cheers, Tim On Apr 11, 9:16 pm, marius d. marius.dan...@gmail.com wrote: I just committed a SoftReferenceCache implementation in utils and it is used by InMemoryCache. So far

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-04-12 Thread Derek Chen-Becker
Thanks for the positive feedback on the book. If you have any critique of the content, please feel free to post it on the book group list: http://groups.google.com/group/the-lift-book As for JPA vs JDO I think you should have no problem going either route. I have no experience with JDO, so I

[Lift] Re: [scala] Google App Engine for Scala!

2009-04-12 Thread Derek Chen-Becker
Cool, so the ScalaJPA stuff works fine under GAE? Derek On Sun, Apr 12, 2009 at 8:00 AM, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi there, On Sun, Apr 12, 2009 at 12:46 AM, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Sat, Apr 11, 2009 at 10:43 PM, David

[Lift] Getting started source document

2009-04-12 Thread Frederik Deweerdt
Hi folks, Is the source document of the Getting starded guide available somewhere? I'm following it and I thought that I could send fixes in a patch form. Regards, Frederik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Help with PocketChange project

2009-04-12 Thread Xavi Ramirez
Hello, I've started reading through Exploring Lift and I'm having trouble with running the PocketChange demo. I've ran the following commands: git clone git://github.com/tjweir/pocketchangeapp.git cd to PocketChange directory mvn install mvn jetty:run -U When the jetty server starts, the

[Lift] CRUDifying a model

2009-04-12 Thread ari
I have a model defined with the CRUDify trait. I'm under the impression that I need to add something to the sitemap for the crudified pages to be available, and that defining my model with CRUDify should create some basic UI and addition pages for my model. Basically, given a model x with

[Lift] Re: Getting started source document

2009-04-12 Thread David Pollak
http://github.com/tjweir/liftbook/tree/ef3f7417ca2e3a5dde21667f0ca12c0c276329a8/getting_started On Sun, Apr 12, 2009 at 1:00 PM, Frederik Deweerdt frederik.dewee...@xprog.eu wrote: Hi folks, Is the source document of the Getting starded guide available somewhere? I'm following it and I

[Lift] Re: CRUDifying a model

2009-04-12 Thread David Pollak
In Boot.scala, when you're constructing the menu, put MyModel.menu (which returns a List[Menu]) in the list of menu items. On Sun, Apr 12, 2009 at 3:16 PM, ari arimat...@gmail.com wrote: I have a model defined with the CRUDify trait. I'm under the impression that I need to add something to

[Lift] Re: Help with PocketChange project

2009-04-12 Thread TylerWeir
It's probably better to send PocketChange questions to the Lift Book list, which is here http://groups.google.com/group/the-lift-book/ And there is a thread regarding your issue here: http://groups.google.com/group/the-lift-book/browse_frm/thread/7791a6f79654d568 If you open Boot.scala, you'll

[Lift] Override Menu HTML

2009-04-12 Thread João Pereira
Hi, Currently lift:Menu.builder/ renders an unordered list (UL). How do I override this HTML to have each entry in the menu around a div, for example? joao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] XML Creation

2009-04-12 Thread sailormoo...@gmail.com
Hello: Thanks for the previous answers of my questions. I would like to know how to make the following example work by Lift: ( I use the old style Java scriptlet for example ). table % for (int i = 0; i data.size(); i++) { % trtd%= data.name %/td/tr % } % /table I cannot find

[Lift] Re: Override Menu HTML

2009-04-12 Thread Derek Chen-Becker
At this point you would have to write your own version of Menu.builder. Usually you can modify presentation with CSS. Is that not feasible here? Derek 2009/4/12 João Pereira joaomiguel.pere...@gmail.com Hi, Currently lift:Menu.builder/ renders an unordered list (UL). How do I override this

[Lift] Re: XML Creation

2009-04-12 Thread Derek Chen-Becker
I would do this with a snippet tag that looked like: lift:MyTable.foo table tb:entries trtdentry:name //td/tr /tb:entries /table /lift:MyTable.foo Then the snippet would look like class MyTable { def foo (xhtml : NodeSeq) : NodeSeq = { val data = ... fill this in ... val