[Lift] Re: A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread Tim Perrett
This is very cool! Its also great for lift as a brand as generally speaking, anything that is associated with SAP is considered 'enterprise' by those in the business world which hopefully should aid lift's adoption :-) Cheers Tim --~--~-~--~~~---~--~~ You

[Lift] Re: RBAC in Lift

2008-09-11 Thread Oliver Lambert
I'm also interested in authorization and authentication. If your going to use a application server like Glassfish, JAAS is possibility. However, I'm trying to decide whether to use Acegi (without Spring) or look at something like JSecurity. Any thoughts as to which would be a better fit with

[Lift] Re: RBAC in Lift

2008-09-11 Thread Charles F. Munat
I wish I could tell you. I took a look at Acegi when I was playing around with Spring three years ago, but haven't been back. I am a Ruby programmer, not a Java programmer, so I was planning to roll my own. That said, it might be a good idea to check these out. I keep forgetting that Lift

[Lift] Re: RBAC in Lift

2008-09-11 Thread Kris Nuttycombe
I'm going to be dealing with these sorts problems in the next couple of weeks, so I'm also interested in any experiences either of you have (and will be sure to share my own once I get there.) My initial plan had been to try to integrate Acegi as well; I'll let you know how it goes when I get to

[Lift] Back in Lift-land on Monday

2008-09-11 Thread David Pollak
Folks, I'm going to spend Monday going through all the various emails that I haven't had a chance to answer including the Access Control and Menu threads. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me:

[Lift] Re: RBAC in Lift

2008-09-11 Thread Tim Perrett
Interesting thread - my understanding of Acegi is that it can be implemented as a servlet filter (i guess in a similar way to lift), but it has some dependencies on the spring framework itself? Its been a *long* time since i did anything with spring! Im no JSecurity or Acegi expert, but just

[Lift] Re: [scala] A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread Marius Danciu
Excellent Dave and congrats! Can't wait to see the videos ... hopefully this time the videos quality is better so I can actually see you :) Br's, Marius On Thu, Sep 11, 2008 at 10:07 AM, David Pollak [EMAIL PROTECTED] wrote: Folks, I've been at SAP TechEd (the geek fest that SAP throws

[Lift] Re: Template questions

2008-09-11 Thread Kris Nuttycombe
Much less so, thank you! I guess I didn't walk far enough back up the inheritance hierarchy to notice toList, toSeq etc. Kris On Wed, Sep 10, 2008 at 8:15 PM, Jorge Ortiz [EMAIL PROTECTED] wrote: If you're using your custom implicit for CollectionWrapper, you can just call toList on the

[Lift] Re: Template questions

2008-09-11 Thread Kris Nuttycombe
I think I found the cleaner method you were talking about; it's in 0.10: bind(item, chooseTemplate(order,items,xhtml), ...) which internally does almost exactly what your code is doing. There are also a couple of versions simply named template that return a Can[NodeSeq] instead of NodeSeq.Empty

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-11 Thread Marius
On Sep 11, 10:27 pm, Charles F. Munat [EMAIL PROTECTED] wrote: The websites I build tend to have the following features in common: 1. Some method of authentication. I mostly roll my own, but as I sometimes have one set of users using multiple sites, I'm curious about OpenID. I know that

[Lift] Re: [scala] A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread David Pollak
http://www.youtube.com/watch?v=JFJMpFkpoQU Marius Danciu wrote: Excellent Dave and congrats! Can't wait to see the videos ... hopefully this time the videos quality is better so I can actually see you :) Br's, Marius On Thu, Sep 11, 2008 at 10:07 AM, David Pollak [EMAIL PROTECTED]

[Lift] Re: Template questions

2008-09-11 Thread Marius
On Sep 11, 11:52 pm, Kris Nuttycombe [EMAIL PROTECTED] wrote: I think I found the cleaner method you were talking about; it's in 0.10: bind(item, chooseTemplate(order,items,xhtml), ...) which internally does almost exactly what your code is doing. Right. Pretty handy huh? There are also

[Lift] Re: [scala] A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread Marius
BRAVO ! On Sep 12, 12:01 am, David Pollak [EMAIL PROTECTED] wrote: http://www.youtube.com/watch?v=JFJMpFkpoQU Marius Danciu wrote: Excellent Dave and congrats! Can't wait to see the videos ... hopefully this time the videos quality is better so I can actually see you :) Br's,

[Lift] bind() and lift:embed

2008-09-11 Thread Kris Nuttycombe
It appears that if I use lift:embed .../ to embed a template, bindings that I have declared that would be interpreted properly in the embedding template are not propagated to the embedee. Is this by design? How can I facilitate this sort of template reuse? I had hoped that lift:embed might be

