[Lift] garbage collection

2009-05-07 Thread Oliver Lambert
I'm trying to get an understanding how garbage collection is implemented in Lift. Any pointers on what scala classes do the actual work? While I'm at it, S.functionMap appears to only return functions that were "recently" bound. Does S._functionMap, contain the functions being garbage collected?

[Lift] Re: Lift picking up momentum

2009-05-07 Thread Viktor Klang
On Thu, May 7, 2009 at 12:23 AM, David Pollak wrote: > Very cool. Made my morning which was ruined by debugging JavaScript > written by people who should find a new line of work. My sympathies. :/ > > > On Wed, May 6, 2009 at 8:17 AM, Timothy Perrett > wrote: > >> >> This really is very

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
In short the current Lift GC is: 1. Each page has an ID 2. Each mapped function is associated with the page ID 3. There are periodical Ajax request sent from the page that are refreshing the timestamps on the mapped functions 4. Mapped functions that exceeded the expiration time are de- reference

[Lift] Re: garbage collection

2009-05-07 Thread Oliver Lambert
Thanks for this. I would like to look at the code that actually holds the storage container and profile it. Any pointers on which class to look at s a starting point? Ol On Thu, May 7, 2009 at 7:17 PM, marius d. wrote: > > In short the current Lift GC is: > > 1. Each page has an ID > 2. Each map

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
Please see LiftSession. On May 7, 1:41 pm, Oliver Lambert wrote: > Thanks for this. I would like to look at the code that actually holds the > storage container and profile it. Any pointers on which class to look at s a > starting point? > Ol > > On Thu, May 7, 2009 at 7:17 PM, marius d. wrote:

[Lift] Re: 1st draft of response to Martin's code challenge for scalable componentized lambda evaluator

2009-05-07 Thread Meredith Gregory
Derek, Thanks! An engine is a natural next step! ;-) Best wishes, --greg On Wed, May 6, 2009 at 12:21 PM, Derek Chen-Becker wrote: > I'm not an expert at archetypes by any means, but I did kinda/sorta figure > out some basics when I put together the JPA archetypes. I'd be happy to help > if I

[Lift] Re: garbage collection

2009-05-07 Thread Oliver Lambert
Ah, you mean messageCallback - The joys of private variables. thanks again Ol On Thu, May 7, 2009 at 9:55 PM, marius d. wrote: > > Please see LiftSession. > > On May 7, 1:41 pm, Oliver Lambert wrote: > > Thanks for this. I would like to look at the code that actually holds the > > storage conta

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
Just FYI ... Things in this area are may change a bit once JQuery fixes the bug related with namespaces.This was the main reason why we had to deviate from Dave's original idea of using lift:gc attributes. Br's, Marius On May 7, 3:47 pm, Oliver Lambert wrote: > Ah, you mean messageCallback - T

[Lift] error tickets?

2009-05-07 Thread g-man
I'm having a great time learning Lift, and am happy to read all the excellent posts by the growing community of developers... As I experiment and create my app, I naturally get errors, and I was wondering if Lift has, or has considered, an 'error ticket' system like web2py has, where the user nev

[Lift] Re: how to hide /display div tag in lift

