[Lift] Re: CRUDify and hidden fields?

2009-04-21 Thread David Pollak
On Tue, Apr 21, 2009 at 2:04 PM, Franz Bettag wrote: > > One last stupid rookie question.. i've checked out lift from github, > ran mvn compile (which showed success on everything), now i am kinda > stuck. what's the best practice to get rolling from here? You don't need to do that. Maven will

[Lift] Re: Can't get applications to run in Jetty

2009-04-21 Thread David Pollak
One final thing... try: rm -rf ~/.m2/repositories There may be a corrupted JAR file in your Maven repository. On Tue, Apr 21, 2009 at 3:13 PM, Julian Howarth wrote: > > On Apr 21, 6:41 pm, David Pollak > wrote: > > It looks like you were editing some of the files with Eclipse

[Lift] Lift and Bespin... a new way to develop web apps...

2009-04-21 Thread David Pollak
Folks, I spent an hour with Dion Almaer yesterday. Dion is one of the guys behind Bespin . Dion and I blocked out how Lift, when running in developer mode, could expose data via JSON giving Bespin information about the Lift app and read/writ

[Lift] Re: Avoiding polling when using Comet. Reverse AJAX

2009-04-22 Thread David Pollak
On Wed, Apr 22, 2009 at 12:53 AM, Alexander Kellett wrote: > > are you sure this isn't the gc poll? It's not the GC ping > i agree 10 seconds is too short > (thats a lot of traffic...) 10 seconds, as Marius pointed out, is the periodicity of the app because the clock is updating every 10 sec

[Lift] Re: Netbeans 6.5 Out of Memory Error with 4MB file forces Eclipse for me

2009-04-22 Thread David Pollak
On Tue, Apr 21, 2009 at 10:15 PM, jsm2prof wrote: > > Netbeans 6.5 gave me an Out of Memory Error when I loaded a 4MB > file. If you've got a 4MB scala source code file, I'd suggest refactoring a little bit. If it's a 4MB text file, you'd likely be better served with vi or Emacs anyway... they

[Lift] Re: CRUDifying a model

2009-04-22 Thread David Pollak
On Wed, Apr 22, 2009 at 1:00 AM, Tobias Daub wrote: > > Hi Dave, > > First, is this 1.1 version already in the repository, will maven > automatically get it? > When you build, do mvn -U clean jetty:run The -U flag forces the updated > > Second, where do I have to override those methods, in th

