[Lift] Re: New Milestone coming soon

2009-11-13 Thread Hannes
Hi David, I read your response, but I didn't replied. Sorry. I've to figure out, what causes my problem. Seems like the CometActor update or something doesn't work properly, in M6 it did. But I don't really know, yet. thanks. On Thu, Nov 12, 2009 at 11:37 AM, Hannes hannes.flo...@gmx.li

[Lift] Is there a paginate plug in the lift ?

2009-11-13 Thread Neil.Lv
Hi all, Is there a paginate plug in the lift ? Just like the WillPaginate in the Rails. Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] Re: lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-13 Thread Heiko Seeberger
I fixed it and it is on review board ... Heiko 2009/11/13 Heiko Seeberger heiko.seeber...@googlemail.com OK, I spotted the problem and will work on the issue ... Heiko 2009/11/13 Heiko Seeberger heiko.seeber...@googlemail.com maven-bundle-plugin? Well, that's my business, I guess. I will

[Lift] Re: lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-13 Thread Jeppe Nejsum Madsen
Heiko Seeberger heiko.seeber...@googlemail.com writes: I fixed it and it is on review board ... Does this by any chance also fix http://github.com/dpp/liftweb/issues#issue/167 They both seem to be related to the maven bundle config /Jeppe

[Lift] Re: lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-13 Thread Heiko Seeberger
I cannot see, how the maven-bundle-plugin should affect the creation of the source jar, but who knows ... Locally my -SOURCE.jar files are OK. After I get a Ship it we will see how the Hudson build behaves. Heiko 2009/11/13 Jeppe Nejsum Madsen je...@ingolfs.dk Heiko Seeberger

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-13 Thread oshyshko
David, Your call to Service.say is outside the scope of the Lift HTTP request, so it's not wrapped with the transaction management stuff. Exactly. The thing that I want LiftFilter to wrap /messagebroker/*, so I will get per-HTTP request automatic transaction management and my code will

[Lift] Re: lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-13 Thread Jeppe Nejsum Madsen
Heiko Seeberger heiko.seeber...@googlemail.com writes: I cannot see, how the maven-bundle-plugin should affect the creation of the source jar, but who knows ... My bad..not knowing maven, I assumed the bundle plugin is the one that creates jars. From a cursory look, I can see it seems to only

[Lift] Re: lift-webkit-1.1-SNAPSHOT contains duplicate classes (e.g. Box.class)

2009-11-13 Thread Heiko Seeberger
Heiko Seeberger heiko.seeber...@googlemail.com writes: I cannot see, how the maven-bundle-plugin should affect the creation of the source jar, but who knows ... My bad..not knowing maven, I assumed the bundle plugin is the one that creates jars. From a cursory look, I can see it seems

[Lift] Problem with rewriting and SessionVar

2009-11-13 Thread Jeppe Nejsum Madsen
Hi, I seem to have a problem with SessionVars which I try to initialize in a LocRewrite. This is an entry point url to the app. It receives some parameters from the url, picks out the parameters and puts them in SessionVars and rewrites the request. I have problems setting the SessionVar when

[Lift] Re: Problem cloning lift repo.

2009-11-13 Thread David Pollak
The correct command line: git clone git://github.com/dpp/liftweb.git On Thu, Nov 12, 2009 at 9:44 PM, ivan ivan.se...@gmail.com wrote: I am trying to clone git lift repo and keep getting this error: git clone http://github.com/dpp/liftweb.git Initialized empty Git repository in

[Lift] Re: MegaProtoUser + MappedPassword question

2009-11-13 Thread Derek Chen-Becker
Open a ticket, as this should be configurable. In case you didn't find it, the ** is taken from the MappedPassword object, field blankPw. This should be a var and there should probably be a per-MappedPassword field override as well. Derek On Sun, Nov 8, 2009 at 6:48 AM, george

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Derek Chen-Becker
That's really odd. As far as I know the only thing JPA related that might have changed is for the JPA Demo site (pom Hibernate version change). The transaction handling code is all in ScalaJPA, which also hasn't changed. JndiEMF explicitly opens a transaction before it even retrieves the EM from

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 3:08 AM, oshyshko oshys...@gmail.com wrote: David, Your call to Service.say is outside the scope of the Lift HTTP request, so it's not wrapped with the transaction management stuff. Exactly. The thing that I want LiftFilter to wrap /messagebroker/*, so I will

[Lift] Re: Problem with rewriting and SessionVar

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 5:21 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I seem to have a problem with SessionVars which I try to initialize in a LocRewrite. This is an entry point url to the app. It receives some parameters from the url, picks out the parameters and puts them in

[Lift] Re: Build Broken?

