[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-04 Thread marius d.
Not at all. They are safe. On May 3, 9:49 pm, Bryan. germ...@gmail.com wrote: Would that mean that the state of the RequestVar could accidentally be shared with multiple requests? On May 3, 1:51 pm, marius d. marius.dan...@gmail.com wrote: Hmmm ... the code seems to be fine (as far as I

[Lift] Re: Is there a bulk update function ?

2009-05-04 Thread Timothy Perrett
Hi there, we dont have a bulkUpdate function right now - however you could just run some SQL directly: DB.runQuery(SQL GOES HERE) Is that of any help? Cheers, Tim On May 4, 1:53 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hi :   From the Lift Book, there is a bulk delete

[Lift] Re: Article about URL rewriting in Lift

2009-05-04 Thread Timothy Perrett
Hey Andrew, Glad you found this useful - sure, feel free to link to it from the wiki. Cheers, Tim On May 4, 12:37 am, Andrew Scherpbier and...@scherpbier.org wrote: Wow, this is awesome!  Can a link to this be provided from the wiki/getting started guide/api docs? --Andrew

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-04 Thread TSP
Examples, examples, examples, including scala. The scala-lang site is a bit daunting. I think you'll get more traction on Lift if you help people to get to grips with scala as well as lift. I have no idea whether I'm a typical newcomer, but I have come from Java (previously other things going

[Lift] Re: How would I call a template from another template?

2009-05-04 Thread Timothy Perrett
Do you mean: lift:embed what=/path/to/template / Thanks, Tim On May 3, 7:45 pm, EmEhRKay emehr...@gmail.com wrote: Very simple idea - I have a tags template that I put in the templates- hidden directory, it creates a list of tags. In one of my public templates I want to be able to call that

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread Daniel Guryca
Thank you Dave. I'll be waiting for your complete benchmark ... Daniel On Mon, May 4, 2009 at 5:23 AM, David Pollak feeder.of.the.be...@gmail.comwrote: On Sun, May 3, 2009 at 4:11 PM, Daniel Guryca dun...@gmail.com wrote: I have just tried mvn -Drun.mode=production jetty:run ... but sadly

[Lift] Re: how to hide /display div tag in lift

2009-05-04 Thread marius d.
There are so many ways ... 1. Use chooseTemplate technique. I think the examples application from /sites uses this. 2. In the snippet you have the snippet content and you can just strip it out 3. You can have a little JavaScript that is called when the page loads that shows or hides the div ...

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread marius d.
Dave if you're doing benchmarks can you try using the template caching mechanism ? .. and try to see the differences ? Br's, Marius On May 4, 6:23 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 3, 2009 at 4:11 PM, Daniel Guryca dun...@gmail.com wrote: I have just tried mvn

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-04 Thread David Pollak
On Sun, May 3, 2009 at 7:58 AM, richard.car...@me.com richard.car...@me.com wrote: My personal view is that a worked example of a fully featured eCommerce type site would be most useful. Even something as simple as a cut down Amazon style store with inventory management would be a great

[Lift] Re: box of Boxes

2009-05-04 Thread David Pollak
How about the for comprehension? for {xml - req.xml fooTag - (xml \ foo).firstOption response - myFunction(fooTag) } yield response On Mon, May 4, 2009 at 8:51 AM, Channing Walton channingwal...@mac.comwrote: Hi, I am building a web app which has a rest API. I found

[Lift] Re: stuck on some scala while using jpa

2009-05-04 Thread Derek Chen-Becker
Fixed in the ScalaJPA docs. If you do need a List, just use the toList method on the returned Seq. Derek On Sun, May 3, 2009 at 4:05 AM, TSP tim.pig...@optrak.co.uk wrote: OK to answer own question in case anyone has similar problems: ScalaEntityManager returns a bufferWrapper from the

[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: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
Daniel, I did a little measurement of Lift and did some tuning. On my Core 920 machine with 12GB of RAM running Ubuntu 9.04 and the JDK 1.6.0_13 in 64 bit mode with Tomcat 6.0.18 (I ran into some bugs in Jetty while measuring with ab). My baseline running (both locally and across the network)

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread Derek Chen-Becker
Just to throw in another data point, I ran the tests on my AMD Phenom X2 720 (3 cores, 6GB of RAM): I generated the archetype exactly as you have it here. Ran mvn -Drun.mode=production -Djetty.port=9090 jetty:run Output from Apache Bench: $ ab -c 10 -n 2

[Lift] Re: how to hide /display div tag in lift

2009-05-04 Thread Timothy Perrett
Just my two pence, but id got for chooseTemplate. If it helps, I discuss using chooseTemplate in this article: http://is.gd/sfyT Cheers, Tim On May 4, 3:33 pm, marius d. marius.dan...@gmail.com wrote: There are so many ways ... 1. Use chooseTemplate technique. I think the examples

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
Derek, Please note that about half of the requests failed in Jetty. Jetty does not seem to be explicitly closing the NIO sockets leading to an out of IO descriptor problem... that's why I used Tomcat. Thanks, David On Mon, May 4, 2009 at 2:47 PM, Derek Chen-Becker dchenbec...@gmail.comwrote:

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread Derek Chen-Becker
Yeah, I just noticed that on my jetty console. Bummer. On Mon, May 4, 2009 at 3:59 PM, David Pollak feeder.of.the.be...@gmail.comwrote: Derek, Please note that about half of the requests failed in Jetty. Jetty does not seem to be explicitly closing the NIO sockets leading to an out of IO

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
On my AMD box (AMD Athlon(tm) 64 X2 Dual Core Processor 3800+) with about 800MB of RAM (part of the RAM is used for the video controller), I started Tomcat with: export JAVA_OPTS=-Drun.mode=production -server -Xmx650M and here are the results: d...@testomatic:~/apache-tomcat-6.0.18$ ab -c 10

[Lift] Some Lift enhancements

2009-05-04 Thread David Pollak
Folks, Based on feedback, I've made some enhancements to Lift: - Template caching is on by default when in Production mode - Method lookup caching is on by default in Production mode for snippet dispatching - In development mode, snippet failures will be displayed in the browser

[Lift] Re: Cannot access html files other than index.html in GAE using lift

2009-05-04 Thread David Pollak
Dan, You'll now receive a much more helpful 403 message if you're running in development mode. Thanks, David On Sun, May 3, 2009 at 12:21 PM, Dan Greening green...@gmail.com wrote: I just broke my teeth on this problem also (and 2 days wasted later I discover this thread). I would say

[Lift] Re: Some Lift enhancements

2009-05-04 Thread Derek Chen-Becker
Very nice. On Mon, May 4, 2009 at 4:29 PM, David Pollak feeder.of.the.be...@gmail.comwrote: Folks, Based on feedback, I've made some enhancements to Lift: - Template caching is on by default when in Production mode - Method lookup caching is on by default in Production mode for

[Lift] Compile error with 1.1-M1 and CRUDify

2009-05-04 Thread jon
Hi, I saw the following after moving my project from lift 1.0 to 1.1-M1: [WARNING] self-type com.company.model.City does not conform to net.liftweb.mapper.CRUDify[Long,com.company.model.City]'s selftype net.liftweb.mapper.CRUDify[Long,com.company.model.City] with com.company.model.City with

[Lift] Re: Compile error with 1.1-M1 and CRUDify

2009-05-04 Thread David Pollak
On Mon, May 4, 2009 at 4:10 PM, jon jonhoff...@gmail.com wrote: Hi, I saw the following after moving my project from lift 1.0 to 1.1-M1: [WARNING] self-type com.company.model.City does not conform to net.liftweb.mapper.CRUDify[Long,com.company.model.City]'s selftype

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-04 Thread Chris H.
Hi Chas, Glad to see that there will be some time spent expanding and refining the Lift documentation, good docs are definitely the sign of a well run project. I am one of those lurkers you speak about, so I thought I'd speak up and give my input. I would like to see explanations on creating

[Lift] Re: Cannot access html files other than index.html in GAE using lift

2009-05-04 Thread Dan Greening
Thanks David, Here are two user stories I would like Lift to implement (and I think would be highly beneficial for Lift uptake): 1. As an application developer, I can easily add Lift to my existing static web site. My existing static content continues to be displayed properly, while Lift

[Lift] Re: Cannot access html files other than index.html in GAE using lift

2009-05-04 Thread David Pollak
To get both of these user stories, either: Set the web.xml file to only send Lift-related URLs to the Lift servlet filter. Set LiftRules.passNotFoundToChain = true in Boot.scala The former uses your container's features to only send particular requests. The latter tells Lift to pass requests

[Lift] Re: Some Lift enhancements

2009-05-04 Thread David Pollak
On Mon, May 4, 2009 at 6:27 PM, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hi : Can you explain a bit more how template caching works? The first time a template is accessed, it's put into a hashtable so that the next time its accessed, it doesn't have to be loaded as a resource

[Lift] 1st draft of response to Martin's code challenge for scalable componentized lambda evaluator

2009-05-04 Thread Meredith Gregory
Lifted, Scalad and lasses, Recently Martin passed along a little code challenge regarding scalable abstractions for building a little lambda calculus evaluator. i've finally put together a 1st draft response. i've still got a lot of debugging to do, but the solution

[Lift] Re: Cannot access html files other than index.html in GAE using lift

2009-05-04 Thread Dan Greening
Thanks, it works! (It is not in Exploring Lift. Who do I lobby to get it in?) I have a feeling there are many hidden treasures in Lift. I must love Scala, because I wrote a huge recursive thing to populate a SiteMap. LOL Dan On May 4, 6:43 pm, David Pollak feeder.of.the.be...@gmail.com

[Lift] button binder

2009-05-04 Thread Bryan
How can I create a widget to render a customized button. This is probably trivial, but I failed on my first attempt. object MyButton { def red(value: String, func: () = Unit, attrs: (String, String)*): Elem = fmapFunc(NFuncHolder(func))(funcName = button name={funcName} type=submit