[Lift] Re: Debug log level

2009-08-17 Thread Derek Chen-Becker
log4j itself looks for a log4j.properties or log4j.xml file in the classpath, so that would work whether you're using Lift or not. Derek On Sun, Aug 16, 2009 at 6:14 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Thanks. The book makes it sound like the file should be called log4j.props,

[Lift] Re: slow down ajax?

2009-08-17 Thread marius d.
You can probably use this definition of ajaxText: def ajaxText(value: String, jsFunc: Call, func: String = JsCmd) See the jsFunc parameter. Essentially you are specifying your function call that may have one parameter. To your parameter list List we'll add a new parameter which is the ajax

[Lift] Re: lift-openid broken

2009-08-17 Thread marius d.
Thank you for pointing this out. Most likely I'll make the corrections today. Br's, Marius On Aug 17, 1:48 am, Vassil vdic...@gmail.com wrote: Hello guys, It seems the HTTP refactoring around 10 days ago broke OpenId. Here's a small patch that made it work for me: ---

[Lift] Re: Getting started: Rendering a template (Definitive Guide)

2009-08-17 Thread Morris Jones
marius d. wrote: I believe the book describes the SiteMap quite extensively. Yes, if you are using SiteMap then you have to add your new page to the SiteMap. I have no doubt that it's there in great detail. I just stumbled trying to experiment with it before I knew what I was doing, or got

[Lift] Re: Deploying

2009-08-17 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: What's the best way to get a lift app running on a Ubuntu web server I can SSH into with full permissions? It came with almost nothing installed. Thanks. It may be overkill for you if it's just a one time install, but I've had great success

[Lift] How to get list of mapped fields from MetaMapper?

2009-08-17 Thread Jeppe Nejsum Madsen
hi I'm trying to create an application specific CRUDify but I can't figure out how to get the list of mapped fields from a MetaMapper. MetaMapper has a mappedFieldList, but it is package private for some reason?? mappedFields doesn't have the type info, nor does BaseMappedField have the

[Lift] Re: CMS for Lift?

2009-08-17 Thread Jefken De Vleesetenden Boterham
thirded, I'd try to help out a bit On Sun, Aug 16, 2009 at 11:53 PM, TylerWeirtyler.w...@gmail.com wrote: @Glenn - is your project public? Seconded, toss it up on github and let the community start helping out. -- http://pmonnaie.blogspot.com/

[Lift] How do I add jar files to my app?

2009-08-17 Thread Goldfish
I am trying to point my app at an Oracle database, but am getting ClassNotFound exceptions: [INFO] Scanning for projects... [INFO] [INFO] Building cims2 [INFO]task-segment: [jetty:run] [INFO]

[Lift] Re: CMS for Lift?

2009-08-17 Thread Adam Strickland
Ditto On Aug 17, 6:43 am, Jefken De Vleesetenden Boterham cultoftheholysquir...@gmail.com wrote: thirded, I'd try to help out a bit On Sun, Aug 16, 2009 at 11:53 PM, TylerWeirtyler.w...@gmail.com wrote: @Glenn - is your project public? Seconded, toss it up on github and let the

[Lift] Using mapper for calculated field?

2009-08-17 Thread Jeppe Nejsum Madsen
Hi, In my data model I have: contractStart extends MappedDate contractLength extends MappedInt In some views I would like to show contractEnd which is contractStart+contractEnd. It would be nice if I could reuse all the mapper functionality for converting to html/json/forms etc, but I can't

[Lift] Re: CMS for Lift?

2009-08-17 Thread Giuseppe Fogliazza
I confirm that there are some efforts in progress. Particularly I am writing a jsr 170 (jackrabbit) backend for Record. It is taking longer than expected because I am extending Record with reference field and multivalued field that are of paramount relevance in domain modeling. I studied recent

[Lift] Re: How do I add jar files to my app?

2009-08-17 Thread Timothy Perrett
You can specify this in maven, but make sure you set the scope: scopeprovided/scope Cheers, Tim On 17/08/2009 15:04, marius d. marius.dan...@gmail.com wrote: The JDBC driver should not be in the applications class-path (WEB-INF/ lib) but in container's classpath. Say jetty's lib folder.

[Lift] Re: CMS for Lift?

2009-08-17 Thread Naftoli Gugenheim
Note that there have been some fixes to OneToMany, LongMappedForeignMapper, and ManyToMany recently. Also, if you like it fine, but keep in mind that I'm not a professional programmer with years of experience, nor is the implementation a result of any sort of research. I simply wished to have

