[Lift] OSGi support for Lift

2009-05-12 Thread Heiko Seeberger
Hi Lift folks, Today I checked in the first little step towards OSGi support: - Modules lift-util and lift-webkit are no longer plain vanilla JARs, but built as OSGi bundles (OSGi metadata in META-INF/MANIFEST.MF) - New module lift-osgi which offers (yet very limited) support for Lift

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread Charles F. Munat
A man can dream, can't he? David Pollak wrote: On Mon, May 11, 2009 at 4:41 PM, Charles F. Munat c...@munat.com mailto:c...@munat.com wrote: Yeah. I'm hoping that David comes up with something to show how he views Lift. Then again, I am reminded of the scene in Being John

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread Charles F. Munat
Oh, that's easy. I don't get anything. The entire pipeline is a mystery to me. What I'd like to make is a complete (large) flow chart that shows what happens to the request at every step of the way until it is returned to the browser as a response. Considering the number of possible decision

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Timothy Perrett
Oh man, this is going to be nice - loving your work Heiko feels like this is the first brick in the road to something extremely funky. Cheers, Tim On May 12, 8:03 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi Lift folks, Today I checked in the first little step towards

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Timothy Perrett
Oh, one other thing - are the new dependencies present in the osgi pom.xml all under non-gpl licenses? DPP will be able to tell you more but im sure we have to be carfull about what types of licenses we distribute with Lift. Thanks, Tim On May 12, 10:25 am, Timothy Perrett

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread marius d.
Charles, The diagram for the lift book is a component level diagram showing the most relevant pieces of lift. Component diagram reveal very little information about the actual interactions. The Lift-Core in the diagram you posted is essentially the Lift's engine, the logic behind processing Lift

[Lift] Re: OSGi support for Lift

2009-05-12 Thread David Pollak
Very good stuff! Looking forward to playing with it today. Thanks for the hard work! On Tue, May 12, 2009 at 12:03 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi Lift folks, Today I checked in the first little step towards OSGi support: - Modules lift-util and lift-webkit

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Viktor Klang
I feel I owe Heiko a beer. On Tue, May 12, 2009 at 3:36 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Very good stuff! Looking forward to playing with it today. Thanks for the hard work! On Tue, May 12, 2009 at 12:03 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi

[Lift] net.liftweb.mapper.Countries and United Kingdom

2009-05-12 Thread Ewan
I want to create persist an address object I have and set a MappedCountry to the UK ie. Address.create.address1(7).address3(Some Street).address6 (Countries.UnitedKingdom).save except that the enumeration Countries does not have one but does for the US and Australia and a bunch of others

[Lift] Re: How does one share application logic across multiple lift applications

2009-05-12 Thread David Pollak
On Mon, May 11, 2009 at 6:14 PM, Jonathan Ferguson j...@spiralarm.comwrote: We want to encapsulate our application logic as an external dependencies ( library ) , so it can be used by multiple lift applications. The sticking point is how one achieves this when the library needs to perform

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Timothy Perrett
If your buying Viktor ;-) Say, when we having a lift team beer night? Feels like were long overdue for something like that! Cheers, Tim On 12/05/2009 14:50, Viktor Klang viktor.kl...@gmail.com wrote: I feel I owe Heiko a beer. On Tue, May 12, 2009 at 3:36 PM, David Pollak

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Viktor Klang
On Tue, May 12, 2009 at 3:59 PM, Timothy Perrett timo...@getintheloop.euwrote: If your buying Viktor ;-) Say, when we having a lift team beer night? Feels like were long overdue for something like that! We really should! Cheers, Tim On 12/05/2009 14:50, Viktor Klang

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Heiko Seeberger
Beer sounds great (I am form Bavaria) and team beer night also ;-)How does this work? Everybody chatting how much she has drunk? Cheers Heiko 2009/5/12 Viktor Klang viktor.kl...@gmail.com On Tue, May 12, 2009 at 3:59 PM, Timothy Perrett timo...@getintheloop.euwrote: If your buying

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Heiko Seeberger
Hi again, I just checked in the next little step: Now it is possible to have a Boot class and provide packages = Snippets are also working (and maybe other LiftRules stuff, too). I also improved and fixed some stuff in the osgi-hello example. Cheers Heiko 2009/5/12 Heiko Seeberger