2009-11-13 Thread Derek Chen-Becker
I don't know how others feel, but I would like all bugs, even for unit tests, to go through issue tracking and review board. Mostly this is so that we have good documentation of what is happening to the codebase and why. Derek On Sat, Nov 7, 2009 at 11:45 AM, Joni Freeman

[Lift] Re: Problem with rewriting and SessionVar

2009-11-13 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: [...] Yes. The rewrite phase takes place very early in the HTTP request/response cycle. It takes place before the statelessDispatch call. The statelessDispatch call is very important for REST style APIs as it does *not* cause the

[Lift] Accessing functions of a lift webapp from the command line

2009-11-13 Thread Julian Backes
Hi Lift Community, I'm pretty new to the Scala/Lift world. My idea is to port a web application written by me in PHP to Scala/Lift. Unfortunately, the PHP version also has some functions which are used by some cronjob, i.e. from the command line. So my first question is: Is there any

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Derek Chen-Becker
MetaMapper.findAllFields may work for what you're doing, but with the DAYOFWEEK conversion you may just have to go directly against the DB. Derek On Sun, Nov 8, 2009 at 11:44 PM, Neil.Lv anim...@gmail.com wrote: Hi all, There is some example code: ### SELECT id, name, sex, created_at,

[Lift] Re: S.uri not including query params

2009-11-13 Thread Derek Chen-Becker
You should be able to specify the redirect, so this may be a bug. Where are you setting the loginRedirect? It gets reset to the referred page when a login is required, so you'll have to set it after that point. Derek On Mon, Nov 9, 2009 at 3:12 AM, opyate opy...@gmail.com wrote: Hello guys,

[Lift] Re: Lift Mapper support for Oracle Sequences

2009-11-13 Thread Derek Chen-Becker
The code in 1.1-SNAPSHOT already uses sequences for Oracle. Here's the relevant code: override def primaryKeySetup(tableName : String, columnName : String) : List[String] = { /* * This trigger and sequence setup is taken from http://www.databaseanswers.org/sql_scripts/ora_sequence.htm

[Lift] Re: Changes to scala-tools.org Hudson

2009-11-13 Thread Derek Chen-Becker
Josh, ScalaJPA has the following distribution setup: distributionManagement repository idscala-tools.org/id urlhttp://nexus.scala-tools.org/content/repositories/releases/url /repository snapshotRepository idscala-tools.org/id

[Lift] Neat GitHub trick

2009-11-13 Thread Derek Chen-Becker
Sorry if I'm the only one who didn't realize this before, but if you include the text Closes #xxx in your Git commit message, Git will automatically close the xxx ticket using your commit message. --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-11-13 Thread Derek Chen-Becker
Actually, I thought that Dumbster was more sophisticated than it is. I think that your approach is fine for verifying that the message is created properly. On Thu, Nov 12, 2009 at 2:37 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What's the advantage/purpose over they method I chose? On

[Lift] Re: CometListener

2009-11-13 Thread Ross Mellgren
Could you send over your pom.xml if you're using Maven? It sounds like maybe your build path is not correct. -Ross On Nov 13, 2009, at 12:09 AM, Jack Widman wrote: David, I'm using lift 1.1 and scala 2.5 now and the compiler says it cant find CometListener when I import

[Lift] Re: Neat GitHub trick

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 8:07 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Sorry if I'm the only one who didn't realize this before, but if you include the text Closes #xxx in your Git commit message, Git will automatically close the xxx ticket using your commit message. Yes... it's very

[Lift] Re: Unit testing a RESTful webservice with Lift

2009-11-13 Thread Alex Black
another question: is there any way (or need) to stop the Jetty server? Usually running my tests Jetty starts up in about a second or two, but once in a while it will take 10s or more, could this have to do with a previous instance hanging around or not been shut down properly? On Nov 11, 12:05 

[Lift] Re: Unit testing a RESTful webservice with Lift

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 8:30 AM, Alex Black a...@alexblack.ca wrote: another question: is there any way (or need) to stop the Jetty server? No. Usually running my tests Jetty starts up in about a second or two, but once in a while it will take 10s or more, could this have to do with a

[Lift] Re: Neat GitHub trick

2009-11-13 Thread Derek Chen-Becker
Ah. I hadn't realized that part :( On Fri, Nov 13, 2009 at 9:28 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Nov 13, 2009 at 8:07 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Sorry if I'm the only one who didn't realize this before, but if you include the text

[Lift] Re: Problem with BlazeDS and LiftFilter 1.0+

2009-11-13 Thread oshyshko
Hello David, May be there can be a compromise solution. A custom filter that has only these duties: - to open LiftMapper-compatible transaction on HTTP-request (it will be accessible from DB entities like User) - call chain - when all chain was processed + commit the transaction + in case

[Lift] Re: CometListener