[Lift] Scala Lifftoff (Reston, VA)

2009-08-17 Thread David Pollak
-- Forwarded message -- From: Josh Suereth joshua.suer...@gmail.com Date: Sun, Aug 16, 2009 at 8:40 PM Subject: [scala-user] Scala Lifftoff (Reston, VA) To: Scala User scala-u...@listes.epfl.ch Greetings All! We're organizing a Scala Lift-Off unconference event for Friday,

[Lift] Re: CMS for Lift?

2009-08-17 Thread Giuseppe Fogliazza
Tim, Mapper is mixing inestricably persistence and visualization+validation semantics, and effectively this is something that slow down my implementation effort. I look forward for your blog post on backend implementation. Regards Giuseppe On 17 Ago, 17:58, Timothy Perrett

[Lift] Re: ws-generated code in lift

2009-08-17 Thread Derek Chen-Becker
I think that that's a general issue with SOAP, not particular to Lift ;) On Sat, Aug 15, 2009 at 1:04 PM, Timothy Perrett timo...@getintheloop.euwrote: Id be interested to hear those stories... all the ones i've heard so far that involve anything to do with SOAP have usually been tales of

[Lift] Re: IMPORTANT for H2 users

2009-08-17 Thread Derek Chen-Becker
I think that you'd have to do it programmatically in the connection setup (in ConnectionManager). On Mon, Aug 17, 2009 at 12:32 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: I fixed the H2 default schema to be PUBLIC (top level in H2 console is PUBLIC) rather than Empty (username). This

[Lift] Re: H2 schema

2009-08-17 Thread David Pollak
On Sat, Aug 15, 2009 at 7:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: There was a bug discussed recently about connecting to H2 with a username and not being able to schemify, caused by the schema defaulting to the username, a schema that does not exist. I just learned that H2's

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-17 Thread glenn
Is anyone planning on fixing the archetype snapshots to add this change, and import provider._ in Boot.scala. Thanks in advance, Glenn... On Aug 10, 10:36 am, marius d. marius.dan...@gmail.com wrote: Your makeUTF8 should look like this:   private def makeUtf8(req: HTTPRequest): Unit =

[Lift] Re: IMPORTANT for H2 users

2009-08-17 Thread David Pollak
On Sun, Aug 16, 2009 at 10:32 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I fixed the H2 default schema to be PUBLIC (top level in H2 console is PUBLIC) rather than Empty (username). This bug prevented one from schemifying a new database without creating the schema of the username

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-17 Thread David Pollak
On Mon, Aug 17, 2009 at 9:42 AM, glenn gl...@exmbly.com wrote: Is anyone planning on fixing the archetype snapshots to add this change, and import provider._ in Boot.scala. I'm able to create a new Basic Lift app from archetypes... and it works just fine. Can you tell us what command you

[Lift] Re: ws-generated code in lift

2009-08-17 Thread David Pollak
On Mon, Aug 17, 2009 at 9:25 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: I think that that's a general issue with SOAP, not particular to Lift ;) On Sat, Aug 15, 2009 at 1:04 PM, Timothy Perrett timo...@getintheloop.euwrote: Id be interested to hear those stories... all the ones

[Lift] Re: Getting started: Rendering a template (Definitive Guide)

2009-08-17 Thread David Pollak
It's also a really, really good idea to use Lift 1.1-SNAPSHOT or Lift 1.1-M4. There's a polite error message when in development mode that points out that the particular page needs to be added to SiteMap. Derek Co. Any way to update the PDF book to use 1.1-*something*? On Sun, Aug 16, 2009 at

[Lift] Re: ws-generated code in lift

2009-08-17 Thread Meredith Gregory
Dear David, *This* is a can of night-crawlers. Do you have a specification of the abstract syntax of your flow language? Do you have a semantics? Best wishes, --greg On Mon, Aug 17, 2009 at 10:20 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 17, 2009 at 9:25 AM, Derek

[Lift] Invoking Views

2009-08-17 Thread Michel Klijn
Hi, I'm new to Lift and I've been fooling around with all it's cool features. At the moment, I'm trying to access MyView that I have defined in the view package. When I try to access the view via the URL: http://localhost:8080/MyView/hi I get the following message: The requested page was not

[Lift] Re: Invoking Views

