[Lift] re: trying to get minimum needed for unit test to work using LIFT 1.1 and JPA

2009-12-17 Thread James Black
I am trying to test that my entities are working properly, but I get this at the end of the surefire output for the test: 1634 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: jblack.resumeapp.lift.model.Author.books -> Book 1639 [main] INFO org.hibernate.cfg.Annotat

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-17 Thread Naftoli Gugenheim
Is that sufficiently expressed in the wiki article draft (look for "Jim")? If not, what would you add? - Jonathan Ferguson wrote: 2009/12/15 David Pollak > > >> 5) Avoid using abbreviations >> > > I disagree. When coding with a non-IDE, abbreviations make l

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-17 Thread Jonathan Ferguson
2009/12/15 David Pollak > > >> 5) Avoid using abbreviations >> > > I disagree. When coding with a non-IDE, abbreviations make life much > easier. > When using abbreviations, could the abbreviation be documented even it if it the most mind numbingly obvious abbreviation as there will always be p

[Lift] Re: Problem in Lift 1.1-SNAPSHOT ?

2009-12-17 Thread ngocdaothanh
I am sorry. That compilation error comes from Lift's branch for Scala 2.8. On 12月18日, 午前8:38, David Pollak wrote: > On Thu, Dec 17, 2009 at 2:08 PM, ngocdaothanh wrote: > > > I checkout the source code from GitHub, do "mvn clean compile" and the > > output is: > > > lift-modules/lift-jta/src/mai

