[Lift] Re: apache proxy_balancer

2009-09-17 Thread jon
I was able to get things working and am now fairly confident that I have enough power on my front end to completely melt my database. I think the real benefits will be failover and the ability to stage releases. Btw, as far as I can tell, apache proxy_balancer is the only open source choice

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Timothy Perrett
Please list the dependencies you have sent on each module Cheers, Tim On Sep 17, 5:32 am, Charles F. Munat c...@munat.com wrote: I have a Lift project with a JPA backend subproject, and then two Lift front ends that access the same back end, also as subprojects. So my master pom.xml looks

[Lift] Re: Remove OAuth module?

2009-09-17 Thread Timothy Perrett
Ah fair enough - that makes perfect sense. Cheers, Tim On Sep 17, 1:16 am, David Pollak feeder.of.the.be...@gmail.com wrote: It's the OAuth server, not OAuth client stuff.  I want to get this feature into 1.1, so let's not delete the project.

[Lift] Re: Sermo, persistent comet chat example

2009-09-17 Thread Bjarte Stien Karlsen
Hello list, Since I am presenting this Sermo example to an audience I want to understand how to flow of it works in more detail. When a new Chat CometActor is created it does the following 1. calls LocalSetup that register it with the ChatServer. 2. ChatServer then sends back the messages that

[Lift] Re: Wicket vs Tapestry vs Grails vs Lift?

2009-09-17 Thread Michel Klijn
I'm interested, atm i have a lot of free time. This is a great way to get to know Lift and Scala better. So the only thing is I'm still a bit of a noob, but i would like to help and get involved. Michel On Sep 16, 7:08 pm, etorreborre etorrebo...@gmail.com wrote: Hi, Anyone is interested in

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Derek Chen-Becker
Are you sure that they're not getting included (e.g. not actually in the WAR file), or that they're not activated? If your dependency (in the web modules) on the spa module is default scope, then it should be including them. Derek On Wed, Sep 16, 2009 at 10:32 PM, Charles F. Munat c...@munat.com

[Lift] ajax anchor on an image in template

2009-09-17 Thread Artem
This question was posted on liftforum.com and I can not answer it. If anyone knows the answer, please reply. Thanks. (by the way, is there any way I can format the code on google groups to make it actually look like code) Question: I would like to make an ajax anchor on an image defined in a

[Lift] Re: Still getting nuts with getting/setting foreign key fields

2009-09-17 Thread Tobias Daub
David, That makes much more sense, but I just didn't found it anywhere to do it like this...good to know! thanks! On Wed, Sep 16, 2009 at 10:58 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hey Lifters, Simple problem, but kind of difficult solution:

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-17 Thread David Pollak
On Wed, Sep 16, 2009 at 10:35 PM, DFectuoso santiago1...@gmail.com wrote: That seems like a logical reason why this is like this, but if i open 2 tabs of http://demo.liftweb.net/, both tabs start to send ajax request every 100ms, that is 20 ajax request per second, 72k per hour, so if an app

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-17 Thread Dano
David, I am not sure this is a matter of optimization. As you indicate in your response, when this situation occurs Lift will immediately end the long polling operation in order not to starve the connections.. This tells me the request is not being serviced properly and it therefore is a

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-17 Thread David Pollak
On Wed, Sep 16, 2009 at 10:53 PM, Xavi Ramirez xavi@gmail.com wrote: I vaguely remember reading a thread that claimed Lift would auto-increase the 2 connection limit for sessions using more modern browsers. Is this feature in M5? No. It's on my to-do list. Random Idea: Would it

[Lift] Re: apache proxy_balancer

2009-09-17 Thread David Pollak
Jon, We can do some URL rewriting or cookie rewriting to help with session affinity if Nginx has a plugin that does simpler logic. Thanks, David On Wed, Sep 16, 2009 at 11:53 PM, jon jonhoff...@gmail.com wrote: I was able to get things working and am now fairly confident that I have enough

[Lift] Re: ajax anchor on an image in template

2009-09-17 Thread David Pollak
On Thu, Sep 17, 2009 at 6:53 AM, Artem art...@gmail.com wrote: This question was posted on liftforum.com and I can not answer it. If anyone knows the answer, please reply. Thanks. (by the way, is there any way I can format the code on google groups to make it actually look like code)

[Lift] Re: JSON forms problem

