[Lift] Re: How to mixin both MegaProtoUser CRUDify?

2009-09-22 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Gakkk... I'm not sure it can be done. You're welcome to try different combinations of abstract override, etc. in the traits and see if you can come up with an elegant or at least workable solution. I'm creating my own crudify anyway, so

[Lift] Re: How to mixin both MegaProtoUser CRUDify?

2009-09-22 Thread Kevin Wright
You really need some way to delegate to the trait here, instead of inheriting from it. I'll add this as a use case for my dynamic-mixin compiler plugin, see if I can't find a way out :) On Tue, Sep 22, 2009 at 8:08 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak

[Lift] low level lift exception when building with sbt

2009-09-22 Thread harryh
Experimenting with SBT, and everything works fine when running jetty from within sbt, but when I package up a war file and try to run in production, I'm getting the following exception. Any ideas? -harryh java.lang.NullPointerException at

[Lift] Re: Autogenerated PKs and MetaMapper

2009-09-22 Thread David Pollak
Thomas, We, as a rule, do not accept patches. For a complete discussion, please see: http://groups.google.com/group/liftweb/browse_frm/thread/0c7a97cbf60780f0?hl=en# The current state of mapper's primary key support is sub-optimal. There have been a couple of discussions of the issues on-list.

[Lift] Re: low level lift exception when building with sbt

2009-09-22 Thread David Pollak
It looks like the Lift filter didn't get initialized correctly. Please look at web.xml and make sure the Lift filter is listed correctly. On Tue, Sep 22, 2009 at 8:33 AM, harryh har...@gmail.com wrote: Experimenting with SBT, and everything works fine when running jetty from within sbt, but

[Lift] Re: suggestion: make Mailer use n.l.util.Props

2009-09-22 Thread Richard Dallaway
Couldn't find a ticket for this, and it'd save us a few lines of code too. http://github.com/dpp/liftweb/issues/#issue/73 Again, apologies if this is a duplicate. Richard On Thu, Sep 17, 2009 at 1:15 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Open a ticket... I'll see what I can

[Lift] suggestion: strip comments when serving templates

2009-09-22 Thread harryh
I would love to add comments to my templates: !-- Put the shiny new feature here as soon as we have time to build it -- that got stripped out before being served to end users. -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Lift] Re: access to raw HttpServletRequest/Response

2009-09-22 Thread marius d.
I really don't think Lift should expose directly expose servlet references. Applications still have access to servlet stuff by explicit casting. You can do it today like this: S.containerRequest.map(r = (r.asInstanceOf[HTTPRequestServlet]).req) Br's, Marius On Sep 22, 3:53 pm, David Pollak

[Lift] Re: suggestion: strip comments when serving templates

2009-09-22 Thread David Pollak
Turns out that's where I am in the code... I'll add it right now. On Tue, Sep 22, 2009 at 3:46 PM, harryh har...@gmail.com wrote: I would love to add comments to my templates: !-- Put the shiny new feature here as soon as we have time to build it -- that got stripped out before being

[Lift] Re: Concurrent Web Service Requests?

2009-09-22 Thread David Pollak
I've added code (it's in review board right now) that will automatically farm any snippet with the do:lazy='true' attribute set. So, lift:foo/ will execute the foo snippet inline. lift:foo do:lazy=true/ will execute the foo snippet in parallel and join the result back to page before its

[Lift] Re: suggestion: make Mailer use n.l.util.Props

2009-09-22 Thread David Pollak
On Tue, Sep 22, 2009 at 2:48 PM, Richard Dallaway dalla...@gmail.comwrote: Couldn't find a ticket for this, and it'd save us a few lines of code too. http://github.com/dpp/liftweb/issues/#issue/73 Again, apologies if this is a duplicate. I added this functionality when I did the character

[Lift] SessionVar.remove() not clearing out the variable

2009-09-22 Thread Dano
Hello Lifters, I am struggling with trying to clear out a SessionVar which holds user information which I need to clear out after the user has left a 'lobby' page. When I call the remove() function, I verify that the SessionVar is Empty. However, when I click on the URL for the lobby page with

[Lift] Re: SessionVar.remove() not clearing out the variable

2009-09-22 Thread marius d.
On Sep 22, 8:13 pm, Dano olearydani...@gmail.com wrote: Hello Lifters, I am struggling with trying to clear out a SessionVar which holds user information which I need to clear out after the user has left a 'lobby' page. When I call the remove() function, I verify that the SessionVar is

[Lift] SHtml.a not active when used via innerHtml

2009-09-22 Thread KP
Hi all. I have essentially the following setup in a website: class AjaxTest { def render = div div id=foofoo/div {getAjaxForm} /div def getAjaxForm = SHtml.ajaxForm( SHtml.submit(submit, () = ()), Run(customJSStr)) def customJSStr =

[Lift] Re: SHtml.a not active when used via innerHtml

2009-09-22 Thread David Pollak
On Tue, Sep 22, 2009 at 7:49 PM, KP horse.headed.fish@gmail.com wrote: Hi all. I have essentially the following setup in a website: class AjaxTest { def render = div div id=foofoo/div {getAjaxForm} /div def getAjaxForm = SHtml.ajaxForm(

[Lift] Re: SessionVar.remove() not clearing out the variable

2009-09-22 Thread Dano
Marius, Thanks for your reply. If I look in my pom.xml, I see that I am using 1.1-SNAPSHOT. However, I see your point about the remove() function not being in Vars.scala. Not sure why I am able to compile a call to remove() on a SessionVar - but it does! My goal is to clear out the