[Lift] Re: apache proxy_balancer

2009-09-16 Thread jon
I was able to get things working and am now fairly confident that I have enough power on my front end to completely melt my database. I think the real benefits will be failover and the ability to stage releases. Btw, as far as I can tell, apache proxy_balancer is the only open source choice for

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-16 Thread Xavi Ramirez
I vaguely remember reading a thread that claimed Lift would auto-increase the 2 connection limit for sessions using more modern browsers. Is this feature in M5? Random Idea: Would it be possible to get around the 2 connection limit by sending each comet request to a unique sub-domain? For examp

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-16 Thread DFectuoso
That seems like a logical reason why this is like this, but if i open 2 tabs of http://demo.liftweb.net/, both tabs start to send ajax request every 100ms, that is 20 ajax request per second, 72k per hour, so if an app had 100 crazy users who happen to open 2 tabs of the app (this happens to me a

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Heiko Seeberger
Of course in a perfect world we would like to use the perfect EPFL actors. But as know the world, well at least EPFL actors, are not perfect. By the way: Scala is a lot about libraries, hence IMHO it is OK if Lift uses it's own approach for actors. => Let's go for lift-actor, if possible abstracted

[Lift] JPA with more than one front end (Maven! sigh...)

2009-09-16 Thread Charles F. Munat
I have a Lift project with a JPA backend subproject, and then two Lift front ends that access the same back end, also as subprojects. So my master pom.xml looks like this: web web2 spa Works beautifully. Web responds on one port and Web2 on another (when I use the inter

[Lift] Re: OOME in using CometActor

2009-09-16 Thread Atsuhiko Yamanaka
Hi, On Wed, Sep 16, 2009 at 11:50 PM, Atsuhiko Yamanaka wrote: > I'll try lower value, for example, 50 for maxPoolSize before going to the bed. > I'll look forward to the good result in the next morning. I got the good result. By setting maxPoolSize as 50, OOME had not appeared. With that sett

[Lift] Re: Remove OAuth module?

2009-09-16 Thread David Pollak
It's the OAuth server, not OAuth client stuff. I want to get this feature into 1.1, so let's not delete the project. On Wed, Sep 16, 2009 at 2:15 PM, Timothy Perrett wrote: > > Guys, > > Should we remove the OAuth module now? No code was ever commited to it > and frankly, n8han's dispatch projec

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

2009-09-16 Thread David Pollak
Open a ticket... I'll see what I can do to merge system properties and Lift's props. On Wed, Sep 16, 2009 at 1:39 PM, harryh wrote: > > Rather than using System.getProperties should Mailer use > net.liftweb.util.Props? It seems a little inconsistent as is. > > -harryh > > > > -- Lift, the si

[Lift] Re: Wicket vs Tapestry vs Grails vs Lift?

2009-09-16 Thread David Pollak
On Wed, Sep 16, 2009 at 4:08 PM, etorreborre wrote: > > Hi, > > Anyone is interested in coding the same app with Lift and have a look > at the numbers? > I'm interested, but don't have the time. :-( > > > http://ptrthomas.wordpress.com/2009/09/14/perfbench-update-tapestry-5-and-grails > > Eric

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-16 Thread David Pollak
On Wed, Sep 16, 2009 at 4:18 PM, Dano wrote: > > We have a lift app (innovationgames.com) which has a page (actually > several) with comet actors. When we go to the same URL in two tabs in > the same browser, we see that the long polls (GET requests) return > immediately in rapid fire succession

[Lift] Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-16 Thread Dano
We have a lift app (innovationgames.com) which has a page (actually several) with comet actors. When we go to the same URL in two tabs in the same browser, we see that the long polls (GET requests) return immediately in rapid fire succession and this behavior continues until we exit one of the ta

[Lift] Wicket vs Tapestry vs Grails vs Lift?

2009-09-16 Thread etorreborre
Hi, Anyone is interested in coding the same app with Lift and have a look at the numbers? http://ptrthomas.wordpress.com/2009/09/14/perfbench-update-tapestry-5-and-grails Eric. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[Lift] apache proxy_balancer

2009-09-16 Thread jon
Hi, Is anyone running lift behind apache with proxy_balancer? I'm trying to get that setup, but seeing a really odd problem where the javascript on the page seems to cause continuous reloading on some pages. I haven't yet fully investigated the problem, but am wondering if anyone has some point

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

2009-09-16 Thread Timothy Perrett
I think the mailer is some of the oldest code in lift - so its not a huge surprise :-) Im a bit tied up, but which committer should take this on and fix it? Cheers, Tim On 16 Sep 2009, at 21:39, harryh wrote: > > Rather than using System.getProperties should Mailer use > net.liftweb.util.Pro

[Lift] Remove OAuth module?

2009-09-16 Thread Timothy Perrett
Guys, Should we remove the OAuth module now? No code was ever commited to it and frankly, n8han's dispatch project (also avalible on scala-tools) has amazing scala oauth built in so im not sure we could add any value in this arena. Thoughts? Cheers, Tim --~--~-~--~~~

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

2009-09-16 Thread harryh
Rather than using System.getProperties should Mailer use net.liftweb.util.Props? It seems a little inconsistent as is. -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, se

[Lift] Re: DB Log issue, escaping placeholders & LoggedPreparedStatement.paramified()

2009-09-16 Thread Ewan
All working now. ta On Sep 16, 6:47 pm, Derek Chen-Becker wrote: > It's checked into the build. Hudson is building it now. > > On Wed, Sep 16, 2009 at 11:33 AM, Ewan wrote: > > > Thx > > > On Sep 16, 5:52 pm, Derek Chen-Becker wrote: > > >http://reviewboard.liftweb.net/r/7/ > > > > Once that

[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-09-16 Thread harryh
Hrm, MappedEmail is now rejecting e-mails with a - in the part before the @. is %-+ being interpreted as % through + and not % OR - OR + ? -harryh, who is easily confused by regular expressions On Aug 26, 7:32 pm, David Pollak wrote: > Thanks. > > Changed and pushed to GitHub.  Allow 2 hours f

[Lift] Re: Still getting nuts with getting/setting foreign key fields

2009-09-16 Thread David Pollak
On Wed, Sep 16, 2009 at 10:58 AM, Tobias Daub wrote: > > Hey Lifters, > > Simple problem, but kind of difficult solution: > > I've a foreign key field, e.g. myField. I want to get the id of the field. > > So I wrote a method inside the class: > > def getMyFieldId = myField.obj.map(_.id.is) openOr

[Lift] Still getting nuts with getting/setting foreign key fields

2009-09-16 Thread Tobias Daub
Hey Lifters, Simple problem, but kind of difficult solution: I've a foreign key field, e.g. myField. I want to get the id of the field. So I wrote a method inside the class: def getMyFieldId = myField.obj.map(_.id.is) openOr 0L IDs always start with one, right? But I get zero back! Why? I de

[Lift] Re: DB Log issue, escaping placeholders & LoggedPreparedStatement.paramified()

2009-09-16 Thread Derek Chen-Becker
It's checked into the build. Hudson is building it now. On Wed, Sep 16, 2009 at 11:33 AM, Ewan wrote: > > Thx > > On Sep 16, 5:52 pm, Derek Chen-Becker wrote: > > http://reviewboard.liftweb.net/r/7/ > > > > Once that gets approved I'll check it into trunk and Hudson will have it > > built short

[Lift] Re: Money and Mapper

2009-09-16 Thread Derek Chen-Becker
That's available in 1.1-SNAPSHOT. If you need it for 1.0 I think that the same code should work and you can just add it to your local codebase under the net.liftweb.mapper package. Derek On Wed, Sep 16, 2009 at 10:51 AM, Naftoli Gugenheim wrote: > > MappedDecimal. > > ---

[Lift] Re: DB Log issue, escaping placeholders & LoggedPreparedStatement.paramified()

2009-09-16 Thread Ewan
Thx On Sep 16, 5:52 pm, Derek Chen-Becker wrote: > http://reviewboard.liftweb.net/r/7/ > > Once that gets approved I'll check it into trunk and Hudson will have it > built shortly. > > Derek > > On Wed, Sep 16, 2009 at 10:35 AM, Derek Chen-Becker > wrote: > > > OK, I see where I broke things. Le

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Derek Chen-Becker
I vote for lift-actor. On Wed, Sep 16, 2009 at 10:46 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Wed, Sep 16, 2009 at 7:50 AM, Timothy Perrett > wrote: > >> Kevin, >> >> To clarify, your talking about akka-actors? >> >> The preferred route I think would be to use a fixed EP

[Lift] Re: Clearing out options when submitting an empty multiSelect form

2009-09-16 Thread Aaron Valade
On Sep 16, 2009, at 1:07 PM, Derek Chen-Becker wrote: > What's happening here is that the form doesn't submit a field for > "beacons" at all if nothing is selected, so the callback doesn't get > called. What I typically do in scenarios like this is add a hidden > field whose callback clears

[Lift] Re: JSON forms problem

2009-09-16 Thread Derek Chen-Becker
I'll fix the book right now, but could you please send your complete head method so that I make sure to include the correct code? Derek On Wed, Sep 16, 2009 at 9:30 AM, glenn wrote: > > Marius, > > You are right. I added

[Lift] Re: Clearing out options when submitting an empty multiSelect form

2009-09-16 Thread Derek Chen-Becker
What's happening here is that the form doesn't submit a field for "beacons" at all if nothing is selected, so the callback doesn't get called. What I typically do in scenarios like this is add a hidden field whose callback clears the collection. In your case, you could move the "location.beacons.cl

[Lift] Re: DB Log issue, escaping placeholders & LoggedPreparedStatement.paramified()

2009-09-16 Thread Derek Chen-Becker
http://reviewboard.liftweb.net/r/7/ Once that gets approved I'll check it into trunk and Hudson will have it built shortly. Derek On Wed, Sep 16, 2009 at 10:35 AM, Derek Chen-Becker wrote: > OK, I see where I broke things. Let me fix this. > > Derek > > > On Wed, Sep 16, 2009 at 1:56 AM, Ewan

[Lift] Re: Money and Mapper

2009-09-16 Thread Naftoli Gugenheim
MappedDecimal. - Jos? Mar?a wrote: Hi, I need to save some prices of products, while working in other languages I use some Decimal type so I don't have overflows and problems with IEEE floating point numbers. I see that Mapper has types for everything, from

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread David Pollak
On Wed, Sep 16, 2009 at 7:50 AM, Timothy Perrett wrote: > Kevin, > > To clarify, your talking about akka-actors? > > The preferred route I think would be to use a fixed EPFL implementation, > however, in leu of that i think from a project perspective it would be > beneficial for lift to have a cor

[Lift] Re: MINOR BREAKING CHANGE IN mapper.view.ModelView

2009-09-16 Thread Naftoli Gugenheim
Do you override anything in UserView? If not you can just write val view = new ModelView(new User) etc. Otherwise class UserView(user: User) extends ModelView(user) should work. What happened is that in addition to maper.view.ModelView, the latter is subclassed inside ModelSnippet so you can leav

[Lift] Re: DB Log issue, escaping placeholders & LoggedPreparedStatement.paramified()

2009-09-16 Thread Derek Chen-Becker
OK, I see where I broke things. Let me fix this. Derek On Wed, Sep 16, 2009 at 1:56 AM, Ewan wrote: > > Derek > > This one is for you I think. After updating my Boot.scala with > revised DB.addLogFunc I have found an issue with logging prepared > statements. My usecase is an insert/update tha

[Lift] Money and Mapper

2009-09-16 Thread José María
Hi, I need to save some prices of products, while working in other languages I use some Decimal type so I don't have overflows and problems with IEEE floating point numbers. I see that Mapper has types for everything, from gender to postal codes... what about BigDecimal or Money? Cheers. --~--~-

[Lift] Re: MINOR BREAKING CHANGE IN mapper.view.ModelView

2009-09-16 Thread glenn
Naftoli, Since I don't seem to have the latest source to follow, how exactly does this work now?. If I currently have:this as my ModelView class UserView(entity:User, snippet:ManageUsers) extends ModelView [User](entity, snippet) and val view: ModelView[User] = new UserView(new User,this) i

[Lift] Re: Code broken due to hanges to ModelView

2009-09-16 Thread glenn
Naftoli, Pardon this new discussion. I just discovered your earlier post on this issue. However, the source for ModelView still shows it taking a type parameter. Has that not been updated yet? Glenn On Sep 16, 8:53 am, glenn wrote: > Further compounding my confusion, is that the  mapper.view p

[Lift] Re: Code broken due to hanges to ModelView

2009-09-16 Thread glenn
Further compounding my confusion, is that the mapper.view package from the maven repo, http://scala-tools.org/repo-snapshots, is not in GitHub, so are the two repositories out-of-sync, and have they always been so? Glenn On Sep 16, 8:45 am, glenn wrote: > I realize the  risk one takes in usin

[Lift] Code broken due to hanges to ModelView

2009-09-16 Thread glenn
I realize the risk one takes in using the latest SNAPSHOT source, but there seems to be a recent change to ModelView in the mapper package such that now, it doesn't take type parameters. My questions is, if in my existing ModelSnippet code, I have val view: ModelView[User] = new UserView(ne

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Viktor Klang
On Wed, Sep 16, 2009 at 4:50 PM, Timothy Perrett wrote: > Kevin, > > To clarify, your talking about akka-actors? > > The preferred route I think would be to use a fixed EPFL implementation, > however, in leu of that i think from a project perspective it would be > beneficial for lift to have a cor

[Lift] Re: What's the best way to get the current request URL

2009-09-16 Thread Ryan Donahue
Does that include the query string? On Wed, Sep 16, 2009 at 11:21 AM, harryh wrote: > > S.uri > > On Sep 16, 9:35 am, Ryan Donahue wrote: > > I want to capture the the current request URL, so I can redirect back > > to it at a later point. What's the best way to get at the URL? The > > answer

[Lift] Re: JSON forms problem

2009-09-16 Thread glenn
Marius, You are right. I added to my head method, and everything works great. The issue here, is that the Lift Book example doesn't mention this. Glenn On Sep 15, 9:07 pm, "marius d." wrote: > Right ... the head method should not have the js script but did you > include the jlift.js script in

[Lift] Re: Proper way to upgrade Lift and Scala libs?

2009-09-16 Thread Wilson MacGyver
Got it, thanks for the info. Staying with 2.7.5 then. Just finished moving to 2.7.6 for non-lift stuff yesterday, reverting... :) On Wed, Sep 16, 2009 at 8:52 AM, David Pollak wrote: > > > On Tue, Sep 15, 2009 at 9:01 PM, Wilson MacGyver > wrote: >> >> On Tue, Sep 15, 2009 at 11:44 PM, David Po

[Lift] Re: What's the best way to get the current request URL

2009-09-16 Thread harryh
S.uri On Sep 16, 9:35 am, Ryan Donahue wrote: > I want to capture the the current request URL, so I can redirect back > to it at a later point.  What's the best way to get at the URL?  The > answer is probably obvious, but I can't seem to find it. > > Thanks, > > Ryan --~--~-~--~~---

[Lift] Re: Proper way to upgrade Lift and Scala libs?

2009-09-16 Thread Ike
On Sep 16, 8:58 am, David Pollak wrote: > So, that's the Lift policy.  We will have to figure out if we're going to do > a 1.0.3 release for Scala 2.8.  We're planning to release Lift 1.1 a few > weeks after 2.8 goes live (which I'm expecting to be in late November-early > January sometime.) > >

