[Lift] Re: Scala+Lift Philosophical Question

2008-10-23 Thread David Pollak
On Thu, Oct 23, 2008 at 2:47 PM, Warren Henning [EMAIL PROTECTED]wrote: On Thu, Oct 23, 2008 at 2:43 PM, David Pollak [EMAIL PROTECTED] wrote: The folks at Twitter love Scala and say so publicly. Off-topic: are you at liberty to discuss the extent of Scala usage at Twitter? What

[Lift] Re: Plugins rear there head again :)

2008-10-24 Thread David Pollak
Tim Perrett wrote: Hey guys, We had a discussion some time ago about plugins ( http://groups.google.com/group/liftweb/browse_thread/thread/a875258c5cccdf09 ) - well i've started thinking about them again! I get everything in the previous thread, apart from one thing... how through a

[Lift] Re: Lift powered blog project

2008-10-24 Thread David Pollak
Marius is working on the Record/Field stuff. The Record/Field stuff will replace Lift's mapper. The Record/Field stuff will have pluggable persistence and maybe someone will plug JPA into it. On Fri, Oct 24, 2008 at 9:30 AM, Tim Perrett [EMAIL PROTECTED] wrote: Cheers guys, one thing though

[Lift] Re: Dynamically adding fields to a form

2008-10-27 Thread David Pollak
I think using the JSON handler is the best approach. You can add arbitrary client fields and as long as there's a server-side JSON handler for the given field, you're golden. On Mon, Oct 27, 2008 at 2:48 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I was also wondering if you could use a JSON

[Lift] Re: LiftRules.useXhtmlMimeType got lost...

2008-10-27 Thread David Pollak
Derek, I've applied this patch. Sorry for taking so long to get back to you. David Derek Chen-Becker wrote: Back in this commit: http://github.com/dpp/liftweb/commit/645d9649a5956f0b67edbe8ded4d1b0136164980 If the intention is for LiftRules.determineContentType to be the sole arbiter

[Lift] Re: Kaboom

2008-10-27 Thread David Pollak
This is a bug in Scala 2.7.1 Please do a mvn clean install and it'll go away. On Mon, Oct 27, 2008 at 6:53 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Anyone know what this means: [WARNING] Exception in thread main java.lang.RuntimeException: malformed Scala signature of Mailer at 5411;

[Lift] Re: Kaboom

2008-10-28 Thread David Pollak
be interested.) Thanks, Chas. David Pollak wrote: This is a bug in Scala 2.7.1 Please do a mvn clean install and it'll go away. On Mon, Oct 27, 2008 at 6:53 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anyone know what this means: [WARNING

[Lift] Re: Lift testing practices

