[Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-23 Thread monty chen
I am uging lift develop a projectI, I want to deploy my project using jetty instead of tomcat, so i test jetty 6.1.22. my notebook: lenovo Y330(cpu: Core2 Duo p7350 2GHz, mem: 3G) my os: debian lenny for amd64 jdk: Java(TM) SE Runtime Environment (build 1.6.0_17-b04) step 1: download jetty

[Lift] Re: todo tutorial compile problem

2009-11-23 Thread Jean-Adrien
Seems more than your User class is not implemented or not visible. Is it ? Does your model classes declare the same package ? On Nov 20, 6:42 am, adamp adam.perrypellet...@gmail.com wrote: I'm brand new to Lift and Scala, but an old hand to Java.  I'm trying to work through the 'todo' example

[Lift] early execution of snippet

2009-11-23 Thread iboy
I am developing an application in which i need to do url rewriting so that all the request of type /document/id gets directed to webpage display.html which calls a snippet in which i am trying to do some processing by capturing the parameter passed during urlrewriting,everything works fine but i

Re: [Lift] early execution of snippet

2009-11-23 Thread Timothy Perrett
Have a read of my article here: http://is.gd/wq4K Cheers, Tim On 23 Nov 2009, at 10:50, iboy wrote: I am developing an application in which i need to do url rewriting so that all the request of type /document/id gets directed to webpage display.html which calls a snippet in which i am

Re: [Lift] Re: Call it Lift 2.0

2009-11-23 Thread Timothy Perrett
Interesting - this is something i've not actually thought about: If we were to compile a list of all the breaking changes in 1.1, perhaps that would give some focus to this discussion... as josh points out, there are most likely quite a few now and 1.0 - 1.1 is a fairly short jump. Loc and

[Lift] Re: problem defining a snippet - Method Not Found reported.

2009-11-23 Thread Anatoli
Thanks. It helped. On Nov 23, 3:03 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Nov 22, 2009 at 3:36 AM, Anatoli anatoli...@gmail.com wrote: I get following problem when trying to access a testOps.list method from a template WARN - Snippet Failure: SnippetFailure(/ -

Re: [Lift] labels for inputs

2009-11-23 Thread Chris Lewis
Thanks Naftoli, that did it. I wonder, why use a new method -% for attribute preservation? Naftoli Gugenheim wrote: This was changed. Instead, with the regular arrow - attributes are not preserved at all, and a new arrow was introduced -% that preserves all attributes from the template as

[Lift] Re: Where are the dragons hiding?

2009-11-23 Thread ngocdaothanh
Is Lift suitable for web for mobiles? Generally web for mobiles (especially in Japan) has some characteristics: * No JavaScript support * No cookie support * Non standard HTML tags Thanks I think this thread contains the key dragons in Lift.  Basically, it boils down to: Lift is highly

[Lift] Re: [scala-internals] Lift compiles on Scala 2.8 and runs the demo

2009-11-23 Thread Paul Phillips
On Fri, Nov 20, 2009 at 06:21:09AM +, Ismael Juma wrote: I was looking at the fix[1] and it doesn't seem to me like it's the correct fix (although it does fix the infinite loop). If I call ensureCapacity and the internal array length is 0, I still want the method to do what I asked,

Re: [Lift] Lift compiles on Scala 2.8 and runs the demo

2009-11-23 Thread David Bernard
To run maven without compiling+running test from commandline : mvn -Dmaven.test.skip=true To fully disable test without commenting them : edit pom.xml properties maven.test.skiptrue/maven.test.skip /properties (I prefer using the property instead of directly configure surfire because : *

[Lift] Re: session variable question

2009-11-23 Thread jack
To give more information, I have two questions. 1) I want to define and set a session variable in Class A and read it in Class B. What is the code? 2) Can A and B be arbitrary classes or do they have to be snippets? On Nov 22, 9:14 pm, jack jack.wid...@gmail.com wrote: I defined a session

Re: [Lift] Re: session variable question

2009-11-23 Thread Timothy Perrett
Jack, 1. object MyThing extends SessionVar[Box[String]](Empty) Im using Box[String] here, but you can use whatever types you want... 2. They can be anything (classes, actors, objects), provided they are in session scope (that is, S.init has been called) Cheers, Tim On 23 Nov 2009, at 13:15,

Re: [Lift] Re: session variable question

2009-11-23 Thread Jack Widman
Thanks Tim. I didn't know S.init has to be called explicitly. This can be called from anywhere? On Mon, Nov 23, 2009 at 8:19 AM, Timothy Perrett timo...@getintheloop.euwrote: Jack, 1. object MyThing extends SessionVar[Box[String]](Empty) Im using Box[String] here, but you can use whatever

[Lift] Re: session variable question

2009-11-23 Thread Marius
Do not call S.init on your own. Lift does that automatically. object MyThing extends SessionVar[Box[String]](Empty) set value: MyThing.set(Full(my value)) get the value: MyThing.get Br's, Marius On Nov 23, 3:26 pm, Jack Widman jack.wid...@gmail.com wrote: Thanks Tim. I didn't know S.init

Re: [Lift] Re: session variable question

2009-11-23 Thread Timothy Perrett
Jack, No, you don't call that yourself - I was meaning that Lift initiates the session for you, thats not your worry :-) My point really was that comet actors and other lift infrastructure initiate the session, but normal scala actors would require you to start the session scope manually using

Re: [Lift] Lift compiles on Scala 2.8 and runs the demo

2009-11-23 Thread Eric Bowman
Some people consider it slightly evil, but you can also just do mvn ... -Dtest=false. Less typing. David Bernard wrote: To run maven without compiling+running test from commandline : mvn -Dmaven.test.skip=true To fully disable test without commenting them : edit pom.xml properties

Re: [Lift] Lift compiles on Scala 2.8 and runs the demo

2009-11-23 Thread David Bernard
I agree skipping test is BAD, but in the case of 2.8 for lift or when running test is long and you need to run install (eg to check compilation on a multi-module project). -Dtest=false less typing but not the same result : -Dtest=false == avoid running test not compiling them and generate this

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-23 Thread Jeremy Day
All, I'm admittedly quite a n00b here and I have very little Maven experience. Can someone provide a POM for the Nginx + Jetty configuration? I think that I would find it quite helpful. Thanks. Jeremy 2009/11/20 Timothy Perrett timo...@getintheloop.eu Your missing a trick here - there is a

[Lift] Re: Where are the dragons hiding?

2009-11-23 Thread Marius
It should be just fine. You can tell lift to not use Ajax or any JS at all. There are some flags in LiftRules to do that. LiftRules.setAutoIncludeComet = false; LiftRules.setAutoIncludeAjax = false; Besides that just don't use JS in your markup or don't use Lift's ajax stuff. Lift works with

[Lift] Combined primary key?

2009-11-23 Thread Arthur
Hi all I can't seem to find a way to use a combined primary key. The use case I'm looking at would be something like a bug tracker where you can comment on each bug. Each comment would have a number (only unique within each bug report). In SQL I'd write something like: CREATE TABLE bug_comments

Re: [Lift] Re: Where are the dragons hiding?

2009-11-23 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: It should be just fine. You can tell lift to not use Ajax or any JS at all. There are some flags in LiftRules to do that. LiftRules.setAutoIncludeComet = false; LiftRules.setAutoIncludeAjax = false; Besides that just don't use JS in your markup or

Re: [Lift] Re: Jetty or Tomcat, Which web container is recommended to use to deploy the Lift app ?

2009-11-23 Thread Timothy Perrett
Ummm, there is no pom for this - its not that kind of thing. NGINX is a front end C application - if you want the fair load balencer, just download the module and compile into your NGINX build. Cheers, Tim On 20 Nov 2009, at 10:59, Jeremy Day wrote: All, I'm admittedly quite a n00b here

Re: [Lift] Re: Call it Lift 2.0

2009-11-23 Thread Josh Suereth
The real question is could you still keep source compatibility if you made use of some interesting implict and @deprecated annotations? I believe those are acceptable. - Josh On Mon, Nov 23, 2009 at 6:05 AM, Timothy Perrett timo...@getintheloop.euwrote: Interesting - this is something i've

Re: [Lift] Re: Call it Lift 2.0

2009-11-23 Thread Josh Suereth
On Mon, Nov 23, 2009 at 2:09 AM, Heiko Seeberger seeber...@weiglewilczek.com wrote: Josh, Thank you for your brilliant elaboration of compatibility issues! [snip/] Also, there is the possibility of taking the version system and adding a functionality milestone version at the begginning.

Re: [Lift] Re: Where are the dragons hiding?

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 7:24 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Marius marius.dan...@gmail.com writes: It should be just fine. You can tell lift to not use Ajax or any JS at all. There are some flags in LiftRules to do that. LiftRules.setAutoIncludeComet = false;

Re: [Lift] Re: How to make Ajax call from onLoad/onResize?

2009-11-23 Thread Ross Mellgren
If those other issues are with lift and you're stuck, of course feel free to post to the list for help. -Ross On Nov 20, 2009, at 9:31 AM, jhonig wrote: Hi Ross, I haven't been able to test your solution yet, still struggling with several other issues. I seldom feel this unproductive,

Re: [Lift] Combined primary key?

2009-11-23 Thread Ross Mellgren
I have heard on the list previously that compound primary keys are not supported by mapper. -Ross On Nov 23, 2009, at 10:18 AM, Arthur wrote: Hi all I can't seem to find a way to use a combined primary key. The use case I'm looking at would be something like a bug tracker where you can

Re: [Lift] labels for inputs

2009-11-23 Thread Naftoli Gugenheim
One reason is that the regular arrow takes a NodeSeq which can't necessarily have attributes; for example it might be a few Elems. The new arrow takes Elem which can. - Chris Lewisburningodzi...@gmail.com wrote: Thanks Naftoli, that did it. I wonder, why use

Re: [Lift] Working with legacy databases

2009-11-23 Thread Jim Barrows
On Sat, Nov 21, 2009 at 8:16 PM, Donald McLean dmclea...@gmail.com wrote: We are considering porting an existing Java desktop app to a Scala/lift web app. The application works with a Sybase DB. I'm still pretty new to Scala and Lift so I'm probably overlooking something obvious but could

Re: [Lift] Working with legacy databases

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 8:38 AM, Jim Barrows jim.barr...@gmail.com wrote: On Sat, Nov 21, 2009 at 8:16 PM, Donald McLean dmclea...@gmail.comwrote: We are considering porting an existing Java desktop app to a Scala/lift web app. The application works with a Sybase DB. I'm still pretty new

Re: [Lift] Combined primary key?

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 8:30 AM, Ross Mellgren dri...@gmail.com wrote: I have heard on the list previously that compound primary keys are not supported by mapper. That'd be correct. Please use JPA. -Ross On Nov 23, 2009, at 10:18 AM, Arthur wrote: Hi all I can't seem to find a

Re: [Lift] Re: Call it Lift 2.0

2009-11-23 Thread Timothy Perrett
I guess this conversation should have taken place before we started doing milestone releases etc - stuff thats broken will have to stay broken now otherwise we'll be making more breaking changes just to un-break previous stuff... Cheers, Tim On 23 Nov 2009, at 16:18, Josh Suereth wrote:

Re: [Lift] todo tutorial compile problem

2009-11-23 Thread David Pollak
What command line command did you use to create the project? Is there a User.scala file in your model package/directory? On Thu, Nov 19, 2009 at 9:42 PM, adamp adam.perrypellet...@gmail.comwrote: I'm brand new to Lift and Scala, but an old hand to Java. I'm trying to work through the 'todo'

Re: [Lift] url problem

2009-11-23 Thread David Pollak
On Sun, Nov 22, 2009 at 11:36 PM, mr najmi mnajm...@gmail.com wrote: dear all, i have one problem in url rewriting..what i want is something like this guest/view?branch=?date=?...or guest/view/branch/date. my code as below: LiftRules.rewrite.append { case RewriteRequest(

[Lift] Wicked slow compilation speed

2009-11-23 Thread David Pollak
Folks, In the last week, the compile-time for the Textile module has gone from 35 seconds to 55 seconds for me. Does anyone have any idea of changes to pom.xml files or maven-scala plugin that could have led to this slowdown? Thanks, David -- Lift, the simply functional web framework

[Lift] Lift archetypes broken

2009-11-23 Thread Timothy Perrett
Guys (IRC specifically), The archetypes in master are broken: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error:

[Lift] Re: Call it Lift 2.0

2009-11-23 Thread Heiko Seeberger
Please let's not widen this discussion into something else but the question which versioning policy we are to apply. Building some kind of compatibility layer could be done regardless of the next Lift version number. Do we have a consensus, that there are several substantial changes breaking

[Lift] Re: Combined primary key?

2009-11-23 Thread Arthur
On 23 Nov., 17:42, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Nov 23, 2009 at 8:30 AM, Ross Mellgren dri...@gmail.com wrote: I have heard on the list previously that compound primary keys are not supported by mapper. That'd be correct.  Please use JPA. Thanks Ross and David.

Re: [Lift] NPE in S.?! if used outside a request

2009-11-23 Thread David Pollak
I am okay with an NPE thrown from using S outside a request. Yeah, it'd be nicer to have a more polite error message, but there should be no creep towards being able to call S outside a request/session scope. Also, except for tests or actors, one should never think about initializing S. On

Re: [Lift] Working with legacy databases

2009-11-23 Thread Jean-Luc
I think scalajpa is a very good option if your database is supported by the underlying jpa provider. - according to https://www.hibernate.org/80.html, the hibernate / sybase supported version is Sybase 12.5 (JConnect 5.5) - according to https://www.hibernate.org/120.html, there is some Batch

Re: [Lift] NPE in S.?! if used outside a request

2009-11-23 Thread Ross Mellgren
So would you prefer no change or change to have better error message? -Ross On Nov 23, 2009, at 1:55 PM, David Pollak wrote: I am okay with an NPE thrown from using S outside a request. Yeah, it'd be nicer to have a more polite error message, but there should be no creep towards being

Re: [Lift] NPE in S.?! if used outside a request

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 11:01 AM, Ross Mellgren dri...@gmail.com wrote: So would you prefer no change or change to have better error message? Change to have a better error message -Ross On Nov 23, 2009, at 1:55 PM, David Pollak wrote: I am okay with an NPE thrown from using S outside a

Re: [Lift] Okay... part of the slow problem is javax.script

2009-11-23 Thread Ross Mellgren
mvn dependency:tree -Ross On Nov 23, 2009, at 2:55 PM, David Pollak wrote: Folks, I've narrowed down part of the slowness problem. There's a reference to javax.script:script-js that's never satisfied. How can I track down what is including this reference or alternatively blacklist

[Lift] Re: Okay... part of the slow problem is javax.script

2009-11-23 Thread Joni Freeman
David, it's probably a broken Specs 1.6.1 which causes this. Please see this: http://github.com/robey/xrayspecs/issues/closed/#issue/1 Cheers Joni On 23 marras, 22:06, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Nov 23, 2009 at 12:02 PM, Ross Mellgren dri...@gmail.com wrote:

Re: [Lift] Re: Okay... part of the slow problem is javax.script

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 12:56 PM, Joni Freeman freeman.j...@gmail.comwrote: David, it's probably a broken Specs 1.6.1 which causes this. Please see this: http://github.com/robey/xrayspecs/issues/closed/#issue/1 Tnx! Cheers Joni On 23 marras, 22:06, David Pollak

[Lift] Improving lift-flot

2009-11-23 Thread Peter Robinett
I've been working with lift-flot a lot recently and I'd like to share some thoughts and suggest some improvements. It's a very useful interface to a great Javascript plotting library, so consider these as small suggestions from a fan. First, the fact that FlotSerie's data property is a

Re: [Lift] Lift on Azure

2009-11-23 Thread Derek Chen-Becker
I really thought that you were talking about Azul, which is something I would *love* to run Lift on :) http://www.azulsystems.com/ Derek On Thu, Nov 19, 2009 at 3:20 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Nov 19, 2009 at 1:51 PM, Matt Harrington

Re: [Lift] Problem with issue 182

2009-11-23 Thread Derek Chen-Becker
OK, thinking about this a little further, technically it would be a breaking change to remove the menus method from MetaMegaProtoUser. Would it be better to simply introduce a MenuGenerator trait, a la trait MenuGenerator { def menus : List[Menu] } And add that to CRUDify and

[Lift] Re: Configuring web.xml

2009-11-23 Thread sunanda
I get the HTTP Status 404 Error: The requested resource () is not available On Nov 24, 11:21 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Nov 23, 2009 at 4:13 PM, sunanda sunanda.pa...@gmail.com wrote: Hi, I need the url pattern for my application to be /grid/*. I

Re: [Lift] Re: Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:27 PM, sunanda sunanda.pa...@gmail.com wrote: I get the HTTP Status 404 Error: The requested resource () is not available Do you have items and SiteMap entries for /grid/index /grid/ ? On Nov 24, 11:21 am, David Pollak feeder.of.the.be...@gmail.com wrote:

[Lift] Re: Configuring web.xml

2009-11-23 Thread sunanda
No I don't have. Do I need to have this. On Nov 24, 11:49 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Nov 23, 2009 at 4:27 PM, sunanda sunanda.pa...@gmail.com wrote: I get the HTTP  Status  404 Error: The requested resource () is not available Do you have items and

Re: [Lift] Re: Change to support dynamic top level menu items

2009-11-23 Thread Ross Mellgren
As much as I subscribe to the a lack of dissent is implicit assent policy, I'm hoping somebody deeply familiar with SiteMap can comment on whether this change seems like a bad idea? I guess if I don't hear anything I'll create an issue and submit the patch for review, but I'd feel better with a

Re: [Lift] Re: Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:54 PM, sunanda sunanda.pa...@gmail.com wrote: No I don't have. Do I need to have this. If you don't define the pages, then you'll get a 404. On Nov 24, 11:49 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Nov 23, 2009 at 4:27 PM, sunanda

Re: [Lift] Re: Change to support dynamic top level menu items

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:55 PM, Ross Mellgren dri...@gmail.com wrote: As much as I subscribe to the a lack of dissent is implicit assent policy, I'm hoping somebody deeply familiar with SiteMap can comment on whether this change seems like a bad idea? I guess if I don't hear anything I'll

Re: [Lift] Re: Can we deploy lift webapp on Google App Engine?

2009-11-23 Thread jlist9
Hi, Is this the easiest/simplest instructions/setup to deploy a Lift app on GAE? It seems to involve datanucleus-enhancer, which I know nothing about. I'm not sure what other dependency it has. Is it required? Thanks Jack On Tue, Sep 29, 2009 at 8:16 PM, Randinn rand...@gmail.com wrote: Try

[Lift] Re: early execution of snippet

2009-11-23 Thread iboy
Thanx tim and Jean . Suggestion by jean solved my problem and thanx Tim for writing such a simple and wonderful tutorial. I would also like to seek suggestions on one more doubts : a) I have a situation in which the number of fields and their values in Form are decided at run time based on the

[Lift] Re: early execution of snippet

2009-11-23 Thread iboy
Thanx tim and Jean . Suggestion by jean solved my problem and thanx Tim for writing such a simple and wonderful tutorial. I would also like to seek suggestions on one more doubts : a) I have a situation in which the number of fields and their values in Form are decided at run time based on the

[Lift] Need for lift application to coexist with spring in the same webapp

2009-11-23 Thread sunanda
Hi David, Thank for all the help so far. My lift application needs to coexist with the spring servlet in the same web application. I have configured the web.xml file for both of the spring servlet and lift filter. Hence I need to configure the url pattern in such a way that /grid/* request

Re: [Lift] Feature Request: deleteMenuLocParams in CRUDify

2009-11-23 Thread Ross Mellgren
Added an issue for you: http://github.com/dpp/liftweb/issues#issue/205 and it's on review board: http://reviewboard.liftweb.net/r/121/ So it will (probably) be in 1.1-SNAPSHOT in a day or two, assuming the change isn't unacceptable for whatever reason. -Ross On Nov 23, 2009, at 11:50 PM,

Re: [Lift] Controlling fields in form generation

2009-11-23 Thread Oscar Picasso
Thanks, that's what I was looking for. On Tue, Nov 24, 2009 at 12:40 AM, Ross Mellgren dri...@gmail.com wrote: It looks like you can override dbIncludeInForm_? to suppress fields from showing up in the form: ... object myField extends MappedString(this, 32) { override def