[Lift] Re: Getting the "file" out of a Put Request..

2009-02-18 Thread David Pollak
On Wed, Feb 18, 2009 at 1:44 AM, Tim Perrett wrote: > > > > Out of interest, can you elaborate on the bug? Req lazily builds a bunch of stuff the lazy parameter building is used during toString toString was being called after the request had been satisfied the underlying request.getContentTy

[Lift] Re: uh, oh... can't find classes

2009-02-18 Thread David Pollak
On Wed, Feb 18, 2009 at 6:56 AM, Tim Perrett wrote: > > Agreed, that sounds pukka – I guess its dpp or marius who needs to > make this call as we have a code freeze on for "new features" This isn't going to happen for 1.0, but it's a good idea for 1.1. > > > On Feb 18, 2:39 pm, Viktor Klang

[Lift] Re: Regression!

2009-02-18 Thread David Pollak
Greg, I haven't had a chance to look at your code, but are you testing in Firefox? Firefox has a very, very, very nasty bug related to XHTML namepsaces that's further poked by jQuery. Marius is working on a fix and it should be out tomorrow. Please try Safari or Chrome for testing and see if the

[Lift] Re: Regression!

2009-02-18 Thread David Pollak
est wishes, > > --greg > > > On Wed, Feb 18, 2009 at 2:19 PM, Meredith Gregory < > lgreg.mered...@gmail.com> wrote: > >> David, >> >> i'm testing in FF and Safari. i get the very same behavior. >> >> Best wishes, >> >> --gre

[Lift] Re: Regression!

2009-02-18 Thread David Pollak
, > > --greg > > > On Wed, Feb 18, 2009 at 2:50 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Greg, >> >> You experienced a progression, not a regression. :-) >> >> I tightened up the Lift security model a little bit such tha

[Lift] Static pages vs. Lift-served pages

2009-02-18 Thread David Pollak
Folks, There may be differences between statically served pages and Lift served pages. Lift serves pages with application/xhtml+xml Content-Type. This puts browsers like Firefox into a standards mode (rather than the default "quirks" or "tag soup" mode.) The same page may look different and/or b

[Lift] Re: Truncate?

2009-02-18 Thread David Pollak
We don't have one. Please write one up and add it to Helpers for 1.1. On Wed, Feb 18, 2009 at 4:46 PM, Tim Perrett wrote: > > Guys, > > Just a quick one... looking for a similar method to: > > http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001711 > > I know i could knock

[Lift] Re: Weird Mapper type error

2009-02-19 Thread David Pollak
On Thu, Feb 19, 2009 at 6:49 AM, Derek Chen-Becker wrote: > Shouldn't it be > > override def fieldOrder: List[BaseOwnedMappedField[Transaction]] = txtime > :: amount :: summary :: Nil > > I did try that and it gave the same error. In any case, List(...) works. This is because the :: (cons) opera

[Lift] Re: new JDBC support in lift-mapper

2009-02-19 Thread David Pollak
On Thu, Feb 19, 2009 at 10:39 AM, Tim Perrett wrote: > > Just to update this thread - Derek has been a super star and fixed the > schemifier so now it doesn't bone on application boot. Result. > > Thanks Derek. > Rock on Derek! > > Tim > > On Feb 12, 8:02 pm, Tim Perrett wrote: > > Hey Al, >

[Lift] A round of thanks to Marius for better GC

2009-02-19 Thread David Pollak
Folks, Marius made some patches to Lift's GC support today. He removed the lift:gc tag so we don't trip over the Firefox namespace issue. I've done some initial testing (and made a few minor updates). Please do a mvn -U clean install and let us know how well the new code works. Please also do t

[Lift] Re: A round of thanks to Marius for better GC

2009-02-20 Thread David Pollak
ponent via jQuery, but this would trigger the problem. Given that this is a low-likelihood scenario and there is a work-around, I'm less concerned about it. > > > --j > > On Thu, Feb 19, 2009 at 6:29 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > &g

[Lift] Re: A round of thanks to Marius for better GC

2009-02-20 Thread David Pollak
;s nifty idea ! > > > > > On Fri, Feb 20, 2009 at 4:18 PM, Derek Chen-Becker < > dchenbec...@gmail.com>wrote: > > > > > > > > > Great work! I ran into the issue yesterday and today with an update it > > > seems to be working fine. > > > >

[Lift] Re: populate DB table upon creation

2009-02-20 Thread David Pollak
In your meta mapper, if you override dbAddTable to return Full[() => Unit], that function will be called after all the modifications have been made to the tables, if your table was added as part of Schemifier's changes. On Fri, Feb 20, 2009 at 9:18 AM, DavidV wrote: > > I wondering how to popula

