[Lift] Re: XML - JSON converter?

2009-09-25 Thread David Pollak
On Fri, Sep 25, 2009 at 1:21 AM, Timothy Perrett timo...@getintheloop.euwrote: Are there any plans to supersede the JsObj stuff with what is in lift- json ? Seems like that would make a lot more sense, no? Yes. Cheers, Tim On 24 Sep 2009, at 22:13, Indrajit Raychaudhuri wrote:

[Lift] Re: XML - JSON converter?

2009-09-25 Thread Timothy Perrett
Sorry Dave, but the brevity of your reply left me somewhat confused... yes it makes sense to do that or yes, we'll be replacing everything with lift-json ? Cheers, Tim On 25 Sep 2009, at 14:07, David Pollak wrote: On Fri, Sep 25, 2009 at 1:21 AM, Timothy Perrett timo...@getintheloop.eu

[Lift] Re: Canceling a ActorPing.scheduleAtFixedRate task

2009-09-25 Thread marius d.
So why not keep the method for the Lift-Actors branch? ... because there is no concept of linking actors there? Br's, Marius On Sep 24, 6:52 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I strongly recommend against using scheduleAtFixedRate because:    - Internally, it creates an

[Lift] Re: Canceling a ActorPing.scheduleAtFixedRate task

2009-09-25 Thread marius d.
Hi, When you call scheduleAtFixedRate that actor is sending your actor a Scheduled message, hence you can capture the correct sender. You don't need to create a different actor. David's points are quite valid regarding the correct Scala actors' state. Br's, Marius On Sep 23, 4:17 pm, Xavi

[Lift] Re: XML - JSON converter?

2009-09-25 Thread David Pollak
On Fri, Sep 25, 2009 at 6:19 AM, Timothy Perrett timo...@getintheloop.euwrote: Sorry Dave, but the brevity of your reply left me somewhat confused... yes it makes sense to do that or yes, we'll be replacing everything with lift-json ? Eventually, we'll be integrating all of lift-json into

[Lift] Re: XML - JSON converter?

2009-09-25 Thread Thomas Rampelberg
This is really great, making XML as easy to generate as JSON was something I thought I'd never see. On Fri, Sep 25, 2009 at 7:27 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Sep 25, 2009 at 6:19 AM, Timothy Perrett timo...@getintheloop.eu wrote: Sorry Dave, but the brevity

[Lift] Re: How can I replace SHtml.a with a Loc

2009-09-25 Thread glenn
David, Thanks for the reply. The Loc, itself, though. How do I write that to create the Ajax link. I want to be able to modify an html element when the link is clicked, as in SetHtml(item-save, edit(item)). Glenn On Sep 24, 5:05 pm, David Pollak feeder.of.the.be...@gmail.com wrote: val myLoc:

[Lift] Re: How can I replace SHtml.a with a Loc

2009-09-25 Thread David Pollak
On Fri, Sep 25, 2009 at 8:13 AM, glenn gl...@exmbly.com wrote: David, Thanks for the reply. The Loc, itself, though. How do I write that to create the Ajax link. I want to be able to modify an html element when the link is clicked, as in SetHtml(item-save, edit(item)). Sorry... didn't

[Lift] ProtoUser superUser versus Role

2009-09-25 Thread Juan M Uys
Hello, I'm implementing a Role in my model to ultimately replace the functionality provided by ProtoUser.superUser Please let me know what the argument against having this functionality in Lift is, and if you'd like to see this implemented, I'd gladly commit my changes. Please also suggest

[Lift] Re: access to raw HttpServletRequest/Response

2009-09-25 Thread David Pollak
On Wed, Sep 23, 2009 at 9:03 AM, harryh har...@gmail.com wrote: You can do it today like this: S.containerRequest.map(r = (r.asInstanceOf[HTTPRequestServlet]).req) eh? I'm getting this error: [error] value req is not a member of net.liftweb.http.provider.servlet.HTTPRequestServlet

[Lift] Re: Concurrent Web Service Requests?

2009-09-25 Thread David Pollak
On Thu, Sep 24, 2009 at 11:33 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: If you like the idea of having them all as attributes but don't like the idea of using a single attribute ('xx:eager_eval=true xx:parallel=true' rather than 'xx:eval=eager parallel' as I suggested, where xx is the

[Lift] Re: How can I replace SHtml.a with a Loc

2009-09-25 Thread glenn
David, In this case, I was trying to see if there was a way to use the standard Lift menu generator to create a link with a callback for ajax handling, similar to SHtml.a. I don't know about menu generation from SiteMap. Perhaps that's what I really need. What would that look like? Glenn On

[Lift] Re: Concurrent Web Service Requests?

2009-09-25 Thread Timothy Perrett
Looks great :-) can't wait to see this in master. Cheers, Tim Sent from my iPhone On 25 Sep 2009, at 18:02, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Sep 24, 2009 at 11:33 AM, Naftoli Gugenheim naftoli...@gmail.com wrote: If you like the idea of having them all as

[Lift] Re: redirectTo throwing net.liftweb.http.ResponseShortcutException: Shortcut

2009-09-25 Thread David
Thank you, that mostly worked! I forgot to mention that I'm using StatefulSnippet, and the place where the redirect is happening should redirect to a different url, but the different url is backed by the same StatefulSnippet instance. So when I use JsCmds.RedirectTo I'm not getting the same

[Lift] Re: Struggling with mapping a list of objects

2009-09-25 Thread ben
Just an update ... I did manage to get maven to pull down 1.1-M5, not sure what was up with it before, but it worked in the morning. I couldn't resolve the class MappedOneToMany, or Owned, even though I can see them in the lift-mapper-1.1-M5.jar . Used the import import net.liftweb.mapper._ Oh

[Lift] Re: redirectTo throwing net.liftweb.http.ResponseShortcutException: Shortcut

2009-09-25 Thread Naftoli Gugenheim
Try calling registerThisSnippet in the redirect function. - Daviddavid.b...@gmail.com wrote: Thank you, that mostly worked! I forgot to mention that I'm using StatefulSnippet, and the place where the redirect is happening should redirect to a different url,