2009-08-17 Thread marius d.
Please add the path to your SiteMap. Menu(Loc(MyView, MyView :: _, MyView)) Br's, Marius On Aug 17, 8:25 pm, Michel Klijn michel.kl...@gmail.com wrote: Hi, I'm new to Lift and I've been fooling around with all it's cool features. At the moment, I'm trying to access MyView that I have

[Lift] Re: Deploying

2009-08-17 Thread Peter Robinett
I know David likes running Nginx in front of Jetty On Aug 17, 12:00 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: What's the best way to get a lift app running on a Ubuntu web server I can SSH into with full permissions? It came with

[Lift] Re: Invoking Views

2009-08-17 Thread Naftoli Gugenheim
Are you coming from an MVC framework? Many of them use the approach you described, but Lift does not.MyView.hi (under the covers MyView.doRender of course) is a snippet. Snippets are XML transformers. On the other hand, the page you put into your SiteMap should refer to an x(h)tml document, which

[Lift] Re: Debug log level

2009-08-17 Thread Naftoli Gugenheim
Well for some reason it didn't work until I put default. in the name, like you said. On Mon, Aug 17, 2009 at 2:12 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: log4j itself looks for a log4j.properties or log4j.xml file in the classpath, so that would work whether you're using Lift or not.

[Lift] Re: CMS for Lift?

2009-08-17 Thread Stefan Scott
I'll chime in here since I've been evaluating several CMSs lately. I previously used Drupal and WordPress as my CMSs - now however I'm moving everything to MODx because of the increased flexibility and more-logical organization, and I'm also impressed with the demos of SilverStripe, TypoLight

[Lift] Re: ws-generated code in lift

2009-08-17 Thread David Pollak
On Mon, Aug 17, 2009 at 10:37 AM, Meredith Gregory lgreg.mered...@gmail.com wrote: Dear David, *This* is a can of night-crawlers. Do you have a specification of the abstract syntax of your flow language? Do you have a semantics? No No. Flying by the seat of my pants (as usual). Always

[Lift] Re: ws-generated code in lift

2009-08-17 Thread Meredith Gregory
David, Go for it, Dude! Who knows, you might come up with something new. With a Scala encoding as the 'informal spec' i can tell you what semantics are already out there and how yours compares. Best wishes, --greg On Mon, Aug 17, 2009 at 11:19 AM, David Pollak feeder.of.the.be...@gmail.com

[Lift] Re: lift-openid broken

2009-08-17 Thread David Pollak
On Sun, Aug 16, 2009 at 11:52 PM, marius d. marius.dan...@gmail.com wrote: Thank you for pointing this out. Most likely I'll make the corrections today. Please let us know when the changes are rolled in. Br's, Marius On Aug 17, 1:48 am, Vassil vdic...@gmail.com wrote: Hello guys,

[Lift] Re: ws-generated code in lift

2009-08-17 Thread Naftoli Gugenheim
Does that imply any reason not to have % as a bind-with-attributes syntax? See http://groups.google.com/group/liftweb/msg/1fbf7df2009abf9e?hl=en On Mon, Aug 17, 2009 at 1:20 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 17, 2009 at 9:25 AM, Derek Chen-Becker

[Lift] Re: Attributes question

2009-08-17 Thread Naftoli Gugenheim
Hi, sorry, not sure why I didn't see your message earlier. Strange... Has anyone written any code to address this topic in the meantime? In case not, here's all the code I've written for such purposes; tell me what you think. def keepAttrs(elem: Elem) = (ns: NodeSeq) = BindHelpers.currentNode

[Lift] SHtml.a generating an a with bad attributes

2009-08-17 Thread harryh
I'm getting HTML like this (which fails to render): a onclick=liftAjax.lift_ajaxHandler (quot;F8306705858060QG=truequot;, null, null, null) href=javascript:// with=chrome at=content with=section at=content key=F8306705858060QGignore/a when, down in the guts of a page I have something like this:

[Lift] Re: slow down ajax?

2009-08-17 Thread g-man
OK, thanks for checking back... Snippet: swappable(span class='dueon'{task.dueOn.toString}/span, span class='chgDueon'{ajaxText(task.dueOn.toString, v = { task.dueOn(v.toLong).save; reDrawTasks(); }) % (size - 10)}/span) JS: $chgDueon // jQuery

[Lift] Case insensitive LIKE query

