[Lift] directives versus snippets

2009-04-10 Thread bob
comments? thanks, bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr

[Lift] Re: directives versus snippets

2009-04-10 Thread bob
jorgeortiz85 the fact that they aren't is just legacy cruft 11:16 jorgeortiz85 lift:msgs does 11:16 jorgeortiz85 lift:bind is hard-coded On Apr 10, 11:26 am, David Pollak wrote: > Bob, > They are actually the same thing.  Lift's processing directives are simply > built-in snippet

[Lift] Re: directives versus snippets

2009-04-10 Thread bob
ecate because it's not the same thing. >  Please open a defect on this for me. http://liftweb.lighthouseapp.com/projects/26102/tickets/33-deprecate-liftbind > > > > > > > --j > > > On Fri, Apr 10, 2009 at 1:26 PM, David Pollak < > > feeder.of.the.be...@gmail.com> wrot

[Lift] Re: A Critique On Lift

2009-10-23 Thread bob
i believe that one of the best ways to learn a new programming language is to read software written in it when reading Scala code, I rarely say "i don't understand how that works" and when I do, there's usually a good explanation of it somewhere on the web. usually I find myself asking "where is

[Lift] Re: A Critique On Lift

2009-10-23 Thread bob
>I'll repeat: there are no operators in scala s/operators/methods-with-operator-like-names/ anywhere, here's a typical case: import some.library.package.foo._ val a = bar 42 val b = a ~!~ 3.14159 you can't easily tell that bar is being imported via foo._ . what is bar's return type? what does

[Lift] Re: A Critique On Lift

2009-10-24 Thread bob
why, it reformats your hard drive On Oct 23, 6:17 pm, Viktor Klang wrote: > But if you name your method: "ashiuahsdyasdasd" what does it do? > > > > > > On Fri, Oct 23, 2009 at 9:47 PM, bob wrote: > > > >I'll repeat: there are no operators in sc

[Lift] confusing error on missing bind

2009-10-24 Thread bob
ne 18 in the template, but in fact my error was in the code. second, the error would be more informative if it said something along the lines of: >. : Namespace prefix 'queries' on 'service' in template "index.html" was >not bound o

[Lift] Re: A Critique On Lift

