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

2009-11-03 Thread Vesa
Why not with varargs like on below? case class Link(pathParts: String*) and I can say Link(a, b)? - Vesa On 3 marras, 00:15, Jim Barrows jim.barr...@gmail.com wrote: 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

[Lift] Button to run Javascript

2009-11-03 Thread aw
I needed a button that goes back, so I created an ajaxButton with code like: SHtml.ajaxButton(Cancel, () = JsCmds.jsExpToJsCmd(JsRaw (history.back();))) So, is this the best version? Or can this be simplified? (I didn't feel well acquainted to leveraging Javascript from reading the

[Lift] Re: ajax-loader not showing?

2009-11-03 Thread Jeppe Nejsum Madsen
Works :-) Thanks. /Jeppe On Tue, Nov 3, 2009 at 12:20 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Fixed On Sat, Oct 31, 2009 at 9:04 AM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: David Pollak feeder.of.the.be...@gmail.com writes: It's a bug.  Please file a ticket. Done.

[Lift] Re: View List content

2009-11-03 Thread wapgui
Hi Tim, I think you mean jGit, eGit is the eclipse plugin wrapper for jGit. But I only knew eGit till now, so it was not in focus. The way to get the information is quite equal via InputStreamReader. I will try it out. But the problem means to be the same. How can I display a list with strings?

[Lift] Re: View List content

2009-11-03 Thread Thiébaut Champenier
Hi Torsten, In your html, you have to use list:item/ according to how you bind:  def list(xhtml:NodeSeq):NodeSeq = {    elem.flatMap(file = bind(list, xhtml, item - pfile/p))  } plift:HelloWorld.howdy //p lift:HelloWorld.list   item / /lift:HelloWorld.list

[Lift] Re: View List content

2009-11-03 Thread wapgui
Thanks, that made it. On 3 Nov., 10:34, Thiébaut Champenier tchampen...@gmail.com wrote: Hi Torsten, In your html, you have to use list:item/ according to how you bind:  def list(xhtml:NodeSeq):NodeSeq = {    elem.flatMap(file = bind(list, xhtml, item - pfile/p))  }

[Lift] Re: cucumber + webrat with Lift (switch off auto generation of name/id attrs)

2009-11-03 Thread ben
Hi, Thanks very much, that's exactly what I'm after ! For anyone reading this and wondering how to put Lift in test mode, here is one way if you're using maven+jetty : mvn jetty:run -Drun.mode=test --~--~-~--~~~---~--~~ You received this message because you

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

2009-11-03 Thread Chris Lewis
Troy, Glad that helped. You don't need to manually install log4j, you can declare a dependency on the simple artifact: dependency groupIdorg.slf4j/groupId artifactIdslf4j-simple/artifactId version1.4.2/version /dependency I think those simple tweaks (deps on hibernate 3.4 and sl4j) may fix

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

2009-11-03 Thread Troy Noble
I think the slf4j-simple you suggest might work better than the slf4j-nop I had settled upon. I just picked one out of the slf4j-1.4.2.jar that didn't have any other downstream dependencies. I am sure slf4j-nop does absolutely nothing (old school /dev/null style logging) whereas slf4j-simple

[Lift] Re: Button to run Javascript

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:35 AM, aw anth...@whitford.com wrote: I needed a button that goes back, so I created an ajaxButton with code like: SHtml.ajaxButton(Cancel, () = JsCmds.jsExpToJsCmd(JsRaw (history.back();))) This is going to make a server round-trip. I'd suggestion using

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

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:16 AM, Vesa brut...@gmail.com wrote: Why not with varargs like on below? case class Link(pathParts: String*) and I can say Link(a, b)? At this point, we can't overload the object Link.apply method because the compiler will get confused. If this is bothering you

[Lift] Lift 1.1 Milestone 7 less than 36 hours away

2009-11-03 Thread David Pollak
Folks, Lift 1.1 M7 is less than 36 hours away (barring some huge defect that folks uncover). It's time for everyone to do some testing of their code against SNAPSHOT. Specifically: - SNAPSHOT and M7 are compiled against Scala 2.7.7. Please update your build system and dependencies to

[Lift] Re: External usage of lift ORM

2009-11-03 Thread David Pollak
On Mon, Nov 2, 2009 at 3:26 PM, Marcin Jurczuk mjurc...@gmail.com wrote: 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

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

2009-11-03 Thread Indrajit Raychaudhuri
Thank you Troy for the detailed ticket! A fix is up for review: http://reviewboard.liftweb.net/r/90/ slf4j-simple is preferred common denominator. slf4j-nop is self-defeating IMHO :) Good point regarding slf4j-log4j12 for legacy fallback. I have added an inline note in the POM. Cheers,

[Lift] Re: CRUDify view pages not working correctly

2009-11-03 Thread Jim McBeath
I have not added anything that seems unusual to me. My code looks just like what I have listed below except for the table and column names. I am putting Foo.menus into another menu in the SiteMap, that part seems to be working properly. I have some other tables that reference this one as a

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
I would expect that any time the form fails to validate(try clicking submit without typing a password or a valid email in hellolift) i would get a message saying what is wrong. On Nov 3, 12:58 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/11/3 DFectuoso santiago1...@gmail.com