2009-08-17 Thread Naftoli Gugenheim
I'm using H2, and LIKE queries seem to be case sensitive. What should I do to search fields without being case sensitive?For example, right now I have: Client.findAll(Like(field, %+v+%)) In SQL I can write SELECT FIRST FROM CLIENT WHERE UPPER(FIRST) LIKE '%A%'; So is there a way to specify

[Lift] Re: slow down ajax?

2009-08-17 Thread marius d.
I don't see in your code the use of the overloaded ajaxText that I posted. Have you tried it? Marius On Aug 17, 10:20 pm, g-man gregor...@gmail.com wrote: OK, thanks for checking back... Snippet: swappable(span class='dueon'{task.dueOn.toString}/span,               span

[Lift] Re: lift-openid broken

2009-08-17 Thread marius d.
Done. Br's, Marius On Aug 17, 9:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Aug 16, 2009 at 11:52 PM, marius d. marius.dan...@gmail.com wrote: Thank you for pointing this out. Most likely I'll make the corrections today. Please let us know when the changes are

[Lift] Test mail

2009-08-17 Thread Naftoli Gugenheim
How can I test mailing when offline? (Besides having a switch in my program to output mailed emails.)It would be nice if you could have all mails logged, with all their headers and body, and whether it was sent, preferably to a separate log file.

[Lift] bind implicits

