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

2010-03-08 Thread Channing Walton
ttachResourceId attaches a random query string > to the URI-s (This is a quantity unique per application lifetime 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. >

[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 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 , I just added that too. This is > defin

[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 > wrote: > >> >> thats fine for individual fields of a mapper, dates etc., but not for a >> object with mapped fields. This is w

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

2010-02-16 Thread Channing Walton
o generate a read-only view I need to do this: deal.formFields.map(f => {f.displayName}{f.asHtml}) 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 Chan

[Lift] [lift] presentation only equivalent of toForm

2010-02-14 Thread Channing Walton
Hi, I am using toForm to create forms for crud operations on my mappers, but I cannot see an equivalent method for presentation purposes. That is, no form elements, just text presented in the same tabular format as the form. Is there one ? Channing -- View this message in context: http://old.n

[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 t

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

2010-02-04 Thread Channing Walton
:51 PM, Channing Walton > wrote: > >> >> 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. >> >> &g

[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 > wrote: >

[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 > wrote: > >> >> 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 t

[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 > wrote: > >> >> Hi, >> I've added some comet-fu in my lift app but I've found that i

[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 fo

[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: http://old.nabble.com/Comet-making-jetty-take-a-long-time-to

[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 > wrote: > >> >> Looking around MetaMapper and Schemifier, it looks like I could override >> BaseMetaMapper.afterSchemifier to do what i want although I would n

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

2010-01-31 Thread Channing Walton
Yes I could do that - not sure what I need to do with connections etc to make that happen though :wistle: Naftoli Gugenheim wrote: > > If you only initialize the database all at once, why not just put the code > in Boot? > > ----- > Cha

[Lift] Re: [lift] static data

2010-01-31 Thread Channing Walton
k 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 a

[Lift] Re: [lift] static data

2010-01-31 Thread Channing Walton
ions/ > > Perhaps that is what you are after? > > Cheers, Tim > > On Jan 31, 11:59 am, Channing Walton 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 map

[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 map

[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 > inclu

[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
t > > Heiko > > On Sunday, December 20, 2009, Channing Walton > 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 doe

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

2009-12-20 Thread Channing Walton
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/bricolage/working-with-branches But that isn't working fo

[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._ ^ /Users/channing/tmp/28

[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 f

[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 nex

[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 sk

[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 m

[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: http://www.nabble.com/scala.MatchError-i

[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() at net.liftweb.http.testing.HttpResponse.xml(TestFramework.scala:281) where the HttpResponse body is: If I revert this change it works: http://github.com/dpp/liftweb/commit/8fd5597799c

[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 correspo

[Lift] Re: Asynchronous Javascript problem

2009-08-08 Thread Channing Walton
On Aug 7, 9:32 pm, David Pollak 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 message because you are subscribe

[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 e

[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-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, 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 http://maps.google.com/maps? file=api&v=2.x&key=your-key&sensor=false" type="text/ javascript"> there is a key=y

[Lift] Re: Asynchronous Javascript problem

2009-08-04 Thread Channing Walton
will do On Aug 4, 10:51 pm, David Pollak wrote: > Please put together some simple code that reproduces the problem and I'll > make it go away. > > On Tue, Aug 4, 2009 at 2:48 PM, Channing Walton wrote: > > > > > In Safari 4.0.2, and Opera 9.64 on OS X, I get Ra

[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 subsc

[Lift] Re: Asynchronous Javascript problem

2009-08-04 Thread Channing Walton
doh! I missed that. On Aug 4, 4:38 pm, David Pollak 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 post to this group, send email

[Lift] Re: MalformedURLException in HttpResponse.xml

2009-08-04 Thread Channing Walton
excellent thanks. On Aug 3, 11:58 pm, David Pollak wrote: > D'oh we were hitting that one as well. > > Fixed. > > On Mon, Aug 3, 2009 at 2:07 PM, Channing Walton wrote: > > > > > > > > > Hi, > > I was using the testkit and HttpResponse.

[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 do

[Lift] MalformedURLException in HttpResponse.xml

2009-08-03 Thread Channing Walton
Hi, I was using the testkit and HttpResponse.xml which was all good. But after updating to the snapshot release yesterday I now get this exception: Exception in thread "main" java.lang.ExceptionInInitializerError at com.casualmiracles.smokesignals.integration.FunctionalRestSpec.main (Func

[Lift] Re: Asynchronous Javascript problem

2009-08-03 Thread Channing Walton
Victory is ours! Thanks for all the help 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

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
e 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 > wrote: > > > > > > > > > ok just caught up and tried again, this time I get: > > > 2009-08-0

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
ory and do a clean build and see if it works. > > On Sun, Aug 2, 2009 at 12:09 PM, Channing Walton > wrote: > > > > > > > > > ok just caught up and tried again, this time I get: > > > 2009-08-02 20:07:16,981 WARN  lift:246 - Request for /ajax_reque

[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 (NumberF

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
On Aug 2, 6:14 pm, David Pollak 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 because you are subscribed to

[Lift] Re: Asynchronous Javascript problem

2009-08-02 Thread Channing Walton
On Aug 1, 8:50 pm, Channing Walton 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-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 F

[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: I couldn't see any Unload function anyway, I guess it would be a useful thing to add? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[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: which looks like this: def mapFunctions(xhtml : NodeSeq) : NodeSeq = { val node = Script(

[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', 'params':

[Lift] Re: Asynchronous Javascript problem

2009-07-29 Thread Channing Walton
uot;, PointHandler.call("setPoint", > JsVal("point" > > You'll have a JavaScript function, 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 >

[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 b

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

2009-07-05 Thread Channing Walton
On Jul 3, 6:38 pm, Kris Nuttycombe 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 between Lift's singl

[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 ema

[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 liftweb+unsubscr...@go

[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( x= { x }

[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 liftweb+u

[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-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 t

[Lift] Re: problems logging

2009-05-19 Thread Channing Walton
cool thanks. On May 19, 7:09 pm, Martin Ellis wrote: > > On May 17, 10:33 pm, Timothy Perrett wrote: > >> Can you verify the log4j.xml file is being read? > > On Mon, May 18, 2009 at 9:38 PM, Channing Walton > wrote: > > Not sure how I can tell. > > Spe

[Lift] Re: problems logging

2009-05-19 Thread Channing Walton
On May 18, 11:52 pm, "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. --~--~-~--~~~---~--~~ You recei

[Lift] Re: problems logging

2009-05-18 Thread Channing Walton
On May 17, 10:33 pm, Timothy Perrett 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 tried that but still n

[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] box of Boxes

2009-05-04 Thread Channing Walton
Hi, I am building a web app which has a rest API. I found that I was repeating myself like this: val reply:Full[XmlResponse] = req.xml match { case Full(content) => { a block of code that does something with the content } case _ => } So I first though I would create a function to

[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 liftweb+unsubscr...@googlegro

[Lift] Re: developing Scala/Lift using Eclipse

2009-04-29 Thread Channing Walton
On Apr 29, 1:55 pm, David Bernard wrote: > * if you set in your >   >     src/main/scala >     src/test/scala I seem to have that already but still have the problem after doing mvn eclipse:eclipse --~--~-~--~~~---~--~~ You received this message because you are

[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 liftw

[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() = { } which comes out like this: { content.toString } An