[Lift] CouchDB optional fields behaviour

2010-02-20 Thread Justin Reardon
Hi, In JSONMetaRecord, the method needAllJSONFields, has documentation claiming it is false by default, where it is in fact true by default. It does seem safest to have this on to avoid pulling in corrupt documents. However, the current usage of needAllJSONFields does not work with optional

[Lift] Re: Setting run mode for Lift applications

2010-02-20 Thread aw
On Feb 18, 9:14 am, Petr Pudlak petr@gmail.com wrote:     Hi all, I've written my first application using Lift and now I'm deploying it into a production. I find it inconvenient that the run mode is specified as a JVM system property. First, sometimes JVM system properties are

[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-20 Thread Joni Freeman
Ok, this was yet another bug in serialization code. It is now fixed and should be in next snapshot build. Deserializing null values were not supported. Note a recommended way is to use Option for optional values. This would've worked: case class X(yy: Option[Y]) case class Y(ss: String)

Re: [Lift] CouchDB optional fields behaviour

2010-02-20 Thread Ross Mellgren
Ticket filed: http://www.assembla.com/spaces/liftweb/tickets/359 On review board: http://reviewboard.liftweb.net/r/220/ -Ross On Feb 20, 2010, at 3:02 AM, Justin Reardon wrote: Hi, In JSONMetaRecord, the method needAllJSONFields, has documentation claiming it is false by default, where it

[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-20 Thread Ali
Hi Joni, Would you please also post the ticket url so I can track it. Thank you again, -A On Feb 20, 10:39 am, Joni Freeman freeman.j...@gmail.com wrote: Ok, this was yet another bug in serialization code. It is now fixed and should be in next snapshot build. Deserializing null values were

[Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-20 Thread Ali
Thank you :) -A On Feb 20, 10:39 am, Joni Freeman freeman.j...@gmail.com wrote: Ok, this was yet another bug in serialization code. It is now fixed and should be in next snapshot build. Deserializing null values were not supported. Note a recommended way is to use Option for optional

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-20 Thread Jeppe Nejsum Madsen
aw anth...@whitford.com writes: On Feb 18, 9:14 am, Petr Pudlak petr@gmail.com wrote:     Hi all, I've written my first application using Lift and now I'm deploying it into a production. I find it inconvenient that the run mode is specified as a JVM system property. First, sometimes

Re: [Lift] Re: serializing and deserializing a json object through Lift-JSON

2010-02-20 Thread Ross Mellgren
http://www.assembla.com/spaces/liftweb/tickets/358 It's already been pushed to master so is probably in 2.0-SNAPSHOT. -Ross On Feb 20, 2010, at 5:09 AM, Ali wrote: Hi Joni, Would you please also post the ticket url so I can track it. Thank you again, -A On Feb 20, 10:39 am, Joni

[Lift] Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread Jim Barrows
I'm trying to get the uservoice widget working correctly, but it doesn't like working from the server, but works from a file just fine when I view source and copy and paste to a file. Any help would be appreciated! Uservoice adds it's feedback tab via some javascript that looks like: script

[Lift] Re: Setting run mode for Lift applications

2010-02-20 Thread Petr Pudlak
On 20 ún, 16:03, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: aw anth...@whitford.com writes: On Feb 18, 9:14 am, Petr Pudlak petr@gmail.com wrote: Second, it's impossible to run different lift applications with different run modes in a single servlet container. I have sympathy

Re: [Lift] CouchDB optional fields behaviour

2010-02-20 Thread Ross Mellgren
Pushed to master e82d7346d7cac7782d7e13c35373a585fc9d14e7 -Ross On Feb 20, 2010, at 3:02 AM, Justin Reardon wrote: Hi, In JSONMetaRecord, the method needAllJSONFields, has documentation claiming it is false by default, where it is in fact true by default. It does seem safest to have

Re: [Lift] CouchDB queryView Enhancements?

2010-02-20 Thread Ross Mellgren
Pushed to master http://github.com/dpp/liftweb/commit/39c475b373d925133b55437aa578cfc18b6a4442 -Ross On Feb 18, 2010, at 4:07 PM, Justin Reardon wrote: From the review board diff it looks like you forgot to actually remove the call to dontReduce (line 221). Perhaps a test case that will

Re: [Lift] CouchDB queryView Enhancements?

2010-02-20 Thread Justin Reardon
Thanks for the fixes Ross! This library is a really great piece of work. On 2010-02-20, at 12:53 , Ross Mellgren wrote: Pushed to master http://github.com/dpp/liftweb/commit/39c475b373d925133b55437aa578cfc18b6a4442 -Ross On Feb 18, 2010, at 4:07 PM, Justin Reardon wrote: From the

[Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread Marius
In boot try setting LiftRules.useXhtmlMimeType = false; If that doesn't work please try to set up a minimalistic lift app that you can share so we can try it really quick and diagnose. Br's, Marius On 20 feb., 19:43, Jim Barrows jim.barr...@gmail.com wrote: I'm trying to get the uservoice

Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread Jeppe Nejsum Madsen
On Sat, Feb 20, 2010 at 7:36 PM, Marius marius.dan...@gmail.com wrote: In boot try setting LiftRules.useXhtmlMimeType = false; I've had the same issues and iircc it's an issue with the Uservoice script not being fully xhtml compliant even if the problem is marked as fixed... What exactly does

Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread David Pollak
On Sat, Feb 20, 2010 at 10:59 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Sat, Feb 20, 2010 at 7:36 PM, Marius marius.dan...@gmail.com wrote: In boot try setting LiftRules.useXhtmlMimeType = false; I've had the same issues and iircc it's an issue with the Uservoice script not being

Re: [Lift] CouchDB queryView Enhancements?

2010-02-20 Thread Ross Mellgren
Oh, no problem at all; I'm sorry that it's not as well tested as it ought to be though with your help that's rapidly improving. I'm glad you like it! Please continue to share your experience with it -- I'll try to smooth out any wrinkles as fast as I can. Thanks for the well reasoned and

[Lift] Re: Facebook Application

2010-02-20 Thread jon
FYI, this is now in master. The client defaults to XML (Node), but if you want to use JSON you can create a client like this: def jsonClient(session:FacebookSession) = new FacebookClient[JValue] (session, is = { JsonParser.parse(new BufferedReader(new InputStreamReader(is))) },

[Lift] Re: London Lift talk

2010-02-20 Thread Marius
Neat ! ... will there be any video ? Br's, Marius On 20 feb., 22:22, andy andy1...@gmail.com wrote: Hi all The London Scala User Group (LSUG) will be presenting a talk by Richard Dallaway on 'Getting started with Lift' at SkillsMatter on the March 8th 2010 at 6:30. This will be a general

Re: [Lift] Re: London Lift talk

2010-02-20 Thread Timothy Perrett
Man, I really must try and drag my ass along to this... Video would be good though as its more than likely i'll miss it due to work Cheers, Tim On 20 Feb 2010, at 21:49, Marius wrote: Neat ! ... will there be any video ? Br's, Marius On 20 feb., 22:22, andy andy1...@gmail.com wrote:

[Lift] First comet steps

2010-02-20 Thread Nolan Darilek
I wrote my first comet actor today. Pretty neat stuff, and it was less difficult and painful than I expected. :) I'm having a bit of an issue figuring out how to render exactly what I want, though. My comet actor tracks a series of data imports, and since the import statuses change pretty

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-20 Thread Timothy Perrett
The former is a lift idiom that we use for everything configurable... Lets look into doing that. Jeppe: Are you willing to investigate this / take the lead? Cheers, Tim On 20 Feb 2010, at 17:47, Petr Pudlak wrote: If I understand it correctly, you suggest to have a function-type field

Re: [Lift] Re: London Lift talk

2010-02-20 Thread Okpala Ikenna N.
Hi Marius, Yes skills matter are hosting the event and provide video recording services, the video is made available two days after the event. i would iadvice that you watch this spacehttp://skillsmatter.com/podcast/java-jee/lift-getting-started-with-scala-and-lift Cheers, Okpala Ikenna N.

[Lift] how to put UTF string into the redirect URL?

2010-02-20 Thread wm
I need put some UTF string into the URL to be redirected, e.g.: str = 'some-UTF-str' S.redirectTo(/foo?bar=+str) But after the redirection, in the browser address bar it becomes: http://localhost:8080//foo?bar=??? '???' is the messed up UTF string. How can I fix this? thanks! -- You

[Lift] Re: how to put UTF string into the redirect URL?

2010-02-20 Thread Marius
I think you need to URL encode it. On 21 feb., 04:33, wm min...@gmail.com wrote: I need put some UTF string into the URL to be redirected, e.g.: str = 'some-UTF-str' S.redirectTo(/foo?bar=+str) But after the redirection, in the browser address bar it