[Lift] Re: net.liftweb.mapper.Countries and United Kingdom

2009-05-12 Thread David Pollak
On Tue, May 12, 2009 at 6:50 AM, Ewan ehar...@gmail.com wrote: I want to create persist an address object I have and set a MappedCountry to the UK ie. Address.create.address1(7).address3(Some Street).address6 (Countries.UnitedKingdom).save except that the enumeration Countries does not

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Viktor Klang
Hi Heiko, I'm a big fan of smoked German beer like Schlenkerla Rauchbier :) On Tue, May 12, 2009 at 4:21 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Beer sounds great (I am form Bavaria) and team beer night also ;-)How does this work? Everybody chatting how much she has drunk?

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
Hi Heiko, Just a few basic questions I downloaded and ran PAX runner, ./pax-run.sh --profiles=log,scala,felix.webconsole,web then installed the examples-osgi bundle, - install file:///home/boisvert/git/liftweb/sites/examples-osgi/hello/target/examples-osgi-hello-1.1-SNAPSHOT.jar Bundle

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Timothy Perrett
If you like that Viktor, you should hang out in some of the finest (read: most local) drinking establishments the west-country of England has to offer! Who's in EMEA? Me, Viktor, Heiko? Anyone else? Until the EPFL meetup next fall (rumoured to be happening) cant help but feel EMEA is a little

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Heiko Seeberger
Hi Alex, 2009/5/12 Alex Boisvert boisv...@intalio.com I downloaded and ran PAX runner, ./pax-run.sh --profiles=log,scala,felix.webconsole,web then installed the examples-osgi bundle, - install

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread Charles F. Munat
Marius, I think that there's some confusion about what I am looking for vs. what my questions were about the component diagram. These are two separate issues. Re the component diagram, I am just trying to make sense of it. Mostly I was confused (and I think others might be as well) because

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Charles F. Munat
What is EMEA? (Personally, I'm a fan of Belgian ales, including the wonderful Flemish sour ales. Duchesse du Bourgogne is a favorite. And the amazing aged alembic ales coming out of the Russian River brewery in Santa Rosa, California are legendary!) Chas. Timothy Perrett wrote: If you

[Lift] Build problem

2009-05-12 Thread David Pollak
Folks, It seems that the minified versions of jquery and json2.js are not being included in the built JAR file. Anyone have an idea of why? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me:

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
Ok, I tried again based on your suggestion but I'm getting an error related to javax.mail:1.4 not being a valid bundle... - Preparing framework [Felix 1.6.0] - Downloading bundles... - mvn:javax.mail/mail/1.4 : 388864 bytes @ [ 471kBps ] s @ [ 498kBps ] ___ / / / /

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Heiko Seeberger
When did you check out? I pushed again about one or two hours ago.From the log I can see that you use an old version of hello.composite. The new one should look like: scan-bundle:wrap:mvn:javax.mail/mail/1.4 scan-bundle:wrap:mvn:javax.activation/activation/1.1 ... The wrap: is important. Pax

[Lift] Re: OSGi support for Lift

2009-05-12 Thread James Strachan
BTW speaking of PAX - I've found a nice easy way to test OSGI jars (as its so easy to mess up the metadata) is to use Pax Exam to create an OSGi integration test of your bundles against one or more OSGi containers (e.g. Felix and Equinox), using the maven poms and the Apache ServiceMix/Karaf

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Heiko Seeberger
Sure, Pax Exam rules! 2009/5/12 James Strachan james.strac...@gmail.com BTW speaking of PAX - I've found a nice easy way to test OSGI jars (as its so easy to mess up the metadata) is to use Pax Exam to create an OSGi integration test of your bundles against one or more OSGi containers

[Lift] Re: Build problem

2009-05-12 Thread Heiko Seeberger
Oops! That's the OSGi stuff :-( Please comment in lift/pom.xml !--plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId configuration instructions

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Timothy Perrett
EMEA == Europe, Middle East and Africa :-) On 12/05/2009 18:58, Charles F. Munat c...@munat.com wrote: What is EMEA? (Personally, I'm a fan of Belgian ales, including the wonderful Flemish sour ales. Duchesse du Bourgogne is a favorite. And the amazing aged alembic ales coming out of

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread marius d.
Thanks for clarifications. The very point for this component diagram is to highlight the building blocks of Lift. Nothing more. How these components interact is a different story that based on my experience can not really be expressed by a component diagram. The LiftCore term from the diagram and

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
That was it. I pulled again from git and now I can start the examples-osgi app. However, one more nitpick... I can load index.htm but the snippet isn't rendered correctly because some resources can't be found. e.g. [5285...@qtp-20735553-0 - /] INFO

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread Timothy Perrett
Awesome - im working on something now... My day did not go to plan so it dropped off the list unfortunately. I should be able to blag some work time tomorrow to get this done. Cheers, Tim On 12/05/2009 19:46, marius d. marius.dan...@gmail.com wrote: Thanks for clarifications. The very

[Lift] Re: Confusion about Lift-Core

2009-05-12 Thread David Pollak
Please also see: http://groups.google.com/group/liftweb/msg/1f156eeec71da397?hl=en On Tue, May 12, 2009 at 11:52 AM, Timothy Perrett timo...@getintheloop.euwrote: Awesome - im working on something now... My day did not go to plan so it dropped off the list unfortunately. I should be able to

[Lift] Re: Build problem

2009-05-12 Thread Heiko Seeberger
OK, I fixed it and pushed to the repo.Sorry for the trouble! Heiko 2009/5/12 Heiko Seeberger heiko.seeber...@googlemail.com Oops! That's the OSGi stuff :-( Please comment in lift/pom.xml !--plugin groupIdorg.apache.felix/groupId

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Heiko Seeberger
Hm, does not look good :-(Thanx for trying and please keep on! I have to deal with some build issues, and will take a look at that tomorrow. Heiko 2009/5/12 Alex Boisvert boisv...@intalio.com That was it. I pulled again from git and now I can start the examples-osgi app. However, one more

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Viktor Klang
I', down with that! :) On Tue, May 12, 2009 at 7:01 PM, Timothy Perrett timo...@getintheloop.euwrote: If you like that Viktor, you should hang out in some of the finest (read: most local) drinking establishments the west-country of England has to offer! Who's in EMEA? Me, Viktor, Heiko?

[Lift] Re: OSGi support for Lift

2009-05-12 Thread Alex Boisvert
Alright, thanks for your help! I was mostly kicking the tires to get a taste for the upcoming OSGi integration. I guess my main feedback at this point is that it would be nice to map the app into a non-root context of Jetty. e.g. http://localhost:8080/examples-osgi instead of directly under

[Lift] Re: Strange Comet Behavior

2009-05-12 Thread David Pollak
Bryan, I've reworked your example... and based on my re-work, I added a method to LiftSession that allows you to send messages to a CometActor referenced later on. I hope you like it. Thanks, David On Mon, May 11, 2009 at 7:08 PM, Bryan. germ...@gmail.com wrote: Yes, the alerts were there

[Lift] Re: Lift works on Google App Engine (within the confines of what's possible)

2009-05-12 Thread ngug
Personally I couldn't find anything free, except for EatJ, which has a free trial. Apparently you have to restart the server every 6? hours in trial mode. Anyway, soon after I registered it didn't let me log in anymore, not sure why. On Apr 20, 8:56 am, Jeremy Mawson jeremy.mawson.w...@gmail.com

[Lift] Re: Lift works on Google App Engine (within the confines of what's possible)

2009-05-12 Thread David Pollak
SliceHost has $20/mo slices http://www.slicehost.com/ that will run Lift apps just fine. I know it's not free, but we're all spending $50/mo on a cell phone, $50/mo on bandwidth, etc... so $20/mo doesn't seem like a high barrier. On Mon, Apr 20, 2009 at 5:56 AM, Jeremy Mawson

[Lift] Constantly Ajax Request ?

2009-05-12 Thread sailormoo...@gmail.com
Hi : I would like to know what's the constantly sending Ajax Request? Is it for the session keep alive?? Is there a way to disable it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to

[Lift] Trouble with lift, GAE, JPA, adding child records

2009-05-12 Thread ngug
I made the beginnings of a lift app for GAE. It's for a volunteer medical assistance organization, to manage requests that they get. Every request has a nature, e.g., transportation, hospital visitation, etc. Each nature has a OneToMany association with a NatureLocationType, which means that when

[Lift] Re: Constantly Ajax Request ?

2009-05-12 Thread David Pollak
If you have a comet component on the page, Lift keeps an http connection open to the server waiting for server state change. If you do not want the persistent connection, please remove comet components (those marked with lift:comet .../ from your page. On Tue, May 12, 2009 at 4:36 PM,

[Lift] Re: Constantly Ajax Request ?

2009-05-12 Thread Timothy Perrett
Is he not talking about the page GC? Id hazard a guess that he is... Cheers, Tim On May 13, 12:45 am, David Pollak feeder.of.the.be...@gmail.com wrote: If you have a comet component on the page, Lift keeps an http connection open to the server waiting for server state change.  If you do not

[Lift] Re: Constantly Ajax Request ?

2009-05-12 Thread David Pollak
On Tue, May 12, 2009 at 4:47 PM, Timothy Perrett timo...@getintheloop.euwrote: Is he not talking about the page GC? Id hazard a guess that he is... Nope... the GC happens once every 75 seconds (by default). It's not constant. Cheers, Tim On May 13, 12:45 am, David Pollak

[Lift] Menu access control not working as expected

2009-05-12 Thread glenn
I have a menu defined as follows: def quoteMenu:List[Menu] = { val groupquote = Menu(Loc(groupquote, List(quote, group), Group Quote,loggedIn, LocGroup(quote))) More menu items } and an If LocParam to check if the user is logged in: val loggedIn = If(() = User.loggedIn_?,

[Lift] Re: Constantly Ajax Request ?

2009-05-12 Thread Timothy Perrett
This im aware of - however it just seems more likely that if he asked for comet behavior by inserting the comet tag he would associate the two. However, the way the original query was worded indicated to me at least that he was not expecting the ajax calls... hence why i think he's probally

[Lift] Re: Strange Comet Behavior

2009-05-12 Thread Bryan.
Wow, this is great stuff! setupComet was a very thoughtful addition. Thanks, David. Regards, Bryan On May 12, 6:13 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Bryan, I've reworked your example... and based on my re-work, I added a method to LiftSession that allows you to send

[Lift] Re: Strange Comet Behavior

2009-05-12 Thread David Pollak
On Tue, May 12, 2009 at 5:05 PM, Bryan. germ...@gmail.com wrote: Wow, this is great stuff! setupComet was a very thoughtful addition. Thanks, David. Sure thing. Regards, Bryan On May 12, 6:13 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Bryan, I've reworked your

[Lift] Re: Menu access control not working as expected

2009-05-12 Thread David Pollak
If a top-level menu item is not accessible, then none of its children are accessible. SiteMap does not display any pages that are inaccessible. In the example, you've got all the menus controlled by the loggedIn If() clause and that's blocking access to menu and thus the menu is not displayed.

[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?

2009-05-12 Thread David Pollak
Please see: S.render(NodeSeq, HttpServletRequest): NodeSeq Thanks, David On Wed, Apr 22, 2009 at 11:43 AM, James Strachan james.strac...@gmail.comwrote: 2009/4/22 David Pollak feeder.of.the.be...@gmail.com: On Wed, Apr 22, 2009 at 9:16 AM, James Strachan james.strac...@gmail.com

[Lift] Re: Menu access control not working as expected

2009-05-12 Thread glenn
Hmm, Here's my complete menu list for this LocGroup: def quoteMenu:List[Menu] = { val groupquote = Menu(Loc(groupquote, List(quote, group), Group Quote, LocGroup(quote), loggedIn )) val businessquote = Menu(Loc(businessquote, List(quote, business), Commercial Quote,