[Lift] Relax test cases?

2009-07-17 Thread Heiko Seeberger
Hi, As I am travelling a lot I often use my MacBook Air for coding. This morning I ran into the following issue when trying to build Lift: --- Test set: net.liftweb.textile.TextileSpecTest

[Lift] Re: Parsing JSON POST

2009-07-17 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: You can use: Box.asA[Map[String, _]](in) which will return Full(in) if in is a Map[String, _] or Empty if it's not. This helps in for comprehensions. Ah, didn't know that. Very nice! /Jeppe

[Lift] Re: TableSorter and Crudify

2009-07-17 Thread Andrea Peruffo
Solved: There is some trouble resolving the path of the javascripts library, with the first / is ok and without it doesn't works. override def _showAllTemplate = lift:crud.all head script id=jquery-metadata src=/style/javascript/jquery-metadata.js type=text/javascript/script

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-17 Thread Jonas Bonér
Hi Greg. Have you had time to look at the JTA stuff? Should I merge in master? /Jonas 2009/7/7 Jonas Bonér jbo...@gmail.com: Thanks Tim. Thanks for staying on top of it. Derek has already looked at it and seemed to like it. But I'll wait until I get Greg's feedback. 2009/7/7 Timothy

[Lift] Re: TableSorter and Crudify

2009-07-17 Thread Bjarte Stien Karlsen
Awesome! Where did you put this to get it to work? It would be nice to have this built into Lift as an option since tablesorter is very usefull for large lists of stuff. mvh Bjarte On Fri, Jul 17, 2009 at 9:23 AM, Andrea Peruffoa.peru...@mcmspa.it wrote: Solved: There is some trouble

[Lift] Re: Mapper or Record

2009-07-17 Thread czerwonka
What are the use cases then? Why Mapper over Record? If the answer is people are using it and we have to support it, then why would I go down that path. There must have been a reason to create Record over Mapper. On Jul 11, 11:16 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Mapper will

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-17 Thread Jonathan Meeks
I don't see how it would help. How would the SHtml.hidden callback, presumably defined deleteFileForm snippet method, know the filename? That value somehow needs to be passed from the fileManager method to the deleteFileForm. I was hoping that the a snippet tag could take attributes where I

[Lift] Re: Jersey + Lift, whats the story?

2009-07-17 Thread David Pollak
There are benefits to both approaches. I prefer the partial function composition, but annotations on Pojos have their place. Wait a few days, and I think there'll be some very good news on this front. On Fri, Jul 17, 2009 at 7:28 AM, Timothy Perrett timo...@getintheloop.euwrote: Hey guys,

[Lift] Re: Stringing binds

2009-07-17 Thread David Pollak
On Thu, Jul 16, 2009 at 5:17 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is your question why I would want multiple prefixes for a snippet? Or you didn't understand my question? Meanwhile I made myself an implicit so you can call bind on the NodeSeq and chain binds. For particularly

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-17 Thread Naftoli Gugenheim
No, just replace your current hidden tag with SHtml's (use curly baces to embed it in the xml). Their callbacks are executed when their form is submitted. You could also just replace the submit button with an SHtml.submit which works similarly but multiple submit buttons in the same form are

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-17 Thread David Pollak
On Fri, Jul 17, 2009 at 7:30 AM, Jonathan Meeks jonathanme...@gmail.comwrote: I don't see how it would help. How would the SHtml.hidden callback, presumably defined deleteFileForm snippet method, know the filename? That value somehow needs to be passed from the fileManager method to the

[Lift] Re: Stringing binds

2009-07-17 Thread David Pollak
I usually use the alternative namespaces in other methods: bind(prefix, innerBind(xhtml), ...) def innerBind(xhtml: NodeSeq): NodeSeq = bind(otherPrefix, xhmtl, ...) On Fri, Jul 17, 2009 at 4:02 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: So how do you typically handle multiple calls to

[Lift] Re: Stringing binds

2009-07-17 Thread Naftoli Gugenheim
So how do you typically handle multiple calls to bind? Do you do bind(prefix, bind(prefix2, ...) ...) Or do you just do val xhtml2 = bind(..., xhtml, ...) val xhtml3 = ... With an implicit you can do xhtml.bind(prefix, bindParam... ).bind(prefix2, ... ) -

[Lift] Re: Stringing binds

2009-07-17 Thread Ross Mellgren
I used: ( { // functions and local defs supporting the first bind... bind(prefix1, _, ...) } andThen { // functions and local defs supporting the second bind... bind(prefix2, _, ...) } )(xhtml) once. I thought it was a decent layout for a

[Lift] Re: Wiki Articles

2009-07-17 Thread David Pollak
On Tue, Jul 14, 2009 at 6:19 PM, Xavi Ramirez xavi@gmail.com wrote: Thanks Alex! That exactly what we need. Over the next couple of days, I'm going to start organizing the existing wiki articles around this outline. In the mean time, is there a chance someone could help me get any of

[Lift] Re: Jersey + Lift, whats the story?

2009-07-17 Thread Meredith Gregory
Guys, After playing around with integrating Lift and Jersey before the Jersey guys did an 'official' integration and thinking hard about how i wanted to reference locations in data structures via URLs, i realized that zipperhttp://en.wikipedia.org/wiki/Zipper_%28data_structure%29(cf. this

[Lift] Re: Another backtrace on reload

2009-07-17 Thread fricke
often it helps to do a dummy change and see if the compilation correctly syncs with jetty's restart. Once in a while jetty runs amok though (out of memory) - the kill and restart it's not really a solution but it helps to go on in the end, I'm not a big fan of mvn scala:cc option since most of

[Lift] How to use selectObj over a range of integers

2009-07-17 Thread glenn
I would like to know how to create a selectObj over a range of integers. Do I have to use val numList = List(0-0, 1-2, 2-3 ...) def numbers = selectObj(numLists, Full(0), someFunc)? It seems a load to have to create a list of pairs. And what does the third param to selectObj look like in this

[Lift] Re: How to use selectObj over a range of integers

2009-07-17 Thread Ross Mellgren
selectObj((0 until 11).map(i = Pair(i, i.toString)), Full(0), i = println(the number chosen was + i + and 10 plus that was + (10 + i))) -Ross On Jul 17, 2009, at 6:27 PM, glenn wrote: I would like to know how to create a selectObj over a range of integers. Do I

[Lift] Re: How to use selectObj over a range of integers

2009-07-17 Thread Naftoli Gugenheim
- glenngl...@exmbly.com wrote: I would like to know how to create a selectObj over a range of integers. Do I have to use val numList = List(0-0, 1-2, 2-3 ...) def numbers = selectObj(numLists, Full(0), someFunc)? It seems a load to have to create a list

[Lift] Re: Timestamps, Mapper, and MySQL

2009-07-17 Thread g-man
I, too, want to get a better grip on managment of dates and times, and for me the first step is to record everything as a UTC instance in my DB (MySQL). What I need to do is to have a way to make the client browser include a 'Date' HTTP Header in every request. From that, I can get the timezone