[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
I have added the demo code on the Github now. ( Mabye it's a bug with DB.runQuery and DB.use in the two db vender ) Here is the address: http://github.com/anim510/two_db_demo Thanks very much! Cheers, Neil On Jan 21, 11:26 am, Neil.Lv anim...@gmail.com wrote:   My email is :  

[Lift] Re: What happens between 7000 and 8000 requests?

2010-01-21 Thread Stefan Koenig
First of all thanks for the replies. Your comments made a lot of sense, so I tested again using a cookie jsessionid and voilà no problems anymore even running more than 100,000 requests in a row now. Also the failed requests are gone. Thanks again. Stefan Koenig On Jan 21, 5:16 am, Derek

Re: [Lift] Re: What happens between 7000 and 8000 requests?

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 6:25 AM, Stefan Koenig koeni...@gmail.com wrote: First of all thanks for the replies. Your comments made a lot of sense, so I tested again using a cookie jsessionid and voilà no problems anymore even running more than 100,000 requests in a row now. Also the failed

Re: [Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread David Pollak
What is wrong with: DB.use(FirstDB) { firstConnection = DB.use(SecondDB) { secondConnection = // do transactional query between two DBs here } } Note that DB.use nests such that the transaction will only be committed when the last DB.use block for a given ConnectionIdentifier is exited.

Re: [Lift] Re: 1.1-M8 to 2.0-M1 behavior change

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 1:24 AM, aw anth...@whitford.com wrote: I think I discovered that my issue is related to the fact that the code is part of a CometActor/CometListener, and it sounds like S isn't fully functional from this perspective... My clue was the inStatefulScope_? method

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
The users table in the OneDB, and the hots table in the TwoDB, they are separated! I have changed the method that like this: ### # I specify the TwoDB for hots table. override def dbDefaultConnectionIdentifier = bootstrap.liftweb.TwoDB def getHots3(id : Long) = {

Re: [Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Ross Mellgren
It doesn't work is not sufficient to diagnose. What behavior did you get, and what were you expecting? Were there any errors, log messages, exceptions, etc? If so, please copy them. Finally, if you have a reproducible test case please post it to github. I note earlier in the thread that you

[Lift] Re: Embedding comet actor in ModalDialog

2010-01-21 Thread Marius
Right ... building progress bars should be quite easy but just have your page contain the comet actor.So roughly the steps would be: 1. Include your comet in the page. In this state it renders nothing visible 2. hen you open the dialog, send an ajax response 3. From your ajax scal function send a

Re: [Lift] Re: Memory behavior in Jetty with CometActor - 25MB of scala.xml.Text!

2010-01-21 Thread David Pollak
On Wed, Jan 20, 2010 at 9:28 PM, mark chance mark.cha...@gmail.com wrote: I did post the project to drop.io - http://drop.io/memtest. The project does not build: Path to dependency: 1) com.peopledesigned:memtest:war:1.0-SNAPSHOT 2) org.jfree:jcommon:jar:1.0.16 Looking at your

Re: [Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 9:29 AM, Neil.Lv anim...@gmail.com wrote: The users table in the OneDB, and the hots table in the TwoDB, they are separated! I have changed the method that like this: ### # I specify the TwoDB for hots table. override def dbDefaultConnectionIdentifier =

[Lift] Re: Ideas for how to inject QueryParams into find() and findAll()

2010-01-21 Thread Franz Bettag
I will implement it into my own MetaMapper-sub-trait so all of my models can share the code. Thank you all for your input! On Jan 21, 9:44 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: Why not define a new method? def findByCurUser(params:

[Lift] Re: [scala-internals] RC8 candidate for the first 2.8.0 beta

2010-01-21 Thread David Pollak
I've written a work-around and am currently testing the code more in a few minutes. On Thu, Jan 21, 2010 at 11:20 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Okay... it looks like the VarArg stuff is messing with the compiler: case class Index[A : Mapper[A]](columns:

[Lift] Re: [scala-internals] RC8 candidate for the first 2.8.0 beta

2010-01-21 Thread martin odersky
(Un)fortunately I have an idea what the problem is. It's probably my fix for #2867. I have now rolled back that fix in r20629. Can you check again whether it works with that revision (should be in the nightly tomorrow)? If it does we might be able to make an exception to our RC = final rule,

[Lift] Re: [scala-internals] RC8 candidate for the first 2.8.0 beta

2010-01-21 Thread martin odersky
On Thu, Jan 21, 2010 at 8:31 PM, David Pollak feeder.of.the.be...@gmail.com wrote: I've written a work-around and am currently testing the code more in a few minutes. If you can make it work, so much the better. To give some info: The original ticket had a vararg parameter of the form

[Lift] Re: [scala-internals] RC8 candidate for the first 2.8.0 beta

2010-01-21 Thread David Pollak
Okay... the work-around is checked into the Lift repo. I say, Ship RC8 as the beta and we'll work through this (and likely other) issues during the beta period. On Thu, Jan 21, 2010 at 11:36 AM, martin odersky martin.oder...@epfl.chwrote: On Thu, Jan 21, 2010 at 8:31 PM, David Pollak

[Lift] Re: [scala-internals] RC8 candidate for the first 2.8.0 beta

2010-01-21 Thread martin odersky
On Thu, Jan 21, 2010 at 8:37 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Okay... the work-around is checked into the Lift repo. I say, Ship RC8 as the beta and we'll work through this (and likely other) issues during the beta period. Sounds good. Thanks! -- Martin On Thu, Jan 21,

Re: [Lift] Mapper FKs

2010-01-21 Thread David Pollak
I'm okay with making the flag optional (but on by default with a breaking changes notice) for the H2 database. On Wed, Jan 20, 2010 at 11:09 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: David and everone, Some time ago we discussed on this list what it would take to have Schemifier

[Lift] Mindless work...

2010-01-21 Thread David Pollak
Folks, It's looking like Scala 2.8 RC8 will become 2.8 Beta1 on Tuesday. I'd like to get the Lift 2.8 branch up to date (and keep it up to date) with the 2.0-SNAPSHOT branch as well as getting continuous builds on Hudson and deployment in the scala-tools.org snapshots directory. I think our

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Naftoli Gugenheim
Those names seem counterintuitive to me. ajaxSubmit submits an ajax form but submitAjaxForm submits a non-ajax form? submitAjaxForm implies that it should be the reverse, no? - Mariusmarius.dan...@gmail.com wrote: Instead of submit - SHtml.submit(Parse, ()

[Lift] Version of maven for lift

2010-01-21 Thread James Matlik
What is Lift's recommended version of Maven? I am looking to create an sbaz package for easy download and install for maven for newcomers (myself included), and figure that having one that is compatible with lift would be of prime interest. Is the latest and greatest version compatible with 2.0?

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote: Instead of  submit - SHtml.submit(Parse, () = ()) use:  submit - SHtml.ajaxSubmit(Parse, () = ()) you can also send normal forms via ajax like: SHtml.submitAjaxForm(formId, () = {  /// Do your stuff here. This

[Lift] Re: [lift] Version of maven for lift

2010-01-21 Thread Channing Walton
I use maven 2.2.1 without any problem. i prefer to use sbt these days which still makes use of mvn repositories. James Matlik wrote: What is Lift's recommended version of Maven? I am looking to create an sbaz package for easy download and install for maven for newcomers (myself

[Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Marius
On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote: Instead of  submit - SHtml.submit(Parse, () = ()) use:  submit - SHtml.ajaxSubmit(Parse, () = ()) you can also send normal forms via ajax

[Lift] Re: Snippet question

2010-01-21 Thread Franz Bettag
One last question, is there any way to give an ajaxText some kind of style/class/id attribute? I looked at the source but it was really hard to get the hang of it. best regards. On 21 Jan., 02:05, Franz Bettag fr...@bett.ag wrote: Ah, i was already wondering if that was a typo or what it does

Re: [Lift] Re: Snippet question

2010-01-21 Thread Ross Mellgren
The signature of ajaxText is: def ajaxText(value : String, func : (String) = JsCmd, attrs : (String, String)*): Elem def ajaxText(value : String, jsFunc : Call, func : (String) = JsCmd, attrs : (String, String)*): Elem The attrs vararg is for this purpose, just pass in additional attributes

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote: On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote: Instead of  submit - SHtml.submit(Parse, () = ()) use:  submit -

[Lift] Fwd: Re: Review Request: Ajax change from () = Any to () = JsCmd

2010-01-21 Thread Naftoli Gugenheim
I hope it's okay that I'm forwarding this to the list. A suggestion, to allow all the alternatives in a type-safe and type-documenting way, would involve implicits. So you would have say sealed trait AjaxResponse case class JsCmdResponse(cmd: JsCmd) ... object AjaxReponse { implicit def

Re: [Lift] Version of maven for lift

2010-01-21 Thread Naftoli Gugenheim
You want an sbaz package that will contain what exactly? - James Matlikjames.mat...@gmail.com wrote: What is Lift's recommended version of Maven? I am looking to create an sbaz package for easy download and install for maven for newcomers (myself included),

[Lift] Re: Snippet question

2010-01-21 Thread Franz Bettag
Hm, i saw a method with attrs, but it was private. guess i overlooked it. thanks. On 21 Jan., 22:46, Ross Mellgren dri...@gmail.com wrote: The signature of ajaxText is: def ajaxText(value : String, func : (String) = JsCmd, attrs : (String, String)*): Elem def ajaxText(value : String, jsFunc

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote: On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com wrote: Instead of  submit - SHtml.submit(Parse, () = ()) use:  submit -

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 4:36 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote: On Jan 21, 11:15 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Jan 21, 2010 at 12:23 PM, Marius marius.dan...@gmail.com

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 4:04 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: On Thu, Jan 21, 2010 at 4:36 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Thu, Jan 21, 2010 at 2:43 PM, Marius marius.dan...@gmail.com wrote: On Jan 21, 11:15 pm, Kris Nuttycombe

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
Okay, I think I may have found a bug. My returned content contains unescaped braces. In one failure case (this is parsing a DSL) I was testing a parse of a missing end brace - and part of the error message is the original text passed in (with mismatched braces). Figured it out by passing in

[Lift] web site critique

2010-01-21 Thread Raoul Duke
http://liftweb.net/download.html needs to tell me what (tf :-) to do next if i /do/ have mvn installed already. -- 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

[Lift] intro mvn critique

2010-01-21 Thread Raoul Duke
hi, i think there should be a much shorter mvn command to get started. i do not know maven, but would it not be possible to wrap up all of the long-winded jiggery-pokery (below) into a shorter thing that expanded / downloaded something that ran that command? it is just not good user experience

Re: [Lift] web site critique

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 4:29 PM, Raoul Duke rao...@gmail.com wrote: http://liftweb.net/download.html needs to tell me what (tf :-) to do next if i /do/ have mvn installed already. http://liftweb.net/docs/getting_started.html -- You received this message because you are subscribed to

Re: [Lift] intro mvn critique

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 4:31 PM, Raoul Duke rao...@gmail.com wrote: hi, i think there should be a much shorter mvn command to get started. i do not know maven, but would it not be possible to wrap up all of the long-winded jiggery-pokery (below) into a shorter thing that expanded /

Re: [Lift] web site critique

2010-01-21 Thread Raoul Duke
hi, On Thu, Jan 21, 2010 at 4:32 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 21, 2010 at 4:29 PM, Raoul Duke rao...@gmail.com wrote: http://liftweb.net/download.html needs to tell me what (tf :-) to do next if i /do/ have mvn installed already.

Re: [Lift] intro mvn critique

2010-01-21 Thread Raoul Duke
I wish, but no.  I've written my own shell script. ugh. could the html verison perhaps be improved to not have extra blank lines which prevent me from successfully copy and pasting it into my shell? :-) http://liftweb.net/docs/getting_started/mod_master.html#x1-40001.2 sincerely. -- You

Re: [Lift] web site critique

2010-01-21 Thread Timothy Perrett
The site is not perfect, we know that... we are trying to work on it but progress is slow for a variety of reasons. On 22 Jan 2010, at 00:34, Raoul Duke wrote: hi, On Thu, Jan 21, 2010 at 4:32 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 21, 2010 at 4:29 PM, Raoul

[Lift] buildr?

2010-01-21 Thread Raoul Duke
whatever came of buildr for lift? i haven't stumbled across the answer googling yet, but i'm still checking... 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

Re: [Lift] buildr?

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 4:58 PM, Raoul Duke rao...@gmail.com wrote: whatever came of buildr for lift? i haven't stumbled across the answer googling yet, but i'm still checking... We're not going to support Buildr for Lift. Adding Ruby into the mix is a non-starter from my perspective. There

Re: [Lift] buildr?

2010-01-21 Thread Raoul Duke
hi, whatever came of buildr for lift? i haven't stumbled across the answer googling yet, but i'm still checking... We're not going to support Buildr for Lift. Adding Ruby into the mix is a non-starter from my perspective. There is increasing sbt support for Lift-based projects. thanks

Re: [Lift] buildr?

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 5:03 PM, Raoul Duke rao...@gmail.com wrote: hi, whatever came of buildr for lift? i haven't stumbled across the answer googling yet, but i'm still checking... We're not going to support Buildr for Lift. Adding Ruby into the mix is a non-starter from my

Re: [Lift] buildr?

2010-01-21 Thread Raoul Duke
At this point, we're official only supporting Lift with Maven.  We've got limited resources and this is where we're putting them.  Maven is mature, works well in most cases, and integrates with IDEs very effectively.  I expect in 6-12 months, we'll deprecate Maven in favor of sbt, but not

Re: [Lift] Re: [lift] Version of maven for lift

2010-01-21 Thread James Matlik
Sbt is on the plan too, as well as svnkit which is a command line svn client in Java. On Jan 21, 2010 4:30 PM, Channing Walton channingwal...@mac.com wrote: I use maven 2.2.1 without any problem. i prefer to use sbt these days which still makes use of mvn repositories. James Matlik wrote:

Re: [Lift] Version of maven for lift

2010-01-21 Thread James Matlik
I will be creating a sbaz package containing a maven release. I realize that lift generally doesn't use the scala distribution (which comes with sbaz ), but it does seem a logical stepping stone for beginners and tinkerers. I just want to make things readily accessible. Since 2.2.1 works, I'll run

Re: [Lift] buildr?

2010-01-21 Thread Alex Boisvert
On Thu, Jan 21, 2010 at 5:17 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jan 21, 2010 at 5:03 PM, Raoul Duke rao...@gmail.com wrote: hi, whatever came of buildr for lift? i haven't stumbled across the answer googling yet, but i'm still checking... We're not going

[Lift] Re: Memory behavior in Jetty with CometActor - 25MB of scala.xml.Text!

2010-01-21 Thread Java1Guy
David: Thanks for having a look. Curious about that missing dependency - i guess it's in the pom.xml but not really used. Anyway, I'll digest your recommendations and have a go at it. The scenario I have running right now is one page open (and therefore its session) for a very long time. While

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
Thanks guys very very much! I'm using the Windows XP, I reset the height buffer for the CMD now, and can see the full error message now. The code can work fine now ( it's so strange that I run this code on the another computer , and it's all OK... ) Maybe I need to delete all the

Re: [Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Naftoli Gugenheim
'mvn clean' deletes them for you. - Neil.Lvanim...@gmail.com wrote: Thanks guys very very much! I'm using the Windows XP, I reset the height buffer for the CMD now, and can see the full error message now. The code can work fine now ( it's so strange

[Lift] Re: How to use prepareStatement to select *** from DB (two db vender)?

2010-01-21 Thread Neil.Lv
On Jan 22, 10:06 am, Naftoli Gugenheim naftoli...@gmail.com wrote: 'mvn clean' deletes them for you. - Got it, Thank you very much! Cheers, Neil -- You received this message because you are subscribed to the Google Groups Lift group. To post to this

Re: [Lift] Re: Simple Ajax call to server side function

2010-01-21 Thread David Pollak
On Mon, Jan 18, 2010 at 10:31 AM, Felipe Rodrigues felipero.maill...@gmail.com wrote: That's a little better.. thanks Originally, the function returned Any... and this led to problems (people returning HTML, Strings, etc.) It turns out that 95% of the time, you want to do something to tell

Re: [Lift] Mindless work...

2010-01-21 Thread Heiko Seeberger
I have time to do the mindless work of doing the port tonight (my brain will explode if it has to think, but mindless is okay). Sorry for the delay, but my night already started when you were having lunch ;-) - Heiko -- how far along is the stuff in issue 292? Is this code on the