[Lift] Clearing out options when submitting an empty multiSelect form

2009-09-16 Thread Aaron Valade
Hello all- I'm having an issue when trying to update a many-to-one collection attached to a JPA object in Lift. I'm currently using a SHtml.multiSelect for choosing which objects should be assigned to the many-to-one collection. My bind statement looks like this: bind("location", xhtml,

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Timothy Perrett
Kevin, To clarify, your talking about akka-actors? The preferred route I think would be to use a fixed EPFL implementation, however, in leu of that i think from a project perspective it would be beneficial for lift to have a corrected actor implementation that we have direct control of. I k

[Lift] Re: OOME in using CometActor

2009-09-16 Thread Atsuhiko Yamanaka
Hi, On Wed, Sep 16, 2009 at 11:36 PM, Erik Engbrecht wrote: > Yes, particularly maxPoolSize. Thank you for prompt reply. I'll try lower value, for example, 50 for maxPoolSize before going to the bed. I'll look forward to the good result in the next morning. Sincerely, -- Atsuhiko Yamanaka JCr

[Lift] Re: How to XHTML and embedded snippets

2009-09-16 Thread Ewan
Thank you - all works if I replace "image" -> with "image" -%> which results in the expected http://clients.vc-ltd.co.uk/burnham2/photos/rose.jpg"; height="100" width="75" style="border:3px solid #CC" /> -- Ewan On Sep 16, 2:40 pm, Naftoli Gugenheim wrote: > Tim is right that it work

[Lift] Re: How to XHTML and embedded snippets

2009-09-16 Thread Timothy Perrett
Good catch Naftoli :-) Cheers, Tim On 16 Sep 2009, at 14:40, Naftoli Gugenheim wrote: > > Tim is right that it worked that way, but apparently that code was > committed before the review board was in place :) because DPP wasn't > happy with it and took it out. Instead you can use -%> to bin

