[Lift] non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread Stuart Roebuck
I've been trying to figure why some binding is giving me a stack overflow and I've discovered that if you use the BindHelpers.bind method with a set of function BindParams, all the functions are evaluated regardless of whether a match is found. So, for example, if you bind to an empty NodeSeq and

[Lift] Re: non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread Stuart Roebuck
(user.first_name, user.first_name(_)), FuncBindParam(last_name, () = SHtml.text(user.last_name, user.last_name(_)) to get a form of lazy evaluation. On Mar 10, 11:01 am, Stuart Roebuck stuart.roeb...@gmail.com wrote: I've been trying to figure why some binding is giving me a stack overflow

[Lift] Re: non-Lazy evaluation of bind FuncBindParam functions?

2010-03-10 Thread Stuart Roebuck
, Stuart Roebuck stuart.roeb...@gmail.comwrote: Okay, so I now understand what is happening a little better. When I saw a construct like:  bind(example,xhtml,    first_name - SHtml.text(user.first_name, user.first_name(_)),    last_name - SHtml.text(user.last_name, user.last_name

[Lift] NodeSeq to JsExp how to?

2010-03-09 Thread Stuart Roebuck
I'm trying to produce a web page with editable content. When the user clicks an edit button on a line it uses jQuery to display a modal dialog which allows fields of that line to be edited. I can easily produce a snippet to produce the lines using the backend data and an XHTML template and

[Lift] Re: NodeSeq to JsExp how to?

2010-03-09 Thread Stuart Roebuck
, 2010, at 12:06 PM, Stuart Roebuck wrote: I'm trying to produce a web page with editable content. When the user clicks an edit button on a line it uses jQuery to display a modal dialog which allows fields of that line to be edited. I can easily produce a snippet to produce the lines

[Lift] Re: NodeSeq to JsExp how to?

2010-03-09 Thread Stuart Roebuck
server-side code to be executed. import net.liftweb.util._ import Helpers._ Personally, I'd suggest jQuery( + AltXML.toXML(nodeSeq, false, true).encJs + ) Thanks, David Then JQueryNodeSeq(ns) ~ JsFunc(dialog) -Ross On Mar 9, 2010, at 12:06 PM, Stuart Roebuck wrote: I'm

[Lift] Re: NodeSeq to JsExp how to?

2010-03-09 Thread Stuart Roebuck
(NodeSeqDialog, ns)).toJsCmd + ) fixHtml takes the given NodeSeq and does all the appropriate magics to process lift: tags and then converts the NodeSeq to valid XHTML. } And don't forget the security implications! Hope that helps, -Ross On Mar 9, 2010, at 12:30 PM, Stuart Roebuck wrote

[Lift] Re: NodeSeq to JsExp how to?

2010-03-09 Thread Stuart Roebuck
Thanks Ross and David… the code seems to be working great now. Stuart. On Mar 9, 10:16 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Mar 9, 2010 at 1:11 PM, Stuart Roebuck stuart.roeb...@gmail.comwrote: Once again, thanks for all of this.  I will now go away

[Lift] Re: superficial first impressions from a rails junkie

2010-03-06 Thread Stuart Roebuck
Thank you for writing your comments. As most have said in the thread, honest feedback is valuable if not essential and often hard to come by, so please don't be put off by the odd negative response. I'm fairly newbie here too and share some of your concerns about Lift. For what it's worth I

[Lift] Re: New logging code is in master

2010-03-04 Thread Stuart Roebuck
Trying this on 2.8 with the 2.8 Lift Snapshot. The Logger trait seems to work fine though looking at the code I can't see how setup gets called. The Loggable trait is throwing a null pointer exception. I'm using Log4J. Stuart. P.S. I don't want to mess with other people's wiki pages, but I

[Lift] Re: Documenting the source code / supplementing the API docs

2010-02-26 Thread Stuart Roebuck
of docs, so my voice is a small one on this issue, other than to give hearty thanks to those who write documentation. On Mon, Feb 22, 2010 at 1:05 PM, Stuart Roebuck stuart.roeb...@gmail.comwrote: Great... okay, I’d better do some writing :-) In the absence of a decision I’ll try

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-26 Thread Stuart Roebuck
Tim, Thanks - that sounds like a good idea. Stuart. On 26 Feb 2010, at 10:50, Timothy Perrett wrote: Stuart, You can still contribute to the wiki and of your findings or musings - that is totally open. Cheers, Tim -- You received this message because you are subscribed to the Google

[Lift] Re: Documenting the source code / supplementing the API docs

