[Lift] Re: OSGi support for Lift

2009-05-13 Thread Heiko Seeberger
Alex, [5285...@qtp-20735553-0 - /] INFO org.ops4j.pax.web.service.internal.HttpServiceContext - getting resource: [/templates-hidden/default.htm] [5285...@qtp-20735553-0 - /] INFO org.ops4j.pax.web.service.internal.HttpServiceContext - found resource: null Is that normal? I can see the

[Lift] Re: OSGi support for Lift

2009-05-13 Thread Heiko Seeberger
Alex, This is an interesting requirement and could be feasible but not trivial. Please keep in mind, that in OSGi *each* application is (potentially) made up from several bundles that can be installed, updated and removed at any point of (run)time = Whar really leverages the power of OSGi is to

[Lift] A few things about the lift installer

2009-05-13 Thread Marius
Hi, I had it everything working having the git sources and built lift from there. But then I tried the lift-installer. After I un-installed it the M2_HOME env variable was not set back to the previous value. Br's, Marius --~--~-~--~~~---~--~~ You received this

[Lift] Re: A few things about the lift installer

2009-05-13 Thread Timothy Perrett
Which platform? windows? mac? Sent from my iPhone On 13 May 2009, at 07:41, Marius marius.dan...@gmail.com wrote: Hi, I had it everything working having the git sources and built lift from there. But then I tried the lift-installer. After I un-installed it the M2_HOME env variable was

[Lift] Builing Lift ... again

2009-05-13 Thread Marius
Hi, I tried again to build lift on Windows ... and it failed again. Yes I did clean um my repository folder. The problems I ran into so far: 1. The spec for sites/examples application in pom.xml it was pointing to 1.4.4-SNAPTHOT version but this version does not seem to exist on scala-tools.

[Lift] Re: Constantly Ajax Request ?

2009-05-13 Thread ngug
Well since he may have meant that, to disable it you put in Boot: LiftRules.enableLiftGC = false On May 12, 8:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: This im aware of - however it just seems more likely that if he asked for comet behavior by inserting the comet tag he would

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

2009-05-13 Thread ngug
I guess I should include the views too to make it easier to reproduce the problem. Here is edit.html: lift:surround with=default at=content head titlelift:loc lift:Natures.newOrEdit if:editEdit/if:edit

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
Windows... On May 13, 10:34 am, Timothy Perrett timo...@getintheloop.eu wrote: Which platform? windows? mac? Sent from my iPhone On 13 May 2009, at 07:41, Marius marius.dan...@gmail.com wrote: Hi, I had it everything working having the git sources and built lift from there. But

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
One other thing ... I just installed on Windows using the installer and I did not want it's maven and Java rebel. After installation I noticed that in my M2_REPO the lift's artifacts are not in my repository. Maybe I just don't understand how the installer works. Br's, Marius On May 13, 10:49 

[Lift] Re: A few things about the lift installer

2009-05-13 Thread Timothy Perrett
Hmm I'll have to think about it - uninstalling PATH adjustment might be quite difficult. Could probally remove the M2_HOME... I'll have a think :-) any other feedback? Sent from my iPhone On 13 May 2009, at 08:49, marius d. marius.dan...@gmail.com wrote: Windows... On May 13, 10:34 am,

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
Please see my previous post :) On May 13, 11:04 am, Timothy Perrett timo...@getintheloop.eu wrote: Hmm I'll have to think about it - uninstalling PATH adjustment might   be quite difficult. Could probally remove the M2_HOME... I'll have a think :-) any other feedback? Sent from my iPhone

[Lift] Re: A few things about the lift installer

2009-05-13 Thread Timothy Perrett
Ah right yes - it just does not do that :-) The installer configures the environent ready for dev. We took the descion some time ago to not try and replicate the maven functionality as it will download all the release or snapshot jars for you. Can we add some text that makes this clear?

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
So ... I'm lost :) ... Where are the lift's binaries? What I expected is this: 1. Install Lift via installer. 2. Create a lift project with Lift's archetypes 3. Build the project and run it So the only thing that differs from what I normally do is step #1 where I'm not getting Lift's sources

[Lift] Re: A few things about the lift installer

2009-05-13 Thread Timothy Perrett
The binaries are in our main maven repo of course on scala-tools... If we put them in the installer, this does 2 things: 1. makes more work for us to regularly update the installers with the latest JAR's and deploy to liftweb.net 2. Only saves the user about 1 min of download time during their

[Lift] Re: A few things about the lift installer

2009-05-13 Thread marius d.
Just thank you very very much ! :) Br's, Marius On May 13, 11:46 am, Timothy Perrett timo...@getintheloop.eu wrote: The binaries are in our main maven repo of course on scala-tools... If we put them in the installer, this does 2 things: 1. makes more work for us to regularly update the

[Lift] Re: Constantly Ajax Request ?

2009-05-13 Thread sailormoo...@gmail.com
Hi Hi : Thanks for the answer but what's the LiftGC used for?? What's the difference between enabling it and disabling it ? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] Re: Builing Lift ... again

2009-05-13 Thread Josh Suereth
Do you have the scala-tools.org/repo-snapshots configured? Maven will look in all configured repositories for artifacts sequentially. If it is *only* looking in repo-releases, then you need to modify your pom so it will also look in repo-snapshots. -Josh On Wed, May 13, 2009 at 3:40 AM, Marius