[Lift] Re: OOME in using CometActor

2009-09-16 Thread Erik Engbrecht
Yes, particularly maxPoolSize. On Wed, Sep 16, 2009 at 10:25 AM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > > Hi, > > On Wed, Sep 16, 2009 at 10:33 PM, Erik Engbrecht > wrote: > > The large number of VolatileTaskRefs is a consequence of your thread pool > > growth. Each worker th

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread David Pollak
On Wed, Sep 16, 2009 at 6:27 AM, Kevin Wright wrote: > Is there any reason not to go with something like the Akka framework? I > believe it has a lift-friendly license. I can work on a way to make CometActors work with Akka Actors or Lift Actors. Jonas and I have had a lot of conversations an

[Lift] Re: OOME in using CometActor

2009-09-16 Thread Atsuhiko Yamanaka
Hi, On Wed, Sep 16, 2009 at 10:33 PM, Erik Engbrecht wrote: > The large number of VolatileTaskRefs is a consequence of your thread pool > growth.  Each worker thread maintains an array of VolatileTaskRef objects. > The VolatileTaskRef objects are reused rather than allocated for each task, > so

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Viktor Klang
On Wed, Sep 16, 2009 at 3:42 PM, Naftoli Gugenheim wrote: > > I haven't used comet, but would it be worthwhile to abstract it with > implementations (potentially) for Scala, Lift, and Akka actors? > I've integrated Atmosphere into Akka, and I know that Jeanfranço

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Naftoli Gugenheim
I haven't used comet, but would it be worthwhile to abstract it with implementations (potentially) for Scala, Lift, and Akka actors? - TylerWeir wrote: Given the on again/off again nature of the issue, I'm voting for adding your change. We can rely on your c

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread marius d.
What is the problem this time? .. same thing essentially? Br's, Marius On Sep 16, 8:14 am, David Pollak wrote: > Guys, > The Scala Actor issue has raised its head again. > > From November 2008 - June 2009, I did an epic battle with Scala actors and > their memory retention issues. > > I finally