2009-10-24 Thread bob
said, in rather a scornful tone, `it means just what I choose it to mean -- neither more nor less.' On Oct 24, 2:44 pm, Viktor Klang wrote: > On Sat, Oct 24, 2009 at 8:18 PM, bob wrote: > > > why, it reformats your hard drive > > oh snap > > > > > > >

[Lift] Re: A Critique On Lift

2009-10-24 Thread bob
is that for Scala or Perl? :) On Oct 24, 4:49 pm, Randinn wrote: > This may not be it, but you can at least print out this list :) > > http://jim-mcbeath.blogspot.com/2008/12/scala-operator-cheat-sheet.html > > On Oct 24, 6:47 am, bob wrote: > > > > > >I

[Lift] Re: confusing error on missing bind

2009-10-25 Thread bob
think I've seen those recently. > > Hmm. Perhaps I need to make sure I'm not doing development in > production mode myself. :) > > Kris > > > > On Sat, Oct 24, 2009 at 5:39 PM, bob wrote: > > > the following error was the result of a bug in my app: i h

[Lift] compatible versions

2009-10-26 Thread bob
is there a list of Lift-compatible versions of software? i'm still struggling with actual (from maven) or rumored (from private conversations) incompatibilities among scala, lift, IntelliJ, IntelliJ scala plugin, Databinder Dispatch. and the best the maven plug-in seems to be able do is tell me ab

[Lift] Re: compatible versions

2009-10-26 Thread bob
t your library for what version of Scala it uses. > > IntelliJ 8.1.x uses a 2.7.4-2.7.6 compatible version of Scala and will work > (as will NetBeans) for Lift-related development. > > On Mon, Oct 26, 2009 at 8:14 AM, bob wrote: > > > is there a list of Lift-compatible vers

[Lift] Re: compatible versions

2009-10-26 Thread bob
from http://www.scala-lang.org/downloads/ Current Stable Release: "The current version of Scala is 2.7.6" if Lift doesnt support 2.7.6, then maybe the Lift POM needs to say so. or at least the Downloads page should warn. On Oct 26, 12:12 pm, David Pollak wrote: >Lift is always on the most rec

[Lift] Re: compatible versions

2009-10-26 Thread bob
heers, Tim > > On 26 Oct 2009, at 16:05, bob wrote: > > > > > > > Dispatch requires 2.7.6, but Josh Suereth told me not to use 2.7.6 > > with Lifthttp://groups.google.com/group/maven-and-scala/msg/0f0574b08d72 > > > this is why i'm suggesting there nee

[Lift] generating columns

2009-10-26 Thread bob
"Listing 2.7: The Embedded Expense Table" in the LiftBook.pdf, page 19, has a great example of generating individual rows of a table. But lets say you wanted to generate the columns in the table, as well as the rows. is there a good example of how to do this in a template+snippet?

[Lift] Re: generating columns

2009-10-26 Thread bob
PS: I know I can generate the TABLE, THEAD, TBODY, TR and TD elements directly in my snippet (although SHtml doesnt seems to be geared towards FORMs, rather than HTML generation like htmlKona) On Oct 26, 4:30 pm, bob wrote: > "Listing 2.7: The Embedded Expense Table" in the LiftB

[Lift] Re: generating columns

2009-10-26 Thread bob
of eachfield repetitiously for each field, and concatenating (via > flatMap) the outputs of bind. > > - > > bob wrote: > > PS: I know I can generate the TABLE, THEAD, TBODY, TR and TD elements > directly in my snippet (although SHtml

[Lift] Re: generating columns

2009-10-26 Thread bob
that's nice. thank you On Oct 26, 6:04 pm, Jeppe Nejsum Madsen wrote: > bob writes: > > "Listing 2.7: The Embedded Expense Table" in the LiftBook.pdf, page > > 19, has a great example of generating individual rows of a table. > > > But lets say you want

[Lift] Re: RSS Library

2009-10-30 Thread bob
binder.net/dispatch/About if you want real RSS code, you can use the Java ROME library, which i have used very successfully in java projects: https://rome.dev.java.net/ brgds, bob On Oct 30, 10:26 am, GA wrote: > Hello guys, > > is there any standard RSS Library to parse RSS and Atom fee

[Lift] Re: Error with the SHtml.select method ?

2009-10-30 Thread bob
interesting! have you tried /* Log.infoF _ */ ? On Oct 30, 10:31 am, "Neil.Lv" wrote: > Hi all, > >   There is a question that about the SHtml.select method. > > ###  This code will be error ? >   def handleBook(id: String) { >      book.type_id(id.toLong) >       //Log.infoF _ >    } > >    bin

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-30 Thread bob
i had call to do something similar, and here's the code. i'm sure someone smarter could replace the for comprehension with filter().map () def getPaths(prefix : String) : Set[String] = { // Resource Paths as an Array[Object] var jpaths = S.servletSession.open_!.getServletContext.getReso

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-30 Thread bob
when moved the file from /resources/foo.xml to /foo.xml (in the same path as index.html), it now finds it. i guess getResourcePaths() and getResourceAsStream() don't necessarily look in the same place. On Oct 30, 1:58 pm, bob wrote: > i had call to do something similar, and here&#x

[Lift] Does memcache fit in here somewhere?

2009-01-06 Thread Bob Eastbrook
practice to put memcache in front of your database server. It's pretty much a "cache everything" philosophy. Is this not encouraged with Lift? I assume there are more caching choices in the Java world such as ehcache, but I do

[Lift] Re: Does memcache fit in here somewhere?

2009-01-07 Thread Bob Eastbrook
uld be pretty interesting to most PHP developers I know. Most of our conversations deal less with PHP and more with memcache and MySQL replication. Bob On Jan 7, 5:22 am, TylerWeir wrote: > Hey Bob, less about memcached and more about Lift in general, take a > look at the book, Marius,

[Lift] How do I add sitemap.xml and robots.txt

2010-02-27 Thread Bob Folkerts
I'm trying to add robots.txt and a sitemap.xml to a web site. My Boot.scala has a snippet that looks like val entries = Menu(Loc("Home", List("index"), "Home")) :: galleryMenu :: servingYouMenu :: socialSitesMenu :: aboutUsMenu :: Menu(Loc("ContactUs"

[Lift] Re: How do I add sitemap.xml and robots.txt

2010-02-28 Thread Bob Folkerts
Marius, thanks for the reply. This is exactly what I needed & I'm off and running. Thanks again :) -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send emai

[Lift] @Req for PermRedirectResponse after a site redesign

2010-03-08 Thread Bob Folkerts
I am switching my wife's hosted photography site to Liftweb, largely as a reason to learn Lift. Part of the conversion is moving the old directory structure to a cleaner structure. I wanted to redirect all of the old URI's to the modern equivalent. I read Chapter 13 of the Lift book and got the