[Lift] Re: building lift

2009-07-20 Thread Wilson MacGyver
that fixed it. thank you very much, On Mon, Jul 20, 2009 at 1:56 AM, Derek Chen-Beckerdchenbec...@gmail.com wrote: I've added in an exclusion to prevent this version of the lib from being pulled. We generally use the geronimo version of JEE libs due to a less restrictive license. Derek On

[Lift] Best practice for creating a view-less, lightweight controller/dispatcher

2009-07-20 Thread Juan M Uys
Good day, guys. First of all, David, thanks for a great tool. I started my first project yesterday and it's been fun so far. I'm creating a URL shortener, and would like to know what the best practice is for creating a light-weight controller that has no view (no associated form). Basically,

[Lift] Re: Disabling the lift auto-reload on webapp restart?

2009-07-20 Thread Ellis
Third, if you want the issue resolved, please open a ticket. Done On Jul 16, 6:27 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jul 16, 2009 at 3:20 AM, Ellis ellis.whiteh...@gmail.com wrote: liftweb auto-reinjects it. Hmm, I know it puts some extra code in, but I

[Lift] Re: Disabling the lift auto-reload on webapp restart?

2009-07-20 Thread Timothy Perrett
@ellis, I too found this annoying, thats why I use java rebel as the classes are just replaced wholesale dynamically while the container is running - no need for a restart (unless its a major class change that it is unable to swap out). Cheers, Tim On Jul 20, 10:32 am, Ellis

[Lift] Re: Best practice for creating a view-less, lightweight controller/dispatcher