2009-09-17 Thread glenn
Derek, Here is my complete head method: def head = headscript type=text/javascript src={/ + LiftRules.resourceServerPath + /jlift.js} / {Script(json.jsCmd)}/head Also, why do you use variable binding in your case pattern (j @ JsonCmd (processForm...). You don't refer to the

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Charles F. Munat
Actually, I figured that out. They're included. But I have a different problem now -- one that you might know the answer to. I'm loading this war file up in JBossWeb (basically a hopped-up Tomcat) and when I try to use it, I get a problem with transactions. I assume this is something in the

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Derek Chen-Becker
JBoss includes its own JTA libs, so you need to set the scope to exclude the other ones or else they'll conflict. Generally with any JEE container you would need to do that, since JTA is part of the spec. What exactly do you mean by the objects are created, but none of the properties are saved? Is

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Derek Chen-Becker
Also, if you're loading this up in JBoss, it might make more sense to bundle the artifacts into an EAR, unless you intend for the two web modules to have completely separate persistence units (e.g. different DBs, etc). Maven has a nice plugin for doing EARs. I can send a sample pom.xml if you'd

[Lift] Re: JSON forms problem

2009-09-17 Thread Derek Chen-Becker
Thanks. Good point on the variable binding. I think that at some point that code did use the var, but no longer. I'll remove it. On Thu, Sep 17, 2009 at 11:20 AM, glenn gl...@exmbly.com wrote: Derek, Here is my complete head method: def head = headscript type=text/javascript src={/ +

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Charles F. Munat
It's not the AS, it's the souped-up Tomcat (JBoss Web). All their examples are WARs. But sure, send an EAR along, Mr. Van Gogh. Chas. Derek Chen-Becker wrote: Also, if you're loading this up in JBoss, it might make more sense to bundle the artifacts into an EAR, unless you intend for the

[Lift] New version of master.pdf

2009-09-17 Thread Derek Chen-Becker
I've made some more minor edits based on feedback, including the recent JSON forms. I still have a long list of stuff to do, but please keep sending feedback if you find errors or things that are unclear. Derek --~--~-~--~~~---~--~~ You received this message

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Charles F. Munat
Yes, I would expect the work/doesn't result, too. So maybe it's correlation not causation and I should look for something else. It's definitely saving the objects, just not updating the fields. Weird. (Works fine when I use the embedded Jetty.) Nothing in Puterland is easy. Sigh... Chas.

[Lift] Binding - keepAttrs?

2009-09-17 Thread Bryan
I am trying to update an old lift application I wrote using 1.1-SNAPSHOT. It looks like bind is no longer keeping the attributes I've defined in the template. bind(f, xhtml, pickupDate - keepAttrs(SHtml.text(pickupDate.is, pickupDate(_))), submit - SHtml.submit(Search, processSearch)

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-17 Thread Dano
It is still unclear to me if the scenario I outlined above is supported by Lift or not. Can users of a site built with Lift (and comet actors) point their browser to the site in more than one tab? If so, is it reasonable for the web browser in this case to be sending multiple GET requests per

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Derek Chen-Becker
OK, well, I don't know if this will work in JBoss Web, but here it is anyways. This shows how you can create an EAR from some web modules, a JPA module and a library (shared between all three classloaders). Note that the plugin configuration defines the order that the modules are loaded, which is

[Lift] Re: FacebookRestApi examples?

2009-09-17 Thread jon
Hi Keith, You're missing a step in the process. The auth_token needs to be authenticated with facebook before you request a session. You would do this by visiting a url like http://www.facebook.com/login.php?api_key=KEYauth_token=TOKEN in a web browser. I am using the FB API in a connect

[Lift] Re: Binding - keepAttrs?

2009-09-17 Thread Naftoli Gugenheim
DPP added an attribute-preserving arrow: -% Then you can use unprefixed attributes. - Bryangerm...@gmail.com wrote: I am trying to update an old lift application I wrote using 1.1-SNAPSHOT. It looks like bind is no longer keeping the attributes I've defined

[Lift] Tabs + menu builder

2009-09-17 Thread caw1461
I'm working on a UI for a project and we are looking at the jquery tabs. Currently we just have a plain menu builder site map. we are thinking that a good way to create our UI is to somehow link the site builder with the Tabs such that each tab holds a different link from the site map. I know

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Charles F. Munat
Excellent. Thanks! Derek Chen-Becker wrote: OK, well, I don't know if this will work in JBoss Web, but here it is anyways. This shows how you can create an EAR from some web modules, a JPA module and a library (shared between all three classloaders). Note that the plugin configuration

[Lift] Re: Tabs + menu builder

2009-09-17 Thread marius d.
It would be pretty easy to write your own snippet and get inspired from Lift's menu snippet code.THe Menu snippet produces lists (ul/li) and if your JQuery Tab plugin works with HTML lists it should work almost on the fly? Br's, Marius On Sep 17, 4:05 pm, caw1461 caw1...@gmail.com wrote: I'm

[Lift] Re: Tabs + menu builder

2009-09-17 Thread David Pollak
You can use lift:Menu.json/ to create a JavaScript variable called lift_menu that contains all the menu items. You can then use client-side JavaScript to read the objects and construct whatever menu you want. On Thu, Sep 17, 2009 at 3:02 PM, marius d. marius.dan...@gmail.com wrote: It would

[Lift] Re: JPA with more than one front end (Maven! sigh...)

2009-09-17 Thread Chris Lewis
Charles F. Munat wrote: It's not the AS, it's the souped-up Tomcat (JBoss Web). All their examples are WARs. But sure, send an EAR along, Mr. Van Gogh. nice. Chas. Derek Chen-Becker wrote: Also, if you're loading this up in JBoss, it might make more sense to bundle the artifacts

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-17 Thread David Pollak
On Thu, Sep 17, 2009 at 9:04 AM, Dano olearydani...@gmail.com wrote: David, I am not sure this is a matter of optimization. As you indicate in your response, when this situation occurs Lift will immediately end the long polling operation in order not to starve the connections.. This tells

[Lift] Re: CMS for Lift?

2009-09-17 Thread Randinn
Is there a example of this as of yet? On Aug 20, 1:03 am, David Pollak feeder.of.the.be...@gmail.com wrote: FWIW... I got roped into hosting a CMS by the PTA of my kids' school.  I may knock something together in Lift or leverage off the work Glenn has done. On Tue, Aug 18, 2009 at 3:26 PM,

[Lift] Re: CMS for Lift?

2009-09-17 Thread Chris Lewis
javax.script glenn wrote: I think the trick to a really vibrant CMS is the ability to create plugins - modules in Lift that can be dynamically installed. I'm not sure how to affect this except through OSGi. On Aug 19, 8:55 am, TylerWeir tyler.w...@gmail.com wrote: Wonderful! On Aug

[Lift] CometActor timeout problem

2009-09-17 Thread jack
I have a CometActor which displays a list of urls and at the same time launches a bunch of threads each of which gets information about the urls and then puts messages about that information in a Queue. On each new tick, the CometActor checks the queue and updates its urls. The problem is that I