Re: [Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 8:28 PM, Derek Chen-Becker wrote: > I've been fixing quite a few mapper bugs lately, but nothing that should > have anything to do with connection handling... I've been working on StandardDBVendor lately. > > > On Thu, Dec 17, 2009 at 5:16 PM, Timothy Perrett > wrote:

Re: [Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-17 Thread Derek Chen-Becker
I've been fixing quite a few mapper bugs lately, but nothing that should have anything to do with connection handling... On Thu, Dec 17, 2009 at 5:16 PM, Timothy Perrett wrote: > This is funny - I actually recently started getting a strange drop in > connection on one of my applications. Others t

Re: [Lift] Re: Scala to JavaScript DSL ...

2009-12-17 Thread Naftoli Gugenheim
You're welcome. There's still some work to do; I would call it a proof of concept. But I'll let Marius finish it up. :) On Thu, Dec 17, 2009 at 10:18 PM, Ross Mellgren wrote: > I like the source for the DSL very much, I think it's very well written. > Thanks for sharing it. > > -Ross > > On Dec

Re: [Lift] Re: Scala to JavaScript DSL ...

2009-12-17 Thread Ross Mellgren
I like the source for the DSL very much, I think it's very well written. Thanks for sharing it. -Ross On Dec 17, 2009, at 9:34 PM, Naftoli Gugenheim wrote: > Okay! > The following code: > val jsFunc: JSFunc = Function("myFunc")("param1", "param2") {case param1 > :: param2 :: Nil => >

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-17 Thread Naftoli Gugenheim
(Not sure why on Chrome the wiki article page is all centered. Reported it to Chrome.) Can everyone look over the article? Especially everyone "quoted" in it -- Kris, Jim, DPP, Heiko, and anyone who I may have missed -- can you make sure everything represents your opinion correctly? Then if there

Re: [Lift] Re: Scala to JavaScript DSL ...

2009-12-17 Thread Naftoli Gugenheim
Okay! The following code: > val jsFunc: JSFunc = Function("myFunc")("param1", "param2") {case > param1 :: param2 :: Nil => Var("someArray") := Array(1, 2, 3, 4, 5) If(param1 < 30) { val x = Var("x") // now we can use either x or 'x x := (23

Re: [Lift] By default DB.buildLoanWrapper is eager (Jeppe, please read)

2009-12-17 Thread David Pollak
On Tue, Dec 8, 2009 at 12:34 PM, Jeppe Nejsum Madsen wrote: > David Pollak writes: > > > Folks, > > > > A month or so ago, I made the DB.buildLoanWrapper lazy. While it > provided a > > request-duration transaction, it did not actually pull the JDBC > connection > > from the pool until the first

Re: [Lift] Re: use S and templating without state?

2009-12-17 Thread David Pollak
In Boot: LiftRules.statelessDispatchTable.append { case r @ Req("stateless" :: _, "", GetRequest) => StatelessHtml.render(r) _ } And: package net.liftweb.example.lib import _root_.net.liftweb._ import http._ import common._ import scala.xml._ /** * Use Lift's templating without

Re: [Lift] Re: Scala to JavaScript DSL ...

2009-12-17 Thread Naftoli Gugenheim
Current state attached. 2009/12/17 Marius > Let me know when you have something. > > Br's, > Marius > > On Dec 17, 8:58 am, Naftoli Gugenheim wrote: > > I'm thinking of an approach to writing a DSL with a much cleaner syntax. > I'll try to put something together. > > > > --

[Lift] Re: AWS related Lift modules

2009-12-17 Thread Peter Robinett
I'd love to see that. While I'm throwing out wishes, it's be great to have a generic file store frontend and an S3 specific backend just like how Mapper and Record have different datastore drivers. But I have no need for this, it'd just be cool. Peter On Dec 17, 4:17 pm, David Pollak wrote: > Fo

Re: [Lift] Re: use S and templating without state?

2009-12-17 Thread Timothy Perrett
If its stateless (that is, statelessDispatchTable), then you dont have access to S as far as im aware...? Can you outline your use case specifically? Would views help you out here? Cheers, Tim On 17 Dec 2009, at 22:59, Peter Robinett wrote: > Harry, isn't it just the same as if you were servin

Re: [Lift] Re: use S and templating without state?

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 4:17 PM, Peter Robinett wrote: > Sorry, I forget you wanted to use templating. You'd want your > showAchievements() to return an XHTMLResponse with the html you've > build. TemplateFinder can help, but > LiftSession.processSurroundAndInclude which you'd use to execute any >

[Lift] AWS related Lift modules

2009-12-17 Thread David Pollak
Folks, Jon mentioned he's got some S3-related code he might dump into Lift when he has a chance. Having that sooner rather than later would be a win for me... also if anyone out there has SQS related code, I'd love to see that in Lift... or I'll write it next week. Thanks, David -- Lift, the

[Lift] Re: use S and templating without state?

2009-12-17 Thread Peter Robinett
Sorry, I forget you wanted to use templating. You'd want your showAchievements() to return an XHTMLResponse with the html you've build. TemplateFinder can help, but LiftSession.processSurroundAndInclude which you'd use to execute any snippets in it naturally isn't available. I'm not sure what you'd

Re: [Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-17 Thread Timothy Perrett
This is funny - I actually recently started getting a strange drop in connection on one of my applications. Others that use mapper are fine, but this one in particular seems to bone after a while. I changed the connection info to "localhost" as the sql server is on the same machine, and that ap

Re: [Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-17 Thread David Pollak
Please try doing a "mvn clean" and then retry your application. I have seen no problems with the dozen+ Lift apps I work with related to connections not working between M7 and M8. On Thu, Dec 17, 2009 at 5:59 AM, Jarod Liu wrote: > The same code works fine in 1.1M7. Anyone know what causes the

Re: [Lift] Confused about validation

2009-12-17 Thread David Pollak
I think I have to split the wizard stuff out so you can declare a single screen with validation. On Thu, Dec 17, 2009 at 11:23 AM, Alex Boisvert wrote: > I think the idea is to be a little more declarative on defining the form > and separate the low-level concerns of handling all the events to a

Re: [Lift] Re: Problem in Lift 1.1-SNAPSHOT ?

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 2:08 PM, ngocdaothanh wrote: > I checkout the source code from GitHub, do "mvn clean compile" and the > output is: > > lift-modules/lift-jta/src/main/scala/net/liftweb/transaction/ > TransactionContext.scala:206: error: class TransactionContext needs to > be abstract, since

Re: [Lift] Generalized jQuery function missing?

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 2:59 PM, Jonathan Hoffman wrote: > Does something like this exist? I didn't see it, but maybe it was in my > blind spot > > case class JqFunc(function:String, params:JsExp*) extends JsExp with > JQueryRight with JQueryLeft { >override val toJsCmd = function + "(" + > p

Re: [Lift] Generalized jQuery function missing?

2009-12-17 Thread Ross Mellgren
I usually just make one, since it's very simple, plus it can verify at compile time via the function type signature if you have the right number and type of arguments. -Ross On Dec 17, 2009, at 5:59 PM, Jonathan Hoffman wrote: > Does something like this exist? I didn't see it, but maybe it

[Lift] Re: use S and templating without state?

2009-12-17 Thread Peter Robinett
Harry, isn't it just the same as if you were serving, say, a REST api request? Add your Req case to the statelessDispatchTable and have it call a method of your choosing like so: case r @ Req("iphone" :: "achievements" :: Nil, "", GetRequest) => () => showAchievements(r). r is a Req instance and sh

[Lift] Generalized jQuery function missing?

2009-12-17 Thread Jonathan Hoffman
Does something like this exist? I didn't see it, but maybe it was in my blind spot case class JqFunc(function:String, params:JsExp*) extends JsExp with JQueryRight with JQueryLeft { override val toJsCmd = function + "(" + params.map(_.toJsCmd).mkString(",") + ")" } If not, i'll put in a t

Re: [Lift] Re: Scala to JavaScript DSL ...

2009-12-17 Thread Naftoli Gugenheim
I think I'm nearly there (that is a working equivalent of your sample) with G-d's help... - Marius wrote: Let me know when you have something. Br's, Marius On Dec 17, 8:58 am, Naftoli Gugenheim wrote: > I'm thinking of an approach to writing a DSL with a mu

[Lift] Re: Problem in Lift 1.1-SNAPSHOT ?

2009-12-17 Thread ngocdaothanh
I checkout the source code from GitHub, do "mvn clean compile" and the output is: lift-modules/lift-jta/src/main/scala/net/liftweb/transaction/ TransactionContext.scala:206: error: class TransactionContext needs to be abstract, since method getUnitName in trait ScalaEMFactory of type => String is

[Lift] use S and templating without state?

2009-12-17 Thread harryh
I have a simple web page that is not based on any session state, only on the provided params and the contents of the datastore: http://foursquare.com/iphone/achievements?uid=209&cityid=22 Can I serve this page from Lift's statelessDispatchTable and still using templating (and possibly S?) so that

[Lift] Did the jQuery Datepicker ever get integrated into Lift?

2009-12-17 Thread Peter Robinett
I see there was some discussion about it over a year ago[1], but I don't think it's be done. Is just dropping in the Javascript code the best way to go? If I do that, how do I bind to the form field(s) in my snippet code? Thanks! Peter [1]: http://groups.google.com/group/liftweb/browse_thread/t

[Lift] Re: Highlighting even/odd rows in a table

2009-12-17 Thread Stevo
Thanks for the JQuery recommendations - I really like the way these are done and will pursue whichever is least intrusive in my project. Thanks again and best regards, Steve Thompson -- -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this

Re: [Lift] Confused about validation

2009-12-17 Thread Alex Boisvert
I think the idea is to be a little more declarative on defining the form and separate the low-level concerns of handling all the events to a more generic form handler, object ShipToForm extends Form { val name = Variable[String](customerName) val address1: Variable[String]() val address2: Va

Re: [Lift] Confused about validation

2009-12-17 Thread Naftoli Gugenheim
What would such an abstraction do? What code would you like to write (including templates) and what should it do? - Alex Boisvert wrote: Indeed, if you're building a lot of forms, you quickly realize that Lift currently requires fair amount of code for forms th

Re: [Lift] heapsize

2009-12-17 Thread Alex Boisvert
On Thu, Dec 17, 2009 at 10:56 AM, jack wrote: > How do I increase the heapsize in Lift? > Nothing Lift-specific here. Just the usual "java -Xmx2048m" (or whichever amount you need). If your starting Lift via Tomcat/Jetty, then usually you place this in one of the startup scripts, or as JAVA_OP

Re: [Lift] Confused about validation

2009-12-17 Thread Alex Boisvert
Indeed, if you're building a lot of forms, you quickly realize that Lift currently requires fair amount of code for forms that are not backed by mapper elements. There's space there for better abstrations / DSL improvements to reduce boilerplate -- similar to what David has built for the new wizar

[Lift] heapsize

2009-12-17 Thread jack
How do I increase the heapsize in Lift? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options,

Re: [Lift] Problem in Lift 1.1-SNAPSHOT ?

2009-12-17 Thread David Pollak
Did you do an "mvn clean compile"? On Thu, Dec 17, 2009 at 9:27 AM, earthling_paul wrote: > While compiling my samples with Lift 1.1-SNAPSHOT I get this Compiler- > Error: > > [ERROR] D:\Projekte\TestProjects\hello-lift-11\src\main\scala\net > \liftweb\hello\snippet\TD.scala:76: error: object cre

[Lift] Problem in Lift 1.1-SNAPSHOT ?

2009-12-17 Thread earthling_paul
While compiling my samples with Lift 1.1-SNAPSHOT I get this Compiler- Error: [ERROR] D:\Projekte\TestProjects\hello-lift-11\src\main\scala\net \liftweb\hello\snippet\TD.scala:76: error: object creation impossible, since method doSync in trait AnyVarTrait of type [F](=> F)F is not defined [INFO] o

Re: [Lift] Re: Highlighting even/odd rows in a table

2009-12-17 Thread Alex Boisvert
I can recommend it too. I've just used it in an open-source project soon-to-be-released. alex On Thu, Dec 17, 2009 at 1:14 AM, Timothy Perrett wrote: > Personally, I would just go with this: > > http://franca.exofire.net/jq/colorize > > I've used it very successfully on one of my projects. > >

[Lift] Re: mysql database password

2009-12-17 Thread Peter Robinett
Use a properties file and don't include that in your source code commits. Here's another thread on it: http://groups.google.com/group/liftweb/browse_thread/thread/c156b9de99f3bce/ On Dec 17, 8:22 am, itsjar wrote: > Hi, I've added the following code to change the database to mysql. > However our

[Lift] mysql database password

2009-12-17 Thread itsjar
Hi, I've added the following code to change the database to mysql. However our code is open source and is freely browsable so It would be nice to hash the password somehow. Does anybody have an idea how to do this in LIFT? Thanks, itsjar object DBArxum extends ConnectionManager { def newConnec

Re: [Lift] Re: Funny behavior of head merging with nested head blocks

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 7:32 AM, greekscala wrote: > Hello, > > I have a head element in my default template with a standard title > element. > When I define a head element in my snippet with a new title element, > it is appended into the head section of my resulting html. > > Now there are two t

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-17 Thread Alex Boisvert
Good to hear. Yes, it felt more natural to pass a Json object since that's what the BlockUI API expects. alex On Thu, Dec 17, 2009 at 1:41 AM, Xuefeng Wu wrote: > OK, I found the JsObj is useful, Thanks. > > > On Thu, Dec 17, 2009 at 5:28 PM, Xuefeng Wu wrote: > >> Hi Alex, >> >> I found new

[Lift] Re: Funny behavior of head merging with nested head blocks

2009-12-17 Thread greekscala
Hello, I have a head element in my default template with a standard title element. When I define a head element in my snippet with a new title element, it is appended into the head section of my resulting html. Now there are two title element and the browser uses the first one. I thought the titl

Re: [Lift] Skittr example in bad shape

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 4:35 AM, Vesa wrote: > Hi, > > I was trying to run the skittr example from the lift-examples and it > doesn't seem to work. It's demonstrating usage of comet but it doesn't > get that far as the comet actor never receives any messages due to a > bug. Also the indentation i

[Lift] DB connection fail after upgrade from 1.1M7 to 1.1M8

2009-12-17 Thread Jarod Liu
The same code works fine in 1.1M7. Anyone know what causes the problem. Or maybe a bug in 1.1M8? boot.scala: DB.defineConnectionManager(DefaultConnectionIdentifier, new StandardDBVendor ("com.mysql.jdbc.Driver",

[Lift] Skittr example in bad shape

2009-12-17 Thread Vesa
Hi, I was trying to run the skittr example from the lift-examples and it doesn't seem to work. It's demonstrating usage of comet but it doesn't get that far as the comet actor never receives any messages due to a bug. Also the indentation is a mix of spaces and tabs of different width and looks qu

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-17 Thread Xuefeng Wu
OK, I found the JsObj is useful, Thanks. On Thu, Dec 17, 2009 at 5:28 PM, Xuefeng Wu wrote: > Hi Alex, > > I found new ModalDialog(html: NodeSeq, css: Box[JsObj]), > the parameter 'css' type is JsObj instead of String. > > Could you tell me the reason? > > I'm working on a customer widgets and

Re: [Lift] Is this a defect at JqJsCmds.ModalDialog

2009-12-17 Thread Xuefeng Wu
Hi Alex, I found new ModalDialog(html: NodeSeq, css: Box[JsObj]), the parameter 'css' type is JsObj instead of String. Could you tell me the reason? I'm working on a customer widgets and have the same case. On Thu, Dec 3, 2009 at 10:37 PM, Alex Boisvert wrote: > On Thu, Dec 3, 2009 at 12:40

[Lift] Re: Latest API Documentation

2009-12-17 Thread Timothy Perrett
As Indrajit already pointed out, the aggregation feature is something experimental in vscaladoc so not something that we can include in our build process just yet. We appreciate that people want these, but its not feasible yet so I guess we'll be doing it for major releases until its feasible to ma

[Lift] Re: Highlighting even/odd rows in a table

2009-12-17 Thread Timothy Perrett
Personally, I would just go with this: http://franca.exofire.net/jq/colorize I've used it very successfully on one of my projects. Cheers, Tim On Dec 17, 2:07 am, Ross Mellgren wrote: > Oh, speaking of jquery, tablesorter also has a "zebra" plugin that does this, > so if you're tablesorter yo