[Lift] Re: How to XHTML and embedded snippets

2009-09-16 Thread Naftoli Gugenheim
Tim is right that it worked that way, but apparently that code was committed before the review board was in place :) because DPP wasn't happy with it and took it out. Instead you can use -%> to bind and preserve all attributes. - Ewan wrote: Thanks but I st

[Lift] What's the best way to get the current request URL

2009-09-16 Thread Ryan Donahue
I want to capture the the current request URL, so I can redirect back to it at a later point. What's the best way to get at the URL? The answer is probably obvious, but I can't seem to find it. Thanks, Ryan --~--~-~--~~~---~--~~ You received this message because

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Timothy Perrett
Hey David, Are you saying that scala actors are leaking outside of large rate construction / destruction situations? At least, I remember that was what was tickling the EPFL bug last time :-) This has pretty major ramifications if it is! Personally, I'm happy to move to lift-actor. Cheers

[Lift] Re: OOME in using CometActor

2009-09-16 Thread Erik Engbrecht
The large number of VolatileTaskRefs is a consequence of your thread pool growth. Each worker thread maintains an array of VolatileTaskRef objects. The VolatileTaskRef objects are reused rather than allocated for each task, so they will not be GC'd as long as the worker thread is alive. You can t

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread TylerWeir
Given the on again/off again nature of the issue, I'm voting for adding your change. We can rely on your code working until the issue is sorted with the Scala team. So, +1 to dpp's code. On Sep 16, 9:14 am, David Pollak wrote: > Guys, > The Scala Actor issue has raised its head again. > > From

