[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 Fu

[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] 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 integ

[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 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 the Meta

[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 CRUDify[Long,Co

[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 insta

[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 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 lot harder...

[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 wrote: > Glenn, > > I've added another Loc param: > >   /** >    * Allows extra access testing for a given menu location such

[Lift] Re: Documentation and use cases?

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 2:00 PM, Derek Chen-Becker wrote: > 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 > > On Wed, May 1

[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 wrote: > > > On Wed, May 13, 2009 at 1:36 PM, Derek Chen-Be

[Lift] Re: Documentation and use cases?

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 1:36 PM, Derek Chen-Becker wrote: > 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 of these features on

[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 be

[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 tr

[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 y

[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 wrote: > > I made the beginnings of a lift app for GAE. It's for a vol

[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 L

[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 wrote: > Do you have the scala-tools.org/repo-snapshots configured?   Maven will look > in all config

[Lift] Re: Builing Lift ... again

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 12:40 AM, Marius 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 1.4.4-SNAPTHOT ve

[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: Constantly Ajax Request ?

2009-05-13 Thread David Pollak
On Wed, May 13, 2009 at 4:14 AM, sailormoo...@gmail.com < sailormoo...@gmail.com> wrote: > > Hi Hi : > > Thanks for the answer but what's the LiftGC used for?? Lift associated opaque GUIDs rendered to the client with functions on the server. This allows you to associate an HTML element with a

[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: 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 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 installers with the late

[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.
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 fr

[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? Che

[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 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 > > On 13 May 2009,

[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." wrote: > > Windows... > > On May 13, 10:34 am, Timothy Perrett w

[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 a

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

2009-05-13 Thread marius d.
Windows... On May 13, 10:34 am, Timothy Perrett wrote: > Which platform? windows? mac? > > Sent from my iPhone > > On 13 May 2009, at 07:41, Marius wrote: > > > > > Hi, > > > I had it everything working having the git sources and built lift from > > there. But then I tried the lift-installer. A

[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: Edit New  Nature Up

[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 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 > associate the two. Howe

[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. Re

[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 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 not set back to the