[Lift] Re: problem in getting started

2009-10-08 Thread ben
Prabhat, the command works fine for me, using Maven 2.0.9. Could it be a problem with a corporate proxy perhaps ? I executed : mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=1.0 -

[Lift] how to add DatePicker?

2009-10-08 Thread Tweek
Hi. I'm totally beginer in Lift and i've never used JQuery. Can Anybody tell me how to add DatePicker to my DateTime field in my website step by step? thanks and regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-08 Thread Timothy Perrett
Marius, Im not sure that will work as ctx is a paramater, not a val paramater. class HTTPServletContext(ctx: ServletContext) extends HTTPContext In order to do what you'd suggested wouldnt it need to be: class HTTPServletContext(val ctx: ServletContext) extends HTTPContext Thoughts? Cheers,

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-08 Thread marius d.
You are correct. I need to make this adjustment today. Thanks for pointing this out Tim. Br's, Marius On Oct 8, 2:05 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius, Im not sure that will work as ctx is a paramater, not a val paramater. class HTTPServletContext(ctx:

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-08 Thread Timothy Perrett
Thanking you kindly good sir - I knew there was something not quite right about that :-) Cheers, Tim On Oct 8, 12:15 pm, marius d. marius.dan...@gmail.com wrote: You are correct. I need to make this adjustment today. Thanks for pointing this out Tim. Br's, Marius On Oct 8, 2:05 pm,

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-08 Thread marius d.
I just committed it. Br's, Marius On Oct 8, 2:25 pm, Timothy Perrett timo...@getintheloop.eu wrote: Thanking you kindly good sir - I knew there was something not quite right about that :-) Cheers, Tim On Oct 8, 12:15 pm, marius d. marius.dan...@gmail.com wrote: You are correct. I need

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Ryan Donahue
Hi Tim, Looking at Table 2. Summary of subscription variables of the page you reference, payment_status is not included for messages with a txn_type of subscr_ signup, subscr_ cancel, subscr_ modify, or subscr_eot. This matches the results I see in testing with PayPal Sandbox. Neither

[Lift] Re: YUI Compressor Fatal Error

2009-10-08 Thread Peter Robinett
Hi all, I just switched to the Sun JVM and everything works now, so it definitely was OpenJDK. Oh well. Peter On Oct 6, 7:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Oct 6, 2009 at 1:39 AM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, all. While David

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Ryan Donahue
Arg, looks like the param listings in my message got formatted as previous message quotes. Hopefully, it is clear enough. On Oct 8, 8:14 am, Ryan Donahue donahu...@gmail.com wrote: Hi Tim, Looking at Table 2. Summary of subscription variables of the page you reference, payment_status is not

[Lift] Re: problem in getting started

2009-10-08 Thread koveen
Prabhat, I always do it very simple: after typing: mvn archetype:generate -U I push the enter button and see what happens: maven ask me some questions, which I can fill in. first I choose a number, depending on what I want to have installed, an empty lift-installation, or a basic one. then I

[Lift] Re: YUI Compressor Fatal Error