[Lift] Re: How to XHTML and embedded snippets

2009-09-16 Thread Ewan
Thanks but I still have no joy. My snippet binding is as follows: property.map ({ p => bind("property", html, "id" -> p.id, "name" -> p.name, "image" -> ) }) openOr notFound with the following xhtml:

[Lift] Re: Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread Kevin Wright
Is there any reason not to go with something like the Akka framework? I believe it has a lift-friendly license. On Wed, Sep 16, 2009 at 2:14 PM, David Pollak wrote: > Guys, > The Scala Actor issue has raised its head again. > > From November 2008 - June 2009, I did an epic battle with Scala act

[Lift] Breaking changes in CometActor code vs. continuing instabilities in Scala Actors

2009-09-16 Thread David Pollak
Guys, The Scala Actor issue has raised its head again. >From November 2008 - June 2009, I did an epic battle with Scala actors and their memory retention issues. I finally wrote a Lift Actor library that made all the Scala Actor-related issues go away for the short-lived Actors that Lift uses as

[Lift] Re: Proper way to upgrade Lift and Scala libs?

2009-09-16 Thread David Pollak
On Tue, Sep 15, 2009 at 9:04 PM, Ike wrote: > > On Sep 15, 11:44 pm, David Pollak > wrote: > > On Tue, Sep 15, 2009 at 8:28 PM, Ike wrote: > > > > > Hi all, > > > > > I've seen in a couple of posts here that I can just update the > > > corresponding dependencies in the POM and get the updated l