[Lift] Re: Builing Lift ... again

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 12:40 AM, Marius marius.dan...@gmail.com wrote: Hi, I tried again to build lift on Windows ... and it failed again. Yes I did clean um my repository folder. The problems I ran into so far: 1. The spec for sites/examples application in pom.xml it was pointing to

[Lift] Re: Builing Lift ... again

2009-05-13 Thread marius d.
Well in the pom from master we have: 1. pluginRepositories points to repo-releases 2. repositories points to both repo-releases and repo-snapshots Br's, Marius On May 13, 4:17 pm, Josh Suereth joshua.suer...@gmail.com wrote: Do you have the scala-tools.org/repo-snapshots configured?   Maven

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

2009-05-13 Thread David Pollak
Glenn, I've added another Loc param: /** * Allows extra access testing for a given menu location such that * you can build a menu that is displayed but redirects the user to a login * page if they are not logged in */ case class TestAccess(func: () = Box[LiftResponse]) extends

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

2009-05-13 Thread Derek Chen-Becker
I took a quick look and nothing is jumping out at me as wrong. When you get these errors do you at least get a stack trace? Having that would help narrow down where it's happening. Derek On Tue, May 12, 2009 at 5:40 PM, ngug naftoli...@gmail.com wrote: I made the beginnings of a lift app for

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

2009-05-13 Thread ngug
Thanks for looking. The stack traces aren't very helpful because they concern the state which is caused by the previous sequence of events. Anyway, why is there a transaction taking place in the first place? --~--~-~--~~~---~--~~ You received this message because

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

2009-05-13 Thread Derek Chen-Becker
JPA requires that a transaction be in place before *any* persistence operations occur. The ScalaJPA stuff is supposed to handle it for you, so that's why I was wondering about stack traces. In particular, the RequestVarEM trait should start a new transaction when the request begins and close the

[Lift] Documentation and use cases?

2009-05-13 Thread Derek Chen-Becker
I'm still working on S.scala documentation. I've put some examples in, but they feel really contrived. Does someone have some real-world use cases for highLevelSessionDispatch and/or sessionRewriter? Thanks, Derek --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Documentation and use cases?

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 1:36 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I'm still working on S.scala documentation. I've put some examples in, but they feel really contrived. Does someone have some real-world use cases for highLevelSessionDispatch and/or sessionRewriter? I used each

[Lift] Re: Documentation and use cases?

2009-05-13 Thread Derek Chen-Becker
Cool, I hadn't thought of that. Also, any objections to rearranging some of the code while I'm updating docs? There are two S.loc methods that are far apart in the file, for instance. Derek On Wed, May 13, 2009 at 2:40 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, May 13,

[Lift] Re: Documentation and use cases?

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 2:00 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Cool, I hadn't thought of that. Also, any objections to rearranging some of the code while I'm updating docs? There are two S.loc methods that are far apart in the file, for instance. Have a field day! Derek

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

2009-05-13 Thread glenn
David, Pardon my ignorance, but I see a Test case class in the Lift 1.0 api for Loc, but not TestAccess, which seems similar. Glenn... On May 13, 6:58 am, David Pollak feeder.of.the.be...@gmail.com wrote: Glenn, I've added another Loc param:   /**    * Allows extra access testing for a

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

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 2:19 PM, glenn gl...@exmbly.com wrote: David, Pardon my ignorance, but I see a Test case class in the Lift 1.0 api for Loc, but not TestAccess, which seems similar. I added TestAccess to 1.1-SNAPSHOT last night. It's possible to write something in 1.0, but it's a

[Lift] Re: OSGi support for Lift

2009-05-13 Thread Alex Boisvert
Hi Heiko, On Tue, May 12, 2009 at 11:21 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: This is an interesting requirement and could be feasible but not trivial. Please keep in mind, that in OSGi *each* application is (potentially) made up from several bundles that can be

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

2009-05-13 Thread glenn
Thanks for the heads-up on the 1.1-SNAPSHOT version, but now, when I compile, I get errors. I don't think this has anything to do with menu redirection, but, I have a Company class defined like so: class Company extends LongKeyedMapper[Company] with Address[Company] with IdPK with

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

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 3:30 PM, glenn gl...@exmbly.com wrote: Thanks for the heads-up on the 1.1-SNAPSHOT version, but now, when I compile, I get errors. I don't think this has anything to do with menu redirection, but, I have a Company class defined like so: CRUDify should be mixed into

[Lift] seeking advice on mvn process-sources target

2009-05-13 Thread Meredith Gregory
Lifted, After some research, it appears that the path of least resistance for generating integrated parser using BNF Converter is to write an ant build.xml file that stands as an interface between the make file that BNF Converter will generate if passed the -m flag. i've got that working and

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

2009-05-13 Thread glenn
David, Moving CRUDify to the object fixed the compiler error. However, back on the original menu issue, using TestAccess, as you suggest, still did not work as expected. The menu item doesn't display. Maybe I'm missing something important. Sorry to be a bother, but hope you can help. Here's my

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

2009-05-13 Thread David Pollak
Glenn, Sorry... there was a bug in the code. I've fixed it. It'll be available when this build finishes: http://hudson.scala-tools.org/job/Lift/949/console Please remember to do an mvn -U clean install I'm enclosing the sample app that I used to test. Please note that you should only return