2010-02-26 Thread Stuart Roebuck
Okay - I've added a page to the wiki:   http://wiki.github.com/dpp/liftweb/sitemap-basics On Feb 26, 11:20 am, Stuart Roebuck stuart.roeb...@gmail.com wrote: Tim, Thanks - that sounds like a good idea. Stuart. On 26 Feb 2010, at 10:50, Timothy Perrett wrote: Stuart, You can still

[Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Stuart Roebuck
to get a concordance from the list on the content first. -Ross On Feb 19, 2010, at 10:53 AM, Stuart Roebuck wrote: I've had a bit of a break from Lift and coming back I find myself annoyed that I didn't write some notes last time and am having to go back to searching through the various

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Stuart Roebuck
, Tim On 22 Feb 2010, at 16:14, Stuart Roebuck wrote: Sorry for the slow response—was away for a family weekend! I have limited knowledge of Lift internals… However, my view is that it is often easier to document code when you don't know it well than when you do, because you soon loose

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Stuart Roebuck
this and merge your documentation changes into the master (provided DPP has no objections to this - seeing as its documentation I doubt he has) Any takers from the team? Cheers, Tim On 22 Feb 2010, at 16:14, Stuart Roebuck wrote: Sorry for the slow response—was away for a family weekend

[Lift] Documenting the source code / supplementing the API docs

2010-02-19 Thread Stuart Roebuck
I've had a bit of a break from Lift and coming back I find myself annoyed that I didn't write some notes last time and am having to go back to searching through the various bits of documentation to figure things out. Anyway, after much thought I decided that the best way to write my notes would

[Lift] Re: Scheduling the San Francisco Scala Lift Off

2010-01-13 Thread Stuart Roebuck
Or Edinburgh? :-) On Jan 13, 12:22 pm, Mads Hartmann mads...@gmail.com wrote: Was is 'Scala Lift Off' ? I live in Denmark so i might be able to make it in either London or Norway :) On Jan 13, 12:32 pm, Miles Sabin mi...@milessabin.com wrote: On Wed, Jan 13, 2010 at 3:31 AM, David

[Lift] Re: Removing Scala Actors from Lift

2009-09-30 Thread Stuart Roebuck
have time to wait indefinitely. - Josh On Tue, Sep 29, 2009 at 1:41 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Sep 29, 2009 at 2:35 AM, Stuart Roebuck stuart.roeb...@gmail.com wrote: Apologies if I've missed something obvious but my web search hasn't

[Lift] Re: Removing Scala Actors from Lift

2009-09-29 Thread Stuart Roebuck
Apologies if I've missed something obvious but my web search hasn't turned anything up... What are the Scala Actors instability issues? I'm in the process of doing some major Scala development work and this comment raises concerns that I'd like to understand. Best, Stuart On Sep 29, 3:30 am,

[Lift] Re: Removing Scala Actors from Lift

2009-09-29 Thread Stuart Roebuck
Okay, I think I've now found the reference I was looking for... http://mail-archives.apache.org/mod_mbox/incubator-esme-dev/ 200905.mbox/ %3ccdbebedf0905220957k7767c05emc0b6fb7812f1f...@mail.gmail.com%3e Stuart. On Sep 29, 10:35 am, Stuart Roebuck stuart.roeb...@gmail.com wrote: Apologies

[Lift] Re: 1.0.2 released

2009-09-11 Thread Stuart Roebuck
1.0.2 has certainly fixed the problem for me which I had encountered in 1.0.1. Stuart. On Sep 11, 6:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Did you update your pom.xml file to set the lift version to 1.0.2? I just created a new project with 1.0.2 and it does not display this

[Lift] Re: Announcing 1.0.1!

2009-09-10 Thread Stuart Roebuck
I've switched a very simple test project from 1.0 to 1.0.1 and switched the scala version to 2.7.5 Now I've started seeing the following in my jetty log: ERROR - [MEMDEBUG] failure java.lang.NoSuchFieldException: refSet at java.lang.Class.getDeclaredField(Class.java:1882) at

[Lift] Re: Lift 1.1-SNAPSHOT under Scala 2.8 with NetBeans and the Scala plugin

2009-09-05 Thread Stuart Roebuck
to be a little while before it all works (we need to get ScalaCheck working first and that's on one of Paul's branches). So, please use Lift with Scala 2.7.5. On Fri, Sep 4, 2009 at 3:26 PM, Stuart Roebuck stuart.roeb...@gmail.comwrote: Being on the bleeding edge again, I'm trying

[Lift] Lift 1.1-SNAPSHOT under Scala 2.8 with NetBeans and the Scala plugin

2009-09-04 Thread Stuart Roebuck
Being on the bleeding edge again, I'm trying to do some Lift stuff using the nice new Scala plugin for NetBeans. However, this appears to require me to be working under the latest Scala 2.8 release. So, I have downloaded the Lift sources and built 1.1-SNAPSHOT under Scala 2.8. Everything