2009-11-13 Thread Jack Widman
sure. Thanks Ross. I will send it tonight. Also what is the difference between the CometListener and the CometListenee? On Fri, Nov 13, 2009 at 11:14 AM, Ross Mellgren dri...@gmail.com wrote: Could you send over your pom.xml if you're using Maven? It sounds like maybe your build path is not

[Lift] Re: problems with tomcat

2009-11-13 Thread DavidV
When running Lift-1.0.2 and Scala-2.7.5 I am able to compile and run my code through maven. However, I am concerned about my inability to run the mvn clean package command successfully without first running the clean command in eclipse. I am afraid that this extra eclipse step may be

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Kris Nuttycombe
On Thu, Nov 12, 2009 at 5:57 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Kris, There was a bunch of changes in the net.liftweb.mapper.DB code for transaction management, but I don't think that would impact JPA. Also, in M7, there were changes in how RequestVars are handled during

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Neil.Lv
Is there a some simple code ~? Thanks very much! Cheers, Neil On Nov 13, 10:50 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: MetaMapper.findAllFields may work for what you're doing, but with the DAYOFWEEK conversion you may just have to go directly against the DB. Derek On

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Timothy Perrett
If you mean raw sql: DB.runQuery(SELECT * FROM abc) Cheers, Tim On 13 Nov 2009, at 17:35, Neil.Lv wrote: Is there a some simple code ~? Thanks very much! Cheers, Neil On Nov 13, 10:50 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: MetaMapper.findAllFields may work for

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Derek Chen-Becker
Looking at 81f1715f671e8b5ee4f6d3ce242cc9da272611d1, maybe the RequestVar needs to be changed to an UnboundRequestVar. It's not clear from the scaladocs on UnboundRequestVar, though, that this is the intent. It looks like those scaladocs were just copied and pasted from RequestVar. If this sounds

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Kris Nuttycombe
Hmmm is this now TransientRequestVar? It's private[http], but could it be protected instead? Kris On Fri, Nov 13, 2009 at 11:22 AM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: Let me just try it out since I've got a test case, and if need be I'll file the ticket commit. Kris On

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Kris Nuttycombe
Let me just try it out since I've got a test case, and if need be I'll file the ticket commit. Kris On Fri, Nov 13, 2009 at 10:45 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Looking at 81f1715f671e8b5ee4f6d3ce242cc9da272611d1, maybe the RequestVar needs to be changed to an

[Lift] Re: Changes to scala-tools.org Hudson

2009-11-13 Thread Josh Suereth
The site portion has not changed yet. I'm working on that ;) - Josh On Fri, Nov 13, 2009 at 11:04 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Josh, ScalaJPA has the following distribution setup: distributionManagement repository idscala-tools.org/id

[Lift] priority of events

2009-11-13 Thread jack
What is the order that the following three things happen in? 1)localSetup 2)the first time render is called 3)a piece of code in the CometActor that is not inside any method. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Derek Chen-Becker
Looks like it. Probably private[liftweb] would work, too. In any case, the scaladocs need to be updated to reflect what it's for. On Fri, Nov 13, 2009 at 12:26 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: Hmmm is this now TransientRequestVar? It's private[http], but could it be

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Kris Nuttycombe
On Fri, Nov 13, 2009 at 11:46 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Looks like it. Probably private[liftweb] would work, too. In any case, the scaladocs need to be updated to reflect what it's for. On Fri, Nov 13, 2009 at 12:26 PM, Kris Nuttycombe kris.nuttyco...@gmail.com

[Lift] Ajax and custom HTTP headers

2009-11-13 Thread Marius
Hi, Do you think it would worth having a better support for setting HTTP headers for Ajax requests ? I mean some REST API's may use some meta information in the HTTP headers and it migh be handy to set this up from lift code when using Ajax calls. Thoughts? Br's, Marius

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 12:12 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Fri, Nov 13, 2009 at 11:46 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Looks like it. Probably private[liftweb] would work, too. In any case, the scaladocs need to be updated to reflect what it's

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Kris Nuttycombe
On Fri, Nov 13, 2009 at 3:42 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Nov 13, 2009 at 12:12 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: On Fri, Nov 13, 2009 at 11:46 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Looks like it. Probably private[liftweb]

[Lift] Re: Ajax and custom HTTP headers

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 1:37 PM, Marius marius.dan...@gmail.com wrote: Hi, Do you think it would worth having a better support for setting HTTP headers for Ajax requests ? I mean some REST API's may use some meta information in the HTTP headers and it migh be handy to set this up from lift

[Lift] Re: problems with tomcat

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 9:15 AM, DavidV david.v.villa...@gmail.com wrote: When running Lift-1.0.2 and Scala-2.7.5 I am able to compile and run my code through maven. However, I am concerned about my inability to run the mvn clean package command successfully without first running the clean