2009-07-20 Thread Timothy Perrett
Change your dispatcher to be: LiftRules.dispatch.prepend { case r @ Req(u :: id :: Nil, , GetRequest) = () = { // lookup in your database here... Full(RedirectResponse(fullyQualifiedUrl)) } } I can then pass the id parameter to your database query then do a

[Lift] Hudson not building?

2009-07-20 Thread Jeppe Nejsum Madsen
Hi, It seems the latest Lift build on http://hudson.scala-tools.org/job/Lift/ is 10 days old, same with the jars in http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNAPSHOT/ Yet, many changes have been committed to github which I assume is the master? I didn't notice until I

[Lift] Re: Hudson not building?

2009-07-20 Thread Timothy Perrett
Hey Jeppe, Thats strange, i've just kicked off a hudson build manually, so we'll see if it works or not - i'll report back shortly Derek / DPP can you look into this? Cheers, tim On Jul 20, 12:03 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, It seems the latest Lift build

[Lift] Re: Hudson not building?

2009-07-20 Thread Heiko Seeberger
ScalaModules is also not building and I do not know any reasons for that ... Heiko 2009/7/20 Timothy Perrett timo...@getintheloop.eu Hey Jeppe, Thats strange, i've just kicked off a hudson build manually, so we'll see if it works or not - i'll report back shortly Derek / DPP can you look

[Lift] Re: Hudson not building?

2009-07-20 Thread Timothy Perrett
Jeppe, There is something odd going on with hudson it seems - even the manual build does nothing... the modules say that didnt run even tho its taking nearly an hour to complete. Derek, is this perhaps related to the increase in open file handles you made previously? Cheers, Tim On Jul 20,

[Lift] Article: Lift snippet selection - DispatchSnippet vs snippet reflection

2009-07-20 Thread Timothy Perrett
Hey guys, Just posted a new article about lift snippets: http://is.gd/1FbDw - perhaps it will help someone :-) Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send

[Lift] how to create data transfer object in lift

2009-07-20 Thread pravin
Hi, i want to create DTO(data transfer object) of employee. Then i want to create list of this employee object. want to display this list on GUI. How can i do this in lift. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Best practice for creating a view-less, lightweight controller/dispatcher

2009-07-20 Thread Juan M Uys
Thanks, Timothy, it works now! Your suggestion incorporated here: http://github.com/opyate/yauser/commit/eb7af882ea8bdcfc3e621e3b0b8e77ad72b8ef58 Yauser v 0.1-SNAPSHOT is now a fully functional URL shortener, but check the roadmap for future features. Thanks guys, Juan 2009/7/20 Timothy

[Lift] Re: Hudson not building?

2009-07-20 Thread Derek Chen-Becker
I'm showing these errors in the log: Jul 20, 2009 5:31:30 AM hudson.model.AbstractProject checkout INFO: Lift #1045 aborted java.lang.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireInterruptibly(AbstractQueuedSynchronizer.java:813) at

[Lift] Re: Generating valid JSON

2009-07-20 Thread fbettag
I still don't understand how JsObj works.. I've tried almost every combination, it's more like luck that some stuff i do works. def listLanguages(): LiftResponse = { def displayLanguage(l: Locale): (String, String) = { var r = l.getDisplayLanguage

[Lift] Re: Hudson not building?

2009-07-20 Thread Timothy Perrett
Awesome - appears to have built again... what a strange error; guess we'll just have to keep an eye on it. http://hudson.scala-tools.org/job/Lift/lastSuccessfulBuild/ Cheers, Tim On Jul 20, 2:25 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: I'm showing these errors in the log: Jul 20,

[Lift] Re: Hudson not building?

2009-07-20 Thread Derek Chen-Becker
Yeah, I restarted it. I think Josh was talking about upgrading to the latest version of Hudson at some point. I don't know if that would fix it. Derek On Mon, Jul 20, 2009 at 8:37 AM, Timothy Perrett timo...@getintheloop.euwrote: Awesome - appears to have built again... what a strange error;

[Lift] calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread kjetilge
I'm trying out the jets3t library for handling S3 storage. But when I try to make calls to methods in the library I get: AWSCredentials does not have a constructor. Here's my code: package s3test object Main { import org.jets3t.service.S3Service import org.jets3t.service.S3ServiceException

[Lift] Re: Generating valid JSON

2009-07-20 Thread David Pollak
On Mon, Jul 20, 2009 at 2:11 PM, fbettag fr...@bett.ag wrote: I still don't understand how JsObj works.. I've tried almost every combination, it's more like luck that some stuff i do works. def listLanguages(): LiftResponse = { def displayLanguage(l: Locale): (String,

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-20 Thread Jonas Bonér
I'm really sorry. I never checked building with an empty maven repo. Thanks for fixing it. 2009/7/20 Derek Chen-Becker dchenbec...@gmail.com: FYI, it looks like the Hibernate dependency you had in your pom was pulling in the javax.transactions:jta lib, which isn't available in maven repos. I

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-07-20 Thread Jonas Bonér
2009/7/20 Derek Chen-Becker dchenbec...@gmail.com: ... hit the enter key too quickly! Kudos on the work in this library. I really like how this is coming together. Thanks Derek. Derek On Sun, Jul 19, 2009 at 11:52 PM, Derek Chen-Becker dchenbec...@gmail.com wrote: FYI, it looks like

[Lift] Re: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread David Pollak
On Mon, Jul 20, 2009 at 8:04 AM, kjetilge kjeti...@gmail.com wrote: I'm trying out the jets3t library for handling S3 storage. But when I try to make calls to methods in the library I get: AWSCredentials does not have a constructor. Here's my code: package s3test object Main { import

[Lift] Re: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread Timothy Perrett
I agree, looks fine ­ you don¹t mention if your using maven or whatever, but IMO, make sure you¹ve set the dependencies properly and that your running the right goal on your pom.xml Also, you probably don¹t want to post your secret for S3 as people could log into your account with it. Cheers,

[Lift] Re: Article: Lift snippet selection - DispatchSnippet vs snippet reflection

2009-07-20 Thread marius d.
Good article but do you have some concrete benchmarks between Snippet and DispatchSnippet? In modern JVM memory allocation is pretty cheap due to heap preparation JVM makes and reflection invocation doesn't bring too much overhead ... not anymore. The article seams to present the two from an

[Lift] Re: Article: Lift snippet selection - DispatchSnippet vs snippet reflection

2009-07-20 Thread Timothy Perrett
Hey Marius, Thanks for the critical feedback :-) I have no benchmarks to speak of, just pouring out my general understanding onto my blog - I do remember DPP saying some time ago that DispatchSnippets were really the way to go for most things of any serious implementation. Cheers, Tim On

[Lift] PocketChange app. problems

2009-07-20 Thread Jon
Hello, I checked out the PocketChange app. like this: git clone git://github.com/tjweir/pocketchangeapp.git When I run it, log in, and click on the Change Password link, Firefox says This XML file does not appear to have any style information associated with it. The document tree is shown

[Lift] Re: Article: Lift snippet selection - DispatchSnippet vs snippet reflection

2009-07-20 Thread David Pollak
The process for looking up snippets is not a single reflection operation, but a series of reflection operations. Some of the operations are cached in production mode. However, as a matter of strongly typed style, I like DispatchSnippets because you know what you are getting. On Mon, Jul 20,

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread glenn
Ross, Your example does not compile. I get a missing parameter type error on i =... function. On Jul 17, 3:29 pm, Ross Mellgren dri...@gmail.com wrote: selectObj((0 until 11).map(i = Pair(i, i.toString)),            Full(0),            i = println(the number chosen was + i + and 10 plus  

[Lift] Re: how to create data transfer object in lift

2009-07-20 Thread David Pollak
On Mon, Jul 20, 2009 at 5:52 AM, pravin pravinka...@gmail.com wrote: Hi, i want to create DTO(data transfer object) of employee. Then i want to create list of this employee object. want to display this list on GUI. How can i do this in lift. Lift is neutral on the DTO part of things...

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread David Pollak
On Fri, Jul 17, 2009 at 3:27 PM, glenn gl...@exmbly.com wrote: I would like to know how to create a selectObj over a range of integers. Do I have to use val numList = List(0-0, 1-2, 2-3 ...) def numbers = selectObj(numLists, Full(0), someFunc)? selectObj[Int](numLists, Full(0), someFunc)

[Lift] Re: PocketChange app. problems

2009-07-20 Thread Tim Nelson
I just saw that the other day. The problem is those pages aren't being wrapped by the default template. In newer versions of Lift there is a default screenWrap, but 1.0 doesn't seem to have it. In order to add the wrapper, you need to add lines similar to the following to

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread Ross Mellgren
Sorry, I meant it as more of an example so I did not compile it, and Scala's type inferencer is never as good as I hope. Here is one that compiles: SHtml.selectObj((0 until 11).map(i = Pair(i, i.toString)), Full(0), (i: Int) = { println(the number chosen was + i +

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread glenn
Ross, I fixed my problem. def sumFunc(i:Int){ somOtherFunc(i) println() } selectObj((0 until 11).map(i = Pair(i, i.toString)), Full(0), somFunc) Thanks for your help. On Jul 17, 3:29 pm, Ross Mellgren dri...@gmail.com wrote: selectObj((0 until 11).map(i =

[Lift] Re: JSON handler doesn't respond

2009-07-20 Thread David Pollak
On Sun, Jul 19, 2009 at 3:20 AM, Vassil Dichev vdic...@gmail.com wrote: Hello folks, I've gathered some information on the recent problems where ESME was hanging. The problem seems to be that the json handler, generated with S.buildJsonFunc, sometimes stops working after the browser has

[Lift] MetaMapper type

2009-07-20 Thread Naftoli Gugenheim
- Naftoli Gugenheimnaftoli...@gmail.com wrote: Assuming trait Mapper[T : Mapper[T]] trait MetaMapper[T : Mapper]] extends Mapper[T] I have a function def eachField[T : Mapper[T]](mapper: T, fn: MappedField[_, T] = ...) ... I need to call it using a val

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread Naftoli Gugenheim
You can omit the word Pair. - glenngl...@exmbly.com wrote: Ross, I fixed my problem. def sumFunc(i:Int){ somOtherFunc(i) println() } selectObj((0 until 11).map(i = Pair(i, i.toString)), Full(0), somFunc) Thanks for your

[Lift] Re: How to use selectObj over a range of integers

2009-07-20 Thread Ross Mellgren
Sometimes yeah you can, and you can in this case. I use it by habit because the parsing of it varies from place to place (I think it sometimes takes it as an argument list). -Ross On Jul 20, 2009, at 2:53 PM, Naftoli Gugenheim wrote: You can omit the word Pair.

[Lift] Scala as an alternative for complex length xml/xslt transformation?

2009-07-20 Thread robin bakkerus
Because Scala currently is not mainstream (yet), I think changes are very small that Scala will used soon in of our projects. However we do have a large app that relies very heavily on very many, complex and time consuming xml/xslt transformation. I can image that Scala being a functional

[Lift] Scala project in eclipse - showing Java build errors?

2009-07-20 Thread Dan Gravell
Me again. I resolved my previous problem but hit a new one in the world of Eclipse/Scala integration. First: a confession. I'm trying to ditch Maven. I have to; I'm trying to write a webapp that will be embedded inside another Java app, and the whole lot will be built together. I can't go

[Lift] Re: Scala as an alternative for complex length xml/xslt transformation?

2009-07-20 Thread Kevin Wright
more info here:http://www.scala-lang.org/node/199 On Mon, Jul 20, 2009 at 9:58 PM, Timothy Perrett timo...@getintheloop.euwrote: Robin, Whilst your questions are valid and there are a lot of very very good Scala folk on the lift mailing list, you'll probably get broader Scala audience

[Lift] Re: Scala project in eclipse - showing Java build errors?

2009-07-20 Thread Miles Sabin
On Mon, Jul 20, 2009 at 10:08 PM, Dan Gravelldan.grav...@talk21.com wrote: For the line: package bootstrap.liftweb I get the error: Syntax error on token liftweb, ; expected after this token Which is suggesting to me the JDT is compiling this, rather than the scala compiler. Is JDT

[Lift] Re: Feedback on presentation

2009-07-20 Thread Timothy Perrett
+1 it looks really good mate. Presumably your doing a live demo at the start or similar? Cheers, Tim Sent from my iPhone On 20 Jul 2009, at 23:09, David Pollak feeder.of.the.be...@gmail.com wrote: Looks good to me. On Mon, Jul 20, 2009 at 3:05 PM, Derek Chen-Becker dchenbec...@gmail.com

[Lift] MIME type help?

2009-07-20 Thread Joe Wass
Hi, This is really a servlet question, but I'll ask here because it is a Lift project I'm having a problem with. I have some media files (MP3s) which aren't being given the correct MIME headers. I have other binary files (GIFs, PNGs, JPGs) which work fine but when I visit the URL for the MP3

[Lift] Re: Feedback on presentation

2009-07-20 Thread Meredith Gregory
Derek, Any chance you could rent a time machine and give me these slides back in 2007 when i was first working out how to build a lift app? Nice work. Best wishes, --greg On Mon, Jul 20, 2009 at 3:22 PM, Timothy Perrett timo...@getintheloop.euwrote: +1 it looks really good mate. Presumably

[Lift] S.getHeaders, could i get some examples?

2009-07-20 Thread DFectuoso
Im trying to get information about the browser the user is using and wanted to get some working snippets around S.getHeaders. Can't get it to work ( S.getHeaders(List((User-Agent,))) returns (User-Agent, )). I guess I'm not calling it right. --~--~-~--~~~---~--~~

[Lift] Re: S.getHeaders, could i get some examples?

2009-07-20 Thread David Pollak
How about S.getHeader(User-Agent)? Or for {r - S.request; ua - r.userAgent} yield ua? On Mon, Jul 20, 2009 at 4:20 PM, DFectuoso santiago1...@gmail.com wrote: Im trying to get information about the browser the user is using and wanted to get some working snippets around S.getHeaders. Can't

[Lift] Re: Hudson not building?

2009-07-20 Thread Josh Suereth
I'll take a shot at upgrading the git plugin and see what happens. There was some fuss on the hudson mailing lists about issues with git earlier, I'm wondering if we ran into the same issue. - Josh On Mon, Jul 20, 2009 at 10:56 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Yeah, I

[Lift] Re: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?

2009-07-20 Thread kjetilge
Oooops, sloppy of me to publish my password. Very embarrassing. Moving right along. There are two things that I'm not sure what means: 1. Setting dependencies 2. Goal. I'm using Maven and I have picked up that GOALS are involved. For instance: In Netbeans I can set jetty:run as a goal to

[Lift] Re: S.getHeaders, could i get some examples?

2009-07-20 Thread DFectuoso
for some reason S.getHeader(User-Agent) returns empty, but the second one(using the so useful for) did the trick, thanks! On Jul 20, 4:34 pm, David Pollak feeder.of.the.be...@gmail.com wrote: How about S.getHeader(User-Agent)? Or for {r - S.request; ua - r.userAgent} yield ua? On Mon, Jul