[Lift] Re: I got an error "erroneous reference" when calling validate method of Mapper trait

2009-02-21 Thread David Pollak
Howdy, I think the problem is that you're mixing CRUDify into your Mapper class definition, rather than the MetaMapper object definition. Try: class Category extends KeyedMapper[Long,Category] { ... } object CategoryMeta extends Category with KeyedMetaMapper [Long,Category] with CRUDify[Long,Cat

[Lift] Re: Error while going through the starting guide: prefix not bound to namespace

2009-02-21 Thread David Pollak
Haim, Please post your Boot.scala file as well. Thanks, David On Sat, Feb 21, 2009 at 3:21 PM, babysnakes wrote: > > Hi > > I'm trying to run the starting guide with version 0.10. When I got to > the ToDo section (2.11), I got the error above. The page renders all > the tags instead of replac

[Lift] Re: Error while going through the starting guide: prefix not bound to namespace

2009-02-22 Thread David Pollak
On Sun, Feb 22, 2009 at 1:20 AM, babysnakes wrote: > > Phew, that was hard It certainly was a tricky problem. In 1.1, I'll put a warning on the console if a situation like this is encountered. Thanks! David > > > I've found the problem. In the TD.scala class I had: > def add(form: NodeSeq)

[Lift] Re: ORM Framework

2009-02-22 Thread David Pollak
Paulo, Lift's Mapper depends on the HTTP framework. I would suggest using JPA as a stand-alone alternative. Thanks, David On Sun, Feb 22, 2009 at 11:04 AM, Paulo Cheque wrote: > > Like GORM in Grails, it is possible to use the ORM framework of Lift > separately?? There is any tutorial or docum

[Lift] Re: ORM Framework

2009-02-22 Thread David Pollak
f a JPA solution (caching, etc.) So, no, there's no plan to remove the dependency between mapper and webkit. > > > Thanks in advance again > []s > Paulo > > > > On Sun, Feb 22, 2009 at 8:24 PM, David Pollak > wrote: > > Paulo, > > Lift's Mappe

[Lift] Re: UPDATED jQuery to 1.3.2 (eom)

2009-02-22 Thread David Pollak
Tnx On Sun, Feb 22, 2009 at 4:19 PM, Jorge Ortiz wrote: > --j > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~-

[Lift] Re: occasional unresponsiveness after a long period of inactivity

2009-02-23 Thread David Pollak
Paul, This can result from a number of things: - The process that's running your web app gets swapped out on the server. If you're running on Linux, this is less likely to happen if you have enough RAM. I've seen Windows swamp processes out so it can run the screen saver. - Your

[Lift] Re: occasional unresponsiveness after a long period of inactivity

2009-02-23 Thread David Pollak
lication. > > It gives a bit of a feel of flakyness if you go to do something simple > and it doesn't work as intended so I thought it worth noting and will > keep a lookout to see if it happens often enough and regularly enough > that I can replicate it simply somehow. > --

[Lift] Re: occasional unresponsiveness after a long period of inactivity

2009-02-24 Thread David Pollak
s the issue. On a broader note, running any JVM code on a machine that is using significant amount of swap space is less than optimal. The JVM's garbage collector touches every page in a process at least onces, so in order to do a full GC, the whole process gets swapped in. > > ---Paul

[Lift] Re: occasional unresponsiveness after a long period of inactivity

2009-02-24 Thread David Pollak
for a long time. I have not seen any of the issues that you're describing. If you can post a reproduceable case, I'll be glad to look into it, but without data beyond "stuff taking a long time on my machine," I can't really offer you much more help. Thanks, David > ---P

[Lift] Re: Postgre DB connection issue

2009-02-25 Thread David Pollak
Amit, Is the JAR containing the com.p6spy.engine.spy.P6SpyDriver class in Tomcat's lib directory? Thanks, David On Wed, Feb 25, 2009 at 5:28 AM, Amit Kumar Verma wrote: > > Hi > all, > Boot.scala is costomised for jndi connection. Web.xml is also correct. > I am using apache-tomcat -6.0.10 and

[Lift] Re: Snippet issue