2009-10-08 Thread Dirk Louwers
Hi, I am running 9.04 and have used a workaround to fix the YUI compressor issue. See: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149 If I remember correctly I romoved a symlink to the rhino jar from /usr/ lib/jvm/java-6-openjdk/jre/lib and that fixed it (without any noticable

[Lift] Missing i18n in Lift?

2009-10-08 Thread Jeppe Nejsum Madsen
Hi, While lift's basic support for i18n in templates etc is wonderful, I feel it is somewhat.hmmm lacking when it comes to form handling. I'm using mapper based forms and, at least to me, it seems like there's no obvious way (other than roll my own) to do i18n form display/parsing (ie.

[Lift] Re: Ext.Direct

2009-10-08 Thread Dirk Louwers
Any news on this? I am currently doing some rudimentary Ext.Direct stuff with Lift myself. I would gladly help out there. Best, Dirk Louwers On Aug 31, 7:30 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Aug 29, 2009 at 11:14 AM, Josh Suereth joshua.suer...@gmail.comwrote:

[Lift] Re: Ext.Direct

2009-10-08 Thread Dirk Louwers
Ok, risking that someone else might also be busy doing this, for now, I am writing ExtJsCommands which depends on the MIT licensed Ext-Core 3. I will ask some questions when I am not sure about some things and will make sure I will add adequate comments so others might use them when adapting to

[Lift] Re: how to add DatePicker?

2009-10-08 Thread opyate
Hi Tweek, Have a look at the pocketchangeapp example: http://github.com/tjweir/pocketchangeapp/ Regards, Juan On Oct 8, 11:43 am, Tweek d.sztwio...@gmail.com wrote: Hi. I'm totally beginer in Lift and i've never used JQuery. Can Anybody tell me how to add DatePicker to my DateTime field in

[Lift] Re: how to add DatePicker?

2009-10-08 Thread Marcin Mielżyński
Quick and dirty impl could look like this: import _root_.scala.xml.{NodeSeq, Text} import _root_.net.liftweb.mapper._ import _root_.net.liftweb.util._ import _root_.net.liftweb.http._ import S._ import _root_.java.text.{DateFormat,SimpleDateFormat} class

[Lift] Re: Spring Security

2009-10-08 Thread Chris Herron
I feel like this thread never reached a conclusion. David, unless I've misunderstood you, it seems like your position is that no external security framework is adequate and that this problem can't be solved until Lift does it right. Having a separate concern doing security is a disaster I

[Lift] Re: Spring Security

2009-10-08 Thread David Pollak
Chris, I understand your argument. My argument goes like: (Session, Resource) = Boolean is the ultimate flexibility. That is what Lift provides. You can link in the calculation of access/no access in any way you want. The key evaluations that you as the developer or code reviewer need to make

[Lift] Page parsing error

2009-10-08 Thread Java1Guy
Hey! I'm quite baffled by this - Template flottest.html: lift:surround with=flotsupport at=content script type=text/javascript var i=0; while (i 14) { i = i + 5; }; /script h2H2/h2 /lift:surround Template flotsupport.html (in templates-hidden): html

[Lift] Re: Missing i18n in Lift?

2009-10-08 Thread Heiko Seeberger
Try LiftRules.formatDate and LiftRules.parseDate Cheers, Heiko 2009/10/8 Jeppe Nejsum Madsen je...@ingolfs.dk Hi, While lift's basic support for i18n in templates etc is wonderful, I feel it is somewhat.hmmm lacking when it comes to form handling. I'm using mapper based forms and,

[Lift] Re: Page parsing error

2009-10-08 Thread David Pollak
On Thu, Oct 8, 2009 at 9:18 AM, Java1Guy mark.cha...@gmail.com wrote: Hey! I'm quite baffled by this - Template flottest.html: lift:surround with=flotsupport at=content script type=text/javascript You need a ![CDATA[ var i=0; while (i 14) { i = i + 5;

[Lift] Re: Binding a snippet in a comet actor?

2009-10-08 Thread David Pollak
The chat example in demo.liftweb.net (source in examples/example) has a form that is presented after the initial form is rendered. It works just fine. Please put together a small example of the failure so I can see the running code. On Wed, Oct 7, 2009 at 9:13 PM, Somindra Bhattacharya

[Lift] Re: Spring Security

2009-10-08 Thread Chris Herron
You can link in the calculation of access/no access in any way you want. So I could define and inject access control functions that delegate to an external security library. This can be done with Spring Security. If I trust those functions, and also trust the library they delegate to, that

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Timothy Perrett
The parameters were pretty mangled in your email... Which one would you propose is more generic that the current status one we have? Alternatively, it sounds to me like we might need to add some kind of special case match statement. Thoughts? Cheers, tim On 8 Oct 2009, at 13:14, Ryan

[Lift] Basic RESTful webservice with LIFT compile error ... since method createTag in trait XMLApiHelper ...

2009-10-08 Thread Alex Black
I'm getting started with Scala and Lift, implementing a simple REST service. I've extended XMLApiHelper, following examples in Exploring Lift, but I'm getting a compile error I'm not sure about, any suggestions? error: class RestAPI needs to be abstract, since method createTag in trait

[Lift] Re: Spring Security

2009-10-08 Thread David Pollak
I think you are missing my point by a mile. With integrated access control, you will always know what the access control rules are for a given resource. With external access control, you cannot know that. From a UI perspective, it means that with SiteMap protecting pages, you will not be

[Lift] Re: problem in getting started

2009-10-08 Thread Prabhat
I am using maven 2.2.1. This was at home where I do not have any proxy. I will try suggestions tonight. Thanks Prabhat On Oct 8, 2:29 am, ben b...@primrose.org.uk wrote: Prabhat, the command works fine for me, using Maven 2.0.9. Could it be a problem with a corporate proxy perhaps ? I

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Ryan Donahue
Yeah, I noticed my email got mangled. It would make sense to me if PaypalIPN.actions and PaypalPDT.pdtResponse were consistent. trait PaypalPDT { def pdtResponse: PartialFunction[(PayPalInfo, Req), LiftResponse] } trait PaypalIPN { def actions: PartialFunction[(PayPalInfo, Req), Unit] } If

[Lift] Re: Basic RESTful webservice with LIFT compile error ... since method createTag in trait XMLApiHelper ...

2009-10-08 Thread Alex Black
I noticed that other examples use a singleton object instead of class, so I changed my code, but I just get the same sort of error but for an object: object creation impossible, since method createTag in trait XMLApiHelper of type (scala.xml.NodeSeq)scala.xml.Elem is not defined RestAPI.scala

[Lift] java.lang.OutOfMemoryError: PermGen space, Could't start SessionMaster ping

2009-10-08 Thread Alex Black
I've encountered this error 3 times, running Jetty and Maven, just trying out Lift scala with a hello-world like website. I have to kill the JVM with kill -9 and restart things to fix it, any ideas? - Command line: mvn install jetty:run - I'm using Lift 1.0, Scala 2.7.6 final, 64bit JDK1.6.0_16,

[Lift] Re: java.lang.OutOfMemoryError: PermGen space, Could't start SessionMaster ping

2009-10-08 Thread Timothy Perrett
Alex, Any reason your running the install goal? You really don't need to. Regarding the permgen: Can you show your maven options? You can improve the situation by setting a larger heap size, however this is an unfortunate thing that just goes along with jetty and maven. HTH Cheers, Tim On

[Lift] Re: Basic RESTful webservice with LIFT compile error ... since method createTag in trait XMLApiHelper ...

2009-10-08 Thread David Pollak
In order to use the XMLApiHelper trait, you must define an outer-most XML Elem that will wrap the response. For example: def createTag(in: NodeSeq): Elem = foo_co_rest{in}/foo_co_rest Now... if your stuff already does the wrapping in the outer-most Elem, you can do: def createTag(in: NodeSeq):

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Heiko Seeberger
I am about to use the PayPal module, too and I am in favor for getting things right even if breaking the API! Heiko 2009/10/8 Ryan Donahue donahu...@gmail.com Yeah, I noticed my email got mangled. It would make sense to me if PaypalIPN.actions and PaypalPDT.pdtResponse were consistent.

[Lift] master_post_M6 branch (attn Lift committers with changes ready to merge into master)

2009-10-08 Thread David Pollak
Folks, For all the committers with approved commits, please apply them to the master_post_M6 branch. We can develop off this branch while Charles is spinning the M6 build. Once the M6 build goes out (most likely today), we can rebase master with master_post_M6. Thanks, David -- Lift, the

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Timothy Perrett
Im not married to the current API, so breaking changes are OK as there are only a handful of people using this code right now. To be honest, this whole situation just underlines the need for mocking in this module of lift... i've been meaning to do it since the beginning but just never got

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Ryan Donahue
I created the ticket: http://github.com/dpp/liftweb/issues/#issue/88 I do receive the payment_status field for PDT. I bet in practice you will never receive a payment_status value other than Completed, because if the payment was not completed PayPal would not redirect the user's browser back to

[Lift] Re: master_post_M6 branch (attn Lift committers with changes ready to merge into master)

2009-10-08 Thread Heiko Seeberger
When is a commit approved?How many shiPPP its ? Heiko 2009/10/8 David Pollak feeder.of.the.be...@gmail.com Folks, For all the committers with approved commits, please apply them to the master_post_M6 branch. We can develop off this branch while Charles is spinning the M6 build. Once the

[Lift] Re: PayPal Subscriptions

2009-10-08 Thread Timothy Perrett
Ok cool, I'll take a look at this tomrrow all being well. Thanks for the feedback Cheers, Tim Sent from my iPhone On 8 Oct 2009, at 20:43, Ryan Donahue donahu...@gmail.com wrote: I created the ticket: http://github.com/dpp/liftweb/issues/#issue/88 I do receive the payment_status field for

[Lift] Re: Spring Security

2009-10-08 Thread Chris Herron
Sorry to labor on this, but for a Lift + Spring Security setup it is possible to define all access rules within code and application data. Zero duplication. I do understand your point about coordinating two separate security configurations. I believe that it can be avoided, at least for this

[Lift] Re: master_post_M6 branch (attn Lift committers with changes ready to merge into master)

2009-10-08 Thread David Pollak
On Thu, Oct 8, 2009 at 12:50 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: When is a commit approved? When someone says Ship it as long as someone else hasn't raised a legitimate issue. What's legitimate? If someone has raised an issue with the code, you commit anyway, that

[Lift] Re: Spring Security

2009-10-08 Thread David Pollak
On Thu, Oct 8, 2009 at 1:00 PM, Chris Herron che...@gmail.com wrote: Sorry to labor on this, but for a Lift + Spring Security setup it is possible to define all access rules within code and application data. Zero duplication. So what? My argument is not about duplication, but about

[Lift] Re: java.lang.OutOfMemoryError: PermGen space, Could't start SessionMaster ping

2009-10-08 Thread jon
Hi, Is this error occurring after a context reload? You may want to turn off context reloading in your mvn jetty configuration because, as far as i can tell, that has always been a completely broken feature. Do this by adding scanIntervalSeconds0/scanIntervalSeconds to the org.mortbay.jetty

[Lift] Re: Overriding date/time formatting

2009-10-08 Thread Derek Chen-Becker
I'm planning on making the formatting easier to configure and also to move the Mapper stuff to Joda Time. I know I keep saying this but I hope to start working on this next week :P Derek On Tue, Oct 6, 2009 at 6:29 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Also more flexibility should

[Lift] Lift @ W-JAX Challenge

2009-10-08 Thread Heiko Seeberger
Lifters, In some weeks W-JAX http://it-republik.de/jaxenter/wjax09/, one of Germany's leading conferences in Java (and now also Scala) space, will open its gates. This time there will be a Scala Dayhttp://it-republik.de/jaxenter/wjax09/sessions?tid=1296 with sessions from some Scala VIPs (Martin

[Lift] LongKeyedMapper object where I can set the id

2009-10-08 Thread harryh
LongKeyedMapper object where I can set the id. I want a database object where I set the primary key myself (rather than having it be sequentially by the database). I thought I could do this: class Tombstone extends LongKeyedMapper[Tombstone] { def getSingleton = Tombstone def

[Lift] Re: LongKeyedMapper object where I can set the id

2009-10-08 Thread Naftoli Gugenheim
David, can we _please_ change the indicates saved logic as I proposed? - harryhhar...@gmail.com wrote: LongKeyedMapper object where I can set the id. I want a database object where I set the primary key myself (rather than having it be sequentially by the

[Lift] Re: how to add DatePicker?

2009-10-08 Thread Grant Wood
I've integrated several datepickers with lift, and the simplest solution I found was this: 1) Use JQueryUIdatepicker. http://marcgrabanski.com/pages/code/jquery-ui-datepicker Follow his instructions to download it from the JQueryUI site. This is one of the most stable datepickers out there,

[Lift] Re: Lift @ W-JAX Challenge

2009-10-08 Thread Derek Chen-Becker
Sounds pretty cool! On Thu, Oct 8, 2009 at 3:25 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Lifters, In some weeks W-JAX http://it-republik.de/jaxenter/wjax09/, one of Germany's leading conferences in Java (and now also Scala) space, will open its gates. This time there will

[Lift] Re: Error adding expenses using Mysql

2009-10-08 Thread Derek Chen-Becker
OK, this was really a bug in PocketChange. I had uppercase names for Expense in the BySQL QueryParams, but on case-sensitive file systems MySQL is case-sensitive :(. Fixed and pushed a new version of PocketChange to GitHub. Derek On Sun, Aug 16, 2009 at 8:29 AM, Derek Chen-Becker

[Lift] Re: LongKeyedMapper object where I can set the id

2009-10-08 Thread David Pollak
Open a ticket. Nothing happens without a ticket. On Thu, Oct 8, 2009 at 2:40 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: David, can we _please_ change the indicates saved logic as I proposed? - harryhhar...@gmail.com wrote: LongKeyedMapper

[Lift] Re: Milestone 6 Released!

2009-10-08 Thread harryh
Huzzah! On Oct 8, 8:13 pm, Charles F. Munat c...@munat.com wrote: The Lift team is pleased to announce the lift-1.1-M6 release! Lift is an expressive and elegant framework for writing web applications. Lift stresses the importance of security, maintainability, scalability and performance

[Lift] Re: Milestone 6 Released!

2009-10-08 Thread David Pollak
Charles, Thanks for spinning another build. I owe you a beverage or three. The rest of you committers, it's time to dump all those pent-up, review-board approved changes on master. Thanks, David On Thu, Oct 8, 2009 at 5:13 PM, Charles F. Munat c...@munat.com wrote: The Lift team is pleased

[Lift] YUI Compressor plugin for SBT

2009-10-08 Thread jon
Hi all, I've created a plugin hosted here: http://github.com/hoffrocket/sbt-yui Thank you to David Bernard for paving the way with his maven version and to Mark Harrah for creating sbt and providing guidance. I'm working on getting this up on the scala-tools repo, but until then you can build

[Lift] Re: Milestone 6 Released!

2009-10-08 Thread jon
Woo! Updating now... On Oct 8, 8:25 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Charles, Thanks for spinning another build.  I owe you a beverage or three. The rest of you committers, it's time to dump all those pent-up, review-board approved changes on master. Thanks, David

[Lift] Re: Milestone 6 Released!

2009-10-08 Thread jon
Uh, oh, I just updated to M6 from M5 and it Seems that PreCache is broken under H2 when there is an OrderBy: org.h2.jdbc.JdbcSQLException: Order by expression CREATED_AT must be in the result list in this case; SQL statement: SELECT DISTINCT foos.id, foos.name FROM foos WHERE id IN (SELECT

[Lift] Re: java.lang.OutOfMemoryError: PermGen space, Could't start SessionMaster ping

2009-10-08 Thread Alex Black
Hi Tim, I'm not sure even what install goal means. I'm new to Maven, Jetty and Scala, so I'm following examples I've read. Whats the better approach here? export MAVEN_OPTS=-Xms256m -Xmx1024m On Oct 8, 2:16 pm, Timothy Perrett timo...@getintheloop.eu wrote: Alex, Any reason your running the

[Lift] Re: java.lang.OutOfMemoryError: PermGen space, Could't start SessionMaster ping

2009-10-08 Thread Alex Black
Hi Jon, I haven't narrowed it down to being after a context reload or not. I'll try what you suggested and turn off jetty's reload and use javaRebel instead. Where would I set those JVM flags, should those go in MAVEN_OPTS? I'll keep SBT in mind... - ALex On Oct 8, 4:37 pm, jon

[Lift] Re: Basic RESTful webservice with LIFT compile error ... since method createTag in trait XMLApiHelper ...

2009-10-08 Thread Alex Black
Hi David, thanks for the response. Thanks, that gets it compiling, and I think I see what it does. Is the right way to proceed if I want to return JSON (rather than XML)? - Alex On Oct 8, 2:17 pm, David Pollak feeder.of.the.be...@gmail.com wrote: In order to use the XMLApiHelper trait, you

[Lift] Re: Milestone 6 Released!

2009-10-08 Thread David Pollak
On Thu, Oct 8, 2009 at 7:01 PM, jon jonhoff...@gmail.com wrote: Uh, oh, Crud. Can you open a ticket with a repro case and I'll add it to the test suite and make sure it gets fixed. I just updated to M6 from M5 and it Seems that PreCache is broken under H2 when there is an OrderBy:

[Lift] Re: Basic RESTful webservice with LIFT compile error ... since method createTag in trait XMLApiHelper ...

2009-10-08 Thread David Pollak
On Thu, Oct 8, 2009 at 7:19 PM, Alex Black a...@alexblack.ca wrote: Hi David, thanks for the response. Thanks, that gets it compiling, and I think I see what it does. Is the right way to proceed if I want to return JSON (rather than XML)? Roll your own :-( You can also use the excellent

[Lift] Re: Milestone 6 Released!

2009-10-08 Thread jon
thanks: http://github.com/dpp/liftweb/issues/#issue/91 On Oct 8, 10:21 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Oct 8, 2009 at 7:01 PM, jon jonhoff...@gmail.com wrote: Uh, oh, Crud.  Can you open a ticket with a repro case and I'll add it to the test suite and make

[Lift] Re: java.lang.OutOfMemoryError: PermGen space, Could't start SessionMaster ping

2009-10-08 Thread jon
Yes, I think this will get you going with javarebel: MAVEN_OPTS=-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=128m - Xmx512m -noverify -javaagent:/path/to/jrebel-2.1/jrebel.jar mvn jetty:run in another terminal window mvn scala:cc get a free license here: