[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. Add a User The app builds and runs in Jetty, but when I go to the users/index page I get: Add a User Not sure what happened

[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 { text match {

[Lift] Re: Site map question

2008-09-11 Thread Charles F. Munat
Yeah, I've been tracking that down. I rewrote the Menu snippet (copied and pasted the default one and then made changes) to do some other things I wanted. I see that it's just a matter of changing the item method to do what I want it to do. Very cool. Thanks. I'm beginning to understand what t

[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 to put the link on the > page, then the link url comes out as

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

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

2008-09-11 Thread z_axis
thanks ! It is a good demonstration of Lift -- z_axis 2008-09-12 - 发件人:David Pollak 发送日期:2008-09-11 15:08:10 收件人:liftweb; Scala list 抄送: 主题:[Lift] A Lift and Scala presentation at SAP TechEd

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

[Lift] Site map question

2008-09-11 Thread Charles F. Munat
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 to put the link on the page, then the link url comes out as about/index rather than just about/. Is ther

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

2008-09-11 Thread Marc Boschma
My current understanding is that Lift is a snippet rather than page oriented framework. SiteMap focuses on access or not to page level. Thinking about this overnight it sounds like we need some way to inform a snippet of who is trying to interact with it and what rights they have is needed.

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

2008-09-11 Thread David Pollak
Kris Nuttycombe wrote: > Wow... Thank you! I've been involved with some responsive open-source > communities before, but I think this sets a record for me! > :-) Living on trunk-head has its advantages. > Kris > > On Thu, Sep 11, 2008 at 4:10 PM, David Pollak <[EMAIL PROTECTED]> wrote: >

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

2008-09-11 Thread Kris Nuttycombe
Wow... Thank you! I've been involved with some responsive open-source communities before, but I think this sets a record for me! Kris On Thu, Sep 11, 2008 at 4:10 PM, David Pollak <[EMAIL PROTECTED]> wrote: > > > > > will do the right thing (give Hudson about 2 hours to get the code into th

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

2008-09-11 Thread David Pollak
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 in the body of a snippet... >> e.g.: >> >> >> >>

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

[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

[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

[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 in the body of a snippet... > e.g.: > > > > That is indeed essentially what I was trying to do; in the application I'm building I have a number of snippets that will contain common chunks

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

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

[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 David Pollak
Kris, I don't think I understand your question. Lift does do things differently than Rails as it evaluates outside in rather than inside out. Thus: Some random text If MySnippet chooses "this" or "that"... a CometComponent will only be invoked if MySnippet returns XHTML

[Lift] bind() and lift:embed

2008-09-11 Thread Kris Nuttycombe
It appears that if I use 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 might be somehow analogous to Rails's

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

2008-09-11 Thread David Pollak
Marius wrote: > BRAVO ! > Thanks... and now you have a face and a voice with the email. :-) Plus 3,000+ SAP developers saw the Lift logo on my T-Shirt. :-) :-) > On Sep 12, 12:01 am, David Pollak <[EMAIL PROTECTED]> wrote: > >> http://www.youtube.com/watch?v=JFJMpFkpoQU >> >> Marius Danci

[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 :) > >

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

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

[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

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

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

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

2008-09-11 Thread Charles F. Munat
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 has some capability for this, but haven't looked into it yet. 2

[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: 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 havi

[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: http

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

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

[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: 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 receive

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

2008-09-11 Thread Viktor Klang
Awesome Dave :) Hope you had a great time! Cheers, Vik On Thu, Sep 11, 2008 at 9:07 AM, David Pollak <[EMAIL PROTECTED] > wrote: > Folks, > > I've been at SAP TechEd (the geek fest that SAP throws every year to get > developers in the SAP ecosystem together) this week chatting with folks > abou

[Lift] A Lift and Scala presentation at SAP TechEd

2008-09-11 Thread David Pollak
Folks, I've been at SAP TechEd (the geek fest that SAP throws every year to get developers in the SAP ecosystem together) this week chatting with folks about Scala and Lift. I gave a presentation tonight to about 40 RIA (Rich Internet App) developers about Lift and Scala. In 30 minutes I created

[Lift] Re: Template questions

2008-09-11 Thread Jorge Ortiz
I believe scala.xml._ has an implicit conversion from Seq[Node] to NodeSeq. If he were using a Scala Seq it would "just work". --j On Wed, Sep 10, 2008 at 11:23 PM, Marius <[EMAIL PROTECTED]> wrote: > > > > On Sep 11, 1:11 am, "Jorge Ortiz" <[EMAIL PROTECTED]> wrote: >> Group won't work, as it t