2009-02-25 Thread David Pollak
Amit, By default, by convention, Lift dispatches snippets based on looking up class names in the .snippet package. If you want to do custom snippet dispatch, you can do so by writing a DispatchSnippet: object MyDispatchSnippet extends DispatchSnippet { def dispatchIt = { case "doLogin" => d

[Lift] [ANN] Lift 1.0 is released

2009-02-26 Thread David Pollak
Two years ago, today, I launchedthe Lift Web Framework as an open source project. Wow... it's been a long and fun experience... and today the dozen plus Lift committers and the whole Lift communi

[Lift] Re: jetty dependency weirdness

2009-02-26 Thread David Pollak
Greg, Try mvn -o compile and see if that makes a difference. Thanks, David On Thu, Feb 26, 2009 at 3:35 PM, Meredith Gregory wrote: > Lifted, > i'm suddenly unable to build. Anyone else experiencing this particular > division of joy? > > Best wishes, > > --greg > > bash-3.2$ mvn compile > [INFO

[Lift] Re: jetty dependency weirdness

2009-02-26 Thread David Pollak
rly happen if all the repositories are not available. It caused "issues" for me yesterday when I was giving a Scala preso and didn't have network access. > > Best wishes, > > --greg > > On Thu, Feb 26, 2009 at 4:18 PM, David Pollak < > feeder.of.the.be.

[Lift] Re: Removing xmlns:lift="http://liftweb.net/" in rendered page

2009-02-27 Thread David Pollak
On Fri, Feb 27, 2009 at 6:08 AM, rossputin wrote: > > Hi. > > Sure, I understand it is required as the xml is processed, is there a > post process operation in the pipeline anywhere ? > Ross, Lift emits XHTML to the browser that contains tags with lift:xxx attributes to support the Comet servic

Re: Rif: [Lift] Using Traits in complex domain models

2009-02-27 Thread David Pollak
Dude, You are amazing... I puzzled over this for 30 minutes yesterday and couldn't get it right! Thanks! David On Fri, Feb 27, 2009 at 6:47 AM, wrote: > > Here is the solution to the complex domain modeling problem with Mapper > > importnet.liftweb.mapper._ > > traitPositionextendsBaseLongKey

[Lift] Open source password strength analyzer?

2009-02-27 Thread David Pollak
Folks, Does anyone know of any open source password strength analyzers? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--

[Lift] Re: Open source password strength analyzer?

2009-02-27 Thread David Pollak
hiras.googlepages.com/PasswordStrengthMeter.html > > Download: http://phiras.googlepages.com/PasswordStrengthMeter.zip > > Ty > On Feb 27, 1:48 pm, David Pollak > wrote: > > Folks, > > > > Does anyone know of any open source password strength analyzers? > > > >

[Lift] Re: Open source password strength analyzer?

2009-02-27 Thread David Pollak
On Fri, Feb 27, 2009 at 11:30 AM, Alex Cruise wrote: > > On 02/27/2009 10:48 AM, David Pollak wrote: > > Does anyone know of any open source password strength analyzers? > The library most Linux distros use is cracklib. I found a Java port > (http://sourceforge.net/projects

[Lift] Re: OS X lift installer

2009-02-27 Thread David Pollak
Jon, I didn't write the installer (perhaps Tim will chime in), but the challenge to using Lift on Mac OS X is that OS X installs Maven 2.0.8 by default and 2.0.9 is required for the Maven-Scala plugin and Lift. I believe that the installer simply installs Maven 2.0.9 and makes sure that this is t

[Lift] Re: OS X lift installer

2009-02-27 Thread David Pollak
On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock wrote: > > thanks. based on your above mention that maven is web aware and some > comment I read from David Pollak that his demo didn't go so well when > he lacked an internet connection, is it the case that I have to always > hav

[Lift] Re: Removing xmlns:lift="http://liftweb.net/" in rendered page

2009-02-27 Thread David Pollak
ny name spaces declared but not present. > > Whether or not the "lift" name space is treated specially or not is > an implementation issue... > > It should also be possible to raise an error if an element exists in a XML > result that has a name space that shouldn't b

[Lift] Re: Configurable JQuery Version?

2009-02-28 Thread David Pollak
On Sat, Feb 28, 2009 at 6:00 AM, Tim Perrett wrote: > > Guys, > > I have a lift app that since our 1.3.2 update has broken a bunch of > stuff. Id imagine im not the only person in this pickle and wonder if > there is a way we could possibly make JQuery a configurable version? > > Perhaps LiftRules

[Lift] Re: OS X lift installer

2009-02-28 Thread David Pollak
On Sat, Feb 28, 2009 at 2:19 AM, Josh Suereth wrote: > > > On Fri, Feb 27, 2009 at 5:14 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> >> On Fri, Feb 27, 2009 at 2:03 PM, Jon Hancock wrote: >> >>> >>> thanks

[Lift] Re: OS X lift installer

2009-02-28 Thread David Pollak
> let me know if it continues so I can open many JIRAs! > Yep. Worked. Thanks! > > -Josh > > On Sat, Feb 28, 2009 at 11:14 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> >> On Sat, Feb 28, 2009 at 2:19 AM, Josh Suereth &g

[Lift] Re: Lift newbie - Horizontal scaling of Lift servers

2009-02-28 Thread David Pollak
On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan wrote: > > Hi, > > I'm looking to learn Lift coming from working with Ruby on Rails for a > while and I've been voraciously consuming the documentation and > tutorials that are available on the internet. There are a few things I > really like about Lift s

[Lift] We need a wiki gardener

2009-03-01 Thread David Pollak
Folks, The Lift wiki has a lot of weeds growing in it. We really need a wiki gardener who will go through an remove or re-write all the code examples based on old versions of Lift. Any takers? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http:/

[Lift] Re: How do you get Jorge's LinkShare Comet example to work?

2009-03-01 Thread David Pollak
On Sun, Mar 1, 2009 at 2:01 PM, Ikai Lan wrote: > > I realize this is two years old: > > http://scala-blogs.org/2007/12/dynamic-web-applications-with-lift-and.html > > First things first, S is now SHtml, but now I am having problems with > this line: > > [WARNING] error: wrong number of paramete

[Lift] Re: url encoded javascript

2009-03-01 Thread David Pollak
Lee, If you want to include a JavaScript script on the page, the easiest mechanism is: import net.liftweb.http._ import js._ import JsCmds._ import JE._ Script(JsRaw(a String containing the raw script)) This will create a tag on the page and put a //

[Lift] Re: Lift newbie - Horizontal scaling of Lift servers

2009-03-01 Thread David Pollak
quickly recode my app with > lift. > Keep peppering. Perhaps you and Charles Munat could team up and write the "Lift for recovering Rails developers guide". > > thanks, Jon > > On Feb 28, 6:21 pm, David Pollak > wrote: > > On Sat, Feb 28, 2009 at 2:37 PM, Ikai

[Lift] Re: incremental or live dev with lift

2009-03-01 Thread David Pollak
Jon, Please see http://wiki.liftweb.net/index.php?title=JavaRebel Thanks, David On Sun, Mar 1, 2009 at 3:25 PM, Jon Hancock wrote: > > I was under the impression that in development mode, I could modify my > lift files and see the changes without restarting jetty. > > I have created the hellow

[Lift] Re: Locale and languages

2009-03-02 Thread David Pollak
On Mon, Mar 2, 2009 at 8:43 AM, Jon Hancock wrote: > > I am also interested in locale strategies. > I would like to build a website which will be in Mandarin and > English. The English is mostly for my use as most users will see > mandarin. I expect it will be easiest to have most of my decorat

[Lift] Re: We need a wiki gardener

2009-03-02 Thread David Pollak
isn't too big. > Should I just create and account and start digging away? Yes. But I don't want to overload you. I think it would be better for you to create a section of the wiki called "Lift from a Rails perspective" and put the answers from this list into that se

[Lift] Re: chaining servlets

2009-03-02 Thread David Pollak
Not to be a nudge, but how about if Greg sends us his web.xml file and the name of his Jersey Filter, we re-write the web.xml file for him and he writes a wiki page explaining the process? On Mon, Mar 2, 2009 at 2:46 PM, Viktor Klang wrote: > hehe, no worries, I'm one of your fans. :) > > You sh

[Lift] [ANN] Commercial users of Functional Programming: Call for Presentations

2009-03-02 Thread David Pollak
Folks... as a member of the CUFP Programming Committee, I'm wicked please to request that you submit a presentation for CUFP. Last year's CUFP was a lot of fun and and awesome learning experience. I mean, where else can you see garbage trucks that are powered by Haskell? So, if you're doing some

[Lift] Re: We need a wiki gardener

2009-03-02 Thread David Pollak
adding notes as I go through a migration from > merb. Then I can go further back and add notes from my older rails > code. > Then after I have quite a few ramblings put together, I can clean it > all up. > How does that sound? > > Jon > > On Mar 2, 11:36 am, David Pollak

[Lift] Re: Building new pages in Lift

2009-03-02 Thread David Pollak
On Mon, Mar 2, 2009 at 7:44 PM, Ikai Lan wrote: > I think I've figured out how to add new pages to Lift: > > 1. Create a new HTML file under src/main/webapp/something.html > 2. To add this to the sitemap, go to Boot.scala and add this: > > val entries = Menu(Loc("Home", List("index"), "Home")

[Lift] Re: Building new pages in Lift

2009-03-02 Thread David Pollak
On Mon, Mar 2, 2009 at 8:30 PM, Ikai Lan wrote: > Yes, this'll work! Is this documented anywhere? http://scala-tools.org/mvnsites/liftweb/lift-webkit/scaladocs/net/liftweb/sitemap/Loc$object.html > > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http

[Lift] Re: Is there a reason why the getting started PDF is for version 0.1.0?

2009-03-03 Thread David Pollak
On Tue, Mar 3, 2009 at 6:38 AM, Derek Chen-Becker wrote: > I've already opened a ticket on this: > > > http://liftweb.lighthouseapp.com/projects/26102/tickets/12-getting-started-pdf-needs-updated > > David, do you have the source for that chapter, or is that in our repo now? > Either way, let me k

[Lift] Re: Building new pages in Lift

2009-03-03 Thread David Pollak
On Tue, Mar 3, 2009 at 1:09 AM, Ikai Lan wrote: > So NetBeans is pretty slick after all. Just wish it had incremental > compilation! Open a terminal. cd into your project. type: mvn scala:cc Edit and save file. Rinse and repeat. > - Show quoted text - > > > > -- Lift, the simply functi

[Lift] Re: Tracking the latest with maven.. but not too quickly

2009-03-03 Thread David Pollak
Lee, It's also possible for your to host your own Maven repository and just publish the versions of Lift you want up to your repository. If your repository comes first in your Maven config, it will be consulted before other Maven repositories. Thanks, David On Tue, Mar 3, 2009 at 5:34 PM, Lee M

[Lift] Re: Actors in Lift

2009-03-04 Thread David Pollak
On Wed, Mar 4, 2009 at 7:59 AM, debasish wrote: > > Dear All - > > I have had a look at Lift quite some time ago. I remember referring to > this excellent post by David Pollak on the usage of actors in Lift > (http://blog.lostlake.org/index.php?/archives/59-How-lift-uses-Sc

[Lift] Re: IDE

2009-03-04 Thread David Pollak
On Wed, Mar 4, 2009 at 8:14 AM, Paulo Cheque wrote: > > What IDE do you use to develop lift applications? Eclipse? NetBeans? > I want to use Scala regurlarly, but Eclipse plugin is too bugged... I use NetBeans. Some folks have had good experiences with IntelliJ. I'm meeting with Miles Sabin i

[Lift] Re: Actors in Lift

2009-03-04 Thread David Pollak
Scala vis Haskell's state monad. Put another way, LiftSession has very few public mutator methods. It's mostly read-only. Is this "state" in the same way that a JavaBean is stateful. Now that's a debate worth having (better line up James and others.) :-) Thanks, Davi

[Lift] Re: Record and JSON

2009-03-04 Thread David Pollak
On Wed, Mar 4, 2009 at 9:08 AM, Marius wrote: > > Hi, > > I was thinking that it might be useful to be able to obtain a JSON > representation of a Record and also from a JSON construct to create a > Record. > > Record defines now: > > def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp

[Lift] Re: Record and JSON

2009-03-04 Thread David Pollak
this and I'll get back with > > more details ... perhaps a POC > > > > On Mar 4, 7:11 pm, David Pollak wrote: > > > > > On Wed, Mar 4, 2009 at 9:08 AM, Marius > wrote: > > > > > > Hi, > > > > > > I was thinking that it

[Lift] Re: url encoded javascript

2009-03-04 Thread David Pollak
> >>> >>> But the script is a little tricky to read and edit in that form, so I >>> wanted to programmatically convert it from a more readable version. >>> >>> I figured out how to run mvn yui-compressor to remove comments from the >>> script. T

[Lift] Re: SHtml.ajaxInvoke

2009-03-04 Thread David Pollak
On Wed, Mar 4, 2009 at 10:28 AM, Joachim A. wrote: > > I noticed that SHtml.ajaxInvoke now return a Tuple2(String, JsExp). > > What should / can I do with the first param? > The source code tells me it's Lift's name for the function, but I'm unsure > how > I should do with it. It was part of the

[Lift] Re: url encoded javascript

2009-03-04 Thread David Pollak
ript > -- so hopefully it can stay small. Perhaps the bookmarklet could be kind of like a TinyURL... a durable, unique URL that points back to your server. When the user clicks on the link, your server can serve up as much as it needs to. > > > Lee > > > On

[Lift] Awesome Scala, Lift, EMSE, and Buy a Feature press

2009-03-04 Thread David Pollak
http://www.adtmag.com/article.aspx?id=24080 -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You recei

[Lift] Re: [scala] i can haz scala xml???

2009-03-04 Thread David Pollak
scala> 5 res0: scala.xml.Elem = 5 scala> {(1 to 3).map(i => {i})} res1: scala.xml.Elem = 123 Does that give you what you want (XML literals are part of the language) On Wed, Mar 4, 2009 at 1:10 PM, Meredith Gregory wrote: > Sir and Dame Scalahads, > > i was attempting to do something really sim

[Lift] Re: [scala] i can haz scala xml???

2009-03-04 Thread David Pollak
ssue...) > > > Best wishes, > > --greg- Show quoted text - > > > On Wed, Mar 4, 2009 at 1:13 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> scala> 5 >> res0: scala.xml.Elem = 5 >> >> scala> {(1 to 3).map(i => {i})} &

[Lift] Re: I would Love to see JSR 168/ 268 Portlet Support

2009-03-04 Thread David Pollak
Robert, Lift does not currently support the Portlet spec... but it would be easy to add portlet support to Lift... because Lift's rendering machinery is an abstraction that's very close to the Portlet spec. So... we're currently working on the priorities for Lift 1.1. If your project decision de

[Lift] Re: [scala] documentation for structural/partial type bounds

2009-03-04 Thread David Pollak
scala> def doClose(in: {def close(i: Int): Unit}) {in.close(42)} doClose: (AnyRef{def close(Int): Unit})Unit On Wed, Mar 4, 2009 at 3:26 PM, Meredith Gregory wrote: > Dam and Sir Scalahads, > > Where is the documentation for the structural/partial type syntax? i want > to express a bound on a t

[Lift] Re: [scala] documentation for structural/partial type bounds

2009-03-04 Thread David Pollak
calls... > > > On Thu, Mar 5, 2009 at 12:48 AM, Meredith Gregory < > lgreg.mered...@gmail.com> wrote: > >> David, >> >> Thanks! >> >> Best wishes, >> >> --greg >> >> >> On Wed, Mar 4, 2009 at 3:46 PM, David Pollak <

[Lift] Re: IDE

2009-03-04 Thread David Pollak
On Wed, Mar 4, 2009 at 8:57 PM, Paul Stickney wrote: > > Paulo, > > I use the Eclipse Scala Plugin; the continuous build integration is a > major factor to me in selecting it over the NB plugin (but I haven't > used NB in several months now). One can get continuous build with any editor. mvn s

[Lift] Re: 1.1 lift idea: sync

2009-03-05 Thread David Pollak
On Wed, Mar 4, 2009 at 9:47 PM, Lee Mighdoll wrote: > I've been thinking about browser-server data sync for use in my next > project. Sync is potentially more interesting than RPC style ajax, > especially for rich clients, and I think sync could be a grand thing to add > to lift. > > The basic i

[Lift] Re: How do you get Jorge's LinkShare Comet example to work?

2009-03-05 Thread David Pollak
On Wed, Mar 4, 2009 at 10:17 PM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > > Hi there, > > Please allow me to continue this thread, which nobody may be interested in. > I found a reason(or solution) for that problem. > > On Wed, Mar 4, 2009 at 12:31 PM, Atsuhiko Yamanaka > wrote:

[Lift] Re: How do you get Jorge's LinkShare Comet example to work?

2009-03-05 Thread David Pollak
doesiestillsuck.com On Thu, Mar 5, 2009 at 5:59 AM, Viktor Klang wrote: > scarred.by.ie6.com ;) > > > On Thu, Mar 5, 2009 at 2:55 PM, Derek Chen-Becker > wrote: > >> Anyone for registering IEateMyhtml.com ? >> >> On Thu, Mar 5, 2009 at 6:26 AM, David Polla

[Lift] Re: Awesome Scala, Lift, EMSE, and Buy a Feature press

2009-03-05 Thread David Pollak
to do very, very well for Ajax/Comet game, real-time applications. It may do less well for other applications. In any case, if you can find a benchmark where Lift underperforms Django or Rails, it's a Lift bug and we will fix it. > > > http://www.alrond.com/en/2007/jan/25/pe

[Lift] Re: Proposed addition to LRU

2009-03-05 Thread David Pollak
Looks good to me except the toArray part... I prefer toList is that's available On Mar 5, 2009 11:41 AM, "Tim Perrett" wrote: Guys, I have a situation where I need to retrive all the keys in my KeyedCache - however, KeyedCache extends LRU, which it turn uses apache commons LRUMap internally.

[Lift] Re: Proposed addition to LRU

2009-03-05 Thread David Pollak
on.jcl I think there's an implicit that will take the set and turn it into a Seq[whatever] > > > Whilst I could live with this, it does feel somewhat dirty. > > Cheers, Tim > > On Mar 5, 7:57 pm, David Pollak wrote: > > Looks good to me except the toArray part... I prefe

[Lift] Re: Code for the demo on liftweb.net

2009-03-05 Thread David Pollak
It's part of the Lift source distribution. See http://github.com/dpp/liftweb/tree/ce2a130984b3c816de76a0c1ab1aa8ada1e01c9d/sites/example On Thu, Mar 5, 2009 at 2:24 PM, Christian wrote: > > Hi, > > Is the source code for the demo pages on http://demo.liftweb.net/ > available somewhere for downlo

[Lift] Re: Proposed localization change to S

2009-03-06 Thread David Pollak
On Fri, Mar 6, 2009 at 3:52 PM, Timothy Perrett wrote: > Isn't the danger here that Text() will explode if for some reason default > was null (e.g Reading from a DB)? > > It's not a massive issue, as people should be diligent about supplying > defaults but it's just a though. > You can always add

[Lift] Re: Record and JSON

2009-03-07 Thread David Pollak
e: >> > And I forgot the link: >> > >> > http://paste.pocoo.org/show/106757/ >> > >> > --j >> > >> > On Fri, Mar 6, 2009 at 12:11 PM, Jorge Ortiz >> wrote: >> > > Hey Folks, >> > >> > > I wrote a Json AS

[Lift] Re: Lift-friendly Web Hosting

2009-03-10 Thread David Pollak
I use CalPop for my hosting. They're very reasonably priced, but you do have to do some non-trivial sys-admin work. On Tue, Mar 10, 2009 at 1:03 AM, Jeff Chen wrote: > Any suggestion/experience on a lift-friendly web hosting service? Thanks. > > > > -- Lift, the simply functional web framewor

[Lift] Re: Adding MappedDecimal to Mapper?

2009-03-10 Thread David Pollak
Go for it. On Tue, Mar 10, 2009 at 12:26 AM, Derek Chen-Becker wrote: > Any objections? The current code is on the wip-dcb-decimal-maprec branch. > > Derek > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread David Pollak
On Tue, Mar 10, 2009 at 4:58 PM, Derek Chen-Becker wrote: > Actually, I'm trying to remember whether COMET actors have an associated > LiftSession (and therefore access to S)... They do have S and LiftSession. The case null => guard should catch a null. Tim... can you add a test to the code th

[Lift] Re: You guys rock!

2009-03-11 Thread David Pollak
On Wed, Mar 11, 2009 at 5:49 AM, Alex Boisvert wrote: > Between Scala and Lift, ScalaCheck and Specs, Eclipse and Buildr, Jetty and > JavaRebel, it's amazing to see how far the tools have evolved in the 2 years > I've been following Scala. > > I had my epiphany today while 'upgrading' a small int

[Lift] Re: access object field after snippet form submission

2009-03-11 Thread David Pollak
On Tue, Mar 10, 2009 at 7:30 PM, DavidV wrote: > > In the webapp I'm working on, I have three separate forms (snippets) > linked to three separate objects. I would like to maintain a link > between the objects through ID fields, since all three forms contain > information pertinent to one indivi

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-11 Thread David Pollak
$.initIfUninitted(S.scala:635) > > at net.liftweb.http.CometActor$$anon$1$$anonfun$apply$10.apply > > (CometActor.scala:301) > > at net.liftweb.http.CometActor$$anon$1$$anonfun$apply$10.apply > > (CometActor.scala:301) > > at net.liftweb.util.Thread

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-11 Thread David Pollak
where the HttpServletRequest can be null and those cases are now fixed. > > Thanks, > > Derek > > On Wed, Mar 11, 2009 at 9:15 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Fixed in the 1.1 branch. It might make sense to back-port to the 1.0 >> branch

[Lift] Re: Why do names of Boolean variables with a ? at the end have a preceding _ character?

2009-03-12 Thread David Pollak
On Thu, Mar 12, 2009 at 8:57 AM, mal3 wrote: > > Why do names of Boolean variables with a ? at the end have a preceding > _ character? > > I see this in some Lift code. There must be some reason for it -- > perhaps a Scala-ly reason -- that escapes me. Yes, you cannot mix letters/numbers and sy

[Lift] Re: Why did Lift invent the Can (or Box) class, when there's an existing Scala Option class?

2009-03-12 Thread David Pollak
On Thu, Mar 12, 2009 at 8:58 AM, mal3 wrote: > > Why did Lift invent the Can (or Box) class, when there's an existing > Scala Option class? > > This is another naive 2-year-old question to ask. But I'm very curious > to find out. Heh... discussing this issue set off the worst flame war this lis

[Lift] Fwd: Official Siemens SIS Press Release about ESME released

2009-03-12 Thread David Pollak
ESME is Scala and Lift based and is in production @ Siemens. -- Forwarded message -- From: Hirsch, Richard Date: Mon, Mar 9, 2009 at 7:45 AM Subject: Official Siemens SIS Press Release about ESME released To: p...@apache.org, esme-...@incubator.apache.org Cc: Jim Jagielski The

[Lift] Re: Why does HelloWorld index.html contain a snippet rather than a complete XHTML page?

2009-03-13 Thread David Pollak
Howdy, A Snippet is the bridge between the view and Scala code. In this example: Welcome to your project! The tag refers to the HelloWorld snippet which is is some Scala code in the HelloWorld class. Note the tag. This surrounds its body with a template called "default". The default.

[Lift] Re: Required goal not found: archetype:generate

2009-03-13 Thread David Pollak
On Fri, Mar 13, 2009 at 10:52 AM, erik.fris...@googlemail.com < erik.fris...@googlemail.com> wrote: > > No, its not a typo in the PDF. I just got it mixed up when typing the > query. > Just as a point of order, I'm glad that you stuck with the thread and didn't get too frustrated. I'm glad we co

[Lift] Re: Objections to merging jpa archetype?

2009-03-13 Thread David Pollak
Go for it. On Fri, Mar 13, 2009 at 3:09 PM, Derek Chen-Becker wrote: > Would anyone like to look at the jpaarchetype branch before I merge it? > > Derek > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me:

[Lift] Re: Slash and burn

2009-03-13 Thread David Pollak
Derek, /page is parsed to List("page") and /page/ is parsed to List("page", "index"). Unfortunately, the rewrites are applied before the sitemap is in scope, so we can't consult the sitemap during rewrite, but I think there may be a way to write a DispatchPF to intercept List(xxx) and redirect to

[Lift] Re: Why does HelloWorld index.html contain a snippet rather than a complete XHTML page?

2009-03-14 Thread David Pollak
On Fri, Mar 13, 2009 at 10:40 PM, Marc Boschma > wrote: > > Hi Mal, > > That aspect of the lift templating approach also warped my head for a > while, having seen so many examples of the opposite approach (PHP, > JSP, etc)... Lift's use of is my style and after doing a bunch of apps in JSP, I

[Lift] Re: Slash and burn

2009-03-14 Thread David Pollak
On Fri, Mar 13, 2009 at 10:21 PM, Charles F. Munat wrote: > > Sorry, I've missed most of this discussion, but thank you for your > responses. Hopefully, I'll be able to figure out what they mean after I > get some coffee (I had a very late night working). > > I organize all my sites the same way.

[Lift] Re: Bookmarkable never-expiring dynamic pages

2009-03-14 Thread David Pollak
On Fri, Mar 13, 2009 at 10:34 PM, Charles F. Munat wrote: > > I have a lot of sites that involve dynamically-generate pages. OK, all > of them do. So let's say that I have a "bios" page where I link to a > bunch of individual bios (for Sam, Sally, and Sue). If Sam is user #1 > and Sally and Sue a

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-15 Thread David Pollak
Folks, Please make sure you've got this method in your Boot.scala class: /** * Force the request to be UTF-8 */ private def makeUtf8(req: HttpServletRequest) { req.setCharacterEncoding("UTF-8") } And also in the boot method, put: LiftRules.early.append(makeUtf8) By default, v

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-15 Thread David Pollak
On Mon, Mar 16, 2009 at 12:30 AM, Charles F. Munat wrote: > > Everything is being served UTF-8... that means the header is UTF-8, the > xml process directive is UTF-8, and there's a content type meta tag > setting it to UTF-8, and I can confirm in Firefox via both the View > > Character Encoding

[Lift] Re: OpenID defect and fix

2009-03-15 Thread David Pollak
Marius, Go ahead and make the change. I think I'm the only one using the OpenID stuff and I'm happy to fix it. The following maven packages are heavily used and I consider it a serious negative to break APIs: lift-util, lift-http, and lift-mapper. The others I consider to be a little more slushy

[Lift] Re: MappedTextarea problem

2009-03-15 Thread David Pollak
On Sun, Mar 15, 2009 at 8:33 PM, Xavi Ramirez wrote: > > For the sake of better understanding the internals of lift where is > screen.css? /classpath/* is served from the lift-http JAR. It's baked into the JAR as part of the build process. > > > On Wed, Mar 11, 2009 at 6:32 PM, Joachim A. >

<    1   2   3   4   5   6   7   8   9   10   >