2009-05-07 Thread pravin
Hi, If there are more than 10 div tags on page ,So how can we display or hide them with chooseTemplate technique. boz chooseTemplate method chose one tag at time e.g val dispatch: DispatchIt = { case "run" if lastGuess == number => xhtml => win(chooseTemplate("choose", "win", xhtml))

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread Tom
Is this working now? And how about Google Appengine Integration? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from

[Lift] How to log exceptions?

2009-05-07 Thread sailormoo...@gmail.com
Hi : Sometimes exceptions are shown in the pages, but at the same time, I wonder why they're not logged. May I ask how to make the exceptions auto-logged ?? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] redirectTo throws net.liftweb.http.ResponseShortcutException: Shortcut

2009-05-07 Thread ivan
Hi people. Time has come for my second question on this group :) I created a helper method to create a link to delete a JPA entity. def deleteLink[T <: AnyRef](clazz : Class[T], id : Long, dest : String, link : NodeSeq, model : LocalEMF with RequestVarEM) = { SHtml.link(dest, () => {

[Lift] Form values after submit

2009-05-07 Thread wapgui
Hi all, I have a normal form defined via bind. object smlink extends RequestVar(Full("")) val widget = new Widget() def show(xhtml: NodeSeq): NodeSeq = { var smallLink = "" var dlText = "" if (smlink.isEmpty || smlink.open_!.length == 0) { Log.debug("Starting new widget g

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

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 7:19 AM, ivan wrote: > > Hi people. Time has come for my second question on this group :) Please keep asking questions... although when you become skilled enough with Lift, I hope that you'll answer some as well. > > > I created a helper method to create a link to delet

[Lift] Re: How to log exceptions?

2009-05-07 Thread David Pollak
Exceptions are handled in LiftRules.exceptionHandler You can replace the RulesSeq[ExceptionHandlerPF] with your own or prepend a handler that will log exceptions. On Thu, May 7, 2009 at 7:44 AM, sailormoo...@gmail.com < sailormoo...@gmail.com> wrote: > > Hi : > > Sometimes exceptions are shown

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 4:46 AM, Tom wrote: > > Is this working now? Which "this" are you referring to? > And how about Google Appengine Integration? GAE works except for Comet related stuff which will not work until Google supports some sort of message queue system. > > > Thanks > > > >

[Lift] Re: error tickets?

2009-05-07 Thread Timothy Perrett
Are you talking about errors in production? My advice would be to write an implementation of ExceptionHandlerPF and then you can do whatever you want based on run.mode or whatever. Logging wise, were using Log4J so you could just add another log descriptor if you want file logging as well as cons

[Lift] Re: error tickets?

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 9:17 AM, Timothy Perrett wrote: > > Are you talking about errors in production? My advice would be to > write an implementation of ExceptionHandlerPF and then you can do > whatever you want based on run.mode or whatever. Yep... this is much like the other exception handlin

[Lift] Re: error tickets?

2009-05-07 Thread Timothy Perrett
lol - now i see that also! been out of the loop today Examples wise, it would probally be a good idea for us to do an example implementation of each of the LiftRules PF's as they do tend to provoke a lot of questions on list. Cheers, Tim > Yep... this is much like the other exception handli

[Lift] Re: separation of presentation content and logic

2009-05-07 Thread David Pollak
On Wed, May 6, 2009 at 7:13 PM, Charles F. Munat wrote: > > Yeah, the whole thing is kind of a joke. > > Long ago we should have abandoned HTML for XML. The server should send > the content (data) in one file with full semantic markup. Another file > should contain a stylesheet that controls full

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

2009-05-07 Thread ivan
On May 7, 6:02 pm, David Pollak wrote: > On Thu, May 7, 2009 at 7:19 AM, ivan wrote: > > > Hi people. Time has come for my second question on this group :) > > Please keep asking questions... Thanks for responding so fast. > although when you become skilled enough with > Lift, I hope that yo

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

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 9:55 AM, ivan wrote: Ivan, > > > On May 7, 6:02 pm, David Pollak wrote: > > On Thu, May 7, 2009 at 7:19 AM, ivan wrote: > > > > > Hi people. Time has come for my second question on this group :) > > > > Please keep asking questions... > > Thanks for responding so fast. >

[Lift] Re: Form values after submit

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 5:40 AM, wapgui wrote: > > Hi all, > > I have a normal form defined via bind. > > object smlink extends RequestVar(Full("")) > val widget = new Widget() > > def show(xhtml: NodeSeq): NodeSeq = { >var smallLink = "" >var dlText = "" > >if (smlink.isEmpty || sml

[Lift] Re: separation of presentation content and logic

2009-05-07 Thread Charles F. Munat
Oh, it's a pretty vision. The part that's missing, though, is the part where we get there from here. Still working on that part... Chas. David Pollak wrote: > > > On Wed, May 6, 2009 at 7:13 PM, Charles F. Munat > wrote: > > > Yeah, the whole thing is kind of a j

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

2009-05-07 Thread ivan
On May 7, 7:05 pm, David Pollak wrote: > On Thu, May 7, 2009 at 9:55 AM, ivan wrote: > > I already pasted the stack trace and then realized... Lift isn't > > catching the exception because I'am. > > I am doing a: case e : Throwable => > >                         logAndError("Some strange excep

[Lift] Unable to run unconference application from lift samples

2009-05-07 Thread glenn
I can't run the unconference application from the lift samples. I keep getting a bunch of these in the jetty console: INFO - Service request (GET) / took 2 Milliseconds INFO - Service request (GET) / took 3 Milliseconds INFO - Service request (GET) / took 3 Milliseconds INFO - Service request (GE

[Lift] Re: Form values after submit

2009-05-07 Thread wapgui
class RSSReader extends StatefulSnippet{ object smlink extends RequestVar(Full("")) val widget = new Widget() def dispatch: DispatchIt = { case "show" => show _ } def show(xhtml: NodeSeq): NodeSeq = { var smallLink = "" var dlText = "" if (smlink.isEmpty || smlink.open

[Lift] Re: separation of presentation content and logic

2009-05-07 Thread Meredith Gregory
Chas, Oooh! i love miracles, as in how we get from 'here' to 'there' is 'and then a miracle occurs'. On the other hand, another way to accomplish a miracle of this type is by fiat. There's nothing to prevent lift from providing a code path that works like this, along side a code path that include

[Lift] Re: Unable to run unconference application from lift samples

2009-05-07 Thread David Pollak
The unconference app needs data seeded into the database... the content to present on the home page. I'll look into building an auto-populated database entry to avoid this issue. On Thu, May 7, 2009 at 10:23 AM, glenn wrote: > > I can't run the unconference application from the lift samples. I

[Lift] Re: Unable to run unconference application from lift samples

2009-05-07 Thread glenn
Thanks for the info. While awaiting these changes, could you advise on the minimum data needed to get this thing running so I can have a look at it. Glenn... On May 7, 12:01 pm, David Pollak wrote: > The unconference app needs data seeded into the database... the content to > present on the hom

[Lift] Re: Unable to run unconference application from lift samples

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 12:08 PM, glenn wrote: > > Thanks for the info. While awaiting these changes, could you advise on > the minimum data needed to get this thing running so I can have a look > at > it. There's a wiki content table and that table has to contain content for the home page (look

[Lift] Re: garbage collection

2009-05-07 Thread Oliver Lambert
Any chance of exposing a getter on messageCallback that would return some statistics (the number of functions being stored would be a good starting point)? On Thu, May 7, 2009 at 11:21 PM, marius d. wrote: > > Just FYI ... > > Things in this area are may change a bit once JQuery fixes the bug >

[Lift] Re: separation of presentation content and logic

2009-05-07 Thread Charles F. Munat
Gotta go to a meeting, but I'll post more later. (I was planning to anyway.) And I've been working on something along these lines in Lift, but the need to make a living keeps interfering, dammit. Chas. Meredith Gregory wrote: > Chas, > > Oooh! i love miracles, as in how we get from 'here' to

[Lift] Re: immutable bindings

2009-05-07 Thread David Pollak
I like this a lot. I think this has a place in Lift... although I still prefer to bind to to But that's a small thing. I'd like to see this rolled into the Record stuff so that input records could be defined this way. On Wed, Apr 29, 2009 at 9:02 PM, Oliver Lambert wrote: > Hi all, > A coupl

[Lift] How about a lift + sling marriage

2009-05-07 Thread glenn
Are there any thoughts about integrating lift with Apache Sling? There is suppose to be a scala bundle that can be used in Sling, but I haven't seen it. Does anyone know where to get it, or if it even exists. There would be a couple of reasons for wanting an integration - using the Jackrabbit rep

[Lift] Re: How about a lift + sling marriage

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 12:23 PM, glenn wrote: > > Are there any thoughts about integrating lift with Apache Sling? There > is suppose to be a scala bundle that can be used in Sling, but I > haven't seen it. Does anyone know where to get it, or if it even > exists. > I took a look at Sling and se

[Lift] Re: garbage collection

2009-05-07 Thread marius d.
Personally I'd be very reluctant exposing that to applications as this is Lift implementation specific and exposing an API tight to that leads to unnecessary coupling. But why do you really need this? ... just for statistical purposes? ... I'm not sure about the relevance of such number. Br's, M

[Lift] Re: How about a lift + sling marriage

2009-05-07 Thread glenn
My mistake. I see in the Lift Book quite a bit about RESTFUL services under the Web Services chapter. This I will read. Glenn Silverman On May 7, 12:56 pm, David Pollak wrote: > On Thu, May 7, 2009 at 12:23 PM, glenn wrote: > > > Are there any thoughts about integrating lift with Apache Sling?

[Lift] Re: How about a lift + sling marriage

2009-05-07 Thread glenn
You are probably correct about Sling's overall usefullness. I was thinking in terms of Slings native restful capabilities more so than Jackrabbit, without fully realizing that lift can do REST as well. Is there documentation, or a sample, that can show me how to use it? Here, the lift book is only

[Lift] Re: How about a lift + sling marriage

2009-05-07 Thread TylerWeir
> that's about it. Don't I need a REST server > that can handle the GET, POST, DELETE, etc. commands and work with the > the mapper objects? I think that's any good idea for a sample app. I'll try to make time for it soon. On May 7, 4:29 pm, glenn wrote: > You are probably correct about Sling'

[Lift] Re: separation of presentation content and logic

2009-05-07 Thread Aaron Held
I'm on board with this vision as well. In my current java framework I do 2 distinct passes against any url. the first pass connects a url to a data model packageMap "^/sports/video/(.*)""/sports/video/doc.xml" (this is Groovy by the way) That is an xml file that expands into a large

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread Tom Arnold
On Thu, May 7, 2009 at 6:13 PM, David Pollak wrote: > > Which "this" are you referring to? > > Oh sorry. I meant the Lift-Scala-Eclipse integration. (+GAE) I tried to get it working, but even the Scala-Eclipse-GAE stuff seems buggy. I tried using these steps: http://penguinparens.blogspot.com

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 3:00 PM, Tom Arnold wrote: > > > On Thu, May 7, 2009 at 6:13 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> Which "this" are you referring to? >> >> > > Oh sorry. I meant the Lift-Scala-Eclipse integration. (+GAE) > > I tried to get it working, but even

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread Miles Sabin
On Thu, May 7, 2009 at 11:31 PM, David Pollak wrote: > If you've got questions about Scala and Eclipse and GAE generically, this is > not the best place to ask them. He wants to get Lift + maven + the Scala IDE for Eclipse + the GAE plugin for Eclipse all working together, which is falling betwe

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread David Pollak
On Thu, May 7, 2009 at 3:42 PM, Miles Sabin wrote: > > On Thu, May 7, 2009 at 11:31 PM, David Pollak > wrote: > > If you've got questions about Scala and Eclipse and GAE generically, this > is > > not the best place to ask them. > > He wants to get Lift + maven + the Scala IDE for Eclipse + the

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread Miles Sabin
On Thu, May 7, 2009 at 11:43 PM, David Pollak wrote: > I'm totally cool with you providing support for this configuration on this > list. Well, hang on ... The point is that this is all of our problem ... I can help with generic Scala IDE problems, but Lift + Maven + GAE plugin stuff is not in

[Lift] Re: developing Scala/Lift using Eclipse

2009-05-07 Thread Atsuhiko Yamanaka
Hi, On Fri, May 8, 2009 at 7:48 AM, Miles Sabin wrote: > The point is that this is all of our problem ... I can help with > generic Scala IDE problems, but Lift + Maven + GAE plugin stuff is not > in my purview. As for "Lift + Maven + GAE/J", the following may be helpful, http://groups.google