[Lift] Re: Comet long polls turning to fast short polls

2009-11-23 Thread Marius
Are you using multiple tabs with the same page? or even having multiple instances of the same browser having the same page opened in the same time? If so don't, because the Ajax connections are shared between tabs and even different instances of the same browsers. Try using different browsers openi

[Lift] Comet long polls turning to fast short polls

2009-11-23 Thread soumik
Hi, I'm trying to build a small Twitter application using scala, using Twitter4j java library. In my application I'm using 2 comet actors, one needed for managing general updates(non-Twitter) and one for making twitter updates. Problem is as soon as I log into twitter using my app, I see that th

[Lift] Plans for Record

2009-11-23 Thread Jason Felice
I'd like to chip in, but I'm not familiar with the intended design - specifically anything about an RDBMS backend. (e.g. Go the way of Mapper, or use a more comprehensive backend like JPA?) Second, are there committers who can review Record patches? I'm caught between not wanting to use JPA, and

[Lift] binding error

2009-11-23 Thread mr najmi
i have one error that is found : scala.xml.NodeSeq required: scala.xml.Node bind("app",html, ^ here is my code: var app = AvailableSlot.findAll() def viewapp(xhtml:NodeSeq):NodeSeq={ var ae = "" var remark = "" def prevSlot()={ }

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 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 dbIncludeInForm_? = fal

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, tommyc

Re: [Lift] Controlling fields in form generation

2009-11-23 Thread Ross Mellgren
It looks like you can override dbIncludeInForm_? to suppress fields from showing up in the form: ... object myField extends MappedString(this, 32) { override def dbIncludeInForm_? = false } ... -Ross On Nov 23, 2009, at 11:38 PM, Oscar Picasso wrote: > HI, > > I generate a form with .toF

[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 w

[Lift] Feature Request: deleteMenuLocParams in CRUDify

2009-11-23 Thread tommycli
Add deleteMenuLocParams to CRUDify. Patch below. (I tried github, but you guys don't pull apparently). diff --git a/lift-persistence/lift-mapper/src/main/scala/net/liftweb/ mapper/CRUDify.scala b/lift-persistence/lift-mapper/src/main/scala/net/ liftweb/mapper/CR index 21e5a3b..5aae123 100644 ---

[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 v

[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 v

[Lift] Controlling fields in form generation

2009-11-23 Thread Oscar Picasso
HI, I generate a form with .toForm and want some fields to not appear in the form. I have tried to subclass fieldOrder in the MetaMapper but while it controls the order, all the fields keep appearing in the form even if they are not in the list returned by the overrided fieldOrder methods. I have

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

2009-11-23 Thread Ross Mellgren
Understood. Thanks. -Ross On Nov 23, 2009, at 8:15 PM, David Pollak wrote: > > > On Mon, Nov 23, 2009 at 4:55 PM, Ross Mellgren 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

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 wrote: > > Try http://github.com

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 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 create an iss

Re: [Lift] Re: Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:54 PM, sunanda 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 > wrote: > > On Mon, Nov 23, 2009 at 4:27 PM, sunanda > wrote: > > > I get the HTTP Status 404 Error:

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

[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 wrote: > On Mon, Nov 23, 2009 at 4:27 PM, sunanda 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/ > >

Re: [Lift] Re: Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:27 PM, sunanda 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 > wrote: > > On Mon, Nov 23, 2009 at 4:13 PM, sunanda

[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 wrote: > On Mon, Nov 23, 2009 at 4:13 PM, sunanda wrote: > > Hi, > > I need the url pattern for my application to be "/grid/*". > > > I configured the web.xml file like this: > > > >

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 MetaMegaProtoUser?

Re: [Lift] Configuring web.xml

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 4:13 PM, sunanda wrote: > Hi, > I need the url pattern for my application to be "/grid/*". > > I configured the web.xml file like this: > > > LiftFilter > Lift Filter > The Filter that intercepts lift calls > net.liftweb.http.LiftFilter > > > > > LiftFilter > /gr

Re: [Lift] Re: ManyToMany decision

2009-11-23 Thread Naftoli Gugenheim
It turns out that foreign keys not being created by Schemifier was DB specific -- to my knowledge only H2. Hopefully that will get fixed. Although it doesn't specify an action - cascade etc. So do we want a way to tell Schemifier what action to use for FK constraints? Or do we want Mapper to manage

[Lift] ModelView save return type

2009-11-23 Thread Naftoli Gugenheim
Some time ago I discovered a small bug in my webapp. I use ModelSnippet / ModelView. A submit button called the ModelView's save method and then invoked another method. I realized that other method wasn't getting invoked because save was ultimately leading to a redirect (back to the list page). So

[Lift] scala-time and Lift pom.xml

2009-11-23 Thread Peter Robinett
This is more a question for Jorge than anyone else but since it's Lift- related I thought I'd put it here: What's the easiest way to add scala-tools to my Lift project's pom.xml? My knowledge of Maven is very limited, but I hope that it is simply a matter of adding another repository and dependenc

[Lift] Configuring web.xml

2009-11-23 Thread sunanda
Hi, I need the url pattern for my application to be "/grid/*". I configured the web.xml file like this: LiftFilter Lift Filter The Filter that intercepts lift calls net.liftweb.http.LiftFilter LiftFilter /grid/* But my application does not run with this pattern (e.g. http://l

Re: [Lift] Lift on Azure

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 2:50 PM, Derek Chen-Becker wrote: > I really thought that you were talking about Azul, which is something I > would *love* to run Lift on :) > It can be arranged for the right reason :-) > > http://www.azulsystems.com/ > > Derek > > > On Thu, Nov 19, 2009 at 3:20 PM, Dav

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 wrote: > > > On Thu, Nov 19, 2009 at 1:51 PM, Matt Harrington wrote: > >> Java apps have gotten a lot easier to

[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 List[Pair[D

[Lift] Re: Page flows in Lift

2009-11-23 Thread Timothy Perrett
Just to update this thread - im waiting for DPP to merge his wizard branch into master then I'll make this little sample app. Cheers, Tim On Nov 22, 4:20 pm, Timothy Perrett wrote: > Erwin, > > Sorry, I just seen your picture on the blog link and it was indeed you > who had this conversation wit

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 wrote: > 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 > wrote: > > On Mon, Nov 23, 2009 at

[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 wrote: > On Mon, Nov 23, 2009 at 12:02 PM, Ross Mellgren wrote: > > mvn dependency:tree > > Cool.  Thanks! > > >

Re: [Lift] Allowing only 'owners' to access objects

2009-11-23 Thread David Pollak
The method that's used to look up an item in CRUDify is: def findForParam(in: String): Box[CrudType] = find(in) You can override this method: override def findForParam(in: String): Box[CrudType] = find(in).filter(_.canBeViewedBy(User.currentUser)) And then implement: def canBeViewedBy(who

[Lift] Re: Strip header from a subset of pages

2009-11-23 Thread harryh
> It will eliminate both the doctype and the thing. This does not appear to be the case. I just tried it (on M7). Also looking at the code for NodeResponse this does not appear to be what the code is doing. -harryh -- You received this message because you are subscribed to the Google Groups

Re: [Lift] early execution of snippet

2009-11-23 Thread Jean-Luc
If you do not use the quotes ", your string "document" will be considered as a variable and your RewriteRequest will match /something/somethingElse Is it better with this code ? case RewriteRequest(ParsePath("document" :: id :: Nil,_,_,_ ), _,_) => RewriteResponse("display" :: Nil, Map("id" ->id

Re: [Lift] Re: Strip header from a subset of pages

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 12:22 PM, harryh wrote: > That will skip the DOCTYPE though right? > I'm looking to avoid sending the XML header ( encoding="UTF-8"?>) > It will eliminate both the doctype and the thing. If you just need to the XML header removed, please open a ticket and we'll add a Li

[Lift] Re: Strip header from a subset of pages

2009-11-23 Thread harryh
That will skip the DOCTYPE though right? I'm looking to avoid sending the XML header () -harryh On Nov 23, 3:03 pm, David Pollak wrote: > If you set S.skipDocType = false during the processing of the request for > these devices, the stuff will be omitted. > > > > On Mon, Nov 23, 2009 at 11:49 A

[Lift] Allowing only 'owners' to access objects

2009-11-23 Thread tommycli
Say we have a "Poll" object with an "owner" field that's CRUDified. For urls such as: /polls/view/41 How would I restrict access to the user who matches the "owner" field. 1. Would I do this through SiteMap? How would I test the currentUser against the object? 2. Or would I allow access on Sit

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

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 12:02 PM, Ross Mellgren wrote: > mvn dependency:tree > Cool. Thanks! > > -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.

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

2009-11-23 Thread Chris Lewis
Does mvn dependency:tree help? chris 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 the particular

Re: [Lift] Strip header from a subset of pages

2009-11-23 Thread David Pollak
If you set S.skipDocType = false during the processing of the request for these devices, the stuff will be omitted. On Mon, Nov 23, 2009 at 11:49 AM, harryh wrote: > I want to send a subset (based on the path) of my pages without an xml? header. Is there an easy way to do this? > > I want to

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 black

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

2009-11-23 Thread David Pollak
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 the particular reference?\ Thanks, David -- Lift, the simply functional web framewor

[Lift] Strip header from a subset of pages

2009-11-23 Thread harryh
I want to send a subset (based on the path) of my pages without an http://groups.google.com/group/liftweb?hl=.

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

2009-11-23 Thread Ross Mellgren
Unless there's a problem with it, my original idea was: def resourceBundles: List[ResourceBundle] = { _resBundle.box match { case Full(Nil) => { // loads the resource bundles here } case Full(bundles) => bundles case _ => { Log.err

[Lift] Re: Lift archetypes broken

2009-11-23 Thread Timothy Perrett
Gah - please ignore me; sorry for the email traffic. On Nov 23, 5:25 pm, Timothy Perrett wrote: > Guys (IRC specifically), > > The archetypes in master are broken: > > [INFO] > > [ERROR] BUILD ERROR > [INFO] > --

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

2009-11-23 Thread Timothy Perrett
Ross, what did you have in mind for presenting a better error message? Cheers, Tim On 23 Nov 2009, at 19:01, Ross Mellgren wrote: > 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

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 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 request.

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] 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 update

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 Sat

[Lift] Re: Combined primary key?

2009-11-23 Thread Arthur
On 23 Nov., 17:42, David Pollak wrote: > On Mon, Nov 23, 2009 at 8:30 AM, Ross Mellgren 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. Compound primary key, not combined pri

[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 sou

[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: T

[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 http://l

Re: [Lift] url problem

2009-11-23 Thread David Pollak
On Sun, Nov 22, 2009 at 11:36 PM, mr najmi 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( >ParsePath(Lis

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 wrote: > I'm brand new to Lift and Scala, but an old hand to Java. I'm trying > to work through the 'todo' example and get the followin

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] Combined primary key?

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 8:30 AM, Ross Mellgren 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 way

Re: [Lift] Working with legacy databases

2009-11-23 Thread David Pollak
On Mon, Nov 23, 2009 at 8:38 AM, Jim Barrows wrote: > > > On Sat, Nov 21, 2009 at 8:16 PM, Donald McLean 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 probabl

Re: [Lift] Working with legacy databases

2009-11-23 Thread Jim Barrows
On Sat, Nov 21, 2009 at 8:16 PM, Donald McLean 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 someone recommend a

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 Lewis wrote: Thanks Naftoli, that did it. I wonder, why use a new method -%> for at

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] 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 unproductiv

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 wrote: > Marius 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

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 t

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 wrote: > Interesting - this is something i've not actually thought abo

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 he

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

2009-11-23 Thread Jeppe Nejsum Madsen
Marius 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 don't use Lift

[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 (

[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 n

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 > Your missing a trick here - there is a fork of nginx done by

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 [I

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 > >

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 usin

[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 wrote: > Thanks Tim. I didn't know S.init has to be called ex

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 wrote: > Jack, > > 1. > object MyThing extends SessionVar[Box[String]](Empty) > > Im using Box[String] here, but you can use whatever types you want...

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, j

[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 wrote: > I defined a session variable like this > > o

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 true (I prefer using the property instead of directly configure surfire because : * don't require to add a surfire section if it doesn't

[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,

[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 state

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

[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 wrote: > On Sun, Nov 22, 2009 at 3:36 AM, Anatoli wrote: > > I get following problem when trying to access a testOps.list method > > from a template > > WARN - Snippet Failure: SnippetFailure(/ -> ParsePath(List > > (index),,true,false),Full(te

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 Loc

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 try

[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 a

[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 wrote: > I'm brand new to Lift and Scala, but an old hand to Java.  I'm trying > to work through the 'todo' example and get the following compile

[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 6.1.2