[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/4 Heiko Seeberger > 2009/11/4 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! >> > > It is a bug in MappedPassword (not Prot

[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: 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 spe

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/4 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! > It is a bug in MappedPassword (not ProtoUser): http://github.com/dpp/liftweb/

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

[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_stalker 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 ... }} If no

[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 ... DB.endTransa

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/3 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 > "password.must.set" is a ke

[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 Pollak wrote: On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim wrote: > > Wait a minute. You want me to test that my change works--that simple > messages are not multipart--or that ot

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

[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 David Pollak
On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim wrote: > > 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? > Ye

[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 Pollak wrote: On Tue, No

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

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:47 PM, Naftoli Gugenheim wrote: > > 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 other mail is multipa

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

[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 Pollak wrote: On Tue, Nov 3, 2009 at 3:00 PM, Naftoli Gugenheim wrote: > > I verified locally via dumbster that the content type is test/plain; > charset=us-ascii for a s

[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 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 some testing of their code

[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 Pollak wrote: On Tue, Nov 3, 2009 at 1:30 PM, Naftoli Gugenheim wrote: > I asked you how

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:30 PM, Naftoli Gugenheim wrote: > 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 tests against maile

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

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:08 PM, Naftoli Gugenheim wrote: > 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 Gugenheim > wrote:

[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 wrote: > 2009/11/3 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 mess

[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 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 designed ... > > Heiko > >

[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 > > Nicely designed site, just to go a bit off-topic, very clean. > > On Nov 4, 4:33 am, Heiko Seeberger > wrote: > >

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/3 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. > That's how it works. Go to http://174.143.152.248:8080/kix-1.0/ to see a live demo: Try t

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

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-03 Thread Naftoli Gugenheim
Can someone look at Review Board? Is my addition okay? On Sat, Oct 31, 2009 at 10:00 PM, Naftoli Gugenheim wrote: > How does this look? (Note: output from git diff -b, so applying it won't > indent properly) > > > On Fri, Oct 30, 2009 at 4:20 PM, Derek Chen-Becker > wrote: > >> Probably not unti

[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 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, Josh Suereth wr

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread Heiko Seeberger
2009/11/3 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 > > error > notice > error > > in the template, while im doing a > Then show me your Mapper 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 t

[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 error notice error in the template, while im doing a Is there a way to override the "default password" (**) without

[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 wrote: > You can find my User.s

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

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 9:11 AM, glenn 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 changes one wa

[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 wrote: > On Tue, Nov 3, 2009 at 8:56 AM, glenn wrote: > > > I get the

[Lift] Re: Compiler errors switching to M6

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 8:56 AM, glenn 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 User, this)

[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 UserView(entity:Use

[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 wrote: > 2009/11/3 DFectuoso > > > > > I am using MegaProtoUser in my user model a

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

[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, Indraj

[Lift] Re: External usage of lift ORM

2009-11-03 Thread David Pollak
On Mon, Nov 2, 2009 at 3:26 PM, Marcin Jurczuk 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 ? > As N

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

[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 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 so, why

[Lift] Re: Button to run Javascript

2009-11-03 Thread David Pollak
On Tue, Nov 3, 2009 at 1:35 AM, aw 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 simple HTML:

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

[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: org.slf4j slf4j-simple 1.4.2 I think those simple tweaks (deps on hibernate 3.4 and sl4j) may fix the JPA archetype woes, at least w/ mysql. Troy Noble wrote: > Yes I t

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

[Lift] Re: View List content

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

[Lift] Re: View List content

2009-11-03 Thread Thiébaut Champenier
Hi Torsten, In your html, you have to use according to how you bind: >  def list(xhtml:NodeSeq):NodeSeq = { >    elem.flatMap(file => bind("list", xhtml, "item" -> file)) >  } > > >   > --~--~-~--~~~---~--~~ You received this message because you are subscri

[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: 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 wrote: > 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 >> >> /Je

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

[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 wrote: > 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.