Re: [Lift] Binding error

2009-12-30 Thread Igor Lev
Thanks Ross, that's helpful. I'm also trying to read through the BindHelpers code to see what's what. On Wed, Dec 30, 2009 at 3:09 PM, Ross Mellgren wrote: > A little background on implicits, maybe it'll help you. > > A particular expression will only ever have one implicit conversion applied >

Re: [Lift] Binding error

2009-12-30 Thread Ross Mellgren
A little background on implicits, maybe it'll help you. A particular expression will only ever have one implicit conversion applied -- the compiler will not attempt to chain together implicit conversions (as I believe that's an NP problem) So, the arguments to bind(...) are BindParams. There

Re: [Lift] Binding error

2009-12-30 Thread Igor Lev
Hmm that _was_ pretty silly. I guess I have to go over the implicits section in my Scala notes :) Thanks for the quick response David. On Wed, Dec 30, 2009 at 2:19 PM, David Pollak wrote: > > > On Wed, Dec 30, 2009 at 11:03 AM, Igor wrote: > >> Hi everyone, >> >> Long time lurker, first time p

Re: [Lift] Binding error

2009-12-30 Thread David Pollak
On Wed, Dec 30, 2009 at 11:03 AM, Igor wrote: > Hi everyone, > > Long time lurker, first time poster here, I've been trying to pick up > Lift recently and am stuck with a seemingly simple bind: > > > out of videos > > > some text > > > > > > val lengt

[Lift] Binding error

2009-12-30 Thread Igor
Hi everyone, Long time lurker, first time poster here, I've been trying to pick up Lift recently and am stuck with a seemingly simple bind: out of videos some text val length = resources.length bind("videos", template, "count" -> length,

Re: [Lift] Binding error in Ajax call : how to debug ?

2009-11-30 Thread David Pollak
On Fri, Nov 27, 2009 at 4:14 AM, Francois wrote: > Hello, > > When I use bind(namespace, template, bindings*) in an Ajax call, if > there is a binding error (for example, a misspelled word in the > template), I can't see any error, nor in the web broswer as it the case > for such error outside Aj

[Lift] Binding error in Ajax call : how to debug ?

2009-11-27 Thread Francois
Hello, When I use bind(namespace, template, bindings*) in an Ajax call, if there is a binding error (for example, a misspelled word in the template), I can't see any error, nor in the web broswer as it the case for such error outside Ajax Call, nor in the console log. I know that I can use fir

Re: [Lift] binding error

2009-11-24 Thread Timothy Perrett
Change: app.map to: app.flatMap Cheers, Tim On 24 Nov 2009, at 05:02, mr najmi wrote: > i have one error that is > found : scala.xml.NodeSeq > required: scala.xml.Node >bind("app",html, >^ > > here is my code: > > var app = AvailableSlot.findAll() >def viewapp(

[Lift] binding error

2009-11-23 Thread mr najmi
i have one error that is found : scala.xml.NodeSeq required: scala.xml.Node bind("app",html, ^ here is my code: var app = AvailableSlot.findAll() def viewapp(xhtml:NodeSeq):NodeSeq={ var ae = "" var remark = "" def prevSlot()={ }