[Lift] Re: Submit like SHtml.text but with ajaxText

2009-08-01 Thread Richard Dallaway
David I've updated, tried it, and it works just how I need it to work. Brilliant. Thank you RIchard On 31 Jul 2009, at 22:12, David Pollak wrote: I just committed code that allows: bind(form, xhtml, first - text(firstName, firstName = _, s = {S.notice(First name +s);

[Lift] Re: erro: MappedDouble is not mapped to 'double precision' datatype in PostgreSQL?

2009-08-01 Thread JanWillem Tulp
Hi Derek, you fix worked!! The schemifier has successfully created a table with a column of type DOUBLE PRECISION. JanWillem On Jul 31, 9:28 am, JanWillem Tulp janwillem.t...@gmail.com wrote: Thanks, yes, I'll try tomorrow and let you know! On Jul 29, 12:43 am, Derek Chen-Becker

[Lift] Interrupting sleeping actors on ctrl-c

2009-08-01 Thread E. Biggs
attn beautiful, generous lift gurus, I've spawned off a scheduling actor that spend most of its time asleep; it just wakes up to tell another actor when to do things i.e: actor{ loop{ sleep( an hour ); mainActor ! do something }}. Works like a champ except for one thing: jetty can't get

[Lift] Re: Interrupting sleeping actors on ctrl-c

2009-08-01 Thread marius d.
I'd strongly recommend not to use sleep in the actors. Please see Lift's ActorPing that does exactly what you need. You have: def schedule(to: Actor, msg: Any, delay: TimeSpan) // send a message to the given actor after a delay or def scheduleAtFixedRate(to: Actor, msg: Any, initialDelay:

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
On 07/30/2009 11:26 PM, Naftoli Gugenheim wrote: Does doubling the brace escape it? Sure does, thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
On 07/31/2009 12:27 PM, David Pollak wrote: loc.onUpdate = function(lat, lon) {ft is XHTML. The above will not work in XHTML because the code will be escaped into XML. Ah, so it does, just looked at the rendered source. Thanks for the fix, and for the new method.

[Lift] Re: Another backtrace on reload

2009-08-01 Thread Nolan Darilek
Wondering if anyone has gotten a chance to take a look at this? Life got busy, and since my Lift projects aren't commercial just yet, they went on the back burner. But I'm still seeing this. Also, not sure how I missed this question, but I don't think SBT is undeploying the app before

[Lift] Re: Another backtrace on reload

2009-08-01 Thread Tim Nelson
I was having the same problems using jetty's hot deploy with ~ prepare- webapp in sbt so I switched to using JavaRebel. It works much better and I haven't had any problems with reloading since. I don't think there's any info on the sbt site about jrebel, but it's real easy to get set up. Just

[Lift] Re: Another backtrace on reload

2009-08-01 Thread Tim Nelson
I just read your original post and that error is exactly what I was referring to in my last post. The problem is, by default, the database shuts down when the jvm shuts down. So, if you want to dynamically restart jetty, you need a way to shutdown the db if the jvm is not shutown. You can do as I

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
OK, having more issues with this. First I tried changing to jsonCall. This results in a huge backtrace, which I don't have at hand ATM but which seems to indicate a parse error in the input string. Strange, as the input seems rather straight-forward, but I thought I'd ensure that I'm not

[Lift] Re: Interrupting sleeping actors on ctrl-c

2009-08-01 Thread E. Biggs
Ah, reimplemented with ActorPing and love it, thanks... Just out of curiosity though, what are the reasons for strongly recommending not having sleep in actors? I mean besides that you can obviously get yourself into trouble - even create a deadlock.. but in my case my sleeping actor never

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread David Pollak
On Sat, Aug 1, 2009 at 9:28 AM, Nolan Darilek no...@thewordnerd.infowrote: OK, having more issues with this. First I tried changing to jsonCall. This results in a huge backtrace, which I don't have at hand ATM but which seems to indicate a parse error in the input string. Strange, as the

[Lift] Re: Automatic background AJAX: best way to do it?

2009-08-01 Thread Nolan Darilek
On 08/01/2009 11:53 AM, David Pollak wrote: you need to replace ajaxCall with jsonCall... that will Stringify your JavaScript object. Ack, OK, that's what I had when I got the huge backtrace. :) So back to where I started, with: def updatePosition(pos:Any):JsCmd = { println(Got

[Lift] Re: Asynchronous Javascript problem

2009-08-01 Thread Channing Walton
ok I am getting somewhere. Thanks for your patience, I'll write this up somewhere in case someone else needs a google map in a liftweb app. The functions being generated are good: function sendPointToServer(point) { F298945645192D4K({'command': 'setPoint', 'params':point}); } function

[Lift] Getting started not starting.

2009-08-01 Thread Jeff McKenna
I have been trying the getting started tutorial. I have gotten it to work in the past but not for a while. Currently my error message is The desired archetype does not exist (net.lifweb:lift-archetype-blank: 1.0) My maven (2.0.9) command is mvn archetype:generate -U \

[Lift] Re: Getting started not starting.

2009-08-01 Thread TylerWeir
This is probably the best way to do it: mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ Tim has been updating the GitHub wiki, and there is a maven page here: http://wiki.github.com/dpp/liftweb/about-maven-mini-guide On Aug 1, 6:01 pm, Jeff McKenna agile.act...@gmail.com

[Lift] Re: erro: MappedDouble is not mapped to 'double precision' datatype in PostgreSQL?

2009-08-01 Thread Derek Chen-Becker
Pending the verification of the Oracle fix, I'll work on a 1.0.1 release with these changes this week. Derek On Sat, Aug 1, 2009 at 3:41 AM, JanWillem Tulp janwillem.t...@gmail.comwrote: Hi Derek, you fix worked!! The schemifier has successfully created a table with a column of type DOUBLE