[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 j...@spiralarm.com wrote: Thanks for the

[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 joshua.suer...@gmail.com wrote: There's something just wrong about this

[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

[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

[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: Anything similar as Rack::Test and rspec for lift applications?

2009-11-02 Thread Jim Barrows
Scala has 2 test frameworks (Specs http://code.google.com/p/specs/, scala test http://www.artima.com/scalatest/) that I'm aware of, and can make use of the selenium test framework http://seleniumhq.org/. You could also, I suppose use JUnit or TestNG java frameworks if you wanted, again with

[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 jim.barr...@gmail.com wrote: Scala has 2 test frameworks (Specs http://code.google.com/p/specs/, scala test http://www.artima.com/scalatest/) that I'm aware of, and can make use of the selenium test framework http://seleniumhq.org/. And Lift's

[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 feeder.of.the.be...@gmail.com wrote:

[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] 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] Re: Why no default with getSingleton?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 8:14 AM, Vesa brut...@gmail.com 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

[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 marius.dan...@gmail.com

[Lift] Re: LiftTicket and AJAX

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 10:50 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: 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

[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 burningodzi...@gmail.comwrote: Troy, I ran into the same problem. It seems to be a hibernate issue - that archetype uses

[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

[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 feeder.of.the.be...@gmail.com

[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 least eliminate

[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 brut...@gmail.com 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

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Jim Barrows
On Mon, Nov 2, 2009 at 1:16 PM, Vesa brut...@gmail.com 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,

[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

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Naftoli Gugenheim
What's stopping the instances from managing themselves? - Jim Barrowsjim.barr...@gmail.com wrote: On Mon, Nov 2, 2009 at 1:16 PM, Vesa brut...@gmail.com wrote: By the way, why orm classes need to be aware of the companion object? Could this dependency be

[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 brut...@gmail.com 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) could

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:26 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 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

[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 menu generation and page access control is combined?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:25 PM, Vesa brut...@gmail.com 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

[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 brut...@gmail.com 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?

[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

[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 feeder.of.the.be...@gmail.com wrote: On Mon, Nov 2, 2009 at 12:31 PM, Vesa brut...@gmail.com wrote: Hi, I feel that having classes with names like S wastes my very limited brain ram while reading or

[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

[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 brut...@gmail.com 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,

[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 jim.barr...@gmail.com wrote: On Mon, Nov 2, 2009 at 1:15 PM, Vesa brut...@gmail.com 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

[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 brut...@gmail.com wrote: You're right about that. You probably wouldn't get very

[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 feeder.of.the.be...@gmail.com wrote: On Mon, Nov 2, 2009 at 12:25 PM, Vesa brut...@gmail.com wrote: Hi, I have a feeling that SiteMap is a common cause of frustration among

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 12:36 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 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

[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

[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 dchenbec...@gmail.comwrote: 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

[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 more

[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

[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 = spanWelcome to scagit using {exec(git --version)._1} /span var tree =

[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 brut...@gmail.com 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

[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

[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 torsten.schm...@wapgui.com wrote: Hi, I'm playing a littlebit with Lift and git and the following

[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: ajax-loader not showing?

2009-11-02 Thread David Pollak
Fixed On Sat, Oct 31, 2009 at 9:04 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com 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

[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 the

[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 :: appender name=email class=org.apache.log4j.net.SMTPAppender param name=BufferSize value=512 / param name=SMTPHost value=127.0.0.1 / param name=From value=myser...@mydomain.com /

[Lift] Re: Refresh Session Variable

2009-11-02 Thread David Pollak
On Mon, Nov 2, 2009 at 4:06 PM, sunanda sunanda.pa...@gmail.com 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

[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 Jurczukmjurc...@gmail.com wrote: Hello, I would like to use lift ORM(Mapper) without lift, as a

[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 McBeathgoo...@j.jimmc.org 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

[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

[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 joshua.suer...@gmail.com wrote: huh, perhaps if I was in active development with you guys, I'd have a better idea... I know maven +

[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

[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 sunanda.pa...@gmail.com wrote: Hi, How to do unit testing in Lift Framework. Sunanda. --~--~-~--~~~---~--~~ You received this

[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

[Lift] Re: Question about megaprotouser S.error

2009-11-02 Thread Heiko Seeberger
2009/11/3 DFectuoso santiago1...@gmail.com 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() {

[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