[Lift] Re: Comet long polls turning to fast short polls

2009-11-24 Thread soumik
Thanks for the quick response, Marius. I am not running the browser with multiple tabs/windows. Its just 1 firefox window with 1 tab pane. And I see this happening. About the part where I said, navigating away from the page doesn't affect the ajax polls, let me clarify a little. I have a page whe

Re: [Lift] Improving lift-flot

2009-11-24 Thread Jeppe Nejsum Madsen
Peter Robinett writes: > I've been working with lift-flot a lot recently and I'd like to share > some thoughts and suggest some improvements. It's a very useful > interface to a great Javascript plotting library, so consider these as > small suggestions from a fan. > I had some of the same conce

[Lift] Re: Comet long polls turning to fast short polls

2009-11-24 Thread Marius
Hmmm In the page with 2 Comets using FireBug do you see 2 Ajax requests flying out? Can you make a very minimalistic app derived from your existent application that can reproduce this issue and post the app here as a zip? Myself or someone else will surely look into this. This is a bit stra

[Lift] Re: Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread tommycli
Amazing - great. For future reference - what's the preferred method for asking for code/feature to be integrated? On Nov 23, 9:46 pm, Ross Mellgren wrote: > Added an issue for you:http://github.com/dpp/liftweb/issues#issue/205 > and it's on review board:http://reviewboard.liftweb.net/r/121/ > > S

Re: [Lift] Re: Comet long polls turning to fast short polls

2009-11-24 Thread Timothy Perrett
Are you using ActorPing or something? Can you post your actor code? Cheers, Tim On 24 Nov 2009, at 08:50, soumik wrote: > Thanks for the quick response, Marius. > > I am not running the browser with multiple tabs/windows. Its just 1 > firefox window with 1 tab pane. > And I see this happeni

Re: [Lift] binding error