[Lift] Compiler errors switching to M6

2009-11-03 Thread glenn
I get the following compiler error when switching from M5 to M6 versions of Lift: ..\snippet\ManageUsers.scala:24: error: ManageUsers.this.ModelView does not take type parameters val view: ModelView[User] = new UserView(new User, this) Here's my code to this point: class

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 8:56 AM, glenn gl...@exmbly.com wrote: I get the following compiler error when switching from M5 to M6 versions of Lift: ..\snippet\ManageUsers.scala:24: error: ManageUsers.this.ModelView does not take type parameters val view: ModelView[User] = new UserView(new

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread glenn
David, I understand how to fix the compiler error in my code. Are you suggesting I'm better going back to the Snapshots, and taking my chances with the many code changes that requires? Glenn On Nov 3, 9:06 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Nov 3, 2009 at 8:56 AM,

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 9:11 AM, glenn gl...@exmbly.com wrote: David, I understand how to fix the compiler error in my code. Are you suggesting I'm better going back to the Snapshots, and taking my chances with the many code changes that requires? You are going to have to make the

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread glenn
David, To follow up. I'd much rather use Snapshots than Milestones. Interim is interim, and I prefer to be in lockstep with the most current code base. But warnings on this forum notwithstanding, I have found myself in the past spending a lot of time fixing unexpected compiler errors, and I

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
Yes, changing the binding to the full errors,notices and warning fixed it, now i just need to override the messages on fail(don't know how to change those password.must.set and the default password) and i'll be over this signup thing On Nov 3, 2:49 pm, DFectuoso santiago1...@gmail.com wrote:

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
Wow, its working allright, let me compare your code with mine, so far the only diff is that you are using the full error snippet lift:Msgs showAll=true lift:error_classerror/lift:error_class lift:notice_classnotice/lift:notice_class

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/3 DFectuoso santiago1...@gmail.com Wow, its working allright, let me compare your code with mine, so far the only diff is that you are using the full error snippet lift:Msgs showAll=true lift:error_classerror/lift:error_class

[Lift] Lift (kinda) compiles and (sorta) runs on Scala 2.8

2009-11-03 Thread David Pollak
Folks, I've got Lift compiling under Scala 2.8. Well, not all of Lift, but enough of Lift to run the examples program. I had to remove some parts of Mapper (the type-checker was cranky about some casts) and other parts of Mapper are subclasses of Scala collection classes (so the new APIs broke

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

2009-11-03 Thread Naftoli Gugenheim
It wasn't able to read the local repository data, and deleting .m2/ didn't help? On Tue, Nov 3, 2009 at 12:09 AM, Randinn rand...@gmail.com wrote: 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,

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
Thank you. It's my contribution to the W-JAX Challenge where several web frameworks compete. But to be honest: The others are really nicely designed ... Heiko 2009/11/3 Randinn rand...@gmail.com Nicely designed site, just to go a bit off-topic, very clean. On Nov 4, 4:33 am, Heiko Seeberger

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Randinn
I think all you'd need to do is throw some CSS and Jquery in and you'll there :) On Nov 4, 6:42 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Thank you. It's my contribution to the W-JAX Challenge where several web frameworks compete. But to be honest: The others are really nicely

[Lift] Re: CRUDify view pages not working correctly

2009-11-03 Thread Troy Noble
What database are you using? MySQL? H2? Other Please try again with 1.1-SNAPSHOT or wait until tomorrow (Nov 4th) when 1.1-M7 is released. David fixed some things in Mapper just yesterday (issue # 151) related to uppercase dbTableName and dbColumnName to remedy a similar Mapper problem we

[Lift] Re: Lift 1.1 Milestone 7 less than 36 hours away

2009-11-03 Thread Neil.Lv
It sounds good, it's a good new for us! Congratulations , the M7 is coming ! Cheers, Neil On Nov 3, 10:05 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Lift 1.1 M7 is less than 36 hours away (barring some huge defect that folks uncover). It's time for everyone to do

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
You can find my User.scala file in http://etherpad.com/someScalaCode (saved on rev 1). I need to add an EULA and thats it tho... i would like to keep it as simple as possible(i hate the idea of having html hardcoded in a model, and using signupFields is great! so my only real issues to solve is

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Wait a minute. You want me to test that my change works--that simple messages are not multipart--or that other messages still are multipart? Both. Test that mail sent as plain text is not multipart and that all

[Lift] Re: CRUDify view pages not working correctly

2009-11-03 Thread Jim McBeath
This is on MySQL. I see the same behavior on Oracle. My key column is a CHAR column rather than VARCHAR. I noticed that some places in the code check for VARCHAR and CHAR types, whereas some only check for VARCHAR. I tried hacking the code to add CHAR in those places, but that did not make

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread Naftoli Gugenheim
I verified locally via dumbster that the content type is test/plain; charset=us-ascii for a single PlainMailBodyType. For two, or an XHTMLMailBodyType, it's multipart/alternative. Do I still need to contribute a test to Lift? - David

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I verified locally via dumbster that the content type is test/plain; charset=us-ascii for a single PlainMailBodyType. For two, or an XHTMLMailBodyType, it's multipart/alternative. Do I still need to contribute a

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/3 DFectuoso santiago1...@gmail.com I would expect that any time the form fails to validate(try clicking submit without typing a password or a valid email in hellolift) i would get a message saying what is wrong. That's how it works. Go to http://174.143.152.248:8080/kix-1.0/ to see

[Lift] Re: **Important** Migration guide Scala Actors - Lift Actors

2009-11-03 Thread glenn
David, I attempted to follow your blog piece and rewrite the code in Integrating Flex, BlazeDS, and Scala/Lift, at http://flexonrails.net/?p=103. Maybe I'm being a bit ambitious to redo this, but when I run just the Lift portion (without Flex/BazeDS) and make a call to my LiftActor

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Randinn
Nicely designed site, just to go a bit off-topic, very clean. On Nov 4, 4:33 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/11/3 DFectuoso santiago1...@gmail.com I would expect that any time the form fails to validate(try clicking submit without typing a password or a

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread Naftoli Gugenheim
Wait a minute. You want me to test that my change works--that simple messages are not multipart--or that other messages still are multipart? Or something else? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Nov 3, 2009 at 1:30 PM, Naftoli

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:30 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I asked you how to write one. I have no clue how to unit test email, or what content type an email is. And the test has to not fail on computers that don't have an SMTP server, I presume? I don't know how to write

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread Naftoli Gugenheim
So then can you answer my last question? What is a safe port to run Dumbster on? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I verified locally via dumbster that the

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:08 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Can someone look at Review Board? Is my addition okay? Did you write a test? Also, it's not going into M7, so it's not going to get merged into master until Thursday. On Sat, Oct 31, 2009 at 10:00 PM, Naftoli

[Lift] JUnit test on Eclipse

2009-11-03 Thread sunanda
Hi, I am using eclipse to write JUnit test. For the following sample code I am getting error:No Junit tests found. Where am I going wrong? package test import junit.framework.TestCase class UnitTest extends TestCase{ def test1() ={ println(Hello) } }

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread Naftoli Gugenheim
I asked you how to write one. I have no clue how to unit test email, or what content type an email is. And the test has to not fail on computers that don't have an SMTP server, I presume? As I mentioned on review board, I did test it manually though and it works fine. Do most commits include a

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread Naftoli Gugenheim
Let's say I write a test using dumbster. What port will it run on? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Wait a minute. You want me to test that my change works--that

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/3 DFectuoso santiago1...@gmail.com Yes, changing the binding to the full errors,notices and warning fixed it, now i just need to override the messages on fail(don't know how to change those password.must.set and the default password) and i'll be over this signup thing

[Lift] (Newbie Question) How to do simple transaction with mapper?

2009-11-03 Thread night_stalker
Is there any easy way like ActiveRecord's transaction ? I'd prefer ModelA.transaction { ModelB.transaction { ModelA.create fill someField save_!; ModelB delete_! someId ... }} If no block-like methods, something like the following is OK DB.beginTransaction ...

[Lift] Re: (Newbie Question) How to do simple transaction with mapper?

2009-11-03 Thread Naftoli Gugenheim
I think it's called DB.use, not sure. - night_stalkerusur...@gmail.com wrote: Is there any easy way like ActiveRecord's transaction ? I'd prefer ModelA.transaction { ModelB.transaction { ModelA.create fill someField save_!; ModelB delete_! someId

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
well that seems great! I use the snapshot so if you finish that and want to make someone very happy, you can send me an example of how it ended up working and i will be very very thankful! The last piece of the puzzle is the ** default value of the mappedPassword, since its part of the

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/4 DFectuoso santiago1...@gmail.com well that seems great! I use the snapshot so if you finish that and want to make someone very happy, you can send me an example of how it ended up working and i will be very very thankful! It is a bug in MappedPassword (not ProtoUser):

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread Naftoli Gugenheim
I thought of a smarter way to test it. Please tell me if you have any objections. I noticed that some of the specs extend the class they test. The idea is to refactor the call to actually send the email into an outside method. Then, after making some private members of Mailer protected, the

[Lift] Re: (Newbie Question) How to do simple transaction with mapper?

2009-11-03 Thread night_stalker
Thank you. solved: import net.liftweb.mapper.{DB, DefaultConnectionIdentifier} DB.use(DefaultConnectionIdentifier) { conn = conn.setAutoCommit(false) ... // CRUDs if(success) conn.commit else conn.rollback conn.setAutoCommit(true) } On Nov 4, 2:52 pm,

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/4 Heiko Seeberger heiko.seeber...@googlemail.com 2009/11/4 DFectuoso santiago1...@gmail.com well that seems great! I use the snapshot so if you finish that and want to make someone very happy, you can send me an example of how it ended up working and i will be very very thankful!