[Lift] Re: [lift] 2.0-M3 JQuery 1.4

2010-03-08 Thread Channing Walton
I am interested in this too but I don't understand the lift:with-resource-id thing, where can I find out more? AnthonyW wrote: Ugh, I must have had a cache issue despite the fact that I certainly did hit refresh before... I am now seeing 1.4.2 JQuery. Regarding lift:with-resource-id, I

[Lift] Re: [lift] 2.0-M3 JQuery 1.4

2010-03-08 Thread Channing Walton
on a single JVM). You can of course register your own function and define your own behavior of how the resources (script and link) are modeled to control caching. On Mar 8, 7:55 pm, Channing Walton channingwal...@mac.com wrote: I am interested in this too but I don't understand the lift:with

[Lift] Re: [lift] presentation only equivalent of toForm

2010-02-16 Thread Channing Walton
a read-only view I need to do this: deal.formFields.map(f = trtd{f.displayName}/tdtd{f.asHtml}/td/tr) It seems unbalanced that you can generate a form for editing purposes but not a view - unless I'm mistaken about that. Naftoli Gugenheim wrote: asHtml? 2010/2/14 Channing Walton

[Lift] Re: Re: [lift] presentation only equivalent of toForm

2010-02-16 Thread Channing Walton
tis done: http://www.assembla.com/spaces/liftweb/tickets/350 bearfeeder wrote: On Tue, Feb 16, 2010 at 12:44 AM, Channing Walton channingwal...@mac.comwrote: thats fine for individual fields of a mapper, dates etc., but not for a object with mapped fields. This is what I get for my

[Lift] Re: [lift] Comet making jetty take a long time to shutdown

2010-02-05 Thread Channing Walton
Just a bit more on this: I've noticed that if all users have logged out then jetty shuts down quickly... Channing Walton wrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down. Is there something I should have done