[Lift] Re: Proper way to upgrade Lift and Scala libs?

2009-09-16 Thread David Pollak
On Tue, Sep 15, 2009 at 9:01 PM, Wilson MacGyver wrote: > > On Tue, Sep 15, 2009 at 11:44 PM, David Pollak > wrote: > > Lift (1.1-X and 1.0.1/1.0.2) is compiled against Scala 2.7.5 This is the > > version you should be using. > > Do not upgrade to 2.7.6 2.7.6 is a broken release. > > can you ex

[Lift] Re: OOME in using CometActor

2009-09-16 Thread Derek Williams
I believe I ran into this before, to fix it I came up with this: package scala.actors object ActorTimerKiller { def kill { Actor.timer.cancel } } and then in my Boot.scala: LiftRules.unloadHooks.append(() => { ActorTimerKiller.kill } I also have Actor.clearSelf in my unloadHooks, b

[Lift] Re: Spring Security

2009-09-16 Thread David Pollak
On Wed, Sep 16, 2009 at 1:49 AM, Viktor Klang wrote: > > > On Wed, Sep 16, 2009 at 2:38 AM, Charles F. Munat wrote: > >> >> David Pollak wrote: >> > The existing page/URL level security has nothing to do with Mapper. >> > There's nothing that can be done with Mapper that can't be done with >> >

[Lift] Re: OOME in using CometActor

2009-09-16 Thread David Pollak
On Wed, Sep 16, 2009 at 3:38 AM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > Hi, > > I have encountered OutOfMemory Exception in developing Liftweb app. > It seems it is related to CometActor(, or scala.actors.Actor) > At OOME timing, I have found 1,000,000 instances of > scala.acto

[Lift] Article about Lift on heise.de

2009-09-16 Thread Tobias Daub
Just found it during my daily look on the site http://www.heise.de/developer/Lift-Vehikel-zum-naechsten-Web-Framework-Level--/artikel/145143 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post

[Lift] Re: How to XHTML and embedded snippets

2009-09-16 Thread Viktor Klang
On Wed, Sep 16, 2009 at 12:49 PM, Viktor Klang wrote: > > > On Wed, Sep 16, 2009 at 12:37 PM, Ewan wrote: > >> >> I'd like to pop the bound value from a snippet into some standard >> xhtml tags but it does not parse. In the case below I want the url to >> be put into the img tag where is bound

[Lift] Re: How to XHTML and embedded snippets

2009-09-16 Thread Timothy Perrett
I think id do: then in the scala: class MySnippet { def example(xhtml: NodeSeq):NodeSeq = bind("whatever", xhtml, "demo" -> } Basically, when attributes are name-spaced correctly, they are merged into the node attributes. This is all from memory so might need a slight change to com

[Lift] Re: How to XHTML and embedded snippets

2009-09-16 Thread Viktor Klang
On Wed, Sep 16, 2009 at 12:37 PM, Ewan wrote: > > I'd like to pop the bound value from a snippet into some standard > xhtml tags but it does not parse. In the case below I want the url to > be put into the img tag where is bound to ta > snippet. > > style="border:3px solid #CC" > width="7

[Lift] How to XHTML and embedded snippets

2009-09-16 Thread Ewan
I'd like to pop the bound value from a snippet into some standard xhtml tags but it does not parse. In the case below I want the url to be put into the img tag where is bound to ta snippet. style="border:3px solid #CC" width="75" height="100"/> I am unable to do this so as a work around

[Lift] Re: Spring Security

2009-09-16 Thread Timothy Perrett
Amen to that Viktor. Lift would have never been created if everything out there was doing a perfect job! Im a little confused however Chas - on the one had, your talking about enterprise security and on the other you are talking about simple logins that are part of the archetypes and that you don

[Lift] Re: Spring Security

2009-09-16 Thread Viktor Klang
On Wed, Sep 16, 2009 at 10:49 AM, Viktor Klang wrote: > > > On Wed, Sep 16, 2009 at 2:38 AM, Charles F. Munat wrote: > >> >> David Pollak wrote: >> > The existing page/URL level security has nothing to do with Mapper. >> > There's nothing that can be done with Mapper that can't be done with >> >

[Lift] Re: Spring Security

2009-09-16 Thread Viktor Klang
On Wed, Sep 16, 2009 at 2:38 AM, Charles F. Munat wrote: > > David Pollak wrote: > > The existing page/URL level security has nothing to do with Mapper. > > There's nothing that can be done with Mapper that can't be done with > > JPA (with the exception of Mapper's field-level access control whi

[Lift] Re: where should i put the props file?

2009-09-16 Thread XiaomingZheng
thanks! On Sep 16, 2:35 pm, Jeppe Nejsum Madsen wrote: > XiaomingZheng writes: > > it works~~~thank u! > > but i read the lift source code, the framework searches "/props/" and > > "/" dirs, how can this framework find props files in resource dir? > > The "/props" and "/" dirs are classpath loc

[Lift] DB Log issue, escaping placeholders & LoggedPreparedStatement.paramified()

2009-09-16 Thread Ewan
Derek This one is for you I think. After updating my Boot.scala with revised DB.addLogFunc I have found an issue with logging prepared statements. My usecase is an insert/update that sets a MappedString - this MappedString is to hold a url such as "http:// www.northnorfolkholidaylet.com". No p