[Lift] Re: Empty Box exception in MetaMapper

2009-11-13 Thread David Pollak
On Thu, Nov 12, 2009 at 9:08 PM, Jim McBeath goo...@j.jimmc.org wrote: Assuming I prune it down to an example that requires only a few files, which would probably include an SQL script for creating a test database that has the appropriate schema in it, is there a procedure for submitting

[Lift] Re: ScalaTest in Lift archetypes

2009-11-13 Thread Bill Venners
Hi Tim, Let's do that. See you next week. Bill On Wed, Nov 11, 2009 at 3:33 PM, Timothy Perrett timo...@getintheloop.eu wrote: Bill, can I propose you and I get together at devoxx and discuss the options? I belive my talk is not long after yours! Cheers, Tim Sent from my iPhone On

[Lift] Re: CometActor and render

2009-11-13 Thread Randinn
Ah, nice, just checking if you knew about it as an option. On Nov 13, 8:08 am, Jack Widman jack.wid...@gmail.com wrote: I did and its actually in the code I attached. In one place I use Dispatch and in another place I use httpclient directly. I intend to use Dispatch for everything. On

[Lift] Re: Accessing functions of a lift webapp from the command line

2009-11-13 Thread David Pollak
Julian, The short answer to your question is to create separate projects that depend on one another. So, you can put all your business logic in a module and package it up as a JAR file (this is the basic unit of packaging for JVM-based applications). Then you can build a a web based application

[Lift] Re: MegaProtoUser + MappedPassword question

2009-11-13 Thread David Pollak
On Sun, Nov 8, 2009 at 5:48 AM, george geo...@mattandgeorge.com wrote: I'm using MegaProtoUser which has a MappedPassword field. When the sign up form is displayed, the password field is pre- populated to '***' which is proving very confusing for some users. The reason for the design

[Lift] Re: Problem with rewriting and SessionVar

2009-11-13 Thread David Pollak
On Fri, Nov 13, 2009 at 6:46 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: [...] Yes. The rewrite phase takes place very early in the HTTP request/response cycle. It takes place before the statelessDispatch call. The

[Lift] Re: Changes to transaction handling since M6?

2009-11-13 Thread Ross Mellgren
FWIW regarding naming, since the change I've started to mentally rename RequestVar to PageVar. I don't think it's reasonable to rename the actual class, since everybody uses it, but I found it was a helpful mnemonic to remember what scope it has. -Ross On Nov 13, 2009, at 6:00 PM, Kris

[Lift] Re: CometListener

2009-11-13 Thread Jack Widman
Here is my pom.xml On Fri, Nov 13, 2009 at 12:09 PM, Jack Widman jack.wid...@gmail.com wrote: sure. Thanks Ross. I will send it tonight. Also what is the difference between the CometListener and the CometListenee? On Fri, Nov 13, 2009 at 11:14 AM, Ross Mellgren dri...@gmail.com wrote:

[Lift] Comet Actor

2009-11-13 Thread jack
I have a some code in a CometActor that I want to run right after render is called for the first time. What is the best way to do this? I could set a boolean variable in the render method and then send a message back to the CometActor to tell it to run the code. I suspect there is a better way?

[Lift] Re: CometListener

2009-11-13 Thread Ross Mellgren
Your pom specifies lift 1.0, not 1.1 for the majority of lift modules. You are using 1.1-M6 for lift-textile. In addition, you don't have the snapshots repository configured. To fix this, first add the snapshot repository to repositories: repository idscala-tools.org.snapshots/id

[Lift] Re: CometListener

2009-11-13 Thread Jack Widman
Thanks Ross. On Fri, Nov 13, 2009 at 11:55 PM, Ross Mellgren dri...@gmail.com wrote: Your pom specifies lift 1.0, not 1.1 for the majority of lift modules. You are using 1.1-M6 for lift-textile. In addition, you don't have the snapshots repository configured. To fix this, first add the

[Lift] Re: How to specify the SELECT statement in the Mapper ?

2009-11-13 Thread Neil.Lv
Ok, Thanks for all your suggestion! I'll try it again, :) Cheers, Neil On Nov 14, 2:52 am, harryh har...@gmail.com wrote: You'll be better off if you don't do it that way.  Compute the day of week from created_at in your scala code (personally I prefer joda time for this sort of

[Lift] How to save the uploaded image into the folder via fileUpload in Lift?

2009-11-13 Thread Neil.Lv
Hi all, How to save the uploaded image into the folder via fileUpload in Lift? I don't want to save it in the database, the example code in the Pocketchangeapp ### val receiptOk = fileHolder match { case Full(FileParamHolder(_, null, _, _)) = true case