[Lift] [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down. Is there something I should have done to enable things to shutdown quicker? Channing -- View this message in context:

[Lift] Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
No, it eventually quits peacefully. Timothy Perrett wrote: Are you seeing a stack trace? Cheers, Tim On 4 Feb 2010, at 10:15, Channing Walton wrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down

[Lift] Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
ah, thats a good question. I am using sbt and its jetty-stop. I'll find out what its doing. bearfeeder wrote: On Thu, Feb 4, 2010 at 2:15 AM, Channing Walton channingwal...@mac.comwrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so

[Lift] Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
bearfeeder wrote: On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton channingwal...@mac.comwrote: ah, thats a good question. I am using sbt and its jetty-stop. I'll find out what its doing. I'm pretty sure Lift cancels the Comet connections during the Servlet unload process

[Lift] Re: Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
Thanks for the advice, I'll definitely rethink the pattern. I'm actually seeing the problem when I use RunWebApp. When I press a key RunWebApp should shut down but it just hangs for me. bearfeeder wrote: On Thu, Feb 4, 2010 at 2:31 PM, Channing Walton channingwal...@mac.comwrote

[Lift] Re: Re: Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
, Channing Walton channingwal...@mac.comwrote: Thanks for the advice, I'll definitely rethink the pattern. I'm actually seeing the problem when I use RunWebApp. When I press a key RunWebApp should shut down but it just hangs for me. What is RunWebApp? bearfeeder wrote: On Thu, Feb 4

[Lift] [lift] static data

2010-01-31 Thread Channing Walton
Hi, I am building an app which needs some static data added whenever we rebuild the database. I would like to do that using the mapper api but it looks like I need to do it table by table by overriding dbAddTable. I would prefer to do this in one place for the whole model, preferably using the

[Lift] Re: [lift] static data

2010-01-31 Thread Channing Walton
you are after? Cheers, Tim On Jan 31, 11:59 am, Channing Walton channingwal...@mac.com wrote: Hi, I am building an app which needs some static data added whenever we rebuild the database. I would like to do that using the mapper api but it looks like I need to do it table by table

[Lift] Re: [lift] static data

2010-01-31 Thread Channing Walton
essentially executed a bunch of mapper calls, but it sounds like you want more of a build up and tear down approach a la: http://code.google.com/p/scala-migrations/ Perhaps that is what you are after? Cheers, Tim On Jan 31, 11:59 am, Channing Walton channingwal...@mac.com wrote: Hi, I

[Lift] Re: Re: [lift] static data

2010-01-31 Thread Channing Walton
run task that just essentially executed a bunch of mapper calls, but it sounds like you want more of a build up and tear down approach a la: http://code.google.com/p/scala-migrations/ Perhaps that is what you are after? Cheers, Tim On Jan 31, 11:59 am, Channing Walton channingwal

[Lift] Re: Re: [lift] static data

2010-01-31 Thread Channing Walton
ok cool, sounds like a plan! bearfeeder wrote: On Sun, Jan 31, 2010 at 12:17 PM, Channing Walton channingwal...@mac.comwrote: Looking around MetaMapper and Schemifier, it looks like I could override BaseMetaMapper.afterSchemifier to do what i want although I would need to nominate

[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: [lift] Lift based backend server subscribing via amqp

2010-01-04 Thread Channing Walton
Maybe Akka would be better for you? http://akkasource.org/ Akka has an AMQP module which abstracts AMQP Producer and Consumer as Actors. Channing vishnu-11 wrote: Hi I'm trying to use lift to right a back end for a system that communicates via AMQP. The idea is to have a bunch of

[Lift] Re: [lift] Building Lift with scala 2.8.0

2009-12-20 Thread Channing Walton
bearfeeder wrote: Do you have a production app that depends on Scala 2.8? Is there a part of Lift that you immediately need ported to 2.8? No, I don't have an immediate need. However, I am very likely to be starting on a new app in mid January which will launch in the middle of next

[Lift] Re: Re: [lift] Building Lift with scala 2.8.0

2009-12-20 Thread Channing Walton
ok here it is. The only thing I changed in the main pom is the scala version to the 2.8.0 beta rc3 [INFO] Compiling 2 source files to /Users/channing/tmp/280_port/lift-base/lift-common/target/test-classes error: error while loading Sugar, Scala signature Sugar has wrong version expected: 5.0

[Lift] Re: [lift] Building Lift with scala 2.8.0

2009-12-20 Thread Channing Walton
If I skip tests: [INFO] Compiling 3 source files to /Users/channing/tmp/280_port/lift-base/lift-actor/target/classes /Users/channing/tmp/280_port/lift-base/lift-actor/src/main/scala/net/liftweb/actor/LAFuture.scala:19: error: not found: value common import common._ ^

[Lift] Re: [lift] Building Lift with scala 2.8.0

2009-12-20 Thread Channing Walton
, 2009, Channing Walton channingwal...@mac.com wrote: ah I see the problem - I know nothing about git! I original thought that the URL at the top of the github page for port_280 would get me port_280 which it doesn't. I tried following the instructions here: http://wiki.github.com/bricoleurs

[Lift] [lift] Building Lift with scala 2.8.0

2009-12-19 Thread Channing Walton
I would like to use Lift with scala 2.8.0 but need some helping building the branches. I've checked out the 280_port branch, but when I set the scala version to 2.8.0.Beta1-RC3 in the main pom, Lift doesn't compile. Either the specs tests fail because they have the wrong class signature or if I

[Lift] Re: [lift] Documentation

2009-12-15 Thread Channing Walton
I'd start with the Beginning Scala book and work on some code kata like project euler. Lift is a jump in the deep end - I don't think knowing Java is much of a help there anyway. -- View this message in context: http://old.nabble.com/Documentation-tp26797233p26801361.html Sent from the liftweb

[Lift] scala.MatchError in TestFramework

2009-09-10 Thread Channing Walton
Hi, I just upgraded from M4 to M5 and one of my tests started failing with: scala.MatchError: Full(ok/ok) at net.liftweb.http.testing.HttpResponse.xml(TestFramework.scala:281) where the HttpResponse body is: ?xml version=1.0 encoding=UTF-8? ok/ok If I revert this change it works:

[Lift] Re: scala.MatchError in TestFramework

2009-09-10 Thread Channing Walton
bearfeeder wrote: It's Lift. I'll loosen the pattern... turns out the thing you're testing returns a Document rather than an element. I'll check in a fix in about 30 minutes. Thank you very much :-) -- View this message in context:

[Lift] Re: Deleting elements after a modal confirmation dialog

2009-08-30 Thread Channing Walton
Thank you both for your reply but I have to admit that it was an error in my javascript that was preventing my code from working. Apologies for wasting your time. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift

[Lift] Deleting elements after a modal confirmation dialog

2009-08-29 Thread Channing Walton
I'm a bit stumped as to how to proceed with the following. I have a page which shows a list of items, each of which can be deleted. When the user clicks the delete button next to an item, I would like to open a confirmation dialog and if they confirm, call a backend function to delete the

[Lift] Re: Asynchronous Javascript problem

2009-08-08 Thread Channing Walton
On Aug 7, 9:32 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I reproduced the issue on Opera... then Google banned my IP address for excessive requests... :-( they need to move to lift to handle the load ;) --~--~-~--~~~---~--~~ You received this

[Lift] Re: Asynchronous Javascript problem

2009-08-06 Thread Channing Walton
I've added a much simpler example too, see simple.html --~--~-~--~~~---~--~~ 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 this group, send

[Lift] Re: Asynchronous Javascript problem

2009-08-05 Thread Channing Walton
ok, lots of jscript debugging and I'm pretty sure its this: JSON.stringify(new GLatLng(0,0)) where GLatLng is a google map object. the imports needed for this are script src=http://maps.google.com/maps? file=apiamp;v=2.xamp;key=your-keyamp;sensor=false type=text/ javascript/script script

[Lift] Re: Asynchronous Javascript problem

2009-08-05 Thread Channing Walton
actually that example doesn't work in Opera, but does in safari and firefox. To see the problem in safari I had to modify the script like this: var geocoder = new GClientGeocoder(); geocoder.getLatLng(london,doit); function doit(point) { var s = JSON.stringify(point); alert(s) } This does

[Lift] Re: Asynchronous Javascript problem

2009-08-05 Thread Channing Walton
ok I've done that: git://github.com/channingwalton/lift_1_1_sample.git run the app up and go to http://localhost:8080/mapSearch and try the search. I find stack overflow in Safari 4.0.2, and Opera 9.64. The query works in Firefox 3.5.2 and Webkit Version 4.0.2 (5530.19, r46770) (latest nightly)

[Lift] Re: Asynchronous Javascript problem

2009-08-04 Thread Channing Walton
spoke too soon :-( when I test this on a new browser or flush browser caches, I am getting a javascript error: Undefined variable: JSON I am not wrapping my the input field in a json form as described in the book because when I do the page reloads. Could that be the problem? In which case how

[Lift] Re: MalformedURLException in HttpResponse.xml

2009-08-04 Thread Channing Walton
excellent thanks. On Aug 3, 11:58 pm, David Pollak feeder.of.the.be...@gmail.com wrote: D'oh we were hitting that one as well. Fixed. On Mon, Aug 3, 2009 at 2:07 PM, Channing Walton channingwal...@mac.comwrote: Hi, I was using the testkit and HttpResponse.xml which was all

[Lift] Re: Asynchronous Javascript problem

2009-08-04 Thread Channing Walton
doh! I missed that. On Aug 4, 4:38 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Are you including the /classpath/json.js JavaScript file? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To

[Lift] Re: Asynchronous Javascript problem

2009-08-04 Thread Channing Walton
In Safari 4.0.2, and Opera 9.64 on OS X, I get RangeError: Maximum call stack size exceeded at line 27 in json.js But in the latest nightly build of webkit, it works. I will try on windows asap. --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
On Aug 1, 8:50 pm, Channing Walton channingwal...@mac.com wrote: But I get a Can't find variable: JSON error. forget that, I was having some kind of safari issue. But the problem I am having now is a NumberFormatException: 2009-08-02 15:42:58,098 WARN lift:246 - Request for /ajax_request

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
On Aug 2, 6:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Give it an hour and give it a try. Thanks for hanging with me through these defects. Thanks David, its much appreciated - on a Sunday too! --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
ok just caught up and tried again, this time I get: 2009-08-02 20:07:16,981 WARN lift:246 - Request for /ajax_request/ F1105202520287L3C/ failed For input string: (-~0) java.lang.NumberFormatException: For input string: (-~0) at java.lang.NumberFormatException.forInputString

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
/respository and do a clean build and see if it works. On Sun, Aug 2, 2009 at 12:09 PM, Channing Walton channingwal...@mac.comwrote: ok just caught up and tried again, this time I get: 2009-08-02 20:07:16,981 WARN  lift:246 - Request for /ajax_request/ F1105202520287L3C/ failed

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
of the tests for the JSON parser. Please delete ~/.m2/respository and do a clean build and see if it works. On Sun, Aug 2, 2009 at 12:09 PM, Channing Walton channingwal...@mac.comwrote: ok just caught up and tried again, this time I get: 2009-08-02 20:07:16,981 WARN  lift:246

[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] Re: Asynchronous Javascript problem

2009-07-31 Thread Channing Walton
cool thanks, that did it. Google recommends running a script on unload, their example has: body onload=initialize() onunload=GUnload() I couldn't see any Unload function anyway, I guess it would be a useful thing to add? --~--~-~--~~~---~--~~ You received this

[Lift] Re: Asynchronous Javascript problem

2009-07-30 Thread Channing Walton
, sendPointToServer that you cal with the point and the rest is automatic. Thanks, David On Wed, Jul 29, 2009 at 2:27 PM, Channing Walton channingwal...@mac.comwrote: Hi, I'm working on an app which has a google map which users can use to search for locations, and on which I

[Lift] Re: Asynchronous Javascript problem

2009-07-30 Thread Channing Walton
Hi, I had to replace JsVal(point) with JsVar(point), but when I run it up, I get ReferenceError: Can't find variable: F542198622797IUJ in the browser console. The function in the page looks like this: function sendPointToServer(point) { F542198622797IUJ({'command': 'setPoint',

[Lift] Re: Asynchronous Javascript problem

2009-07-30 Thread Channing Walton
Are you putting the result of: Script(Function(sendPointToServer, point, PointHandler.call(setPoint, JsVal(point Anywhere on your page? I believe so, the page has a snippet: lift:mapSnippet.mapFunctions/ which looks like this: def mapFunctions(xhtml : NodeSeq) : NodeSeq = {

[Lift] Asynchronous Javascript problem

2009-07-29 Thread Channing Walton
Hi, I'm working on an app which has a google map which users can use to search for locations, and on which I want to place markers. The asynchronous call is a call to google's geocoder service which takes a string to search for from an input field, and a callback function that the position will

[Lift] Re: How to test/TDD lift apps?

2009-07-05 Thread Channing Walton
On Jul 3, 6:38 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: With respect to unit testing, Lift's singletons depend upon underlying thread-local variables (via ThreadGlobal) to maintain state. I'm just musing here, but do you think it might be possible to inject a layer of indirection

[Lift] Re: truncated urls

2009-05-23 Thread Channing Walton
done http://github.com/dpp/liftweb/issues/#issue/23 --~--~-~--~~~---~--~~ 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 this group, send

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-05-22 Thread Channing Walton
Its not so much running into problems, its just that JPA has some nice support and I was wondering if anyone was doing something similar for JDO. Channing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group.

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-05-22 Thread Channing Walton
Yes I meant the ScalaJPA. Channing --~--~-~--~~~---~--~~ 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 this group, send email to

[Lift] truncated urls

2009-05-22 Thread Channing Walton
Hi, I have a problem with URLs whose last path segment contains a fullstop, eg: /x/3.1/y/1.11 To illustrate the issue, I created a new lift project and added the following to the Boot: LiftRules.dispatch.prepend { case Req(List(x, x,y, y), _, _) = () = Full(XmlResponse( px= { x } y={

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-05-22 Thread Channing Walton
cool, thanks for that. --~--~-~--~~~---~--~~ 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 this group, send email to

[Lift] Re: JPA or JDO best for us on Google App Engine?

2009-05-21 Thread Channing Walton
Has anything more been done with JDO support in Lift? I need to use JDO so it would help if there was some work being done on this. Channing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to

[Lift] Re: problems logging

2009-05-19 Thread Channing Walton
On May 18, 11:52 pm, sailormoo...@gmail.com sailormoo...@gmail.com wrote: I think in your exception handler only Production is defined. Are you running on Production Mode? Aha, I don't think I am. I just use RunWebApp. I'll look into that thanks.

[Lift] Re: problems logging

2009-05-18 Thread Channing Walton
On May 17, 10:33 pm, Timothy Perrett timo...@getintheloop.eu wrote: Can you verify the log4j.xml file is being read? Not sure how I can tell. The JPA example here changes the logging environment so perhaps use it as an example to get started :) Grab it here:http://is.gd/AMAW Thanks, I

[Lift] problems logging

2009-05-17 Thread Channing Walton
Hi, I am having trouble logging anything in my app, no logs are appearing anywhere. I have the following in Boot: DB.addLogFunc((query, len) = Log.error(The query: +query+ took+len+ milliseconds)) LiftRules.exceptionHandler.prepend { case (Props.RunModes.Production, Req(path, ,

[Lift] Re: box of Boxes

2009-05-04 Thread Channing Walton
Thanks David and Derek, I will tinker with those ideas. --~--~-~--~~~---~--~~ 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 this group, send

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-29 Thread Channing Walton
Can we fix our existing Lift project poms by adding the lump of xml you just posted, or will that break things? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] REST and CDATA

2009-04-29 Thread Channing Walton
Hi, I am building a rest service and running into trouble with cdata which is not a Lift issue but I was wondering what Lift had to support it. I am trying to do something like this: def toXml() = { stuff id=1 ![CDATA[ { content.toString }

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-29 Thread Channing Walton
On Apr 29, 1:55 pm, David Bernard david.bernard...@gmail.com wrote: * if you set in your   build     sourceDirectorysrc/main/scala/sourceDirectory     testSourceDirectorysrc/test/scala/testSourceDirectory I seem to have that already but still have the problem after doing mvn

[Lift] Re: REST and CDATA

2009-04-29 Thread Channing Walton
ok thanks David --~--~-~--~~~---~--~~ 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 this group, send email to