[Lift] Re: JPADemo 1.1-SNAPSHOT: id with auto-increment (MySQL or H2)

2009-11-02 Thread Indrajit Raychaudhuri
Troy, Thanks for the analysis. We need to fix the pom for JPADemo archetype. Can you please file a ticket for this (http://github.com/dpp/liftweb/issues)? We'll update the pom and resolve the slf4j dependencies. Cheers, Indrajit NB: We might just make it for M7 if all goes well. Else, it'll

[Lift] Re: Question about megaprotouser S.error

2009-11-02 Thread Heiko Seeberger
2009/11/3 DFectuoso > > I am using MegaProtoUser in my user model and a couple of users > reported they do not get any kind of feedback if they don't input a > valid user in the Sign Up form What exactly is a valid user in your case? def testSignup() { > theUser.validate match { >

[Lift] Question about megaprotouser S.error

2009-11-02 Thread DFectuoso
I am using MegaProtoUser in my user model and a couple of users reported they do not get any kind of feedback if they don't input a valid user in the Sign Up form, i can see the same issue in hellolift and other lift apps out there that is also using this module. I don't know if I am doing somethi

[Lift] Re: Unit Testing

2009-11-02 Thread Randinn
This may help... http://wiki.github.com/dpp/liftweb/how-to-unit-test-lift-snippets-with-a-logged-in-user On Nov 3, 4:13 pm, sunanda wrote: > Hi, > How to do unit testing in Lift Framework. > Sunanda. --~--~-~--~~~---~--~~ You received this message because you ar

[Lift] Unit Testing

2009-11-02 Thread sunanda
Hi, How to do unit testing in Lift Framework. Sunanda. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send e

[Lift] Re: Error mvn install on lift-actor

2009-11-02 Thread Randinn
I just had this occur as well with a basic archetype build, cleaned out the local maven repo and still the same problem. On Nov 2, 11:49 pm, Josh Suereth wrote: > huh, perhaps if I was in active development with you guys, I'd have a better > idea... > > I know maven + -SNAPSHOT can cause fun for

[Lift] Re: JPADemo 1.1-SNAPSHOT: id with auto-increment (MySQL or H2)

2009-11-02 Thread Troy Noble
Yes I tried Chris's suggestion, and JPA does in fact work with MySQL 5.0 with auto-increment ID columns even with columns named something other than 'id' using @Column(val name="PROJECT_TYPE_ID") for example. Thanks Chris! I changed JPAWeb/spa/pom.xml dependency for hibernate-entitymanager to ver

[Lift] Re: CRUDify view pages not working correctly

2009-11-02 Thread Naftoli Gugenheim
This is pure out-of-the-box CRUDify? No custom binding/querying? - Jim McBeath wrote: I have recently started using Lift (1.1-M6) to create a simple data editing application. I have a small table with a char(1) key column (on which I set dbDisplay_? to true)

[Lift] Re: External usage of lift ORM

2009-11-02 Thread Naftoli Gugenheim
Do the same thing you do in Boot, at some point in you program before you access your Mappers. You may need more jars than just the lift-mapper jar. - Marcin Jurczuk wrote: Hello, I would like to use lift ORM(Mapper) without lift, as a part of small cli app

[Lift] Re: Refresh Session Variable

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 4:06 PM, sunanda wrote: > > Hi, > I need to refresh a session variable to empty string on load of a > page and need to set the variable to some string (e.g. "abcd") on > click of a button. How can I do this. > import net.liftweb.http._ object MySessionVar extends Sessio

[Lift] Re: Two how-to questions

2009-11-02 Thread Jonathan Ferguson
The answer for two is add an email appender to your log4j configuration. Such as :: so the appender is used remember to add it :

[Lift] Refresh Session Variable

2009-11-02 Thread sunanda
Hi, I need to refresh a session variable to empty string on load of a page and need to set the variable to some string (e.g. "abcd") on click of a button. How can I do this. Sunanda. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[Lift] Re: ajax-loader not showing?

2009-11-02 Thread David Pollak
Fixed On Sat, Oct 31, 2009 at 9:04 AM, Jeppe Nejsum Madsen wrote: > > David Pollak writes: > > > > It's a bug. Please file a ticket. > > Done. http://github.com/dpp/liftweb/issues/#issue/152 > > /Jeppe > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala ht

[Lift] CRUDify view pages not working correctly

2009-11-02 Thread Jim McBeath
I have recently started using Lift (1.1-M6) to create a simple data editing application. I have a small table with a char(1) key column (on which I set dbDisplay_? to true) and a name column for which I created mapper code following the sample in the Exploring Lift book. When my app displays the

[Lift] Re: View List content

2009-11-02 Thread Timothy Perrett
Any reason your not using eGit? Seems like it would be a lot better to make a scala wrapper around that rather than use exec. Cheers, Tim Sent from my iPhone On 2 Nov 2009, at 21:58, wapgui wrote: > > Hi, > > I'm playing a littlebit with Lift and git and the following code looks > good for

[Lift] External usage of lift ORM

2009-11-02 Thread Marcin Jurczuk
Hello, I would like to use lift ORM(Mapper) without lift, as a part of small cli app. I assume that it is possible but question is how to "init" MetaMapper/ Mapper class/objects without Boot.scala and DB setup inside it ? Best regards, --~--~-~--~~~---~--~~ You r

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Jim Barrows
On Mon, Nov 2, 2009 at 1:34 PM, Vesa wrote: > > You're right about that. You probably wouldn't get very far without > understanding that. I'm still concerned that I have to type > unnecessary stuff to express myself without getting any gains in (new > A comma separated list of values inside a m

[Lift] View List content

2009-11-02 Thread wapgui
Hi, I'm playing a littlebit with Lift and git and the following code looks good for me (doesn't mean that it is working). No errors, but also no output. Where am I wrong? Cheers Torsten class HelloWorld { def howdy = Welcome to scagit using {exec("git --version")._1} var tree = exec("git l

[Lift] Re: lift-json serialization primitive types

2009-11-02 Thread Joni Freeman
Hi, Custom serialization and deserialization functions are now supported in trunk. Please see updated docs in section "Serializing non- supported types": http://github.com/dpp/liftweb/tree/master/lift-base/lift-json/ Cheers Joni On 25 loka, 14:27, Christophe Dehlinger wrote: > Hi, > > Is the

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Timothy Perrett
+1 On 2 Nov 2009, at 20:27, Jim Barrows wrote: > Shouldn't the reader already be aware of Scala's list construction, > since that is in fact the language we're using? > If you think Scala's list construction is difficult to for a new > reader, I think explaining a case class would be even mo

[Lift] Re: regular expression

2009-11-02 Thread Jack Widman
Thanks Derek. Will do. On Mon, Nov 2, 2009 at 3:45 PM, Derek Chen-Becker wrote: > From the Scaladoc for scala.util.matching.Regex: > > You can use special pattern syntax construct (?idmsux-idmsux) to switch > various regex compilation options like CASE_INSENSITIVE or UNICODE_CASE. > See java.util

[Lift] Re: regular expression

2009-11-02 Thread Derek Chen-Becker
>From the Scaladoc for scala.util.matching.Regex: You can use special pattern syntax construct (?idmsux-idmsux) to switch various regex compilation options like CASE_INSENSITIVE or UNICODE_CASE. See java.util.regex.Pattern javadoc for details. Probably better to ask Scala questions on the Scala l

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:36 PM, Naftoli Gugenheim wrote: > > I hear that. If you query 1000 items the reflection shouldn't need to be > done 1000 times! > But can't the instances locate the companion via reflection, i.e., look for > the class with the same name with a trailing '$'? Of course it w

[Lift] Re: Why menu generation and page access control is combined?

2009-11-02 Thread Vesa
Seems very reasonable, thanks for the unbelievable fast responses! - Vesa On 2 marras, 22:32, David Pollak wrote: > On Mon, Nov 2, 2009 at 12:25 PM, Vesa wrote: > > > Hi, > > > I have a feeling that SiteMap is a common cause of frustration among > > newbies and was wondering why is it so? Havi

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Vesa
Also some plain true or false doesn't really explain it's purpose very well and with AbsoluteLink("a", "b") I wouldn't have to guess the meaning or look it up from API documentation. - Vesa On 2 marras, 22:34, Vesa wrote: > You're right about that. You probably wouldn't get very far without > u

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:27 PM, Jim Barrows wrote: > > > On Mon, Nov 2, 2009 at 1:15 PM, Vesa wrote: > >> >> Hi, >> >> I was wondering few thing while reading lift examples. Could the Link >> class be turned into a case class so reading would improve? new Link >> ("a" :: "b" :: nil, false) coul

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:34 PM, Vesa wrote: > > You're right about that. You probably wouldn't get very far without > understanding that. I'm still concerned that I have to type > unnecessary stuff to express myself without getting any gains in (new > Link("a" :: "b" :: nil) vs Link("a", "b")) :

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Naftoli Gugenheim
I hear that. If you query 1000 items the reflection shouldn't need to be done 1000 times! But can't the instances locate the companion via reflection, i.e., look for the class with the same name with a trailing '$'? Of course it would break code--they would have to delete their definition or ad

[Lift] Re: What's the deal with class(es) in API named with one character?

2009-11-02 Thread Wilson MacGyver
ah, I was always curious what S stood for. On Mon, Nov 2, 2009 at 4:33 PM, David Pollak wrote: > > > On Mon, Nov 2, 2009 at 12:31 PM, Vesa wrote: >> >> Hi, >> >> I feel that having classes with names like S wastes my very limited >> brain ram while reading or writing lift applications. Why not

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Vesa
You're right about that. You probably wouldn't get very far without understanding that. I'm still concerned that I have to type unnecessary stuff to express myself without getting any gains in (new Link("a" :: "b" :: nil) vs Link("a", "b")) :D - Vesa On 2 marras, 22:27, Jim Barrows wrote: > On

[Lift] Re: What's the deal with class(es) in API named with one character?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:31 PM, Vesa wrote: > > Hi, > > I feel that having classes with names like S wastes my very limited > brain ram while reading or writing lift applications. Why not to use > more describing but longer names? Not wasting bytes on these difficult > economic times? This might

[Lift] Re: Why menu generation and page access control is combined?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:25 PM, Vesa wrote: > > Hi, > > I have a feeling that SiteMap is a common cause of frustration among > newbies and was wondering why is it so? Having visible menu entries > generated by default on controlled pages made me feel that the > framework is making too many assum

[Lift] What's the deal with class(es) in API named with one character?

2009-11-02 Thread Vesa
Hi, I feel that having classes with names like S wastes my very limited brain ram while reading or writing lift applications. Why not to use more describing but longer names? Not wasting bytes on these difficult economic times? This might be unfair rant as I didn't find any others, but this damn

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:26 PM, Naftoli Gugenheim wrote: > > What's stopping the instances from managing themselves? > There's a lot of start-up cost associated with the reflection used to determine what stuff is fields, etc. Doing that for each instance would destroy performance. But if any f

[Lift] Re: Why menu generation and page access control is combined?

2009-11-02 Thread Jim Barrows
On Mon, Nov 2, 2009 at 1:25 PM, Vesa wrote: > > Hi, > > I have a feeling that SiteMap is a common cause of frustration among > newbies and was wondering why is it so? Having visible menu entries > generated by default on controlled pages made me feel that the > framework is making too many assump

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Jim Barrows
On Mon, Nov 2, 2009 at 1:15 PM, Vesa wrote: > > Hi, > > I was wondering few thing while reading lift examples. Could the Link > class be turned into a case class so reading would improve? new Link > ("a" :: "b" :: nil, false) could be RecursiveLink("a", "b") and new > Link("a" :: "b" :: Nil) coul

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Naftoli Gugenheim
What's stopping the instances from managing themselves? - Jim Barrows wrote: On Mon, Nov 2, 2009 at 1:16 PM, Vesa wrote: > > By the way, why orm classes need to be aware of the companion object? > Could this dependency be eliminated somehow? > The Mapper/Re

[Lift] Why menu generation and page access control is combined?

2009-11-02 Thread Vesa
Hi, I have a feeling that SiteMap is a common cause of frustration among newbies and was wondering why is it so? Having visible menu entries generated by default on controlled pages made me feel that the framework is making too many assumptions. I would personally prefer having to explicitly make

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Jim Barrows
On Mon, Nov 2, 2009 at 1:16 PM, Vesa wrote: > > By the way, why orm classes need to be aware of the companion object? > Could this dependency be eliminated somehow? > The Mapper/Record companion object is where the code to do all the DB stuff lives. These are all static methods, they don't real

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Vesa
By the way, why orm classes need to be aware of the companion object? Could this dependency be eliminated somehow? - Vesa On 2 marras, 22:02, Vesa wrote: > I doubt I can find one, but it still feels awkward having to type the > name of the class so many times. Another option could be to use som

[Lift] Making use of case classes and varargs in Link

2009-11-02 Thread Vesa
Hi, I was wondering few thing while reading lift examples. Could the Link class be turned into a case class so reading would improve? new Link ("a" :: "b" :: nil, false) could be RecursiveLink("a", "b") and new Link("a" :: "b" :: Nil) could be something like AbsoluteLink("a", "b"). This would at

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Vesa
I doubt I can find one, but it still feels awkward having to type the name of the class so many times. Another option could be to use some shared object to do this stuff, but I guess it wouldn't be as neat to use it then. - Vesa On 2 marras, 18:33, David Pollak wrote: > On Mon, Nov 2, 2009 at 8

[Lift] Two how-to questions

2009-11-02 Thread Naftoli Gugenheim
Could someone give me a quick code sample to get me started on each of the following? 1. A task that should run at a fixed time each day 2. (If it's possible.) Errors logged should be emailed. Thanks! --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: JPADemo 1.1-SNAPSHOT: id with auto-increment (MySQL or H2)

2009-11-02 Thread Derek Chen-Becker
If updating the pom hibernate version fixes the problem, please file an issue and we'll update the Archetype. Thanks, Derek On Mon, Nov 2, 2009 at 6:23 AM, Chris Lewis wrote: > > Troy, > > I ran into the same problem. It seems to be a hibernate issue - that > archetype uses an older version of

[Lift] Re: LiftTicket and AJAX

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 10:50 AM, Derek Chen-Becker wrote: > If there are no objections, I'll add that method to SHtml post-M7. I was > thinking maybe calling it ajaxEditable, what does everything think? Also, > any votes +/- for making some Mapper traits to simplify adding this > behavior? > I'm

[Lift] Re: LiftTicket and AJAX

2009-11-02 Thread Derek Chen-Becker
If there are no objections, I'll add that method to SHtml post-M7. I was thinking maybe calling it ajaxEditable, what does everything think? Also, any votes +/- for making some Mapper traits to simplify adding this behavior? Derek On Sun, Nov 1, 2009 at 7:38 AM, Marius wrote: > > I think it wou

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 8:14 AM, Vesa wrote: > > It seems like boilerplate that every mapped class needs to define a > getSingleton method returning companion object. Can't there be any > default with this and is there any way to get rid of the manually > defined companion object if user isn't goi

[Lift] regular expression

2009-11-02 Thread jack
I am using the findAllIn function for regular expressions. How do I make it ignore case? I know its simple but I can't find it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send

[Lift] Why no default with getSingleton?

2009-11-02 Thread Vesa
It seems like boilerplate that every mapped class needs to define a getSingleton method returning companion object. Can't there be any default with this and is there any way to get rid of the manually defined companion object if user isn't going to define any new methods on it, while still having

[Lift] Re: Anything similar as Rack::Test and rspec for lift applications?

2009-11-02 Thread Vesa
Hi, I'm aware of Selenium, but it operates on higher level than Rack::Test and is slower although testing mimics real world situations better as it drives a real browser. Can I find some examples of testkit somewhere? - Vesa On 2 marras, 17:04, David Pollak wrote: > On Mon, Nov 2, 2009 at 7:39

[Lift] Re: Anything similar as Rack::Test and rspec for lift applications?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 7:39 AM, Jim Barrows wrote: > Scala has 2 test frameworks (Specs , scala > test ) that I'm aware of, and can make > use of the selenium test framework . > > And Lift's testkit allows

[Lift] Re: Anything similar as Rack::Test and rspec for lift applications?

2009-11-02 Thread Jim Barrows
Scala has 2 test frameworks (Specs , scala test ) that I'm aware of, and can make use of the selenium test framework . You could also, I suppose use JUnit or TestNG java frameworks if you wanted, again with

[Lift] Anything similar as Rack::Test and rspec for lift applications?

2009-11-02 Thread Vesa
Hi, Ruby web apps can be tested easily with Rack::Test like on the example below. Is there anything similar tfor org.specs and lift? I see the lack of tutorials/documentation on testing the greatest obstacle of taking lift into use. require 'hello_world' require 'test/unit' require 'rack/test'

[Lift] Re: Error mvn install on lift-actor

2009-11-02 Thread Josh Suereth
huh, perhaps if I was in active development with you guys, I'd have a better idea... I know maven + -SNAPSHOT can cause fun for everyone ;) Anyway, I wonder if maven has the ability to turn on checksuming now. I know things like archiva and nexus can do that, but this might help you avoid proble

[Lift] Re: JPADemo 1.1-SNAPSHOT: id with auto-increment (MySQL or H2)

2009-11-02 Thread Chris Lewis
Troy, I ran into the same problem. It seems to be a hibernate issue - that archetype uses an older version of hibernate that breaks with mysql. Change the version in your pom for hibernate (I don't remember the latest, maybe 3.4GA). I meant to post this a while ago, as it cost me an hour or m

[Lift] Re: Error mvn install on lift-actor

2009-11-02 Thread Timothy Perrett
Sorry, but +1 Maven is a funny beast that needs some controlling but in my experience a little manual repo pruneing usually yeilds results :-) Cheers, Tim Sent from my iPhone On 2 Nov 2009, at 02:18, Josh Suereth wrote: > There's something just wrong about this > > On Sun, Nov 1, 2009

[Lift] Re: Possible bug in xml to json conversion

2009-11-02 Thread Joni Freeman
No problem Jonathan. We already have a fix for that bug so opening a report is not necessary. The fix is now being reviewed by other commiters: http://reviewboard.liftweb.net/r/69/diff/#index_header Cheers Joni On 2 marras, 07:00, Jonathan Ferguson wrote: > Thanks for the update Joni and sorry