[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 dri...@gmail.com wrote: Oh, speaking of jquery, tablesorter also has a zebra plugin that does this, so if you're

[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

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 alex.boisv...@gmail.comwrote: On

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

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

Re: [Lift] Skittr example in bad shape

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 4:35 AM, Vesa brut...@gmail.com 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

[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

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 ben...@gmail.com wrote: OK, I found the JsObj is useful, Thanks. On Thu, Dec 17, 2009 at 5:28 PM, Xuefeng Wu ben...@gmail.com wrote:

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

[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

[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 its...@gmail.com wrote: Hi, I've added the following code to change the database to

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 timo...@getintheloop.euwrote: Personally, I would just go with this: http://franca.exofire.net/jq/colorize I've used it very successfully on one

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

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 paul.ber...@gmail.comwrote: 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:

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

Re: [Lift] heapsize

2009-12-17 Thread Alex Boisvert
On Thu, Dec 17, 2009 at 10:56 AM, jack jack.wid...@gmail.com 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

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 Boisvertalex.boisv...@gmail.com wrote: Indeed, if you're building a lot of forms, you quickly realize that Lift currently requires fair

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:

[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

[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=209cityid=22 Can I serve this page from Lift's statelessDispatchTable and still using templating (and possibly S?) so that

[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

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... - Mariusmarius.dan...@gmail.com wrote: Let me know when you have something. Br's, Marius On Dec 17, 8:58 am, Naftoli Gugenheim naftoli...@gmail.com wrote: I'm

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

[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

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

Re: [Lift] Generalized jQuery function missing?

2009-12-17 Thread David Pollak
On Thu, Dec 17, 2009 at 2:59 PM, Jonathan Hoffman jonhoff...@gmail.comwrote: 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 =

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

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 alex.boisv...@gmail.comwrote: I think the idea is to be a little more declarative on defining the form and separate the low-level concerns of

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 liuyuan...@gmail.com wrote: The same code works fine in 1.1M7. Anyone

[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

[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

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 pe...@bubblefoundry.comwrote: 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

[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

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

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

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 je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com 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

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 := (234 - 3) / 2

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 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] 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 dri...@gmail.com wrote: I like the source for the DSL very much, I think it's very well written. Thanks for sharing it.

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 timo...@getintheloop.euwrote: This is funny - I actually recently started getting a strange drop in connection on one of my

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

[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 feeder.of.the.be...@gmail.com wrote: On Thu, Dec 17, 2009 at 2:08 PM, ngocdaothanh ngocdaoth...@gmail.comwrote: I checkout the source code from GitHub, do mvn clean compile and the

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

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 Fergusonj...@spiralarm.com wrote: 2009/12/15 David Pollak feeder.of.the.be...@gmail.com 5) Avoid using abbreviations I disagree. When

[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