2008-10-30 Thread David Pollak
There are a couple of testing things that need to get woven together. Specs is a great way to write code-level tests. Lift's testkit is pretty good for writing REST tests and okay for writing JSON tests. There's no good way to write automated tests for the Lift HTML layer. :-( On 10/30/08,

[Lift] Re: *breaking changes* Gravatar widget

2008-11-01 Thread David Pollak
Excellent stuff! On 11/1/08, Tim Perrett [EMAIL PROTECTED] wrote: Hey guys, I've updated the Gravatar widget that was origionally created by Ty. The implementation now is actually very different. No longer is the Gravatar class an instansiable class, its an object with overloaded apply

[Lift] Re: How's the record / field branch coming along?

2008-11-02 Thread David Pollak
I have a review on my to-do list. I'm the blocking factor here. On Sun, Nov 2, 2008 at 1:09 PM, Tim Perrett [EMAIL PROTECTED] wrote: Hey all, Just thought id drop a quick line to see how the record / field branch was progressing? I keep getting updates to that branch in my local git, so I

[Lift] Re: How's the record / field branch coming along?

2008-11-03 Thread David Pollak
to do: 1. Completed the list of supported fields (without DB specifics ... I think David will step in here ... hopefully someone else can help here to speed up things?) 2. Fix potential bugs. P.S. No DB specific stuff yet - remains to be added Br's, Marius On Nov 2, 11:18 pm, David Pollak

[Lift] Re: Simple form binding problem

2008-11-06 Thread David Pollak
Are you using Eclipse for development? On Thu, Nov 6, 2008 at 3:13 PM, Erick Fleming [EMAIL PROTECTED] wrote: I've been racking my brain on this for some time and don't understand the problem. The cancel button redirects fine, but the save button gives an error. What am I missing?

[Lift] Re: Simple form binding problem

2008-11-06 Thread David Pollak
On Thu, Nov 6, 2008 at 4:15 PM, Erick Fleming [EMAIL PROTECTED] wrote: No. Just VIM and maven-plugin. Try doing an mvn clean jetty:run and see what happens. On Thu, Nov 6, 2008 at 5:17 PM, David Pollak [EMAIL PROTECTED] wrote: Are you using Eclipse for development? On Thu, Nov 6

[Lift] [ANN] Scala and Lift presentations at the Silicon Valley Code Camp

2008-11-08 Thread David Pollak
Folks, I will be doing two presentationshttp://www.siliconvalley-codecamp.com/Sessions.aspx?ForceSortBySessionTime=trueid=55at the Silicon Valley Code Camp http://www.siliconvalley-codecamp.com/Default.aspxtomorrow (Sunday November 9). I will be doing a beginner presentation on Scala tips and

[Lift] Re: [ANN] Scala and Lift presentations at the Silicon Valley Code Camp

2008-11-08 Thread David Pollak
On Sat, Nov 8, 2008 at 3:58 PM, Warren Henning [EMAIL PROTECTED]wrote: On Sat, Nov 8, 2008 at 3:33 PM, David Pollak [EMAIL PROTECTED] wrote: I will also be doing an intermediate presentation on Lift. This presentation will be a live coding example where I'll build a real time chat app

[Lift] [ANN] Lift Workshop, the Lift training gathering

2008-11-08 Thread David Pollak
on our workshop website http://www.liftworkshop.com We will be providing some snacks and coffee in the morning and a good meal for lunch. We plan to go out for Beer aftewards at a pub near the BART station. We look forward to having you at our training. Thanks, David Pollak Jorge Oritz Kaliya

[Lift] Re: Comet

2008-11-09 Thread David Pollak
Miles Sabin wrote: On Sat, Nov 8, 2008 at 11:05 PM, David Pollak [EMAIL PROTECTED] wrote: There is a way around this issue if you want to have a fancy DNS set-up, but the default behavior is to make sure the browser's connections never get clogged up. DNS wildcards? DNS

[Lift] Re: REST Web Services questions and suggestions

2008-11-09 Thread David Pollak
John Nilsson wrote: On Sun, Nov 9, 2008 at 1:13 PM, Tim Perrett [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey John, I take your point for sure - the only thing id say on this would be that there is argument (both for and against) of holding this type of resource

[Lift] Re: Any special requirements for using JavaScript output from GWT in Lift?

2008-11-09 Thread David Pollak
Nobody to my knowledge has done any GWT with Lift. I look forward to your questions and results. On Sun, Nov 9, 2008 at 12:45 AM, mal3 [EMAIL PROTECTED] wrote: I know GWT and I'm beginning to learn Lift. I understand that Lift can use JavaScript libraries, and GWT outputs JavaScript. Has

[Lift] Re: HTTP Digest Authentication

2008-11-09 Thread David Pollak
On Sun, Nov 9, 2008 at 5:45 AM, Tim Perrett [EMAIL PROTECTED] wrote: Hey guys, How would I go about implementing digest authentication within lift? I don't really want to implement this at pure web-server level (e.g. jetty or tomcat) as I need it to interact with my application. For

[Lift] Re: HTTP Digest Authentication

2008-11-09 Thread David Pollak
I would do something like this in my DispatchPf: { case RequestState(api :: _, _, ) if !goodAuthHeader = return 401 case RequestSate() } So, the first pattern matches any API request (anything to /api/). It tests for a good auth header (this is where your code pulls the auth

[Lift] Re: HTTP Digest Authentication

2008-11-09 Thread David Pollak
will be presented. Thanks, David Cheers Tim On Nov 9, 2:00 pm, David Pollak [EMAIL PROTECTED] wrote: I would do something like this in my DispatchPf: { case RequestState(api :: _, _, ) if !goodAuthHeader = return 401 case RequestSate() } So, the first pattern

[Lift] Re: REST Web Services questions and suggestions

2008-11-09 Thread David Pollak
Tim Perrett wrote: So, there's a bug is ESME (or maybe it's in the NGINX/Jetty bridge... I have to research it)... that doesn't mean you can't do stuff in Lift. If you respond to a request with: XmlResponse(mytag/mytag) The headers will be set correctly. Of course not - im

[Lift] Re: HTTP Digest Authentication

2008-11-09 Thread David Pollak
On Sun, Nov 9, 2008 at 8:08 AM, Tim Perrett [EMAIL PROTECTED] wrote: One other thought on this, if no credentials are found, wouldn't it be best to challenge the requester with a 401, but with the www- authenticate header or something? Rather than just providing a plain 401? Perhaps this

[Lift] Re: REST Web Services questions and suggestions

2008-11-10 Thread David Pollak
On Mon, Nov 10, 2008 at 10:32 AM, John Nilsson [EMAIL PROTECTED] wrote: case RequestState(api :: myservice :: Nil, js, GetReqeust) = vs. case RequestState(api :: myservice :: Nil, _, GetRequest) if acceptsJavaScript = I'm not saying it's wrong to base decisions on the URL. But

[Lift] Re: Error in processing html page

2008-11-10 Thread David Pollak
On Mon, Nov 10, 2008 at 2:52 PM, Sebastien Bocq [EMAIL PROTECTED]wrote: I restarted jetty with clean but it still doesn't work. I use the following version of maven with the default options. Maven version: 2.0.9 Java version: 1.6.0_07 What OS are you using and how much RAM is in your

[Lift] Re: Error in processing html page

2008-11-11 Thread David Pollak
with 2Gb RAM. Even commenting out the 'div' line is not enough, it works only when I remove it. 2008/11/11 David Pollak [EMAIL PROTECTED]: On Mon, Nov 10, 2008 at 2:52 PM, Sebastien Bocq [EMAIL PROTECTED] wrote: I restarted jetty with clean but it still doesn't work. I use

[Lift] Re: Error in processing html page

2008-11-11 Thread David Pollak
causes problem. I sent you the files. Sebastien 2008/11/11 David Pollak [EMAIL PROTECTED]: Please replace the div line with: spanHello/span and divhowdy/div And see if that makes any difference. Also, please email the file that fails to me directly. I'll test it on my system

[Lift] Re: Comet question

2008-11-12 Thread David Pollak
Do you want one chat room per instance (but you get to choose the chat room) or do you want to have many chat room comet actors? If it's the former, I'd set up a SessionVar with the current chat room. The CometActor would access that SessionVar during initialization and choose the chat room

[Lift] Re: Form validation with redo snippet?

2008-11-12 Thread David Pollak
Try this: def create(xhtml: Group): NodeSeq = { def redo(b: Blog)(n: NodeSeq): NodeSeq = table(b.toForm(Full(Create), redo(b), handleSubmit _)) User.currentUser.map(_.createBlog) match { case Full(b) = redo(b)(xhtml) case _ = S.warning(There's no user logged in); NodeSeq.Empty

[Lift] Re: Output for trees

2008-11-13 Thread David Pollak
I think you're going to have to do this one manually. Attached, please find some less than efficient code. On Thu, Nov 13, 2008 at 10:30 AM, Charles F. Munat [EMAIL PROTECTED] wrote: If I have an entity thus: @Entity class Category { var name : String = } and another: @Entity

[Lift] Re: Problem with UTF-8 accented passed to 'submit' text field

2008-11-13 Thread David Pollak
On Thu, Nov 13, 2008 at 12:46 PM, Sebastien Bocq [EMAIL PROTECTED]wrote: Sorry for the double posts... There is like a big delay between the time I post and the time it appears on the mailing list and it is not easy to write twice exactly the same text, hum hum... New members of the group

[Lift] Re: does this code make any sense?

2008-11-13 Thread David Pollak
Very interesting defect you found. There's a map of functions associated with the session. That map was not being updated for functions created during a partial update. I've committed a fix and tested it with the enclosed code. Thanks for finding the defect. As a matter of style, I don't

[Lift] Re: Simple deployment of Lift apps on Jetty/Nginx

2008-11-14 Thread David Pollak
is not the goal. Did I miss something? Cheers, Tim Sent from my iPhone On 11 Nov 2008, at 21:11, Viktor Klang [EMAIL PROTECTED] wrote: Thanks for the how-to Dave! Looks splendid :) On Tue, Nov 11, 2008 at 9:49 PM, David Pollak [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Folks, I've

[Lift] Re: Recommended tools ?

2008-11-15 Thread David Pollak
I've been using netbeans very succesfully. I recomend it. Thanks, David On Nov 15, 2008 8:53 AM, Oscar Picasso [EMAIL PROTECTED] wrote: Hi, Which tools would you recommend to work for a lift project, and more generally with scala? The requirement being that the project also uses maven. I

[Lift] Re: Recommended tools ?

2008-11-15 Thread David Pollak
, but it generally seems to work OK if I set up the .classpath file properly to point at all of the source folders. Thanks, Derek On Sat, Nov 15, 2008 at 11:25 AM, David Pollak [EMAIL PROTECTED] wrote: I've bee... --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Valid XHTML

2008-11-16 Thread David Pollak
moving my sites back to XHTML and even trying to serve it with the proper mime type. So thanks for that! Cool. I'll post other issues as they come up. Chas. David Pollak wrote: On Sat, Nov 15, 2008 at 9:24 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

[Lift] Re: DB transactions - how?

2008-11-16 Thread David Pollak
Joachim, Many moons ago, Lift automatically created a JDBC transaction when it started handling an HTTP request and committed/released the connection at the end of the request. I don't know where that code went. :-( You can use the following code: /** * Build a LoanWrapper to pass into

[Lift] Re: Confuddled by CometActor

2008-11-17 Thread David Pollak
On Mon, Nov 17, 2008 at 8:50 AM, Paul Butcher [EMAIL PROTECTED] wrote: On Nov 17, 4:28 pm, TylerWeir [EMAIL PROTECTED] wrote: The signature of CometActor changed from 0.9 to 0.10. Thanks Tyler. I thought that it might be something like that, but when I checked the latest version of the

[Lift] Re: I need to show all nested menus (drop down)

2008-11-17 Thread David Pollak
Ramzi, This is possible, but tricky with the current code. We're in the process of upgrading Lift to work with Scala 2.7.2 Once the switch-over happens (sometime this week), I'll code up some stuff in SiteMap to give you a complete menu. Thanks, David On Sat, Nov 15, 2008 at 1:36 PM, Ramzi

[Lift] Re: Scala 2.7.2 and documentation?

2008-11-17 Thread David Pollak
On Mon, Nov 17, 2008 at 10:33 AM, tacobandit [EMAIL PROTECTED] wrote: I noticed mvn pulled a new lift today and it seems it's still not working with scala 2.7.2? I'm not worried about it or anything just wondering if I'm doing something wrong since I think David Pollack remarked that once

[Lift] Re: [scala] [ANN] Lift nightlies upgraded to Scala 2.7.2

2008-11-17 Thread David Pollak
On Mon, Nov 17, 2008 at 10:58 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: I've just upgraded Lift's trunk to work with the newest release of Scala (2.7.2), Specs (1.4.0), and Scalacheck (1.5). These changes are available in the source code immediately, and should be reflected in the binaries

[Lift] Re: TextileTestSpec failure with latest lift/scala 2.7.2

2008-11-17 Thread David Pollak
Weird. I spent a while this morning adding these tests and they do indeed pass on my machine. I'm trying a clean build (I just blew away my Maven repository) to see if I can reproduce the issue. On Mon, Nov 17, 2008 at 1:43 PM, Sebastien Bocq [EMAIL PROTECTED]wrote: Hello, I could not

[Lift] Re: sites/example now errors after 2.7.2 update

2008-11-17 Thread David Pollak
Try blowing away your Maven repository. On Mon, Nov 17, 2008 at 2:22 PM, Tim Perrett [EMAIL PROTECTED] wrote: Hey guys, Just did: mvn clean package install scala:doc and then cd'd into sites/example and did: mvn jetty:run Upon hitting http://127.0.0.1:8080 I got:

[Lift] Re: SHtml form inputs and attributes/labels

2008-11-17 Thread David Pollak
On Mon, Nov 17, 2008 at 3:41 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Added: http://liftweb.net/index.php/FAQ#How_do_I_add_attributes_to_form_fields_created_with_SHtml_methods.3F Awesome! Thanks! Chas. Jorge Ortiz wrote: Oops, it might be: SHtml.text(user.name

[Lift] Re: Scala 2.7.2 and documentation?

2008-11-18 Thread David Pollak
. Derek On Mon, Nov 17, 2008 at 5:01 PM, Oscar Picasso [EMAIL PROTECTED]wrote: Two book? Wow! Any idea when they are expected? Oscar On Mon, Nov 17, 2008 at 1:51 PM, David Pollak [EMAIL PROTECTED] wrote: On Mon, Nov 17, 2008 at 10:33 AM, tacobandit [EMAIL PROTECTED]wrote: I noticed

[Lift] Re: Tracking Down a Memory Leak

2008-11-18 Thread David Pollak
Matt, I've got a fair number of production sites running Lift-based apps and I haven't experienced this particular issue. However, if the heap size in my container starts off small (256M), then I do see out of memory issues. How big is the heap size in your app? How many sessions do you have

[Lift] Re: TextileTestSpec failure with latest lift/scala 2.7.2

2008-11-18 Thread David Pollak
the same result. On Nov 17, 1:58 pm, David Pollak [EMAIL PROTECTED] wrote: Weird. I spent a while this morning adding these tests and they do indeed pass on my machine. I'm trying a clean build (I just blew away my Maven repository) to see if I can reproduce the issue. On Mon

[Lift] Re: [scala-user] [Announce] Scala Plugin for Coming NetBeans 6.5 Official Release

2008-11-19 Thread David Pollak
I'm using NetBeans 6.5 release with the plugin. It rocks the known universe. Caoyuan, awesome work! On Tue, Nov 18, 2008 at 11:03 AM, Caoyuan [EMAIL PROTECTED] wrote: I'm pleased to announce the availability of Scala plugin for coming NetBeans 6.5 official release. * Much better

[Lift] Re: legacyNullTest - does it need renaming?

2008-11-19 Thread David Pollak
Tim, I'm added !! to Can, so you can write: Can !! String // Full(String) It'll be in the repo soon. Thanks for the suggestion. David On Wed, Nov 19, 2008 at 2:25 PM, Tim Perrett [EMAIL PROTECTED] wrote: Hi guys, Just been chasing around for a little while on something here because of

[Lift] Re: [scala-user] [Announce] Scala Plugin for Coming NetBeans 6.5 Official Release

2008-11-19 Thread David Pollak
So... where should I be getting stuff? On Wed, Nov 19, 2008 at 8:33 PM, Caoyuan [EMAIL PROTECTED] wrote: On Thu, Nov 20, 2008 at 4:05 AM, David Pollak [EMAIL PROTECTED] wrote: I'm using NetBeans 6.5 release with the plugin. It rocks the known universe. Hi David, Thanks for your

[Lift] Re: [scala-user] [Announce] Scala Plugin for Coming NetBeans 6.5 Official Release

2008-11-19 Thread David Pollak
, Nov 20, 2008 at 12:37 PM, David Pollak [EMAIL PROTECTED] wrote: So... where should I be getting stuff? On Wed, Nov 19, 2008 at 8:33 PM, Caoyuan [EMAIL PROTECTED] wrote: On Thu, Nov 20, 2008 at 4:05 AM, David Pollak [EMAIL PROTECTED] wrote: I'm using NetBeans 6.5 release

[Lift] Re: Failing to build the examples :-(

2008-11-20 Thread David Pollak
On Thu, Nov 20, 2008 at 6:26 AM, Paul Butcher [EMAIL PROTECTED] wrote: On Nov 20, 2:00 pm, David Pollak [EMAIL PROTECTED] wrote: When you run out of memory, that's the end of a given job. How much RAM is in your machine? As much as will physically fit (3G). Linux (what distro

[Lift] Re: Failing to build the examples :-(

2008-11-20 Thread David Pollak
On Thu, Nov 20, 2008 at 6:44 AM, Paul Butcher [EMAIL PROTECTED] wrote: On Nov 20, 2:31 pm, David Pollak [EMAIL PROTECTED] wrote: I just did a successful build on my Linux machine with 3GB of RAM (I got the bcel format warning) Ah - so the error is the out of memory error? The format

[Lift] Re: Query param for SQL like?

2008-11-21 Thread David Pollak
I'll try to add the feature this weekend. On Fri, Nov 21, 2008 at 7:19 AM, Joachim A. [EMAIL PROTECTED]wrote: Hi, I'm using 0.10-SNAPSHOT and it's mapper classes. Im wondering how I can do something like select * from Test t where t.name LIKE '%test%. I've found the classes QueryParam,

[Lift] Re: Response file consolidation

2008-11-23 Thread David Pollak
Excellent It would be great to having a collection of REST response for xml, json, etc based on success failure etc On Nov 22, 2008 11:21 AM, Tim Perrett [EMAIL PROTECTED] wrote: Ok - i've done the re-factor and committed. On Nov 22, 7:03 pm, Marius [EMAIL PROTECTED] wrote: As long as

[Lift] Re: strategy for adding fields to a User?

2008-11-24 Thread David Pollak
On Mon, Nov 24, 2008 at 2:48 PM, David Stein [EMAIL PROTECTED] wrote: On Mon, Nov 24, 2008 at 9:05 AM, David Pollak [EMAIL PROTECTED] wrote: snip Does that help? Thanks, David You make it look easy! Yes, that's just what I wanted. I was looking in net.liftweb.sitemap for some

[Lift] Re: JsCmd

2008-11-25 Thread David Pollak
The return type is JsCmd because 80% of the time the Ajax command causes some update top be sent to the browser. So, the special case is a Noop (sometimes I do an implicit Unit - Noop) and the default case is returning the code to be rendered in the browser. On Nov 25, 2008 5:04 AM, Jorge

[Lift] Re: JsCmd

2008-11-25 Thread David Pollak
Shtml.ajaxCheckbox(thing.isChecked, b = {thing.setChecked(b); JsCmds.Noop}) On Nov 25, 2008 4:12 AM, Charles F. Munat [EMAIL PROTECTED] wrote: I want to update an attribute on a model object in the database via AJAX when a checkbox is clicked on a page. I presume that ajaxCheckbox is for this

[Lift] Re: Best way to learn Lift

2008-11-25 Thread David Pollak
On Tue, Nov 25, 2008 at 5:44 PM, Erick Fleming [EMAIL PROTECTED]wrote: I second Kris's suggestion. I'm new to Lift and Scala, but know Java. If first started converting a Wicket application to Scala. It's pretty easy to write a Java applications using Scala, but you really don't learn

[Lift] Re: Two items on Record

2008-11-26 Thread David Pollak
On Wed, Nov 26, 2008 at 7:34 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I'm in the process of playing with the Record code so I have some examples for the book. I've run into two small issues: 1. I'm writing a custom Field type (DecimalField) and it seems like the

[Lift] Re: Lift Record and Object Oriented DB

2008-11-26 Thread David Pollak
On Wed, Nov 26, 2008 at 10:28 AM, Marius [EMAIL PROTECTED] wrote: I believe so. Record/Field currently provide necessary abstraction and server side validation structure. JDBC implementation for Record stuff it's on its way ... and of course one could write a DB4O implementation for it. I

[Lift] Re: Lift Record and Object Oriented DB

2008-11-26 Thread David Pollak
think this can be accomplished with the Maven infrastructure. We're hosting a fair and growing number of Maven repositorie at scala-tools.org I would love to see lots of project hosted at GitHub and built and served via ScalaTools. Cheers Tim On 26 Nov 2008, at 18:32, David Pollak wrote

[Lift] Re: One-to-Many mappings with Lift ORM

2008-11-26 Thread David Pollak
probably far in the future. It's likely that Mapper will be the official ORM tool for Lift 1.0 and the Record stuff will mature and be the recommended ORM tool for Lift 1.1+ // Juha On Nov 24, 7:08 pm, David Pollak [EMAIL PROTECTED] wrote: Juha, Yep... Lift doesn't do a lot of automagic

[Lift] Named Partial Functions

2008-11-26 Thread David Pollak
Folks, One of the things that came out of the Lift Workshop was the need for tracing of rewrites, sitemaps, etc. Most of the rewrite, etc. logic is buried in PartialFunctions that are composed together. In order to accommodate the need to trace what code is changing requests, matching stuff for

[Lift] Re: Using TemplatePf for JPA powered templates

2008-12-01 Thread David Pollak
Tim, Please remember that Lift's Snippet processing is recursive. Thus, you don't really need to hook into the templating system in order to be able to using Lift's templates. For example, if your snippet returned: spanlift:comet type=Dog/lift:comet type=Cat//span Lift would then interpret

[Lift] Re: Testing for well-formed XML

2008-12-01 Thread David Pollak
On Sun, Nov 30, 2008 at 3:46 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: OK, I have a maven-lift plugin done with an i18ngen target that you can use to parse all of your Scala and xhtml sources for i18n keys (lift:loc, etc). The question now is, where should I put it? Should I put it in the

[Lift] Re: Named Partial Functions

2008-12-01 Thread David Pollak
, DbgPartialFunction, DebugPf, DbgPf, TracePartialFunction, TracePf (Sort of took the shotgun approach :) On Nov 26, 4:19 pm, Marius [EMAIL PROTECTED] wrote: TrackPf ? On Nov 26, 10:21 pm, David Pollak [EMAIL PROTECTED] wrote: Folks, One of the things that came out of the Lift Workshop

[Lift] Re: Alter presentation behavior with snippet markup

2008-12-01 Thread David Pollak
I've added def dmap[B](dflt: = B)(f: A = B): B to Cans: S.param(foo).dmap(5)(toInt) On Fri, Nov 28, 2008 at 6:53 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I have to say, I love this Can-map-openOr idiom. I use it all of the time in my code for parameter handling, etc. Derek On Fri,

[Lift] Re: Lift and eclipse hotdeploy

2008-12-01 Thread David Pollak
On Fri, Nov 28, 2008 at 4:39 AM, Acciaio [EMAIL PROTECTED] wrote: Thanx for the advice, Now I'm writing code into eclipse with a project setted up without source files to compile and after I run jetty I also run a scala:cc on the same project... Don't works perfectly but in this way I

[Lift] Re: JPA and Record

2008-12-01 Thread David Pollak
My 2 cents: - I'm strongly opposed to any compiler plugins as they (1) mean that IDEs will work less well and (2) they require some sort of installation (if they can be rolled into the Maven building stuff, it makes this objection go away) - I'm strongly opposed to mixing

[Lift] Re: Alter presentation behavior with snippet markup

2008-12-01 Thread David Pollak
On Mon, Dec 1, 2008 at 10:24 AM, Alex Boisvert [EMAIL PROTECTED] wrote: Isn't this similar to Option.mapOrElse that you opposed on the scala mailing list? :) In fact it is. :-) Polluting Scala is bad. Polluting Lift is less bad. alex On Mon, Dec 1, 2008 at 9:55 AM, David Pollak

[Lift] Re: A quick question

2008-12-01 Thread David Pollak
Marius, Back when I wrote the mapper stuff, there were a bunch of limitations of using vals: - Because of uniform access rules, the difference between val foo = new Thing ; def bar = foo was not possible to calculate. It looks like the compiler now stores things in a named field, so

[Lift] Re: new to lift ... horizontal scaling of databases?

2008-12-01 Thread David Pollak
On Sun, Nov 30, 2008 at 6:07 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi ... new to Scala and Lift. I'm having trouble understanding how to think about a project with a horizontally scaled database. I guess people call this sharding these days? My existing app uses PHP, no

[Lift] Re: Inserting/deleting table rows with AJAX

2008-12-01 Thread David Pollak
Charles, If you're planning to deploy this app in IE, you may have an issue. My experience with IE is that adding/removing tr doesn't always work well. :-( What is most likely happening is that your button is inside a form. It turns out that there's a race condition where sometimes the

[Lift] Re: Joins in Lift mapper

2008-12-01 Thread David Pollak
On Thu, Oct 9, 2008 at 9:46 AM, Charles F. Munat [EMAIL PROTECTED] wrote: Is it possible to do joins in Lift Mapper? For example, I have a Category class that has a name and position (an int). I have a Document class that has a name, a URI, and a Category. I want to query the database and

[Lift] Re: Tools

2008-12-01 Thread David Pollak
Charles, I use NetBeans and a whole lot of printlns. In general, if you've got a case class or Scala collections, the toString methods are pretty descriptive of what's going on. I have heard tell that it's possible to hook the NetBeans debugger up to a running Jetty instance and do breakpoints

[Lift] Re: Minor differences between mapper and record

2008-12-01 Thread David Pollak
On Mon, Dec 1, 2008 at 1:44 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Hi, I'm writing the chapter on Mapper/Record right now and I was wondering why there have been small name changes between the two frameworks. Things like 1. MappedField.validations vs. Field.validators 2.

[Lift] Re: SHtml form inputs and attributes/labels

2008-12-01 Thread David Pollak
On Mon, Nov 17, 2008 at 4:54 PM, David Pollak [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Mon, Nov 17, 2008 at 3:41 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Added: http://liftweb.net/index.php/FAQ

[Lift] Re: Compile problems with lift

2008-12-01 Thread David Pollak
The exception is an out of memory exception. What OS and RAM size are you running? On Mon, Dec 1, 2008 at 1:44 PM, Juha L [EMAIL PROTECTED] wrote: I'm not sure whether it is just me, but I seem to be stumbling on the Scala compiler exceptions whatever I do. First there was one when creating

[Lift] Re: Strange behavior for /index.html

2008-12-01 Thread David Pollak
Derek, I've made the default behavior to not pass requests to the container (you can change the default in LiftRules.) That will address the raw template being displayed. Now... I have no idea why you need an index and a List(index) always matches for me. Are you using 0.10-SNAPSHOT?

[Lift] Re: Tools

2008-12-01 Thread David Pollak
some variable differently? I tried enlarging the heap space and things just got worse. I don't seem to have a plethora of other choices. Chas. David Pollak wrote: Charles, I use NetBeans and a whole lot of printlns. In general, if you've got a case class or Scala collections

[Lift] Re: Broken class in latest nightly snapshot?

2008-12-01 Thread David Pollak
I just pushed a change... change the line to: class Entry extends KeyedRecord[Entry,Long] and see if it works. On Mon, Dec 1, 2008 at 3:39 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I'm writing up some sample code for the book (Record chapter) and I got this when trying to do a keyed

[Lift] Re: A javascript method bound to lift?

2008-12-01 Thread David Pollak
You certainly can. The easiest way is with the JsonFunc: val (jsonCall: JsonCall, jsCmd: JsCmd) = S.buildJsonFunc { case JsonCmd(DoSomething, _, s, _) = println(Got +s) Alert(You entered: +s) case _ = Noop } In your page, include: span { Script(jsCmd) // emit the JSON call } {

[Lift] Re: Testing best practices

2008-12-01 Thread David Pollak
Please make sure that you've got specs 1.4.0 and scalacheck 1.5 Also, please do an mvn clean test Thanks, David On Sat, Nov 29, 2008 at 3:45 AM, Juha L [EMAIL PROTECTED] wrote: I managed after all to find specs test example from the example webapp. Now that I try to start creating some

[Lift] Re: Tools

2008-12-01 Thread David Pollak
happens. But I had the same experience a couple of months ago when I tried it for the first time. I'd really like it to work, though. That would be great, and it would be consistent with my Linux box. Chas. David Pollak wrote: There was a defect in the plugin. Cauyuon posted a fix to this list

[Lift] Re: TextileTestSpec failure with latest lift/scala 2.7.2

2008-12-02 Thread David Pollak
that converts CR/LF pairs into LF. Please see if it works now. 2008/11/19 David Pollak [EMAIL PROTECTED]: On Tue, Nov 18, 2008 at 4:59 PM, David Pollak [EMAIL PROTECTED] wrote: On Tue, Nov 18, 2008 at 1:17 PM, Dano [EMAIL PROTECTED] wrote: This is a really curious error. Using

[Lift] Re: Testing best practices

2008-12-02 Thread David Pollak
-SNAPSHOT. // Juha On Tue, Dec 2, 2008 at 2:42 AM, David Pollak [EMAIL PROTECTED] wrote: Please make sure that you've got specs 1.4.0 and scalacheck 1.5 Also, please do an mvn clean test Thanks, David On Sat, Nov 29, 2008 at 3:45 AM, Juha L [EMAIL PROTECTED] wrote: I managed after all

[Lift] Re: Record small paradigm shift

2008-12-02 Thread David Pollak
I did some benchmarks. Accessing new methods is 50% slowere vs objects. On the other hand, accessing existing methods is faster because acessing vals is faster than accessing objects. On Dec 2, 2008 10:24 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: If you add (non-overriden) fields to a val,

[Lift] Re: *Breaking Changes* Getting down and CRUDy

2008-12-02 Thread David Pollak
:-) On Dec 2, 2008 11:00 AM, Derek Chen-Becker [EMAIL PROTECTED] wrote: I just found this email while researching all of the CRUD stuff in mapper. One word: supercalifragilisticexpialidocious! On Thu, Nov 20, 2008 at 7:23 PM, David Pollak [EMAIL PROTECTED] wrote: Folks

[Lift] Re: Rewrite from root?

2008-12-02 Thread David Pollak
Rewrites are recursive... they will keep getting applied until there are none more rewrites to apply. You could store the retrieved path in a requestvar. Then you put a guard in your pattern tests the requestvar. With that being said, I've been thinking about a flag on the rewriteresponse

[Lift] Re: Record small paradigm shift

2008-12-02 Thread David Pollak
On Tue, Dec 2, 2008 at 11:07 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: I agree. Fields should be perfectly functional by just overriding members. But it should be mentioned in docs, etc as Lift best practices to not add methods or fields inside of Fields. I'm not sure I would call this a best

[Lift] Re: Joins in Lift mapper

2008-12-02 Thread David Pollak
document.category.obj already preloaded. Can this become a viable approach? Great suggestion. I'll add it to my to-do list. On Mon, Dec 1, 2008 at 11:42 PM, David Pollak [EMAIL PROTECTED] wrote: On Thu, Oct 9, 2008 at 9:46 AM, Charles F. Munat [EMAIL PROTECTED] wrote

[Lift] Re: TextileTestSpec failure with latest lift/scala 2.7.2

2008-12-02 Thread David Pollak
] [ERROR] BUILD FAILURE [INFO] [INFO] command line returned non-zero value:1 2008/12/2 David Pollak [EMAIL PROTECTED]: On Wed, Nov 19, 2008 at 11:59 AM, Sebastien Bocq [EMAIL PROTECTED

[Lift] Re: Fwd: ESME article in SAP World magazine

2008-12-02 Thread David Pollak
On Tue, Dec 2, 2008 at 2:31 PM, Marc Weber [EMAIL PROTECTED] wrote: Hi David, On Tue, Dec 02, 2008 at 02:14:51PM -0800, David Pollak wrote: Nice mentions of Scala and Lift. I have attached a copy of the article on ESME which just appeared in SAP that's nice to tell others about

[Lift] Re: TextileTestSpec failure with latest lift/scala 2.7.2

2008-12-03 Thread David Pollak
Cool. Thanks for taking the time to help. On Dec 3, 2008 5:31 AM, Sebastien Bocq [EMAIL PROTECTED] wrote: It's ok now. Thanks. 2008/12/2 David Pollak [EMAIL PROTECTED]: Sorry. THe build should be fixed (Thanks... --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Liftweb cheat sheet

2008-12-03 Thread David Pollak
On Tue, Dec 2, 2008 at 11:56 PM, philip [EMAIL PROTECTED] wrote: Hi, Don't get excited, its not very good - I started on a cheatsheet for liftweb, but at the moment don't have time to continue doing it. Hopefully it inspires someone to continue? In particular I want to know more about

[Lift] Re: Joins in Lift mapper

2008-12-03 Thread David Pollak
On Wed, Dec 3, 2008 at 2:05 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: Will this support preload for HasManyThrough? No. Sorry. Derek On Tue, Dec 2, 2008 at 6:27 PM, David Pollak [EMAIL PROTECTED] wrote: On Tue, Dec 2, 2008 at 10:48 AM, Sasha Kazachonak [EMAIL PROTECTED]wrote

[Lift] Re: Rewrite from root?

2008-12-03 Thread David Pollak
On Wed, Dec 3, 2008 at 2:30 PM, Tim Perrett [EMAIL PROTECTED] wrote: Awesome - this works! Cool The only slight issue i have now is that calls for: /ajax_request/liftAjax.js /classpath/jquery.js etc etc (the default lift stuff) is not being processed. I guess i need to create a

[Lift] Re: Mapper's BySql not validated?

2008-12-03 Thread David Pollak
On Wed, Dec 3, 2008 at 2:27 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: I was just wondering why the BySql QueryParam doesn't require the IHaveValidatedThisSql case class. Looking at the source it seems that it could be just as vulnerable to some shenanigans, although admittedly I'm not an

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