[Lift] Re: your first Lift application on GAE/J

2009-05-15 Thread Eric Daugherty
I think I executed all the steps correctly, but when I deploy it to GAE I get a Security Access Control Exception because the Actor class is trying to create a thread I think. Is there something I have to do to disable the Actors in Lift. I know GAE does not support any Thread manipulation but I

[Lift] Re: Lift-amqp diagram - sense check?

2009-05-15 Thread Timothy Perrett
Sorry for answering my own question here, but just decided to jump right in and see if this was correct - finding that it is so im just writing up my findings and posting a sample application to github. Will share when I have more. Cheers, Tim On May 15, 7:04 pm, Timothy Perrett wrote: > Guys,

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Charles F. Munat
Well, ahem (cough, cough) a bit off-topic, but since you ask... I've always believed that the sort of mental versatility and adaptability that leads one to such creativity does tend to drive one away from the black and white of most ideology and toward the shades-of-gray of radical non-ideolog

[Lift] Re: What's the xms and xmx setting in Jetty?

2009-05-15 Thread Timothy Perrett
Im not familiar with xms and xmx specifically - my suggestion was that if its possible with jetty, then its probably configurable somehow with the plugin as its all the same infrastructure just wrapped up in jetty. Perhaps you can explain what it is exactly you want to do? Cheers, Tim On 16/05

[Lift] Re: What's the xms and xmx setting in Jetty?

2009-05-15 Thread sailormoo...@gmail.com
The jetty.xml sample doesn't seem to include xms and xmx configuration. http://confluence.atlassian.com/download/attachments/58294274/jetty.xml On 5月16日, 上午12時08分, Timothy Perrett wrote: > There is a parameter called "jettyConfig" - pass the location of a jetty.xml > and you can configure it as

[Lift] Re: Bindings and Validation request cycle

2009-05-15 Thread Scalanewbie
In addtion to my problem, i found out that request vars live from the current request till the next request. And when i switch to simple vals i dont event have a value in my submit() form. On May 16, 12:06 am, Scalanewbie wrote: > Hi Marius, thanks for your explanation but i have some trouble ge

[Lift] Re: Menus active/inactive with/without redirect

2009-05-15 Thread denew
David, Hope I haven't offended protocols, just not sure the best way to send this. I've just uploaded a teensy mod to hello-lift (hello-lift-denew) which should show what I'm waffling on about. I do appreciate your help, but please don't spend too much time on it - I'm sure you have bigger fish

[Lift] Re: User's Menu items not rendering

2009-05-15 Thread KP
The problem was solved by couching MetaMegaProtoUser's default loginXhtml, signupXhtml, and lostPassageXhtml in a element. So that's fun. Also, the XML parsing error for the "sign up" link magically disappeared when I upgraded to the lift 1.1 snapshot. Thanks much, KP On May 15, 1:05 pm, David

[Lift] Re: Redirect after login

2009-05-15 Thread David Pollak
In your User object, do the following: object loginReferer extends SessionVar("/") override def homePage = { var ret = loginReferer loginReferer.remove() ret } override def login = { for (r <- S.referer if loginReferer.is == "/") loginReferer.set(r) super.login } So, we're setting up

[Lift] Re: Redirect after login

2009-05-15 Thread glenn
I'm using ProtoUser. But even so, I thought that I might have to create a bunch of separate login pages, each using the loginXhtml form so that action={S.uri} would generate the links to match with the cases. In that way I could do the redirection. But that seems convoluted, to me. This goes back

[Lift] Re: Mailer not calling: def host = hostFunc()

2009-05-15 Thread Scalanewbie
Perfect, thanks. On May 15, 11:48 pm, David Pollak wrote: > On Fri, May 15, 2009 at 11:35 AM, Scalanewbie wrote: > > > Awesome, just curious: what is the best way to get the latest lift > > maven bundles (windows maschine without git) > > mvn -U clean install > > Lift is hosted by scala-tools.o

[Lift] Re: Bindings and Validation request cycle