2009-11-24 Thread Timothy Perrett
Change: app.map to: app.flatMap Cheers, Tim On 24 Nov 2009, at 05:02, mr najmi wrote: > i have one error that is > found : scala.xml.NodeSeq > required: scala.xml.Node >bind("app",html, >^ > > here is my code: > > var app = AvailableSlot.findAll() >def viewapp(

Re: [Lift] Problem with issue 182

2009-11-24 Thread Jeppe Nejsum Madsen
Derek Chen-Becker writes: > OK, thinking about this a little further, technically it would be a breaking > change to remove the menus method from MetaMegaProtoUser. Yes, but is that really an issue here? > Would it be better to simply introduce a MenuGenerator trait, a la > > trait MenuGenera

[Lift] Re: Comet long polls turning to fast short polls

2009-11-24 Thread soumik
Thanks for the quick response, Marius. I am not running the browser with multiple tabs/windows. Its just 1 firefox window with 1 tab pane. And I see this happening. About the part where I said, navigating away from the page doesn't affect the ajax polls, let me clarify a little. I have a page whe

[Lift] Re: Comet long polls turning to fast short polls

2009-11-24 Thread soumik
I was able to figure out what the problem was. The main page comet actor had a jquery plugin (gritter - displays growl-like alerts), which makes ajax calls. This plugin was the one which was causing the problem. When I removed call to the jquery function for the plugin, the problem was not seen. T

[Lift] Generic Ajax exception handling

2009-11-24 Thread Marius
Hi, We have today the LiftRules.exceptionHandler that we can use as a single point where we can capture exceptions during stateful processing which is applied for stateful DispatchPF and page rendering. It looks like we can applythe same mechanism when handling AjaxRequests so that the LiftRules.

Re: [Lift] Generic Ajax exception handling

2009-11-24 Thread David Pollak
On Tue, Nov 24, 2009 at 4:09 AM, Marius wrote: > Hi, > > We have today the LiftRules.exceptionHandler that we can use as a > single point where we can capture exceptions during stateful > processing which is applied for stateful DispatchPF and page > rendering. > > It looks like we can applythe s

Re: [Lift] Plans for Record

2009-11-24 Thread David Pollak
On Mon, Nov 23, 2009 at 9:27 PM, Jason Felice wrote: > I'd like to chip in, but I'm not familiar with the intended design - > specifically anything about an RDBMS backend. (e.g. Go the way of > Mapper, or use a more comprehensive backend like JPA?) > Record is not going to match JPA any time soo

Re: [Lift] Re: Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread David Pollak
On Tue, Nov 24, 2009 at 1:03 AM, tommycli wrote: > Amazing - great. For future reference - what's the preferred method > for asking for code/feature to be integrated? > Discuss on this list, once everyone is happy, open a ticket at GitHub. > > On Nov 23, 9:46 pm, Ross Mellgren wrote: > > Adde

Re: [Lift] Need for lift application to coexist with spring in the same webapp

2009-11-24 Thread David Pollak
On Mon, Nov 23, 2009 at 9:34 PM, sunanda wrote: > Hi David, > > Thank for all the help so far. > > My lift application needs to coexist with the spring servlet in > the same web application. I have configured the web.xml file for both > of the spring servlet and lift filter. > Hence I need to

[Lift] Re: overriding ConnectionManager.newSuperConnection

2009-11-24 Thread opyate
Hi David, I did work around this by putting the schemas in my search path. Edit postgresql.conf and add the following: search_path = '"$user",public,schema1,schema2,schemaN' As for this being a bug... did you intend for Mapper to support schemas on the CRUD side? If so, I'd be happy to create a r

Re: [Lift] Re: overriding ConnectionManager.newSuperConnection

2009-11-24 Thread David Pollak
On Tue, Nov 24, 2009 at 6:24 AM, opyate wrote: > Hi David, > > I did work around this by putting the schemas in my search path. > Edit postgresql.conf and add the following: > search_path = '"$user",public,schema1,schema2,schemaN' > > As for this being a bug... did you intend for Mapper to suppor

[Lift] Records with LDAP ?

2009-11-24 Thread Francois
Hello Lifter ! Before anyything else, I would like to thank you all for the awesome work done with Lift. I'm using it for real for not even 10 days, and everything is just working so well... particular kudos for the AJAX work and the quick Scala 2.8 integration. That being said, I'm using Lift

[Lift] Exploring record and alternative backends

2009-11-24 Thread Oscar Picasso
Hi, I would like to learn Record and some alternative backend. I have read a post about a good Akka / Record bridge. Where should I start? Is the Akka / Record bridge part of the lift distribution (didn't see it)? Is there an example somewhere? Thanks. -- You received this message because you

[Lift] Re: A sensible AJAX approach

2009-11-24 Thread glenn
David, The statement that all functions are bound to the current state in the scope that the function was created may be true for functions submitted via SHtml, but doesn't seem to hold true for those from LiftResponse, otherwise, the edit function in my example would work for editing, just as it

Re: [Lift] Exploring record and alternative backends

2009-11-24 Thread Timothy Perrett
Ok, so this is spawned from a comment made by DPP - Its true, I was working on an Akka Record implementation but I had to shelve the concept for now as im busy with work. I am however using a custom backend I wrote at work where we have a service based system and that is working absolutely beau

[Lift] Re: problems with tomcat

2009-11-24 Thread DavidV
Update: The tomcat incompatability with the external server was caused by a Java version mismatch. I was compiling my scala code with a newer version of the JDK. I had an older JDK installed on the external server and this was causing a problem with some of my class files (but not others, oddly).

Re: [Lift] Exploring record and alternative backends

2009-11-24 Thread Oscar Picasso
I don't have any specific use case. I just want to know more and experiment with Record. On Tue, Nov 24, 2009 at 11:08 AM, Timothy Perrett wrote: > Ok, so this is spawned from a comment made by DPP - Its true, I was working > on an Akka Record implementation but I had to shelve the concept for no

Re: [Lift] Problem with issue 182

2009-11-24 Thread Derek Chen-Becker
I was thinking something along the lines of: override def menus = super[MegaMetaProtoUser].menus ::: super[CRUDify].menus if you need both, but I suppose it's simpler to just remove it. I'll code up the change and send out a breaking changes announcement. Derek On Tue, Nov 24, 2009 at 2:15 AM,

[Lift] Autocomplete: resources can't be found

2009-11-24 Thread Chris Thomet
Hi! I'm using the autocomplete widget for my current lift project. Everything compiles. The JQuery code for the autocomplete widget is generated in the html file. The problem is that the 2 resource files "jquery.autocomplete.css/js" can't be found by the server. Are I am missing something? I am

[Lift] Re: Autocomplete: resources can't be found

2009-11-24 Thread Marius
/classpath/autocomplete/jquery.autocomplete.js /classpath/autocomplete/jquery.autocomplete.css are retrieved correctly for me. Are you calling AutoComplete.init in your boot? Br's, Marius On Nov 24, 6:36 pm, Chris Thomet wrote: > Hi! > > I'm using the autocomplete widget for my current lift

Re: [Lift] Problem with issue 182

2009-11-24 Thread Jeppe Nejsum Madsen
Derek Chen-Becker writes: > I was thinking something along the lines of: > > override def menus = super[MegaMetaProtoUser].menus ::: super[CRUDify].menus Ahh yes, didn't think of this "super" syntax > if you need both, but I suppose it's simpler to just remove it. I'll code up > the change and

[Lift] Re: Autocomplete: resources can't be found

2009-11-24 Thread Chris Thomet
Thanks Marius! I missed the initialization. You saved my day...now I can leave my office without having to think about this problem ;) Chris On Nov 24, 5:50 pm, Marius wrote: > /classpath/autocomplete/jquery.autocomplete.js > > /classpath/autocomplete/jquery.autocomplete.css > > are retrieved

[Lift] Re: Page flows in Lift

2009-11-24 Thread klr8
Tim, Thanks for the interest in trying the challenge! I'm sorry if I misunderstood your explanation at Devoxx. I certainly do not want to put down on Lift. If anything I want Lift to pass this challenge with ease! Anyway, I did a follow-up post to clarify the test scenario a bit: http://ev9d9.bl

[Lift] Broken 1.1-M7 jpa archetypes

2009-11-24 Thread Oscar Picasso
It seems that 1.1-M7 jpa archetypes other than lift-archetype-jpa-basic are broken, both in snapshots and releases repositories. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscrib

Re: [Lift] Problem with issue 182

2009-11-24 Thread Derek Chen-Becker
Anyone else want to chime in with an opinion on this? I've got the code in place to remove the "menus" def from MetaMegaProtoUser, but if there's a desire it would be equally simple to add a MenuGenerator trait to net.liftweb.sitemap and apply it to the relevant traits. Derek On Tue, Nov 24, 2009

[Lift] Re: Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread Peter Robinett
I had this exact need for deleteMenuLocParams the other day. I'd love to see this added! Peter Robinett On Nov 24, 5:40 am, David Pollak wrote: > On Tue, Nov 24, 2009 at 1:03 AM, tommycli wrote: > > Amazing - great. For future reference - what's the preferred method > > for asking for code/feat

Re: [Lift] Re: Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread Derek Chen-Becker
Just curious, but what are you using the LocParams for in this case? I'm writing my own CRUDOps trait that takes a different approach to permissions and menus, so I'm trying to figure out the use cases besides my own. Thanks, Derek On Tue, Nov 24, 2009 at 11:01 AM, Peter Robinett wrote: > I had

[Lift] Re: Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread Peter Robinett
We've built an access control system that uses an If LocParam to enforce whether the current user can access the requested location. Peter On Nov 24, 10:12 am, Derek Chen-Becker wrote: > Just curious, but what are you using the LocParams for in this case? I'm > writing my own CRUDOps trait that

[Lift] stateful submit

2009-11-24 Thread DavidV
I have searched a number of threads and have found similar posts but nothing the exactly answers this relatively simple question. I am using the Lift submit method (net.liftweb.http.Shtml.submit) to submit a form. Upon submission, I want to execute another method called getImgs(s: String), so I ha

Re: [Lift] stateful submit

2009-11-24 Thread Ross Mellgren
Try capturing it as a local variable? e.g. def chooseIndex(ns: NodeSeq): NodeSeq = { val myParam = S.param("id") def getImgs(s: String) = /* work with myParam here */ .. } If you want getImgs to be outside, then you can pass it in, def getImgs(s: String, myParam: Option[String]) = ...

[Lift] Re: stateful submit

2009-11-24 Thread DavidV
Capturing the value depends on reading it from the URL as a parameter, so even if it's local, after I submit the form and the page reloads without the "id" parameter in the URL, I still get the None.get error because it is trying find a parameter that isn't there. I need some way to keep the param

Re: [Lift] Re: stateful submit

2009-11-24 Thread Ross Mellgren
The parameter value will be captured when the form is generated and will stay at that value as long as it's captured. Maybe I'm misunderstanding what you mean, but I thought what you meant is that you have a page with a query parameter "id", which has a form on it generated by chooseIndex,

Re: [Lift] Re: Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread Derek Chen-Becker
OK, I'm actually doing that in my CRUDOps with a partial function, so that sounds like one of the use cases I've already covered. Thanks, Derek On Tue, Nov 24, 2009 at 11:56 AM, Peter Robinett wrote: > We've built an access control system that uses an If LocParam to > enforce whether the curren

[Lift] how does lift work with redis?

2009-11-24 Thread surfman
Is there anything I could learn on how lift works with redis database? Thanks. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr

Re: [Lift] how does lift work with redis?

2009-11-24 Thread Timothy Perrett
There is no out of the box implementation. You could write a record back end though - it depends on the features you want I guess. Cheers, Tim Sent from my iPhone On 24 Nov 2009, at 22:00, surfman wrote: > Is there anything I could learn on how lift works with redis database? > Thanks. > > -

[Lift] Multipage wizards

2009-11-24 Thread David Pollak
Folks, I've completed the first pass at multi-page input Wizards in Lift. You can see an example at: http://demo.liftweb.net/wiz Wizards are declarative, type-safe mechanisms for describing multi-page workflows. They are stateful, isolated (you can run multiple copies of the same wizard in the

Re: [Lift] Broken 1.1-M7 jpa archetypes

2009-11-24 Thread David Pollak
Yes. This is a known issue. See http://github.com/dpp/liftweb/issues#issue/161 On Tue, Nov 24, 2009 at 9:34 AM, Oscar Picasso wrote: > It seems that 1.1-M7 jpa archetypes other than lift-archetype-jpa-basic are > broken, both in snapshots and releases repositories. > > -- > You received this me

Re: [Lift] Re: Page flows in Lift

2009-11-24 Thread David Pollak
See http://demo.liftweb.net/wiz2 The back button is acting hinky... it's not forcing a reload of the page... something's funky with the headers Lift sends back... but that's a separate issue On Tue, Nov 24, 2009 at 9:30 AM, klr8 wrote: > Tim, > > Thanks for the interest in trying the challenge!

Re: [Lift] Improving lift-flot

2009-11-24 Thread David Pollak
I'm all for enhancing the flot stuff. Do I see anyone raising their hand to own the changes? On Tue, Nov 24, 2009 at 12:57 AM, Jeppe Nejsum Madsen wrote: > Peter Robinett writes: > > > I've been working with lift-flot a lot recently and I'd like to share > > some thoughts and suggest some impro

[Lift] Re: Improving lift-flot

2009-11-24 Thread Peter Robinett
Thanks, Jeppe, it's interesting to see how you've approached it. Peter On Nov 24, 12:57 am, Jeppe Nejsum Madsen wrote: > Peter Robinett writes: > > I've been working with lift-flot a lot recently and I'd like to share > > some thoughts and suggest some improvements. It's a very useful > > inter

Re: [Lift] Re: Page flows in Lift

2009-11-24 Thread Derek Chen-Becker
Rockstar! On Tue, Nov 24, 2009 at 3:25 PM, David Pollak wrote: > See http://demo.liftweb.net/wiz2 > > The back button is acting hinky... it's not forcing a reload of the page... > something's funky with the headers Lift sends back... but that's a separate > issue > > > On Tue, Nov 24, 2009 at 9:

Re: [Lift] Re: Change to support dynamic top level menu items

2009-11-24 Thread David Pollak
Ross, You can dynamically add child elements right now: new SiteMap(menuItems) { override def buildMenu(current: Box[Loc[_]]): CompleteMenu = { val tmp = super.buildMenu(current) CompleteMenu(tmp.lines.toList ::: List(additional menus)) } } On Mon, Nov 23, 2009 at 5:16 PM, Ross

Re: [Lift] Re: Change to support dynamic top level menu items

2009-11-24 Thread Ross Mellgren
I considered this but my problem was that you could not place them into the middle of a static flow, without rummaging around in the CompleteMenu looking for known MenuItems. For example, I was thinking in the CMS case that you probably want a static Home Menu and then some dynamic menus and

[Lift] Does a Mapper MappedStringForeignKey check for existence when set?

2009-11-24 Thread Peter Robinett
I having some memory problems that I suspect are caused, at the end of the day, by creating many Mapper instances and setting their MappedStringForeignKey property. When I set it, is it being looked up in the database? Based on a previous thread[1], I suspect it is. This is with 1.1-M5. Thanks, Pe

Re: [Lift] Does a Mapper MappedStringForeignKey check for existence when set?

2009-11-24 Thread David Pollak
On Tue, Nov 24, 2009 at 2:47 PM, Peter Robinett wrote: > I having some memory problems that I suspect are caused, at the end of > the day, by creating many Mapper instances and setting their > MappedStringForeignKey property. When I set it, is it being looked up > in the database? Based on a previ

[Lift] Is there a togglable ajax button in lift?

2009-11-24 Thread Jonathan Ferguson
I've looked through the API and couldn't find anything that seemed suitable. We need an ajax button that when clicked will fire an event to the server and then toggle the button text. This could be by having two different buttons and only showing one. Cheers Jono -- You received this message be

Re: [Lift] Re: Strip header from a subset of pages

2009-11-24 Thread David Pollak
I've created issue 207: http://github.com/dpp/liftweb/issues/#issue/207 On Mon, Nov 23, 2009 at 12:34 PM, harryh wrote: > > It will eliminate both the doctype and the thing. > > This does not appear to be the case. I just tried it (on M7). Also > looking at the code for NodeResponse this does

[Lift] Re: Change to support dynamic top level menu items

2009-11-24 Thread glenn
There is a "poor man's" approach to creating top-level menus dynamically. Simply create a number of hidden menus - guessing at the max number your app will likely need - whose text representation, paths and hidden attributes can be adjusted programatically as needed by the application. Not a very

[Lift] Re: Improving lift-flot

2009-11-24 Thread Peter Robinett
I'd be happy to but I'd appreciate some advice and guidance. Peter On Nov 24, 2:26 pm, David Pollak wrote: > I'm all for enhancing the flot stuff. > > Do I see anyone raising their hand to own the changes? > > On Tue, Nov 24, 2009 at 12:57 AM, Jeppe Nejsum Madsen wrote: > > > > > Peter Robinett

[Lift] Re: Strip header from a subset of pages

2009-11-24 Thread David Pollak
http://reviewboard.liftweb.net/r/124/ On Nov 24, 3:40 pm, David Pollak wrote: > I've created issue 207:http://github.com/dpp/liftweb/issues/#issue/207 > > > > On Mon, Nov 23, 2009 at 12:34 PM, harryh wrote: > > > It will eliminate both the doctype and the thing. > > > This does not appear to be

[Lift] Re: Does a Mapper MappedStringForeignKey check for existence when set?

2009-11-24 Thread Peter Robinett
Ok, thanks, that makes sense. On Nov 24, 2:54 pm, David Pollak wrote: > On Tue, Nov 24, 2009 at 2:47 PM, Peter Robinett > wrote: > > > I having some memory problems that I suspect are caused, at the end of > > the day, by creating many Mapper instances and setting their > > MappedStringForeignKe

Re: [Lift] Re: A sensible AJAX approach

2009-11-24 Thread David Pollak
Glenn, The issue is that you were creating call-back functions during an API call (rather than as part of Lift's HTML/Ajax/Comet pipeline). In general, I think this is very bad design. I'd strongly recommend using the Ajax/Json call facilities built into Lift. You get a pile of things for free

Re: [Lift] Feature Request: deleteMenuLocParams in CRUDify

2009-11-24 Thread Ross Mellgren
Pushed to master: 83ae6be9826ba6168f7ea426db00dad97a706019 Hudson will probably be done with the build in a bit less than an hour and then it should be in 1.1-SNAPSHOT. -Ross On Nov 23, 2009, at 11:50 PM, tommycli wrote: > Add deleteMenuLocParams to CRUDify. > > Patch below. (I tried github,

[Lift] Re: Change to support dynamic top level menu items

2009-11-24 Thread philip
Hi David, Thanks. This is what works for me in my old fashioned non-functional way of programming. var sitemap:SiteMap = new SiteMap(Nil, MenuInfo.menu :_*) { override def buildMenu(current: Box[Loc[_]]): CompleteMenu = { val tmp = super.buildMenu(current) var childM