[Lift] Re: Concurrent Web Service Requests?

2009-09-22 Thread Jeppe Nejsum Madsen
David Pollak writes: > 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, will execute the foo snippet inline. > > will execute the foo snippet in parallel and join > the result back to page before its re

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

2009-09-22 Thread Jeppe Nejsum Madsen
harryh writes: > I would love to add comments to my templates: > > > > that got stripped out before being served to end users. A few thoughts: - Would also be nice if all excessive white space were stripped from the output (not sure how much this matters if it's gzip'ed) - In dev mode, I t

[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 SessionVar

[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 wrote: > > Hi all. > > I have essentially the following setup in a website: > > class AjaxTest { > def render = > > foo > {getAjaxForm} > > > def getAjaxForm = SHtml.ajaxForm( > SHtml.submit("submit", () => ()), >

[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 = foo {getAjaxForm} def getAjaxForm = SHtml.ajaxForm( SHtml.submit("submit", () => ()), Run(customJSStr)) def customJSStr = "document.getElementBy

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

2009-09-22 Thread marius d.
On Sep 22, 8:13 pm, Dano 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 > Empty.  However,

[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: 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 wrote: > > 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 set support

[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, will execute the foo snippet inline. will execute the foo snippet in parallel and join the result back to page before its rendered. This should allow for the u

[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 wrote: > > I would love to add comments to my templates: > > > > that got stripped out before being served to end users. > > -harryh > > > > -- Lift, the simply functional web framework

[Lift] Re: access to raw HttpServletRequest/Response

2009-09-22 Thread David Pollak
On Tue, Sep 22, 2009 at 3:58 PM, marius d. wrote: > > 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[HTTPRequest

[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] suggestion: strip comments when serving templates

2009-09-22 Thread harryh
I would love to add comments to my templates: that got stripped out before being served to end users. -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lif

[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 wrote: > Open a ticket... I'll see what I can do to merge system properties

[Lift] Re: access to raw HttpServletRequest/Response

2009-09-22 Thread David Pollak
Please open a ticket for this one as well. I'll expose it for you. On Tue, Sep 22, 2009 at 1:07 PM, harryh wrote: > > Is it still possible to get access to the raw HttpServletRequest/ > Response objects? I know you could at least do this for Request from > S, but now I'm not seeing it anymore.

[Lift] Re: Detecting when user has left a page

2009-09-22 Thread David Pollak
On Tue, Sep 22, 2009 at 1:37 PM, Xavi Ramirez wrote: > > Hello, > > I'm trying to implement a member list for a chat application. The > member list is implemented as a comet actor which receives message > when users visit and leave the chat page. > > Currently I detect when a user visits the pag

[Lift] Detecting when user has left a page

2009-09-22 Thread Xavi Ramirez
Hello, I'm trying to implement a member list for a chat application. The member list is implemented as a comet actor which receives message when users visit and leave the chat page. Currently I detect when a user visits the page by executing a js function called "joinChat" near the bottom of th

[Lift] access to raw HttpServletRequest/Response

2009-09-22 Thread harryh
Is it still possible to get access to the raw HttpServletRequest/ Response objects? I know you could at least do this for Request from S, but now I'm not seeing it anymore. Looking to get this so I can use http://mrepo.happyfern.com/sites/facebook-java-api/facebook-java-api/apidocs/com/google/c

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

2009-09-22 Thread harryh
Answering my own question: I missed a dependency when converting my maven config -> sbt. So boot was failing on a NoClassDefFoundError. Oops. -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To

[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 wrote: > > Experimenting with SBT, and everything works fine when running jetty > from within sbt, but when I package

[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] 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 net.liftweb.http.provider.HTTPProvider$$anonfun$

[Lift] Re: Function mapping in "S" doesn't support "image" type input form elements.

2009-09-22 Thread marius d.
name.x and name.y are a pain :) ... since these are propagated with the same function ID we need to make sure that the function is not going to be called twice.IO don't think this should be addressed from fmapFunc. We should be able to handle this when lift is determining the functions based on pa

[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 wrote: > > David Pollak writes: > > > Gakkk... I'm not

[Lift] Re: File uploads sans SHtml

2009-09-22 Thread David Pollak
On Mon, Sep 21, 2009 at 10:49 PM, Charles F. Munat wrote: > > Perfect. I was hoping it was that simple. Thanks. > > Mind if I put that on the wiki? > Go right ahead. I love stuff on the wiki. > > Chas. > > David Pollak wrote: > > > > Select a file to upload: > > > > > > > > > > for {r <-

[Lift] Re: Turning off garbage collection

2009-09-22 Thread Viktor Klang
To be honest and fair, my personal opinion is that Tim didn't cross over to the "RTFM noob" territory. And yes, RTFM isn't something we want here on list. On Tue, Sep 22, 2009 at 2:08 AM, Charles F. Munat wrote: > > Now that's a clever idea. > > David Pollak wrote: > > > > > > On Sep 21, 12:21

[Lift] Function mapping in "S" doesn't support "image" type input form elements.

2009-09-22 Thread Mark Tye
Hello? Hello? Is this thing on? Ahem! Well, now that I have been un-banned, I shall re-post my original message: I've encountered a limitation in Lift's handling of form elements. I was able to come up with a workaround, but I was wondering if anyone knew of a better solution, or if perhaps func

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

2009-09-22 Thread Jeppe Nejsum Madsen
David Pollak 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 I'll just take the easy way ou