[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?

2009-04-22 Thread David Pollak
James, This is an interesting idea that more than one person has expressed excitement about. Jorge Ortiz (one of the Lift committers) was puttering around with the separation of Lift's templating from the rest of Lift. Personally, I think it's a pretty daunting task because a lot of the ways that

[Lift] Re: your first Lift application on GAE/J

2009-04-22 Thread David Pollak
Freekin' awesome stuff! Please keep it coming! Rock and Roll! On Wed, Apr 22, 2009 at 1:39 AM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > > Hi there, > > Let me introduce you the brief tutorial to deploy simple lift application > to > Google App Engine for Java(GAE/J) . Now, Lift

[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?

2009-04-22 Thread David Pollak
On Wed, Apr 22, 2009 at 9:16 AM, James Strachan wrote: > > 2009/4/22 David Pollak : > > James, > > > > This is an interesting idea that more than one person has expressed > > excitement about. Jorge Ortiz (one of the Lift committers) was puttering > >

[Lift] Re: lift and background processing

2009-04-22 Thread David Pollak
I think Tim has an app that does exactly this. He uses Actors. Perhaps he'll be able to share code. On Wed, Apr 22, 2009 at 1:38 PM, Rogelio wrote: > > Hi, > > New to the forum and new to Scala/Lift. In a previous Ruby Rails > project, I needed to > generate some PDF files on the fly in respo

[Lift] Re: HAML-style template syntax?

2009-04-22 Thread David Pollak
On Wed, Apr 22, 2009 at 1:36 PM, Jacob wrote: > > HAML (http://haml.hamptoncatlin.com/) offers super-clean syntax for > producing html/xml. It basically cuts the characters spent on > structure in half - you only need to write the open tags and then the > tags are closed by indentation (which you

[Lift] Re: Why no BLOB for Derby?

2009-04-22 Thread David Pollak
Dunno... care to fix it? :-) On Wed, Apr 22, 2009 at 1:40 PM, Derek Chen-Becker wrote: > The DerbyDriver object has the binaryColumnType set to "LONG VARCHAR FOR > BIT DATA" instead of BLOB. Is there a specific reason why we're not using > BLOB there like we do with other drivers? Our PocketChang

[Lift] Re: Why no BLOB for Derby?

2009-04-22 Thread David Pollak
didn't want to break it if there was a reason we didn't >> use it. >> >> Derek >> >> >> On Wed, Apr 22, 2009 at 2:57 PM, David Pollak < >> feeder.of.the.be...@gmail.com> wrote: >> >>> Dunno... care to fix it? :-) >>> >

[Lift] Re: bitrot

2009-04-22 Thread David Pollak
Loc("REPLForm.1", "/AJAXREPLForm", "R-E-P-L", If(User.loggedIn_? _, "x")) -> Loc("REPLForm.1", List("AJAXREPLForm"), "R-E-P-L", If(User.loggedIn_? _, "x")) On Wed, Apr 22, 2009 at 4:53 PM, Meredith Gregory wrote: > Lifted, > > Apparently i'm not keeping pace with the Jones'. The following code

[Lift] Welcome Greg Meredith to the Lift committers

2009-04-22 Thread David Pollak
Folks, It's been a new-commiter-o-rama lately... and I'm wicked pleased to announce that Greg Meredith has agreed to join the Lift committers. Greg has applied his vast mathematical mind to computing over the years. I'm psyched that Greg will be applying his brain to Lift. Please join me in sayi

[Lift] Re: Netbeans 6.5 Out of Memory Error with 4MB file forces Eclipse for me

2009-04-23 Thread David Pollak
erving it. Please also see Daniel's excellent comments on this thread. Thanks, David > > > On Apr 22, 10:45 am, David Pollak > wrote: > > On Tue, Apr 21, 2009 at 10:15 PM, jsm2prof > wrote: > > > > > Netbeans 6.5 gave me an Out of Memory Error when I loaded

[Lift] Re: Proxy settings for services

2009-04-23 Thread David Pollak
On Thu, Apr 23, 2009 at 2:20 AM, aborg wrote: > > Hi All, > > I checked the Lift book, wiki, and mail archives, but not found any > way to get/set general proxy settings. I believe (and I could be wrong) that the proxy settings are done on a service-by-service basis rather than something global

[Lift] Re: Comet - Unique to each page

2009-04-23 Thread David Pollak
On Wed, Apr 22, 2009 at 6:53 PM, bradford wrote: > > I noticed in the chat demo that if you enter your name or chat into > one tab, the same results will propagate to the other tab. I need a > short lived comet session that's unique to each tab -- I want to > prevent one tab from mixing its data

[Lift] A Lift preso

2009-04-23 Thread David Pollak
http://www.slideshare.net/itemis/lift-mit-scala-ein-befrderungsmittel-in-die-nchste-etage-der-web-frameworks-presentation -- 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://g

[Lift] Re: Comet - Unique to each page

2009-04-23 Thread David Pollak
ach window/tab gets its own host (with DNS wildcarding) to poll on and in that situation, you also work around the 2 connection limit. > > Thanks > > On Apr 23, 9:12 am, David Pollak > wrote: > > On Wed, Apr 22, 2009 at 6:53 PM, bradford wrote: > > > > > I not

[Lift] Re: Cannot access html files other than index.html in GAE using lift

2009-04-23 Thread David Pollak
On Thu, Apr 23, 2009 at 8:30 AM, Andrew Scherpbier wrote: > > Hi kkarad, > I'm a fellow newbie to lift (and scala) and ran into the same issue. I > believe the solution is simple: You need to create entries in your > SiteMap for every page. You'll need to do that in your Boot.scala. > Make them

[Lift] Re: Cannot access html files other than index.html in GAE using lift

2009-04-23 Thread David Pollak
Serving "turd" pages left behind by the developers or from an older version of the app - Serving pages that can only be viewed if you're logged in > > > Lee > > re: documentation, I tripped on this getting started as well. > > On Thu, Apr 23,

[Lift] Re: Cannot access html files other than index.html in GAE using lift

2009-04-23 Thread David Pollak
On Thu, Apr 23, 2009 at 9:59 AM, Lee Mighdoll wrote: > Ah, thanks for the explanation. > > Perhaps a site map entry for /static in the default archtetype? K... added > > > Lee > > > On Thu, Apr 23, 2009 at 9:51 AM, David Pollak < > feeder.of.the.be...@gmail.c

[Lift] Re: http://demo.liftweb.net/ no navigation on left

2009-04-23 Thread David Pollak
On Thu, Apr 23, 2009 at 5:10 AM, Timothy Perrett wrote: > > Were using blueprint CSS so its an issue with blueprint rather than a > with lift... Either that or its just some new general crapness brought > to market by Microsoft in the package that is IE8 and blueprint is yet > to account for it.

[Lift] Re: http://demo.liftweb.net/ no navigation on left

2009-04-23 Thread David Pollak
Fixed. The demo site was running on some pre Lift 1.0 code. On Thu, Apr 23, 2009 at 10:04 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Thu, Apr 23, 2009 at 5:10 AM, Timothy Perrett > wrote: > >> >> Were using blueprint CSS so its an i

[Lift] Re: optional validation

2009-04-23 Thread David Pollak
How about: class MappedBlankableEmail[T<:Mapper[T]](owner: T, maxLen: Int) extends MappedString[T](owner, maxLen) { override def setFilter = notNull _ :: toLower _ :: trim _ :: super.setFilter override def validate = (if (*i_is_!.length == 0 || *MappedEmail.emailPattern.matcher(i_is_!).m

[Lift] Presentation Proposals Needed Soon for CUFP Workshop

2009-04-23 Thread David Pollak
-- Forwarded message -- From: Jim Grundy Date: Thu, Apr 23, 2009 at 11:55 AM Subject: [cufp] Presentation Proposals Needed Soon for CUFP Workshop To: CUFP Hi All This is just a reminder that the deadline for presentation proposals for the CUFP workshop is fast approaching - 15

[Lift] Re: optional validation

2009-04-23 Thread David Pollak
On Thu, Apr 23, 2009 at 12:01 PM, g-man wrote: > > Nice -- I'm getting the spirit of Lift now; it's kind of a way of > saying 'NULL or Validate', right? > Yes. > > > On Apr 23, 10:39 am, David Pollak > wrote: > > How about: > > >

[Lift] Re: Giving a presentation: ideas?

2009-04-23 Thread David Pollak
I've found that building a comet chat app in front of people gets their attention. Then I talk about the Scala constructs that led to the 30 line chat app. See the presos in here: http://github.com/dpp/lift-samples/tree/94b1932a15a2c1344a1a16ff9fc54e785dc55274/presentations/2009_dpp_qcon_tss Th

[Lift] Re: Thoughts on lift marketing [was A Lift preso]

2009-04-24 Thread David Pollak
use of] Scala > * [Missing] Scala tooling > * No roadmap > (for reference: the positive (p. 110) are: [good] use case for Scala, > close to HTTP, elegant because of Scala, and WOW effect) > > And after some words from David Pollak (english, p. 122), the > applicability (p. 124):

[Lift] Feedback on screen cast, please

2009-04-24 Thread David Pollak
Folks, I did a draft of a screencast for a real-time chat app. It's at http://tunaforcats.com/LiftScreenCast.avi I'd like to get some critical feedback on it so I can improve it. Thanks, David PS -- What's the best output format? AVI, QuickTime, Flash? -- Lift, the simply functional web fr

[Lift] Re: Comet - Unique to each page

2009-04-24 Thread David Pollak
ior, no need for a ticket. > > > Thanks, > Bradford > > On Apr 23, 10:06 am, bradford wrote: > > Thanks, David. What haven't you thought about?! > > > > On Apr 23, 9:57 am, David Pollak > > wrote: > > > > > On Thu, Apr 23, 2009 at 6:45

[Lift] Re: Comet - Unique to each page

2009-04-24 Thread David Pollak
ks, David. What haven't you thought about?! > > > > On Apr 23, 9:57 am, David Pollak > > wrote: > > > > > On Thu, Apr 23, 2009 at 6:45 AM, bradford > wrote: > > > > > > Thanks, David. I will play around with this when I get home. I'll >

[Lift] Re: How current is XXX.1.1-SNAPSHOT in repo-snapshots?

2009-04-25 Thread David Pollak
The status of the snapshots can be seen here: http://hudson.scala-tools.org/job/Lift/ Also, I'd suggest: mvn -U clean install That should pull the latest. Also, what's the stack trace? Did you set the: In the appengine-web.xml file? Thanks, David On Sat, Apr 25, 2009 at 5:47 AM,

[Lift] **IMPORTANT** Lift 1.1-SNAPSHOT now compiled against Scala 2.7.4

2009-04-25 Thread David Pollak
Folks, The Lift 1.1-SNAPSHOT now compiles against Scala 2.7.4. Please update your pom.xml files to reflect this change. 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 Gi

[Lift] Re: Feedback on screen cast, please

2009-04-25 Thread David Pollak
> wrote: > >> >> On Fri, Apr 24, 2009 at 8:50 AM, David Pollak >> wrote: >> > I'd like to get some critical feedback on it so I can improve it. >> >> I'm short on criticism - this was really cool. >> >> You might want to comme

[Lift] Re: **IMPORTANT** Lift 1.1-SNAPSHOT now compiled against Scala 2.7.4

2009-04-25 Thread David Pollak
In your pom.xml, change the Scala Version from 2.7.3 to 2.7.4 On Sat, Apr 25, 2009 at 7:26 AM, sailormoo...@gmail.com < sailormoo...@gmail.com> wrote: > > Hi : > > Can you detail what exactly needs to change ? > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning

[Lift] Re: Question from a newbie: how to get a pdf document via submit button

2009-04-25 Thread David Pollak
quot; -> SHtml.text( > DateHelper.toString(toDate) , > {dateAsString => filterToDateVar.set( DateHelper.toDate > ( dateAsString ))}), >"submit" -> submit("Search", > search,("onClick","document.form

[Lift] Re: **IMPORTANT** Lift 1.1-SNAPSHOT now compiled against Scala 2.7.4

2009-04-25 Thread David Pollak
On Sat, Apr 25, 2009 at 12:39 PM, Timothy Perrett wrote: > > Ah right! I only pointed praise in your direction because I thought you > were the appointed scala-trunk tracker! Haha. > Either way, well done DPP – a splendid effort. > Yeah, changing 2.7.3 to 2.7.4 in 3 or 4 pom files was a real chal

[Lift] Re: About Scala XML Manipulation

2009-04-26 Thread David Pollak
Howdy, Try this at the Scala REPL (the Scala command line): scala> if (true) scala> The type of a if expression (without and else) is always Unit. Unit is always blank in XML, and thus you never get anything. Please change to if (true) else NodeSeq.Empty scala> import scala.xml._ import scal

[Lift] Re: (Scala and Lift) and (GWT and Google App Engine) A Double Marriage Made In Heaven?

2009-04-26 Thread David Pollak
On Sat, Apr 25, 2009 at 11:07 PM, mal3 wrote: > > Hi David, > > I saw your Twitter post a month ago > > "Walked out of a very bad keynote ... coding is more fun ... looking > forward to learning about GWT" > > Do you see ways to incorporate GWT into Lift? Not really. GWT is all about Java. Th

[Lift] Re: override def editMenuLocParams

2009-04-26 Thread David Pollak
On Sun, Apr 26, 2009 at 1:11 PM, Tobias Daub wrote: > > Hi There, > > I've got a compiler error when I tried to override those new CRUDify > methods. > > value editMenuLocParams is not a member of org.tobster.model.LimitOrder > with > net.liftweb.mapper.KeyedMetaMapper[Long,org.tobster.model.Limi

[Lift] Re: About Scala XML Manipulation

2009-04-26 Thread David Pollak
On Sun, Apr 26, 2009 at 7:45 AM, sailormoo...@gmail.com < sailormoo...@gmail.com> wrote: > > > The type of a if expression (without and else) is always Unit. Unit is > > always blank in XML, and thus you never get anything. > Why ?? It doesn't make sense?? What is the type of the expression:

[Lift] Re: Customizing Javascript

2009-04-26 Thread David Pollak
My suggestion is as follows: - Don't try to serve dynamic JavaScript via snippets unless you use the net.liftweb.http.js._ stuff... it's just too much pain - Serve the dynamic JavaScript stuff via a custom dispatch (DispatchPF) - If you can post a few of the existing JavaScript files I

[Lift] Re: Upgrade to 2.7.4 breaks "with-param"?

2009-04-26 Thread David Pollak
On Sun, Apr 26, 2009 at 12:06 PM, Timothy Perrett wrote: > > Guys, > > Just pulled the latest lift codebase and finding that an existing > project im working on now has problems with the syntax: > > > . > > > I see this on the console of jetty: > > WARN - Snippet Failure: SnippetFailure(/

[Lift] Re: How to set different response in lift

2009-04-27 Thread David Pollak
The enclosed example demonstrates how to use the Lift rendering mechanism to generate an XML file based on a Lift template and send it back to the browser. Look at the lib.PageChunkServer.scala file to see how it's done. Thanks, David On Mon, Apr 27, 2009 at 2:57 AM, pravin wrote: > > Hi guys

[Lift] Re: Getting started: No XML output, docs and basic restful CRUD (on GAE)

2009-04-27 Thread David Pollak
On Mon, Apr 27, 2009 at 7:53 AM, Tom wrote: > > Hello List, > > I just started with Scala and Lift. Installation was pretty straight > forward (I only had to fight with Debian SIDs Java .. it needed > OpenJDK instead of what is provided as default. Maven threw exceptions > with gnuJava) > So far

[Lift] Re: Upgrade to 2.7.4 breaks "with-param"?

2009-04-27 Thread David Pollak
On Mon, Apr 27, 2009 at 3:25 AM, marius d. wrote: > > I'm not referring to something similar to lift:bind. Just that using > snippets or Loc snippets, chooseTemplate etc. gives you the ability to > to change content depending on what page you are which is with-param > kind of does. > > No worries

[Lift] Re: Upgrade to 2.7.4 breaks "with-param"?

2009-04-27 Thread David Pollak
tags should be deprecated and print out nasty messages on the console when used. > > > ? > > Br's, > Marius > > On Apr 27, 10:08 pm, David Pollak > wrote: > > On Mon, Apr 27, 2009 at 3:25 AM, marius d. > wrote: > > > > > I'm not r

[Lift] Re: Upgrade to 2.7.4 breaks "with-param"?

2009-04-27 Thread David Pollak
Go for it! On Mon, Apr 27, 2009 at 12:53 PM, marius d. wrote: > > I could implement this soon if you are too busy. Just let me know. > > Br's, > Marius > > On Apr 27, 10:37 pm, David Pollak > wrote: > > On Mon, Apr 27, 2009 at 12:33 PM, marius d. &g

[Lift] Re: malformed Scala signature of User

2009-04-27 Thread David Pollak
Erik, Please do an: mvn clean test >From the command line. The Eclipse plugin uses a different version of Scala than does Lift. There will be weird errors like the one you've seen. Thanks, David On Mon, Apr 27, 2009 at 2:24 PM, erik.karls...@iki.fi < erik.b.karls...@gmail.com> wrote: > > W

[Lift] Re: how to add object into session scope in lift

2009-04-28 Thread David Pollak
On Tue, Apr 28, 2009 at 5:30 AM, pravin wrote: > > Hi guys, > I want to add objects into session scope. > > i am using following code : > > object sessionObj extends SessionVar[HashMap[String, Int]]( >new HashMap[String, Int] > { > override def default(key: String): Int

[Lift] Re: 1.1-SNAPSHOT API docs

2009-04-28 Thread David Pollak
On Tue, Apr 28, 2009 at 9:08 AM, Andrew Scherpbier wrote: > > Are the 1.1-SNAPSHOT API docs online somewhere? http://scala-tools.org/mvnsites-snapshots/liftweb/lift-util/scaladocs/index.html http://scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/index.html etc. > If not, can

[Lift] Re: malformed Scala signature of User

2009-04-28 Thread David Pollak
Erik > > On Apr 28, 12:52 am, "erik.karls...@iki.fi" > wrote: > > Hi, > > > > I have noticed this and I always run mvn clean before running the > > tests or just compiling them. So I get the issue even I run the clean > > command. > > > > -e

[Lift] Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread David Pollak
? -- 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 received this message because you are subscribe

[Lift] Re: Javascript "confirm(..)" dialog with ajaxButton

2009-04-28 Thread David Pollak
Here's an example of a confirm dialog box. Hope it helps. PS -- I grew up in Rhode Island. On Tue, Apr 28, 2009 at 1:15 PM, Derek Chen-Becker wrote: > I agree. Allowing for a "guard" JavaScript expression to be called before > the Ajax call is made would be nice. > > Derek > > > On Tue, Apr 28,

[Lift] Re: Has anyone put together an Ajax file upload widget for Lift

2009-04-28 Thread David Pollak
thingy for the client side? I can work on wiring up the server side. > > Cheers, Tim > > On 29/04/2009 00:07, "David Pollak" wrote: > > ? > > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.

[Lift] Re: override def editMenuLocParams

2009-04-28 Thread David Pollak
Can you post (or send privately to me) your failing code? On Mon, Apr 27, 2009 at 11:50 PM, Tobias Daub wrote: > My pom.xml file says "1.1-SNAPSHOT" and I changed it to scala version > 2.7.4 and did a "mvn -U clean install" again. But I still get the same > er

[Lift] Re: lift and background processing

2009-04-28 Thread David Pollak
Howdy, Here's an example of using an actor to do background processing and redirecting a browser to the result when it's been calculated. Thanks, David On Wed, Apr 22, 2009 at 1:38 PM, Rogelio wrote: > > Hi, > > New to the forum and new to Scala/Lift. In a previous Ruby Rails > project, I ne

[Lift] Re: lift and background processing

2009-04-28 Thread David Pollak
es/example > > Cheers, Tim > > On Apr 29, 1:15 am, David Pollak > wrote: > > Howdy, > > > > Here's an example of using an actor to do background processing and > > redirecting a browser to the result when it's been calculated. > > > >

[Lift] Re: Customizing Javascript

2009-04-28 Thread David Pollak
So, you'd probably do something like: class MyScriptManager { def render(in: NodeSeq) = bind("script", in, FuncAttrBindParam("onload", what => Text("".r.replaceAllIn(what.text, "'Hello World'")) ,"onload")) } Please give it a try. On Sun, Apr 26, 2009 at 5:47 PM, sailorm

[Lift] Re: REST and CDATA

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 1:21 AM, Channing Walton wrote: > > Hi, > I am building a rest service and running into trouble with cdata which > is not a Lift issue but I was wondering what Lift had to support it. It's the Scala parser. It converts the contents of blocks to escaped XML. For example

[Lift] Re: how to add object into session scope in lift

2009-04-29 Thread David Pollak
ocu/files/api/scala/collection/mutable/HashMap.html > > how it differ from sessionObj.is("foo" -> 1) > HashMap does not have an apply(p: Pair[??,??]) method, so this would not compile. > > On Tue, Apr 28, 2009 at 8:33 PM, David Pollak < > feeder.of.the.be...@gmai

[Lift] Re: how to add object into session scope in lift

2009-04-29 Thread David Pollak
On Tue, Apr 28, 2009 at 11:07 PM, pravin karne wrote: > hi, > i want some explanation for following code > > object sessionObj extends SessionVar[HashMap[String, Int]]( >new HashMap[String, Int] > { > override def default(key: String): Int = 0 > } > ) > Changing

[Lift] Re: Move common dependencies into parent POM?

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 2:20 AM, Heiko Seeberger < heiko.seeber...@googlemail.com> wrote: > Hi, > For my work on OSGi-fying Lift I took a closer look at the POMs. I noticed, > that dependencies are duplicated across the modules, e.g. lift-util and > lift-webkit both declare almost the same depende

[Lift] Re: Javascript "confirm(..)" dialog with ajaxButton

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 12:16 AM, marius d. wrote: > > Ok, > > Here is what I'm thinking of: > > def ajaxButton(text: NodeSeq, jsFunc: Call, func: () => JsCmd, > attrs: (String, String)*): Elem = { > >val params = (name: String) => jsFunc.params ++ List(AnonFunc > (makeAjaxCall(Str(name+"=tr

[Lift] Re: Javascript "confirm(..)" dialog with ajaxButton

2009-04-29 Thread David Pollak
on is much more complex I tend to think that we need > something more generic. > > Oh and Dave's example could probably be simplified by using > JqJsCmds.ModalDialog object D'oh! You're right! > > > Br's, > Marius > > On Apr 29, 2:43 am, David Pollak

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 9:19 AM, Lee Mighdoll wrote: > I'm trying to avoid having to clear the browser cache when I change a > javascript file. > > One approach is to append a timestamp to the script src tag in the html > file. > > > > becomes: > >

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 10:03 AM, Lee Mighdoll wrote: > > > >> >> I'd rather have something like: >> >> /classpath/date_2009_04_29_18_20/json.js >> > >> >> There are a couple of advantages: >> >>- It's human readable >> >> Readable is worth a few bytes, I agree. I like the date_ prefix too,

[Lift] Re: namespace problem again

2009-04-29 Thread David Pollak
Try: def show(xhtml: NodeSeq): NodeSeq = { { bind( "hello", xhtml, "initialTimeField" -> text("Nil", (updateInitialTime _)) % ("size" -> "60") % ("id" -> "initialTimeField"), "finalTimeField" -> text("Nil", (updateFinalTime _)) % ("size" -> "60") % ("id" -> "finalTimeFiel

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 10:58 AM, Lee Mighdoll wrote: > > I think the browsers cache urls with params... a quick glance at the rails >>> docs suggest they expect these requests to be cached, though I haven't >>> tested it mysolf. >>> >>> I'd imagine this also needs to work for non-/classpath serv

[Lift] Re: namespace problem again

2009-04-29 Thread David Pollak
--------^ > > On Wed, Apr 29, 2009 at 11:00 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Try: >> >> def show(xhtml: NodeSeq): NodeSeq = { >> { >> bind( &qu

[Lift] Re: namespace problem again

2009-04-29 Thread David Pollak
t no joy. The error is the same. BTW, the >>> only difference i could spot between your proposal and mine was changing the >>> "-->" to "->". >>> >>> Best wishes, >>> >>> --greg >>> >>> XML Parsing Err

[Lift] Re: Form Question

2009-04-29 Thread David Pollak
def create(action: String, target: String: body: NodeSeq) = { body } On Wed, Apr 29, 2009 at 7:38 PM, sailormoo...@gmail.com < sailormoo...@gmail.com> wrote: > > Hello: > > It's me again. I would like to ask how to generate the following > form tag with attribute. > > > This form needs the

[Lift] Re: really basic lift question

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 6:56 PM, Meredith Gregory wrote: > Charles, et al, > > i'm trying to do something dead simple and it is exposing all kinds of > ignorance on my part regarding lift. (Yay! i get to learn new stuff -- which > would be great if i weren't under a terrible time crunch.) > > Now,

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 5:04 AM, Alexander Kellett wrote: > > btw this is completely okay (no idea about valid) in a onclick for > example, just not in a script block. It works in attributes (because they cannot be CDATA.) I've pushed reverted changes back to GitHub. > > > On Thu, Apr 30, 200

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 3:26 AM, Timothy Perrett wrote: > > Guys, > > Maven just pulled the latest jars from hudson and ooops, now my > project is broken! lol. > > The changes to the string helpers etc to move to double quotes not > single quotes has broken my entire application which is due to go

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 5:13 AM, Timothy Perrett wrote: > > David, > > Thanks for your reply - so what your saying is that if I wrap it in a > CDATA block then issues will go away? Yeah. Your code should look something like: import net.liftweb.http.js.JsCmds._ This is some stuff on my page {

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 5:44 AM, Timothy Perrett wrote: > > Yeah of course - im already familiar with the Script object. My code > looks like: > > def show(xhtml: NodeSeq): NodeSeq = bind("uedit", xhtml, >"application" -> Script(Run(script)) > ) script is a String. How is it built? > >

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 6:13 AM, Timothy Perrett wrote: > > The items with ‘item’ single quotes are just concatenated strings as > they are fixed paths etc. Its not those which are causing the problem > – its the serialization of JsObj that appears to be the issue here. If > you remember some time

[Lift] Re: [urgent bug] javascript escaping issue!!

2009-04-30 Thread David Pollak
On Thu, Apr 30, 2009 at 6:44 AM, Timothy Perrett wrote: > > The latter, its a toString That's the problem. JsExp (JsObj is a JsExp) are NodeSeq as well (this is to support the ability to render XML literals and JavaScript into client-side node building). toString on a JsExp results in the XML-

[Lift] Re: Do I use a view for this type of redirect?

2009-04-30 Thread David Pollak
Personally, I'd use a custom dispatch. You're not rendering any HTML, so there's no reason to use the rendering machinery. LiftRules.dispatch.append { case r @ Req("change_language" :: Nil, _, GetRequest) if S.param("lang").isDefined && S.param("redirect").isDefined => TemporaryRedirectRespons

[Lift] Re: how to add object into session scope in lift

2009-04-30 Thread David Pollak
st thing > out there, but it is going to take a while for me to be able to > contribute. In the mean time, I would ask those in the know to try to > add some docs to the code. > > BTW, this mailing list of great. The responses are *very* helpful. > Keep them comin'! > >

[Lift] Re: localeCalculator called multiple times?

2009-05-01 Thread David Pollak
I've never seen a case where locale calculation is much more than dereferencing an object and never thought to cache it. Typically, it's something like: User.currentUser.map(_.locale) openOr browserSuppliedLocale If it's important to have it cached on a request-by-request basis, please let me kn

[Lift] Re: Where to add demos/examples

2009-05-02 Thread David Pollak
On Sat, May 2, 2009 at 5:09 AM, Timothy Perrett wrote: > > > Heiko, > > Please see here: http://is.gd/w5SB > +1 > > We've talked before on the committers list about renaming sites to > "examples" or such, so I see no reason why putting any working example you > want in there. POC would probably

[Lift] Re: Where to add demos/examples

2009-05-02 Thread David Pollak
On Sat, May 2, 2009 at 6:51 AM, Timothy Perrett wrote: > > Your not - dont worry ;-) > Heiko posted this to the main list because committers talk is only scheduling related stuff. Everything else is out in the open. If folks think that the examples should go someplace else, by all means speak u

[Lift] Re: how to add object into session scope in lift

2009-05-02 Thread David Pollak
On Thu, Apr 30, 2009 at 10:48 PM, Andrew Scherpbier wrote: > > The "Getting Started" document got me hooked on Lift. :-) > I guess I'll report my struggles from there. I don't know if what I did > is typical. > > After actually running the two examples from the "Getting Started" docs, > I looked

[Lift] Re: objet vs class for snippets

2009-05-03 Thread David Pollak
Tim, Dispatching snippets by registering with LiftRules is much faster than the "by convention" mechanism of looking up the class name. It's also type-safe (an issue that Greg Meredith ran into last week.) So, it's a few more lines of code, but better. Unless you've got a Stateful Snippet, you s

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread David Pollak
Are you running Lift in production or development mode? I typically see 300 pages/second to 800 pages/second when I do benchmarks on dual core opteron machines. I'll look into this, but you should be seeing north of 300 pages per second with simple pages in Lift. On Sat, May 2, 2009 at 1:32 PM, D

[Lift] Re: User model

2009-05-03 Thread David Pollak
On Sun, May 3, 2009 at 3:48 AM, ishaaq wrote: > > Hi all, > I've just started playing with Lift so forgive me if this question > seems a bit naive - that would be because I am a newbie :) > > I am trying to build a webapp with user authentication. However, I > don't want to use ProtoUser because

[Lift] Re: how to add object into session scope in lift

2009-05-03 Thread David Pollak
On Sat, May 2, 2009 at 12:35 PM, Andrew Scherpbier wrote: > > David Pollak wrote: > > > > > > On Thu, Apr 30, 2009 at 10:48 PM, Andrew Scherpbier > > mailto:and...@scherpbier.org>> wrote: > > > > > > The "Getting Started" doc

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread David Pollak
en I start Jetty, but you may do it differently. Also, In the basic app, there's an RDBMS request for the User object on each page load and if you've got Derby configured, that's going to slow things down. > > Thank you again. > Daniel > > On Sun, May 3, 2009 at 3:12 PM

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread David Pollak
On Sun, May 3, 2009 at 6:17 AM, Daniel Guryca wrote: > Anybody ? > New user posts to this list are moderated (it cuts down on spam). There are three of use who moderate the list, but a posting on Saturday night may not get moderated for 12 hours. Also, while we do intend to be responsive to us

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-03 Thread David Pollak
On Sun, May 3, 2009 at 6:33 AM, Axel Rose wrote: > > Hello Charles, > > I know I'm a bit late for your request to consolidate the lift wiki. > > Anyway: > It's really puzzling to me to get the version numbers right, when creating > a new > archetype with maven. > > The Maven mini guide at http://w

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread David Pollak
hine's faster, but not 10x. I'll spend some time putting together a complete benchmark tomorrow so we can share the same executable and hopefully see the same results. > > > Daniel > > > On Sun, May 3, 2009 at 3:31 PM, David Pollak < > feeder.of.the.be...@gmail.co

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-04 Thread David Pollak
On Sun, May 3, 2009 at 7:58 AM, richard.car...@me.com wrote: > > My personal view is that a worked example of a fully featured > eCommerce type site would be most useful. Even something as simple as > a cut down Amazon style store with inventory management would be a > great start. That would be

[Lift] Re: box of Boxes

2009-05-04 Thread David Pollak
How about the for comprehension? for {xml <- req.xml fooTag <- (xml \ "foo").firstOption response <- myFunction(fooTag) } yield response On Mon, May 4, 2009 at 8:51 AM, Channing Walton wrote: > > Hi, > I am building a web app which has a rest API. I found that I was > repea

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
Daniel, I did a little measurement of Lift and did some tuning. On my Core 920 machine with 12GB of RAM running Ubuntu 9.04 and the JDK 1.6.0_13 in 64 bit mode with Tomcat 6.0.18 (I ran into some bugs in Jetty while measuring with ab). My baseline running (both locally and across the network) a

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
an max > Connect:00 0.0 0 1 > Processing: 1 18 40.8 111428 > Waiting:1 18 39.9 111414 > Total: 1 19 40.8 111428 > > Percentage of the requests served within a certain time (ms) > 50%

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-04 Thread David Pollak
50% 10 66% 23 75% 35 80% 44 90% 72 95% 97 98%132 99%156 100%974 (longest request) So, on a box similar to yours, I'm seeing about 6x better performance. Thanks, David On Mon, May 4, 2009 at 2:16 PM, David Pollak wrote: > Daniel, > &

<    4   5   6   7   8   9   10   11   12   13   >