[Lift] Re: Welcome Atsuhiko Yamanaka to the Lift Committers

2009-04-18 Thread TylerWeir
Welcome sir! On Apr 18, 1:19 am, marius d. marius.dan...@gmail.com wrote: Welcome,welcome,welcome ! On Apr 18, 1:42 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I am pleased at announce that Atsuhiko Yamanaka has joined the Lift committers.  He did some great Google

[Lift] Re: Object typecast to Mapper

2009-04-18 Thread Amit Kumar Verma
Hi David, Sorry I used dynamic binding which was not correct. But in the previous thread you said : Scala is a static language, so the class for casting must be known at compile time. It's not possible to construct a String at runtime and cast an object into a class represented by that String.

[Lift] Re: Object typecast to Mapper

2009-04-18 Thread David Pollak
Amit, There is no way that I know of in Java to construct a string at runtime and use that string for casting. If you can show me an example of what you mean in Java I'll show you the equivilent Scala code. In terms of the roadmap, you started a thread on that. If you have follow-up questions,

[Lift] Re: Object typecast to Mapper

2009-04-18 Thread Timothy Perrett
So your talking about reflection right? Take a look at scala Manifests (which aide getting round type erasure) - other than that scala supports all the normal reflection tooling that Java does. Tim On 18/04/2009 06:56, Amit Kumar Verma cdac.a...@gmail.com wrote: Scala is a static language,

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread bradford
I have changed class Products { to read class Products extends StatefulSnippet { Instead of S.redirectTo, I now have this.redirectTo and it still doesn't seem to be saving the state. On Apr 17, 10:55 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: OK, first, your snippet class needs to

[Lift] Turn off lift:error_msg

2009-04-18 Thread bradford
How can I get rid of the lift:error_msg /? I know I can use my own message, but I can't figure out how to hide it. I've tried the following: lift:Msgs lift:error_msg / lift:error_classerror-red/lift:error_class /lift:Msgs --~--~-~--~~~---~--~~ You received

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread Sergey Andreev
Could you attach a sample code which doesn't work? On Sat, Apr 18, 2009 at 8:41 PM, bradford fingerm...@gmail.com wrote: I have changed class Products { to read class Products extends StatefulSnippet { Instead of S.redirectTo, I now have this.redirectTo and it still doesn't seem to be

[Lift] Re: Turn off lift:error_msg

2009-04-18 Thread Charles F. Munat
Can you explain a bit more? Are you trying to show warnings and notices, but not errors? Or are you trying to eliminate messages entirely? Or just trying to restyle them? Chas. bradford wrote: How can I get rid of the lift:error_msg /? I know I can use my own message, but I can't figure

[Lift] Re: Turn off lift:error_msg

2009-04-18 Thread bradford
It seems like I'm forced to define lift:error_msgMy Custom Message/ lift:error_msg or lift will render Error. But I don't want anything being displayed. On Apr 18, 2:40 pm, Charles F. Munat c...@munat.com wrote: Can you explain a bit more? Are you trying to show warnings and notices, but not

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread bradford
Thanks, Tim. I worked around that issue. I would still like to know whether or not it's possible have RequestVars carry over to the redirected page. I'm attaching a modified demo. If I use just a var, it will maintain the state. If I use RequestVar, it won't transfer the state. Well.. I

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread Derek Chen-Becker
A RequestVar is only live for the duration of the request, and a redirectTo ends up sending a 307 temp redirect to the browser, which results in a new request. S.redirectTo does have an overload that allows you to pass a function that will be called when the redirected request is handled. Some

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread Derek Chen-Becker
OK, I just added some more explanation on passing state between snippets to section 3.15 in the book. I just uploaded a new PDF. When you have a chance could you look at it and let me know if that makes sense? Also, I wasn't sure if this should be a separate section (Passing Data Between Snippets

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread bradford
Thanks, Derek. I read the updated PDF version of the book on The Lift Book group. I think it looks good. I think an example with redirectTo may be better than link. Also, personally, I'm not sure if I understand StatefulSnippet now. It doesn't seem like you can mix the two. I updated my

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread Derek Chen-Becker
I'll add in an example for StatefulSnippet. We have one already in PocketChange, so I just need to copy the code listing in. You should be able to mix the two as you see fit. Derek On Sat, Apr 18, 2009 at 6:58 PM, bradford fingerm...@gmail.com wrote: Thanks, Derek. I read the updated PDF

[Lift] Re: Mocking multiple models in a Snippet

2009-04-18 Thread Derek Chen-Becker
Would using the run mode to determine to set up a Derby or HSQL DB for test purposes in your Boot class work? Usually I use this method combined with DBUnit to load test data. Derek On Fri, Apr 17, 2009 at 3:43 PM, erik.karls...@iki.fi erik.b.karls...@gmail.com wrote: Hi, I'm a little bit