2009-08-17 Thread Naftoli Gugenheim
What do people think of the following? I wrote some implicits that allow you to call bind as a method on a NodeSeq, allowing you to chain several bind statements.For example: def edit(xhtml: NodeSeq) = xhtml.bind(prefix1, label1 - value1, label2 - value2 ).bind(prefix2,

[Lift] Re: bind implicits

2009-08-17 Thread David Pollak
On Mon, Aug 17, 2009 at 12:44 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What do people think of the following? I wrote some implicits that allow you to call bind as a method on a NodeSeq, allowing you to chain several bind statements.For example: def edit(xhtml: NodeSeq) =

[Lift] Re: lift-openid broken

2009-08-17 Thread David Pollak
On Mon, Aug 17, 2009 at 12:35 PM, marius d. marius.dan...@gmail.com wrote: Done. Tnx Br's, Marius On Aug 17, 9:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Aug 16, 2009 at 11:52 PM, marius d. marius.dan...@gmail.com wrote: Thank you for pointing this out.

[Lift] Re: bind implicits

2009-08-17 Thread Naftoli Gugenheim
Should I leave it in view.Util? Or is there a better place? Because I really meant it (actually the whole view package) to support Mapper-based views, and this isn't related to Mapper. On Mon, Aug 17, 2009 at 3:46 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Aug 17, 2009 at

[Lift] Re: bind implicits

2009-08-17 Thread David Pollak
On Mon, Aug 17, 2009 at 12:48 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Should I leave it in view.Util? Or is there a better place? Because I really meant it (actually the whole view package) to support Mapper-based views, and this isn't related to Mapper. Yeah... put them in a

[Lift] Re: ws-generated code in lift

2009-08-17 Thread David Pollak
On Mon, Aug 17, 2009 at 11:50 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Does that imply any reason not to have % as a bind-with-attributes syntax? See http://groups.google.com/group/liftweb/msg/1fbf7df2009abf9e?hl=en No. The two concepts are very far apart (and % is a

[Lift] Re: bind implicits

2009-08-17 Thread Naftoli Gugenheim
How about BindPlus? BindUtil(s)? Better name anyone?I could put bindSwitch* there too, as well as other specialized binds. bindSwitch isn't too useful without chaining. *bindSwitch lets you have two or more parts of the view which act as a switch -- only one is visible at a time -- even if they

[Lift] Re: SHtml.a generating an a with bad attributes

2009-08-17 Thread harryh
Further information: Stripping things down to almost nothing, a test.html: lift:surround with=chrome at=content lift:a key=xxxignore/lift:a /lift:surround Generates the following HTML: a onclick=liftAjax.lift_ajaxHandler(quot;xxx=truequot;, null, null, null) href=javascript:// with=chrome

[Lift] Re: SHtml.a generating an a with bad attributes

2009-08-17 Thread harryh
Looks like a bug to me It does to me as well. And a somewhat serious one. FYI this bug (if it is indeed a bug) does *not* occur in Lift 1.0, but does in 1.1-M1 and later versions. -harryh --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Lift templates lack obvious stuff (?)

2009-08-17 Thread incarn...@whiteants.net
Oh, it certainly make more sense now, thanks a lot. My only concern is that with-param is not very self-descripting name for this feature. I would suggest something like lift:surround with=template lift:insert at=social div id=advertisement... /lift:insert /lift:surround Any markup should

[Lift] Re: Test mail

2009-08-17 Thread Ryan Donahue
I use a fake smtp server called Dumbster: http://quintanasoft.com/dumbster/ If run.mode is development or test, my app starts an embedded instance of dumbster on an unused port and configures Mailer to connect to that port. Any email sent by the app is received by dumbster (and not relayed).

[Lift] GitHub markup

2009-08-17 Thread Naftoli Gugenheim
I wrote (in a major rush) an example of using Paginator on the wiki. http://wiki.github.com/dpp/liftweb/example-paginating-mapper-based-snippets-with-sortable-headersI haven't figured out the markup too well though so it's not displaying correctly. Can someone fix it? Thanks.

[Lift] Re: Test mail

2009-08-17 Thread Naftoli Gugenheim
Neat, thanks! On Mon, Aug 17, 2009 at 4:40 PM, Ryan Donahue donahu...@gmail.com wrote: I use a fake smtp server called Dumbster: http://quintanasoft.com/dumbster/ If run.mode is development or test, my app starts an embedded instance of dumbster on an unused port and configures Mailer to

[Lift] Re: CMS for Lift?

2009-08-17 Thread Ewan
Also opencms and alfresco both Java/J2EE On Aug 17, 7:09 pm, Stefan Scott stefanscottal...@gmail.com wrote: I'll chime in here since I've been evaluating several CMSs lately. I previously used Drupal and WordPress as my CMSs - now however I'm moving everything to MODx because of the

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-17 Thread Timothy Perrett
I think his point is that he wants it added by default, rather than there is any problem. Personally, I don¹t see the point of adding it by default... But hey. On this note, I¹ve been thinking of perhaps having a re-shuffle in the code base to group the archetypes together in a module and add a

[Lift] Re: Deploying

2009-08-17 Thread Timothy Perrett
I run several sizable applications with NGINX and Jetty... Works like a dream. On 17/08/2009 18:55, Peter Robinett pe...@bubblefoundry.com wrote: I know David likes running Nginx in front of Jetty --~--~-~--~~~---~--~~ You received this message because

[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???

2009-08-17 Thread Timothy Perrett
They would still output the same of course ­ I just see a need for a few more starting points and I don¹t want to clutter the main codebase so a little bit of housekeeping is in order :-) Cheers, Tim On 17/08/2009 23:43, David Pollak feeder.of.the.be...@gmail.com wrote: As long as you don't

[Lift] Recent presentation to the Boulder JUG

2009-08-17 Thread Derek Chen-Becker
http://blip.tv/file/2485411 A big thanks to BJUG and especially Fred Jean for recording this. I'll be giving another talk in December to the Denver Open Source User Group (DOSUG). Hopefully we'll have some exciting announcements concerning 1.1 by then! Derek

[Lift] Re: Recent presentation to the Boulder JUG

2009-08-17 Thread David Pollak
Cool beans! On Mon, Aug 17, 2009 at 4:46 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: http://blip.tv/file/2485411 A big thanks to BJUG and especially Fred Jean for recording this. I'll be giving another talk in December to the Denver Open Source User Group (DOSUG). Hopefully we'll have

[Lift] Re: Deploying

2009-08-17 Thread Peter Robinett
Timothy, I'm just starting to learn how to use Nginx and would love to some pointers. How did you set up Nginx? How to do you launch your Jetty instances? Peter On Aug 17, 3:34 pm, Timothy Perrett timo...@getintheloop.eu wrote: I run several sizable applications with NGINX and Jetty... Works

[Lift] Re: Getting started: Rendering a template (Definitive Guide)

2009-08-17 Thread Morris Jones
Great suggestion, and I'd love to do that. When I changed the versions to 1.1-SNAPSHOT in the POM file, maven wasn't able to find them at scala-tools.org. I guess I need to add another repository. I'll look into that. Thanks, Mojo David Pollak wrote: It's also a really, really good idea

[Lift] Re: Recent presentation to the Boulder JUG

2009-08-17 Thread marius d.
Great talk Derek !!! Br's, Marius On Aug 18, 2:46 am, Derek Chen-Becker dchenbec...@gmail.com wrote: http://blip.tv/file/2485411 A big thanks to BJUG and especially Fred Jean for recording this. I'll be giving another talk in December to the Denver Open Source User Group (DOSUG). Hopefully