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
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 {
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
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
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
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
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
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
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.
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:
>
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
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.:
>>
>>
>>
>>
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.
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
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
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
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
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,
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
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
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
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
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 :)
>
>
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?
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
39 matches
Mail list logo