Re: [Lift] A sensible AJAX approach

2009-11-19 Thread Jeppe Nejsum Madsen
Chris Lewis writes: > Thanks for the feedback Jeppe. I can't completely infer the context of > your example, Seems to happen a lot to me lately. :-) This was just a quick paste from our codebase > but I get the idea (and I hadn't known about TemplateFinder). Here's > what I've hacked toget

[Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread monty chen
Hi,David Pollk! Nginx only comes with a round-robin balancer and a hash-based balancer, so if a request takes a while to load, Nginx will start routing requests to backends that are already processing requests -- as a result, some backends will be queueing up requests while some backends will rema

Re: [Lift] Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread Atsuhiko Yamanaka
Welcome Ross! -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk -- You received this message because you are subscribed to the Google Groups "Lift" group. To pos

Re: [Lift] Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread Indrajit Raychaudhuri
Welcome Ross! Would look forward to more of those well thought out responses. Cheers, Indrajit On 20/11/09 6:08 AM, David Pollak wrote: > Folks, > > I'm pleased to announce that Ross Mellgren has joined the Lift > committers. He's been a very helpful voice on the list for a while now > and he's

Re: [Lift] A sensible AJAX approach

2009-11-19 Thread Kris Nuttycombe
On Thu, Nov 19, 2009 at 2:52 PM, Chris Lewis wrote: > Classic use case: a user chooses to view/edit and object by clicking on > a link. This causes the app to fetch an edit view (form) and render it > asynchronously, probably rendering it as a modal dialog. To specify the > case a bit more, consid

Re: [Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Margaret
I will try jetty - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 11:51 AM, David Pollak wrote: > > > On Thu, Nov 19, 2009 at 7:35 PM, Margaret wrote: >> >> thanks for your reply >> >> when we package a scala+lift a

Re: [Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 7:35 PM, Margaret wrote: > thanks for your reply > > when we package a scala+lift app as war, > > deploy it on tomcat will be use comet? > deploy it on jetty will be use continuations? > Comet is long polling. In Jetty, Lift takes advantage of Jetty's continuations so th

Re: [Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Margaret
thanks for your reply when we package a scala+lift app as war, deploy it on tomcat will be use comet? deploy it on jetty will be use continuations? is that true? - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 11:

Re: [Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Xuefeng Wu
Jetty is the better if you use Comet which support jetty with Continuations. On Fri, Nov 20, 2009 at 9:35 AM, Neil.Lv wrote: > Hi all, > > I have a silly question about the deploy. > > Which web container is recommended to use to deploy the Lift app ? > Jetty or Tomcat ? > > I want to use th

Re: [Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread David Pollak
I recommend Nginx + Jetty. Apache is the worst front end for this situation... it can only support a few hundred simultaneous connections before it falls over. Ngnix on the other hand can proxy tens of thousands. Jetty's continuations make it a much better choice than Tomcat. You can have thous

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Margaret
jetty is a lightweight container and can be webserver, in the cloud computing , jetty is much agile for system start , restart. - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 10:58 AM, philip wrote: > Hi Neil, > >

[Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread philip
Hi Neil, I use maven to build and Jetty in the maven, so I run from my IDE the maven to run the Jetty. Well it works well for me. I also have SEAM framework on my Jetty as well as part of the setup. Philip On 11月20日, 上午9時35分, "Neil.Lv" wrote: > Hi all, > >   I have a silly question about the de

[Lift] JPA and eager fetch

2009-11-19 Thread wstrange
Newbie Lift / JPA alert! I am sure I am doing something dumb here, but I can't quite figure it out. I have a JPA project (modelled after the lift JPA demo app). I have an object with a one-to-many association, and I want to eager fetch the collection. It is declared like : @OneToMany(){ val

[Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Neil.Lv
If i use "LVS + Nginx + Haproxy + Tomcat " to deploy the app, Can it work with Apache at simultaneously ? Cheers, Neil On Nov 20, 9:35 am, "Neil.Lv" wrote: > Hi all, > >   I have a silly question about the deploy. > >   Which web container is recommended to use to deploy the Lift app ? > Je

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Margaret
would you like give us the url of your application website? - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 10:19 AM, Margaret wrote: > I will go and look  cassandra > >

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Margaret
I will go and look cassandra - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 10:17 AM, monty chen wrote: > Hi, Margaret,  Store engine use: mysq + cassandra , and plus memcached > for cache: > > >                

[Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread monty chen
Hi, Margaret, Store engine use: mysq + cassandra , and plus memcached for cache: mysql ( transaction data) / / LVS + Nginx + Haproxy + Tomcat

[Lift] Re: JRebel: implements new interfaces and could not be reloaded!

2009-11-19 Thread Alex Black
Damn. I guess there is no free lunch :) Thanks for the response Kris, and the stylistic tips! I am easing my way into scala, starting with the more verbose syntax and picking up shortcuts as I get more familiar with stuff! - Alex On Nov 19, 7:33 pm, Kris Nuttycombe wrote: > Unfortunately, JReb

[Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread monty chen
mysql( for transaction data) / / LVS + Nginx + Haproxy + Tomcat - - - memcache ( for cache) \

Re: [Lift] Re: Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread Margaret
haha, I like beer but I am in China now. thanks Ross,You will do Good Job. - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 10:06 AM, Ross Mellgren wrote: > Thanks. If I'm elected, I promise no less than one (1) free

Re: [Lift] Re: Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread Ross Mellgren
Thanks. If I'm elected, I promise no less than one (1) free beer to anyone who can come to retrieve it in or near Cambridge, MA ;-) -Ross On Nov 19, 2009, at 8:00 PM, Margaret wrote: > Welcome > - > mawei...@gmail.com > 13585201588 > http://m

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Margaret
perfect enviorment WHO will be the database ? - mawei...@gmail.com 13585201588 http://maweis.com 2009/11/20 monty chen : > LVS + Nginx + Haproxy + Tomcat > > > On 11月20日, 上午9时44分, Margaret wrote: >> * Apache + Tomcat >> >> I deploy a come

[Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread monty chen
LVS + Nginx + Haproxy + Tomcat On 11月20日, 上午9时44分, Margaret wrote: > * Apache + Tomcat > > I deploy a comet actor demo on tomcat > the url ishttp://maweis.com:8080 > you can try it? > > - > mawei...@gmail.com > 13585201588http://maweis.com > >

Re: [Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Margaret
* Apache + Tomcat I deploy a comet actor demo on tomcat the url is http://maweis.com:8080 you can try it? - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 9:35 AM, Neil.Lv wrote: > Hi all, > >  I have a silly ques

Re: [Lift] A sensible AJAX approach

2009-11-19 Thread Chris Lewis
Thanks for the feedback Jeppe. I can't completely infer the context of your example, but I get the idea (and I hadn't known about TemplateFinder). Here's what I've hacked together so far. In my normal snippet, I have a render loop that binds orders to template names. One of the bind points look

[Lift] Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-19 Thread Neil.Lv
Hi all, I have a silly question about the deploy. Which web container is recommended to use to deploy the Lift app ? Jetty or Tomcat ? I want to use the Comet to push the data in the app. * Apache + Tomcat ? * Apache + what ? * Nginx + what ? Thanks for any suggestion ! Cheers,

[Lift] Re: [scala-internals] Lift compiles on Scala 2.8 and runs the demo

2009-11-19 Thread Paul Phillips
On Thu, Nov 19, 2009 at 04:31:39PM -0800, David Pollak wrote: > I spent most of today tracking down a bug that I can't reproduce in > isolation, but it seems that the ensureCapacity method in Scala's > StringBuilder method has an infinite: Yeah, it was pretty obvious knowing it was there. This

Re: [Lift] Re: Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread Margaret
Welcome - mawei...@gmail.com 13585201588 http://maweis.com On Fri, Nov 20, 2009 at 8:45 AM, TylerWeir wrote: > Welcome Ross! > > On Nov 19, 7:38 pm, David Pollak > wrote: >> Folks, >> >> I'm pleased to announce that Ross Mellgren has joined

[Lift] Re: [scala-internals] Lift compiles on Scala 2.8 and runs the demo

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 4:44 PM, Paul Phillips wrote: > On Thu, Nov 19, 2009 at 04:31:39PM -0800, David Pollak wrote: > > I spent most of today tracking down a bug that I can't reproduce in > > isolation, but it seems that the ensureCapacity method in Scala's > > StringBuilder method has an infin

[Lift] Re: Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread TylerWeir
Welcome Ross! On Nov 19, 7:38 pm, David Pollak wrote: > Folks, > > I'm pleased to announce that Ross Mellgren has joined the Lift committers. > He's been a very helpful voice on the list for a while now and he's decided > to help out with code as well... woo hoo and welcome. > > Thanks, > > David

[Lift] Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread David Pollak
Folks, I'm pleased to announce that Ross Mellgren has joined the Lift committers. He's been a very helpful voice on the list for a while now and he's decided to help out with code as well... woo hoo and welcome. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beg

Re: [Lift] JRebel: implements new interfaces and could not be reloaded!

2009-11-19 Thread Kris Nuttycombe
Unfortunately, JRebel is sensitive to certain kinds of changes; changes to the names of the generated classes for function literals is one of them. In this case, since you've got two function literals in the class, their names are something$1 and something$2 or equivalent. After commenting out the

[Lift] Lift compiles on Scala 2.8 and runs the demo

2009-11-19 Thread David Pollak
Folks, The 280_port of Lift properly compiles and runs the Lift demo application against the Scala 2.8.0 nightly. I spent most of today tracking down a bug that I can't reproduce in isolation, but it seems that the ensureCapacity method in Scala's StringBuilder method has an infinite: def ensure

Re: [Lift] H2 foreign keys

2009-11-19 Thread Derek Chen-Becker
Great. No pressure now! ;) On Thu, Nov 19, 2009 at 3:17 PM, David Pollak wrote: > > > On Thu, Nov 19, 2009 at 2:08 PM, Derek Chen-Becker > wrote: > >> Open a ticket and I'll see if I can get it done. I've been fighting a fire >> at work pretty much the entire week so far, so needless to say I'm

[Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread Alex Black
Yeah I'm currently approaching the stateful aspect of Lift with some trepidation, so for now trying to avoid it, for exactly this type of reason. If someone could point out how to disable the mechanism that is redirecting the page, and making periodic ajax requests I'd appreciate it, thanks! - Al

[Lift] JRebel: implements new interfaces and could not be reloaded!

2009-11-19 Thread Alex Black
Anyone got any tips on working around this error? JRebel: Class 'com.blah.blah.explorer.snippet.Features$$anonfun$render $1' implements new interfaces and could not be reloaded! I've just tried JRebel for the first time, and I made what I thought was a minor change to my snippet and JRebel wasn't

Re: [Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 3:31 PM, Alex Black wrote: > thanks for the explanation. Can you tell me a bit more about that? > Not knowing anything about this it seem unfamiliar to me. > > Say we had customers using our site, and we restarted one of our > webservers, the customers wouldn't expect to b

[Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread Alex Black
thanks for the explanation. Can you tell me a bit more about that? Not knowing anything about this it seem unfamiliar to me. Say we had customers using our site, and we restarted one of our webservers, the customers wouldn't expect to be redirected to "/". They'd expect to just keep on browsing as

Re: [Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 3:18 PM, Alex Black wrote: > I just did some work, restarted jetty, and upon startup saw that it > processed two requests (that I hadn't initiated): > > INFO - Service request (POST) /ajax_request/F374747850325CGX/ took 104 > Milliseconds > INFO - Service request (GET) / t

[Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread Alex Black
I just did some work, restarted jetty, and upon startup saw that it processed two requests (that I hadn't initiated): INFO - Service request (POST) /ajax_request/F374747850325CGX/ took 104 Milliseconds INFO - Service request (GET) / took 22 Milliseconds I then looked at my browser and it has some

[Lift] Re: How can one bind attribute values in a snippet?

2009-11-19 Thread Alex Black
I got it working, thanks again Jeppe. On Nov 19, 5:46 pm, Jeppe Nejsum Madsen wrote: > Alex Black writes: > > For example, if my html template looks like this: > > > > >            foobar > >                 > >                 > >                 > > > > > In my snippet I'd like to replace

[Lift] Re: How can one bind attribute values in a snippet?

2009-11-19 Thread Alex Black
Thanks Jeppe, that looks like what I need. I'm having trouble following your example though, what are res, filteredResult, lc, etc? My code looks like this right now: def render( xhtml: NodeSeq ): NodeSeq { items.flatMap( f => bind("item", xhtml, "name" -> item.name ) } so

[Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread Alex Black
After changing that setting, i'm still seeing these requests: INFO - Service request (POST) /ajax_request/F688441898562ZPV/ took 9 Milliseconds That must be something called by that ajax script? Is there a way I can turn this off until I need it? - Alex On Nov 19, 5:40 pm, David Pollak wrote:

Re: [Lift] How can one bind attribute values in a snippet?

2009-11-19 Thread Jeppe Nejsum Madsen
Alex Black writes: > For example, if my html template looks like this: > > > foobar > > > > > > In my snippet I'd like to replace "dummy" (in img src) with a real > value. I'm sure there are other ways to output img tags with > a

[Lift] Re: Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread Alex Black
Yep, I am doing mvn jetty:run.. ok, I've edited my pom.xml, I'll keep an eye out and see how it goes. Related question: I see my pages have this in them:

Re: [Lift] Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread David Pollak
If you're doing mvn jetty:run, please edit your pom.xml and change: 5 to 0 On Thu, Nov 19, 2009 at 2:32 PM, Alex Black wrote: > I've been developing a REST api using Lift, and have just added some > basic html templates to it, and started using a snippet or two. > > As I'm testing out my pa

Re: [Lift] Problem with issue 182

2009-11-19 Thread Jeppe Nejsum Madsen
Derek Chen-Becker writes: > I hadn't though about mixing in CRUDify with users. I suppose we should just > pull it out and leave sitemap as the sole menuing method. Jeppe, can you > open a ticket? Sure: http://github.com/dpp/liftweb/issues/#issue/200 /Jeppe -- You received this message becaus

[Lift] Pages getting redirected back to root, /ajax_request/?? and ActorPingException

2009-11-19 Thread Alex Black
I've been developing a REST api using Lift, and have just added some basic html templates to it, and started using a snippet or two. As I'm testing out my pages I'm noticing a number of odd things: 1. Often when I alt tab back to my browser, its not on the page i left it on (say http://localhost:8

Re: [Lift] A sensible AJAX approach

2009-11-19 Thread Jeppe Nejsum Madsen
Chris Lewis writes: > Classic use case: a user chooses to view/edit and object by clicking on > a link. This causes the app to fetch an edit view (form) and render it > asynchronously, probably rendering it as a modal dialog. To specify the > case a bit more, consider a table of like objects t

[Lift] How can one bind attribute values in a snippet?

2009-11-19 Thread Alex Black
For example, if my html template looks like this: foobar In my snippet I'd like to replace "dummy" (in img src) with a real value. I'm sure there are other ways to output img tags with attribute values, but I'm specifically int

[Lift] Re: intro to lift-json?

2009-11-19 Thread harryh
Ah, ok. That makes sense. Thx! On Nov 19, 5:14 pm, Ross Mellgren wrote: > JArray is a case class that wraps a List. It's not an array-of-list or   > anything, just that the actual elements are stored in a List that   > JArray holds. > > -Ross > > On Nov 19, 2009, at 5:12 PM, harryh wrote: > > >

Re: [Lift] Re: odd ajax issue (works every other time)

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 1:45 PM, Jeppe Nejsum Madsen wrote: > > > On Nov 19, 8:16 pm, David Pollak > wrote: > > On Wed, Nov 18, 2009 at 10:28 PM, Marius > wrote: > > > That makes two of us David ... > > > > > The thing is that during my debugging there was no session destruction > > > and I trac

Re: [Lift] Re: Lift Mapper support for Oracle Sequences

2009-11-19 Thread Derek Chen-Becker
I think that the change was committed pre-M7, so you should have it. On Thu, Nov 19, 2009 at 12:12 AM, aw wrote: > Thank you Derek... Clever trick! > > I'm not using 1.1-SNAPSHOT -- I am using 1.1-M7... But that shouldn't > matter to me since I am not using Schemifier to create and manage the

Re: [Lift] Lift on Azure

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 1:51 PM, Matt Harrington wrote: > Java apps have gotten a lot easier to run on Azure this week. Here's > a video on developing a simple app with Eclipse and deploying in > Tomcat on Azure: > > http://microsoftpdc.com/Sessions/SVC50 > > Cool! > I don't believe Java on Azu

Re: [Lift] H2 foreign keys

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 2:08 PM, Derek Chen-Becker wrote: > Open a ticket and I'll see if I can get it done. I've been fighting a fire > at work pretty much the entire week so far, so needless to say I'm behind on > Lift tickets (and LiftTicket :( ) > I so want LiftTicket... I'm waiting with bait

Re: [Lift] Re: intro to lift-json?

2009-11-19 Thread Ross Mellgren
JArray is a case class that wraps a List. It's not an array-of-list or anything, just that the actual elements are stored in a List that JArray holds. -Ross On Nov 19, 2009, at 5:12 PM, harryh wrote: > Why does this parse into a JArray(List(..)) intead of a JArray(..) ? > > -harryh > > scala

[Lift] Re: intro to lift-json?

2009-11-19 Thread harryh
Why does this parse into a JArray(List(..)) intead of a JArray(..) ? -harryh scala> parse(""" { "ids" : [1, 2] } """) res5: net.liftweb.json.JsonAST.JValue = JObject(List(JField(ids,JArray (List(JInt(1), JInt(2)) On Nov 19, 3:51 pm, Tim Nelson wrote: > Have you seen the readme file? > > ht

Re: [Lift] H2 foreign keys

2009-11-19 Thread Derek Chen-Becker
Open a ticket and I'll see if I can get it done. I've been fighting a fire at work pretty much the entire week so far, so needless to say I'm behind on Lift tickets (and LiftTicket :( ) Derek On Wed, Nov 18, 2009 at 7:04 AM, Naftoli Gugenheim wrote: > I don't think I ended up creating the ticket

[Lift] A sensible AJAX approach

2009-11-19 Thread Chris Lewis
Classic use case: a user chooses to view/edit and object by clicking on a link. This causes the app to fetch an edit view (form) and render it asynchronously, probably rendering it as a modal dialog. To specify the case a bit more, consider a table of like objects that allows you to edit them (

Re: [Lift] Problem with issue 182

2009-11-19 Thread Derek Chen-Becker
I hadn't though about mixing in CRUDify with users. I suppose we should just pull it out and leave sitemap as the sole menuing method. Jeppe, can you open a ticket? On Tue, Nov 17, 2009 at 9:50 AM, David Pollak wrote: > > > On Tue, Nov 17, 2009 at 7:01 AM, Jeppe Nejsum Madsen wrote: > >> Hi, >>

[Lift] Lift on Azure

2009-11-19 Thread Matt Harrington
Java apps have gotten a lot easier to run on Azure this week. Here's a video on developing a simple app with Eclipse and deploying in Tomcat on Azure: http://microsoftpdc.com/Sessions/SVC50 I don't believe Java on Azure has the same restrictions as Java on GAE. For example, you can write to the

[Lift] Re: odd ajax issue (works every other time)

2009-11-19 Thread Jeppe Nejsum Madsen
On Nov 19, 8:16 pm, David Pollak wrote: > On Wed, Nov 18, 2009 at 10:28 PM, Marius wrote: > > That makes two of us David ... > > > The thing is that during my debugging there was no session destruction > > and I traced this right in the guts of SessionMaster. > > I went further and it seemed th

Re: [Lift] intro to lift-json?

2009-11-19 Thread Tim Nelson
Have you seen the readme file? http://github.com/dpp/liftweb/tree/master/lift-base/lift-json/ On Thu, Nov 19, 2009 at 2:20 PM, harryh wrote: > Is there a basic intro to lift-json floating around anywhere? I'm > having a bit of trouble getting started with a couple basic things. > For example i

[Lift] Re: intro to lift-json?

2009-11-19 Thread TylerWeir
You may find the Extraction tests helpful: http://github.com/dpp/liftweb/blob/master/lift-base/lift-json/src/test/scala/net/liftweb/json/ExtractionExamples.scala On Nov 19, 3:20 pm, harryh wrote: > Is there a basic intro to lift-json floating around anywhere?  I'm > having a bit of trouble get

[Lift] intro to lift-json?

2009-11-19 Thread harryh
Is there a basic intro to lift-json floating around anywhere? I'm having a bit of trouble getting started with a couple basic things. For example if a have a JObject that corresponds to: { "foo" : { "bar" : 999 } } How do I get the 999 (as an int) out of the JObject? I'm sure this is si

Re: [Lift] Lift 1.1-M7 and Terracotta

2009-11-19 Thread Jonas Bonér
Hi Jon. Could you send me what you have so far and I'll try to take a look at it. I'm pretty choked right now so I can't give it too many cycles but I'll try to do my best :-) Mail it to me directly: AT jonasboner.com /Jonas 2009/11/6 jon : > > Hi, > > Has anyone had any recent success with us

Re: [Lift] Looking for the single person who owns naming in Lift

2009-11-19 Thread Jim Barrows
I'm still new to learning Lift, and Scala for that matter, but if you can't find anyone better, I'll do it. On Thu, Nov 19, 2009 at 12:37 PM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > Folks, > > There has been a lot of talk about method/class naming in Lift lately. > It's a good thin

Re: [Lift] Lift 1.1-M7 and Terracotta

2009-11-19 Thread David Pollak
On Fri, Nov 6, 2009 at 2:06 PM, jon wrote: > > Hi, > > Has anyone had any recent success with using Terracotta to share > session state? > > I've tried playing around with a simple lift app (1.1-M7) and > terracotta's sessions-configurator app. It doesn't just work, but I > realized that's becau

[Lift] Looking for the single person who owns naming in Lift

2009-11-19 Thread David Pollak
Folks, There has been a lot of talk about method/class naming in Lift lately. It's a good thing(tm) to normalize method and class naming in Lift. But it's also important that after the initial cleanup is done, the consistency is kept going forward. It's also important that there's a pair of eye

Re: [Lift] Re: Call it Lift 2.0

2009-11-19 Thread David Pollak
On Tue, Nov 17, 2009 at 10:06 PM, Joni Freeman wrote: > On 18 marras, 01:10, David Pollak > wrote: > > I'd like to see the JSON stuff moved from Option to Box, but that's > Joni's > > call. > > Hi, > > I do not agree. We have quite a lot of lift-json users who do not yet > use other parts of Lift

Re: [Lift] Re: odd ajax issue (works every other time)

2009-11-19 Thread David Pollak
On Wed, Nov 18, 2009 at 10:28 PM, Marius wrote: > That makes two of us David ... > > The thing is that during my debugging there was no session destruction > and I traced this right in the guts of SessionMaster. I went further and it seemed that the sessions were destroyed at the Servlet Contai

Re: [Lift] Another List "XYZ" Menu Entry

2009-11-19 Thread David Pollak
On Mon, Nov 16, 2009 at 8:51 AM, Hannes wrote: > > Hi Lifters, > > I need a new menu entry that displays a table similar to the one, that > is shown by the CRUDify List "XYZ" link. But I need to display different > fields without the chance to edit or delete the "items". So basically, > just a si

Re: [Lift] overriding ConnectionManager.newSuperConnection

2009-11-19 Thread David Pollak
On Tue, Nov 17, 2009 at 10:50 AM, opyate wrote: > Hello Lifters, > > I overrode newSuperConnection like so: > > --START-- > object DBVendor extends ConnectionManager { >def newConnection(name: ConnectionIdentifier): Box[Connection] > = { > try { >Class.forName(db

Re: [Lift] Model field validation

2009-11-19 Thread David Pollak
On Wed, Nov 18, 2009 at 6:14 AM, Ferdinand Chan wrote: > If I have a model "Item" as follows, > > class Item extends LongKeyedMapper[Item] with IdPK{ > > def getSingleton = Item > > object chiBrandName extends MappedPoliteString(this,255) > > object engBrandName extends MappedPoliteString(this

Re: [Lift] Tutorials or documentation about Factory?

2009-11-19 Thread David Pollak
I've added it to my to do list. On Wed, Nov 18, 2009 at 6:26 AM, Vesa wrote: > Hi, > > It would be nice to have some kind of tutorial on how to use this new > addition. > > - Vesa > > -- > > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to th

Re: [Lift] Re: Menu generated from database?

2009-11-19 Thread Jack Widman
This is one of thing that is so amazing about the lift community David. You apologize for not getting to something today. [?] On Thu, Nov 19, 2009 at 12:56 PM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > Philip & list, > > I've had it on my to-do list to write up an example... and have

Re: [Lift] Re: Menu generated from database?

2009-11-19 Thread David Pollak
Philip & list, I've had it on my to-do list to write up an example... and haven't... but... In your Loc, you can override def supplimentalKidMenuItems and dynamically generate kid menu items. I'll try to get to an example but not today... sorry :-( Thanks, David On Thu, Nov 19, 2009 at 12

[Lift] Re: Maper SQL stored procedures

2009-11-19 Thread Marcin Jurczuk
David, Thanks for quick response, On 19 Lis, 18:39, David Pollak wrote: > Marcin, > > Back in SmartMode days (a Java-based precursor to Lift) we bound methods to > stored procedures, but it was pretty costly dev-wise in terms of abstracting > the way each RDBMS deals with stored procedures. > >

Re: [Lift] Maper SQL stored procedures

2009-11-19 Thread David Pollak
Marcin, Back in SmartMode days (a Java-based precursor to Lift) we bound methods to stored procedures, but it was pretty costly dev-wise in terms of abstracting the way each RDBMS deals with stored procedures. If you (or someone else) has a nice abstraction of stored procedures that's type safe,

[Lift] Re: Maper SQL stored procedures

2009-11-19 Thread jon
I think you could do: User.findAllByInsecureSql("exec dbo.GET_USERS", IHaveValidatedThisSQL("me", "19 Nov 2009")). That would return a List [User] On Nov 19, 6:23 am, Marcin Jurczuk wrote: > Hi group, > > Is there a way for nice support for stored procedures in Mapper > Framework. > Let assume

Re: [Lift] Re: Ajax + Comet Chat across a Cluster

2009-11-19 Thread Timothy Perrett
What is it you were hoping to gain by using akka? The description below was pretty confussing - can you start a-fresh description of *exactly* what you want to achive, what you want the user to experience and what your cluster config will be. Cheers, Tim Sent from my iPhone On 19 Nov 2009,

[Lift] Re: Where are the dragons hiding?

2009-11-19 Thread Paul Butcher
On Nov 19, 12:37 am, David Pollak wrote: > But one of the key things to keep in mind regarding Lift is how we as a > community handle problems.  One of the biggest, nastiest bugs in Lift-land > crept into the code in the last few > days:http://groups.google.com/group/liftweb/browse_thread/thread/

Re: [Lift] Re: Lift Scaladocs for Maven?

2009-11-19 Thread Josh Suereth
No, you can raise an issue on github (davidB/maven-scala-plugin). You can also use the build-helper-plugin to attach the scaladocs in maven. We'll try to resolve this for the 2.13 or 2.14 release of the plugin. Please raise the issue so it stays on the radar ;) - Josh On Thu, Nov 19, 2009 at 1

Re: [Lift] Re: Empty Box exception in MetaMapper

2009-11-19 Thread David Pollak
On Thu, Nov 19, 2009 at 1:52 AM, opyate wrote: > PS reproducible issue created here: > http://github.com/dpp/liftweb/issues/#issue/199 > > Thanks! > > On Nov 13, 11:43 pm, David Pollak > wrote: > > On Thu, Nov 12, 2009 at 9:08 PM, Jim McBeath wrote: > > > > > Assuming I prune it down to an ex

[Lift] Maper SQL stored procedures

2009-11-19 Thread Marcin Jurczuk
Hi group, Is there a way for nice support for stored procedures in Mapper Framework. Let assume that I have database where only way to get data is stored procedure for example Instead SELECT * from user I must execute exec dbo.GET_USERS How connect Mapper fields with access to them by stored pro

[Lift] Re: Empty Box exception in MetaMapper

2009-11-19 Thread opyate
PS reproducible issue created here: http://github.com/dpp/liftweb/issues/#issue/199 On Nov 13, 11:43 pm, David Pollak wrote: > On Thu, Nov 12, 2009 at 9:08 PM, Jim McBeath wrote: > > > Assuming I prune it down to an example that requires only a few > > files, which would probably include an SQ

[Lift] Re: Menu generated from database?

2009-11-19 Thread philip
Hi David, Since I am programming a CMS for my client, I need my lift menu to come from the database. LiftRules.setSiteMap(SiteMap(MenuInfo.menu :_*)) def menu: List[Menu] = { Log.info("Menu called") ... It seems my menu function only gets called once, on subsquent calls I do not get an