2009-05-15 Thread Scalanewbie
Hi Marius, thanks for your explanation but i have some trouble getting the lifcycle right: object name extends RequestVar("") def dodo(form : NodeSeq) = { val myObject= new MyObject(name) val validation = Validator.prepare(myObject) def submit() { validation.validate()

[Lift] Re: Mailer not calling: def host = hostFunc()

2009-05-15 Thread David Pollak
On Fri, May 15, 2009 at 11:35 AM, Scalanewbie wrote: > > Awesome, just curious: what is the best way to get the latest lift > maven bundles (windows maschine without git) mvn -U clean install Lift is hosted by scala-tools.org and scala-tools.org has a continuous integration server running at h

[Lift] Re: Redirect after login

2009-05-15 Thread David Pollak
On your login page, you can capture the referer and then redirect to the refering page on successful login. Are you using ProtoUser or are you rolling your own login page? On Fri, May 15, 2009 at 1:27 PM, glenn wrote: > > If I wanted to redirect the user to a different page, depending on > what

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Meredith Gregory
Chas, You know, with all his research on 'Manufacturing Consent', Noam might have a 3rd career in managing open source projects. Since you've pinned the tail on the donkey, so to speak, do you think there might be a connection between ideology and design skills? i mean his work on grammars and com

[Lift] Re: Menus active/inactive with/without redirect

2009-05-15 Thread David Pollak
Can you put together a super-simple project that demonstrates what you want to do and I'll work it up so the menus highlight the right way. On Fri, May 15, 2009 at 1:49 PM, denew wrote: > > No - the menus should always show, but be inactive when you are on > that page. For example, 'Home' is not

[Lift] Re: Bindings and Validation request cycle

2009-05-15 Thread marius d.
If you want to change CSS classes upon validation you can do: Non Ajax 1. . bind("myobject", xhtml, "name" -> SHtml.text(name.is, name(_) % ("class" -> "read the value from you state"), ("class","dependsOnTheValidationResult"), "submit" -> SHtml.submit("submit", submit) ) Note that the rend

[Lift] Re: Menus active/inactive with/without redirect

2009-05-15 Thread denew
No - the menus should always show, but be inactive when you are on that page. For example, 'Home' is not selectable when you are on the Home page. This seems to be the default behaviour and is exactly right. Other 'simple' pages (i.e. just accessing a template, no redirects in Boot) work the same

[Lift] Redirect after login

2009-05-15 Thread glenn
If I wanted to redirect the user to a different page, depending on what page they were on when they initiated a login, does anyone know of a good solution? I'm thinking I need to use a DispatchLocSnippets and define different dispatch case functions. But I'm not clear how best to go about it? Wou

[Lift] Re: Bindings and Validation request cycle

2009-05-15 Thread Scalanewbie
Hi Marius, this is what i do at the moment, but i dont see a way to put the css class information into my elements after the validation. This seems not to be possible with the msgs class. Because it just prints out the error with a specific css class and does not do any special node manipulation (

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Charles F. Munat
O. You've polished this up a bit. Very nice. Chomsky? Isn't he that commie pinko America-hater? Chas. Meredith Gregory wrote: > Chas, > > You're too kind. Fortunately, i can take none of the credit: > language-based design goes all the way back to Chomsky. ;-) For those > who are not fam

[Lift] Re: Bindings and Validation request cycle

2009-05-15 Thread marius d.
On May 15, 10:18 pm, Scalanewbie wrote: > Hi, > as a lift-scala-newbie i am trying out various things with lift to see > advantages etc. to other frameworks (rails, grails,...) > > I am now trying to integrate a third party java validation library and > i want to embed the results into my webap

[Lift] Bindings and Validation request cycle

2009-05-15 Thread Scalanewbie
Hi, as a lift-scala-newbie i am trying out various things with lift to see advantages etc. to other frameworks (rails, grails,...) I am now trying to integrate a third party java validation library and i want to embed the results into my webapp. First i want to put all localized error messages in

[Lift] Re: Mailer not calling: def host = hostFunc()

2009-05-15 Thread Scalanewbie
Awesome, just curious: what is the best way to get the latest lift maven bundles (windows maschine without git) thanks On May 15, 7:25 pm, David Pollak wrote: > The fix is committed up. > > > > On Fri, May 15, 2009 at 8:12 AM, Scalanewbie wrote: > > > Thanks for the links. Seems like he´s not

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Meredith Gregory
Chas, You're too kind. Fortunately, i can take none of the credit: language-based design goes all the way back to Chomsky. ;-) For those who are not familiar with this approach, a little cheat sheet goes a long way. Classes ~ Types = Grammatical Categories In English, the category associated wit

[Lift] Re: immutable bindings

2009-05-15 Thread David Pollak
On Thu, May 14, 2009 at 7:43 PM, Oliver Lambert wrote: > I've started integrating my immutable bindings, but have some questions > > On my build, I've placed the main immutable binding classes in module lift > webkit under package net.liftweb.http.immu. > Is that location/name OK? If there's st

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Meredith Gregory
David, Sweet! Thanks that little maven trick should eliminate one of my problems. i've been thinking a bit more about the meta-compiler-compiler approach and -- because i believe it gives me a way to generate Josh Suereth's LOLCode as a side-effect -- i'm ever so inclined to take it. Who says sid

[Lift] Re: User's Menu items not rendering

2009-05-15 Thread David Pollak
KP, The problem is that the Snippet that's you're trying to invoke is not being found by Lift. There are two things you can do: - Upgrade to Lift 1.1-SNAPSHOT... it's got much more developer-friend error reporting in this situation - Look on your console for something reporting that a s

[Lift] Re: Menus active/inactive with/without redirect

2009-05-15 Thread David Pollak
You might try putting a "Hidden" object on the "specials" menu... that way it won't show up... is this what you mean? On Thu, May 14, 2009 at 10:35 PM, denew wrote: > > A few days new to Lift, but stumbling along ok. A small issue (I hope > this abbrv. code is sufficient): > > ... > Menu(Loc("sp

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

2009-05-15 Thread Derek Chen-Becker
EntityManager has a getTransaction method that you can use along with the constructor I mentioned previously to explicitly begin and end transactions in your code. derek On Fri, May 15, 2009 at 11:45 AM, ngug wrote: > > One entity group per transaction is a GAE requirement. But my question > ab

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

2009-05-15 Thread ngug
One entity group per transaction is a GAE requirement. But my question about handling transactions was more specific - because form processing is specified "piecemeal" in separate closures, you can't use the normal try/finally. It seems a little too much effort to create a hidden field before and

[Lift] Re: Mailer not calling: def host = hostFunc()

2009-05-15 Thread David Pollak
The fix is committed up. On Fri, May 15, 2009 at 8:12 AM, Scalanewbie wrote: > > Thanks for the links. Seems like he´s not using the hostFunc. > > On May 15, 4:48 pm, Timothy Perrett wrote: > > You might find this useful:http://is.gd/Aa41- personally I've not done > > anything with the mailing

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Timothy Perrett
Sounds good - we have a DSL that's used at work this could be really great for. Cheers, Tim On 15/05/2009 17:47, "Charles F. Munat" wrote: > > I've seen this demonstrated and the conceptual part is actually > drop-dead simple. But maybe watching it work helps a lot. > > I might also add tha

[Lift] Re: Snippets and inheritance question...

2009-05-15 Thread ivan
On 15 svi, 18:27, David Pollak wrote: > Howdy, > > Lift can do convention over configuration.  It can be a dangerous convention > to have any old method on a class be invoked, so when Lift does reflection > to determine which method to invoke on a snippet class, it only looks at the > public meth

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Charles F. Munat
I've seen this demonstrated and the conceptual part is actually drop-dead simple. But maybe watching it work helps a lot. I might also add that watching Greg write some straightforward BNF to describe a complex relationship between objects in a simple DSL and then generate a Lift app from in -

[Lift] Re: Mailer not calling: def host = hostFunc()

2009-05-15 Thread David Pollak
On Fri, May 15, 2009 at 8:12 AM, Scalanewbie wrote: > > Thanks for the links. Seems like he´s not using the hostFunc. Yes... this seems to be the case... lemme fix it. > > > On May 15, 4:48 pm, Timothy Perrett wrote: > > You might find this useful:http://is.gd/Aa41- personally I've not done

[Lift] Re: Snippets and inheritance question...

2009-05-15 Thread David Pollak
Howdy, Lift can do convention over configuration. It can be a dangerous convention to have any old method on a class be invoked, so when Lift does reflection to determine which method to invoke on a snippet class, it only looks at the public methods declared on the class. You can update your sni

[Lift] Re: What's the xms and xmx setting in Jetty?

2009-05-15 Thread Timothy Perrett
There is a parameter called "jettyConfig" - pass the location of a jetty.xml and you can configure it as per normal jetty server. Cheers, Tim On 15/05/2009 16:54, "sailormoo...@gmail.com" wrote: > > I checked it and it doesn't seem to mention any Java setting though. > > On 5月15日, 下午11時47分,

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

2009-05-15 Thread David Pollak
On Fri, May 15, 2009 at 7:49 AM, glenn wrote: > > David, > > Yes, your EarlyAccess Loc did the trick. Thank you for all > your help. Thanks for the great suggestion. Party on! > > > Glenn... > > On May 15, 6:54 am, David Pollak > wrote: > > Glenn, > > > > My original design was a bad one...

[Lift] Re: lift-webkit src not on github

2009-05-15 Thread David Pollak
On Fri, May 15, 2009 at 8:02 AM, David Bernard wrote: > no, it just mean that the lift directory was not renamed lift-webkit > (history raison). The specific reason is my laziness... when I'm cd'ing into the lift directory, I like to type l The extra lwe was just too much for me. ;-) > > > On

[Lift] Re: What's the xms and xmx setting in Jetty?

2009-05-15 Thread sailormoo...@gmail.com
I checked it and it doesn't seem to mention any Java setting though. On 5月15日, 下午11時47分, Timothy Perrett wrote: > Checkout the jetty plugin docs: > > http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin > > Cheers, Tim > > On 15/05/2009 16:32, "sailormoo...@gmail.com" > wrote: > > > > > >

[Lift] Re: What's the xms and xmx setting in Jetty?

2009-05-15 Thread Timothy Perrett
Checkout the jetty plugin docs: http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin Cheers, Tim On 15/05/2009 16:32, "sailormoo...@gmail.com" wrote: > > Hi : > > I would like to know what's the current setting of xms and xmx in > mvn jetty:run ? > And how to modify them? > > Tha

[Lift] What's the xms and xmx setting in Jetty?

2009-05-15 Thread sailormoo...@gmail.com
Hi : I would like to know what's the current setting of xms and xmx in mvn jetty:run ? And how to modify them? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send em

[Lift] Re: Mailer not calling: def host = hostFunc()

2009-05-15 Thread Scalanewbie
Thanks for the links. Seems like he´s not using the hostFunc. On May 15, 4:48 pm, Timothy Perrett wrote: > You might find this useful:http://is.gd/Aa41- personally I've not done > anything with the mailing support, but that's probably the most detailed > tutorial out there about email within lif

[Lift] Re: lift-webkit src not on github

2009-05-15 Thread David Bernard
no, it just mean that the lift directory was not renamed lift-webkit (history raison). On Fri, May 15, 2009 at 16:52, glenn wrote: > > Yes, I see it under lift. Does this mean the lift-webkit jar is going > away? > > glenn... > > On May 15, 5:39 am, David Bernard wrote: > > in the subdir lift (

[Lift] Re: lift-webkit src not on github

2009-05-15 Thread glenn
Yes, I see it under lift. Does this mean the lift-webkit jar is going away? glenn... On May 15, 5:39 am, David Bernard wrote: > in the subdir lift (and not lift-webkit) > > http://github.com/dpp/liftweb/tree/501dc7c63306b0306ed0a1abd0537cfe3e... > > On Fri, May 15, 2009 at 14:26, Timothy Perret

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

2009-05-15 Thread glenn
David, Yes, your EarlyAccess Loc did the trick. Thank you for all your help. Glenn... On May 15, 6:54 am, David Pollak wrote: > Glenn, > > My original design was a bad one... I was mixing access control and early > responses... I've split the concept of access control (which stays the way > it

[Lift] Re: Mailer not calling: def host = hostFunc()

2009-05-15 Thread Timothy Perrett
You might find this useful: http://is.gd/Aa41 - personally I've not done anything with the mailing support, but that's probably the most detailed tutorial out there about email within lift. Cheers, Tim On 15/05/2009 15:29, "Scalanewbie" wrote: > > Is set a custom function to resolve the hos

[Lift] Re: rlambda lift project updated

2009-05-15 Thread David Bernard
On Thu, May 14, 2009 at 21:41, Meredith Gregory wrote: > Lifted, > > i've added support to the rlambda lift > projecttaking it within range of being a > candidate DSL-archetype. At this point it > is possible simply to supply a .cf file in the src/main/bnfc dir

[Lift] Mailer not calling: def host = hostFunc()

2009-05-15 Thread Scalanewbie
Is set a custom function to resolve the host but it seems like is never gets called. I also couldnt find a place where the "host" variable was used. Is it completly based on the System.properties in the moment? --~--~-~--~~~---~--~~ You received this message becaus

[Lift] Re: Schedule for 1.1

2009-05-15 Thread Timothy Perrett
The only reason I suggested m1 was because of stuff like that silly JsCmd problem I had... On 15/05/2009 14:36, "David Pollak" wrote: > > > On Thu, May 14, 2009 at 8:29 PM, Heiko Seeberger > wrote: >> Hi, >> >> I am about to use Lift for a new project and I wonder whether I should use >> 1

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

2009-05-15 Thread David Pollak
Glenn, My original design was a bad one... I was mixing access control and early responses... I've split the concept of access control (which stays the way it is) and sending an early response (rather than going through the whole rendering pipeline). With the latest spin of Lift, try putting this

[Lift] Re: Schedule for 1.1

2009-05-15 Thread David Pollak
On Thu, May 14, 2009 at 8:29 PM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Hi, > I am about to use Lift for a new project and I wonder whether I should use > 1.0 or go for 1.1. > I live on 1-1-SNAPSHOT and have not had problems. > Any ideas when 1.1 will be released? > We're t

[Lift] Re: lift-webkit src not on github

2009-05-15 Thread David Bernard
in the subdir lift (and not lift-webkit) http://github.com/dpp/liftweb/tree/501dc7c63306b0306ed0a1abd0537cfe3ed86176/lift On Fri, May 15, 2009 at 14:26, Timothy Perrett wrote: > > > Eh?! I hope its still on github or we lost a lot of work ;-) > > http://github.com/dpp/liftweb/tree/master > > Che

[Lift] Re: lift-webkit src not on github

2009-05-15 Thread Timothy Perrett
Eh?! I hope its still on github or we lost a lot of work ;-) http://github.com/dpp/liftweb/tree/master Cheers, Tim On 15/05/2009 09:10, "glenn" wrote: > > I was looking for the latest src for lift-webkit and it's not > available on github. Where can I get hold of it? > > > > > --~--

[Lift] Re: Maven, Lift and Eclipse problem

2009-05-15 Thread wapgui
Hi, do you use the JavaRebell plugin? I had the same problem because I forget to set in pom.xml the scanIntervalSeconds to 0 at the jetty plugin section. Cheers Torsten On May 14, 4:42 pm, glenn wrote: > I'm having trouble with continuous build in Eclipse, using maven to > build and run. This

[Lift] Snippets and inheritance question...

2009-05-15 Thread ivan
I have a snippet: class Naselja extends SimpleSifarnik[Naselje](new Naselje) { } that used to have a method that displayed some links on the page. Then I decided to move that snippet to SimpleSifarnik base class and it doesn't work any more. I can see this in the log: WARN - Snippet Failure: Sn

[Lift] Snippets and inheritance question...

2009-05-15 Thread ivan
I have a snippet: class Naselja extends SimpleSifarnik[Naselje](new Naselje) { } that used to have a method that displayed some links on the page. Then I decided to move that snippet to SimpleSifarnik base class and it doesn't work any more. I can see this in the log: WARN - Snippet Failure: Sn

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

2009-05-15 Thread James Strachan
2009/5/14 David Pollak : > > > On Thu, May 14, 2009 at 12:55 AM, James Strachan > wrote: >> >> 2009/5/13 David Pollak : >> > Please see: >> > >> > S.render(NodeSeq, HttpServletRequest): NodeSeq >> >> Awesome - huge thanks! :) >> >> I was just about to post a patch I'd figured out to implement thi

[Lift] lift-webkit src not on github

2009-05-15 Thread glenn
I was looking for the latest src for lift-webkit and it's not available on github. Where can I get hold of it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift

[Lift] Menus active/inactive with/without redirect

2009-05-15 Thread denew
A few days new to Lift, but stumbling along ok. A small issue (I hope this abbrv. code is sufficient): ... Menu(Loc("specials", ("content" :: "specials" :: Nil) -> true, "Specials")) :: ... case RewriteRequest(ParsePath("content" :: "specials" :: page :: Nil, _, _,_), _, _) => Re

[Lift] User's Menu items not rendering

2009-05-15 Thread KP
Hey all. Forgive me if this is a laughably simple problem (I'm new to Lift), but I've spent a while trying to figure it out. When I click on any of the links from the User's sitemap, Firefox (Safari, also) says various and divers unhappy things. "Login" and "lost password" tell me: Thi

[Lift] Re: Fwd: New basketball court(s) near you: 'Mosswood Park'...

2009-05-15 Thread g-man
A little off-topic perhaps, but have you read how 37signals is using erlang for a little piece of the puzzle?... http://www.37signals.com/svn/posts/1728-nuts-bolts-campfire- loves-erlang">Campfire loves Erlang Looks like scala's Actors may play a similar role for us! On May 14, 8:40 am, David

[Lift] Re: rlambda lift project updated

2009-05-15 Thread Timothy Perrett
Greg, I find this very interesting. How can I help you out here? I can certainly review your lift code, not so sure about some of the crazy conceptual stuff though! Cheers, Tim On May 14, 8:41 pm, Meredith Gregory wrote: > Lifted, > > i've added support to the rlambda lift > project

[Lift] Re: Lift and interoperability

2009-05-15 Thread Timothy Perrett
Hey Greg, lol, indeed I did write that all on my iphone (hence some crappy spelling mistakes!) Cheers, Tim On May 15, 11:53 am, Meredith Gregory wrote: > Tim, > > i'm really impressed -- you typed all that on you iPhone? > > Best wishes, > > --greg > > On Thu, May 14, 2009 at 4:48 PM, Timothy P

[Lift] Re: Lift and interoperability

2009-05-15 Thread Meredith Gregory
Tim, i'm really impressed -- you typed all that on you iPhone? Best wishes, --greg On Thu, May 14, 2009 at 4:48 PM, Timothy Perrett wrote: > > Glenn, > > I read with interest your mail below - to clarify, you've not been > "hammered" by anyone... The lift comunity is a welcoming one and at no

[Lift] Re: Schedule for 1.1

2009-05-15 Thread Timothy Perrett
Heiko, I'd use 1.1-m1 - it's a nice balence between latest features and stability. Hope that helps. Cheers Tim Sent from my iPhone On 15 May 2009, at 04:29, Heiko Seeberger wrote: > Hi, > > I am about to use Lift for a new project and I wonder whether I > should use 1.0 or go for 1.1. >