[Lift] Re: bind() and lift:embed

2008-09-11 Thread Jorge Ortiz
There's some parallels between Lift's templates and lazy evaluation. In the examples below, the code inside the snippets is lazy, it doesn't get evaluated until it is needed. Maybe what we need is a way to programmatically force evaluation of some template-code? Then if a snippet has an embed

[Lift] Re: bind() and lift:embed

2008-09-11 Thread Jorge Ortiz
Also nice would be ways to programmatically access template features, e.g. embed(template) or snippet(Class:method), etc --j On Thu, Sep 11, 2008 at 2:55 PM, Jorge Ortiz [EMAIL PROTECTED] wrote: There's some parallels between Lift's templates and lazy evaluation. In the examples below, the

[Lift] Re: A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread TylerWeir
Well done Dave! On Sep 11, 5:15 pm, Marius [EMAIL PROTECTED] wrote: BRAVO ! On Sep 12, 12:01 am, David Pollak [EMAIL PROTECTED] wrote: http://www.youtube.com/watch?v=JFJMpFkpoQU Marius Danciu wrote: Excellent Dave and congrats! Can't wait to see the videos ... hopefully this time

[Lift] Re: bind() and lift:embed

2008-09-11 Thread Kris Nuttycombe
On Thu, Sep 11, 2008 at 3:49 PM, David Pollak [EMAIL PROTECTED] wrote: If you are trying to embed a lift:embed .../ in the body of a snippet... e.g.: lift:MySnippet lift:embed .../ /lift:MySnippet That is indeed essentially what I was trying to do; in the application I'm building I have

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
You mean like the eager_eval=true flag on snippets that I added 20 seconds ago. :-) Jorge Ortiz wrote: There's some parallels between Lift's templates and lazy evaluation. In the examples below, the code inside the snippets is lazy, it doesn't get evaluated until it is needed. Maybe what we

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
Jorge Ortiz wrote: Also nice would be ways to programmatically access template features, e.g. embed(template) or snippet(Class:method), etc Some of these are available on LiftSession, but it might be cool to add this stuff to S to make it easer to call... wanna add that code? --j On

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-11 Thread Charles F. Munat
Marius wrote: Also, I like the user-created pages to be accessible by URL (i.e. without a query string) with a readable URL, so: mysite.com/some_page Not: mysite.com/p123456, mysite.com?page=some_page, or mysite.com?page=123456 What is the difference between mysite.com/some_page and

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
lift:MySnippet eager_eval=true lift:embed... /lift:MySnippet will do the right thing (give Hudson about 2 hours to get the code into the Lift Maven respository). Kris Nuttycombe wrote: On Thu, Sep 11, 2008 at 3:49 PM, David Pollak [EMAIL PROTECTED] wrote: If you are trying to embed a

[Lift] Re: bind() and lift:embed

2008-09-11 Thread Kris Nuttycombe
Very cool, this works exactly as I had hoped. I'll put together a bit of documentation together on the wiki this evening. Thanks again, Kris On Thu, Sep 11, 2008 at 4:52 PM, David Pollak [EMAIL PROTECTED] wrote: Kris Nuttycombe wrote: Wow... Thank you! I've been involved with some

[Lift] Re: bind() and lift:embed

2008-09-11 Thread David Pollak
Kris Nuttycombe wrote: Very cool, this works exactly as I had hoped. I'll put together a bit of documentation together on the wiki this evening. Great. Documentation is good. Thanks again, You are welcome. Kris On Thu, Sep 11, 2008 at 4:52 PM, David Pollak [EMAIL PROTECTED]

[Lift] Re: Site map question

2008-09-11 Thread David Pollak
Charles F. Munat wrote: I'm trying to access a page about/index.html using the url about/ If I add it to the site map: Menu(Loc(about, List(about, index), About)) I can access it at about/ but if I use lift:Menu.item name=about / to put the link on the page, then the link url comes

[Lift] Re: Site map question

2008-09-11 Thread Charles F. Munat
This can probably be done better, but it seems to work: def buildLink(name: String, text: NodeSeq): NodeSeq = for (loc - SiteMap.findAndTestLoc(name).toList; link - Full(loc.link.buildUri.filter(_ != index).mkString(/, /, ))) yield a href={link}{ text match {

[Lift] Snippet question

2008-09-11 Thread Charles F. Munat
I copied the Misc snippet over from the example, changed the package and import statements to fit my app, and created a users/index page. lift:surround with=default at=content a href='/simple/add'Add a User/a table width=90% lift:Misc.users / /table /lift:surround The app builds