[Lift] Re: Lift's servlet/filter chain when handling non-Lift resources

2009-11-14 Thread Vesa
Hi, Thanks for this addition, I just bumped into a similar problem and found solution immediately from here! - Vesa On 5 marras, 01:18, David Pollak feeder.of.the.be...@gmail.com wrote: What about: LiftRules.liftRequest.append {   case Req(other_stuff :: _, _, _) = false } If you've

[Lift] Re: does AutoComplete work ?

2009-11-14 Thread David Pollak
It's a known issue (although there's no ticket for it... care to open a ticket at http://github.com/dpp/liftweb/issues ) On Wed, Nov 11, 2009 at 2:57 AM, Christophe Dehlinger christophedehlin...@gmail.com wrote: Hi, does AutoComplete work ? I tried running the lift-example from snapshot on

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

2009-11-14 Thread Timothy Perrett
Neil, Try something like: var buff = new java.io.BufferedInputStream(input) try { var fos = new java.io.FileOutputStream(new File(/some/root/ filepath/ + image_hash_filename)) var in = 0 do { in = buff.read() if (in != -1){ fos.write(in) } } while((in != -1)) fos =

[Lift] failed to find baseUri for ...

2009-11-14 Thread Indrajit Raychaudhuri
Folks, This error failed to find baseUri for ... that showed up during Lift site build (mvn site) should go away with the new vscaladoc packageLinkDefs mechanism we have in the master now. Earlier we had a single top level property file for the purpose which relied on the fact that the

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

2009-11-14 Thread Neil.Lv
It show this error message: ERROR - java.io.FileNotFoundException: \images\003.jpg # this is the code val receiptOk = fileHolder match { case Full(FileParamHolder(_, null, _, _)) = true case Full(FileParamHolder(_, mime, name, data)) if mime.startsWith(image/) = { var buff

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

2009-11-14 Thread Timothy Perrett
Hmm, I guess you must be new to the JVM - you cant write a file inside a WAR file; it does not work like that. You'll need to write to a fully qualified path (as per my example). Cheers, tim On 14 Nov 2009, at 17:34, Neil.Lv wrote: It show this error message: ERROR -

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

2009-11-14 Thread Neil.Lv
Tim, haha, yeah. I use this code to get the images folder(the full path) of the app. LiftRules.getResource(/images/).open_!.toString.substring(6) (The code is so redundant !) - G:\project\demo\src\main\webapp\images\ :) Thank you very much ! Cheers, Neil On Nov 15, 1:50 

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

2009-11-14 Thread Timothy Perrett
I really, really would not use open_! - this is very dangerous. How about: LiftRules.getResource(/images/).map(_.substring(6)).openOr(/some/ default/path) Cheers, Tim On Nov 14, 6:25 pm, Neil.Lv anim...@gmail.com wrote: Tim,   haha, yeah.   I use this code to get the images folder(the

[Lift] unusually formed POSTs aren't handled correctly

2009-11-14 Thread harryh
POST /path/to/page?foo=bar HTTP/1.1 Host: harryh.org Content-Length: 0 req.param(foo) will return Empty instead of Full(bar) -harryh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

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

2009-11-14 Thread David Pollak
On Sat, Nov 14, 2009 at 10:25 AM, Neil.Lv anim...@gmail.com wrote: Tim, haha, yeah. I use this code to get the images folder(the full path) of the app. LiftRules.getResource(/images/).open_!.toString.substring(6) (The code is so redundant !) -

[Lift] Re: unusually formed POSTs aren't handled correctly

2009-11-14 Thread harryh
Hrm. They are *not* ignored with the following request: POST /index?foo=bar HTTP/1.1 Host: localhost Content-Length: 0 Content-Type: application/x-www-form-urlencoded Will look into the spec. -harryh On Nov 14, 4:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: This is defined

[Lift] Re: unusually formed POSTs aren't handled correctly

2009-11-14 Thread David Pollak
This is defined behaviour in Lift. :-( And query params are ignored during POST processing. Does the HTTP or Servlet spec define the appropriate behaviour here? If Lift is violating either, we'll change Lift. On Sat, Nov 14, 2009 at 12:36 PM, harryh har...@gmail.com wrote: POST

[Lift] Problem with long keys in GAE using JDO

2009-11-14 Thread kkarad
Hi, I am working in an experimental personal project to learn scala, liftweb and app engine. You can find it at: http://bitbucket.org/kkarad/lift-playground/ I am currently have some problems using scala and jdo under app engine. More specifically, my entitity classes cannot use Long as a

[Lift] Re: unusually formed POSTs aren't handled correctly

2009-11-14 Thread David Pollak
On Sat, Nov 14, 2009 at 1:13 PM, harryh har...@gmail.com wrote: Hrm. They are *not* ignored with the following request: POST /index?foo=bar HTTP/1.1 Host: localhost Content-Length: 0 Content-Type: application/x-www-form-urlencoded Okay... I understand what's going on. Please open a

[Lift] Re: Possible lift error in lift:form tag

2009-11-14 Thread David Pollak
Looks like a bug. Please open a ticket at http://github.com/dpp/liftweb/issues Marius Derek: could this have anything to do with your recent changes? If so, could you get a fix into the repo, asap? On Sat, Nov 14, 2009 at 1:31 PM, Richard Hirsch hirsch.d...@gmail.comwrote: I think I might

[Lift] Problems downloading dependencies, can't get started

2009-11-14 Thread Nate Martin
Hi- I was very intrigued with Lift, so I tried to work my way through the Hello World tutorial. Unfortunately, I can't seem to get that to work. I'm running on Snow Leopard. I installed Lift with the installer downloaded from the Lift web site (version 1.0.1). When I first ran mvn jetty:run it

[Lift] Re: Problems downloading dependencies, can't get started

2009-11-14 Thread David Pollak
Nate, Welcome. Try rm -rf ~/.m2 and then mvn jetty:run and all should be good. Thanks, David PS -- I think Maven is great, but I do have to remove ~/.m2 at least once a week to keep Maven running well. On Sat, Nov 14, 2009 at 4:32 PM, Nate Martin natmar...@gmail.com wrote: Hi- I was

[Lift] Re: Problems downloading dependencies, can't get started

2009-11-14 Thread Jim Barrows
Nate there is a directory in your home directory called .m2. Delete that and retry. If that doesn't work, and nobody else jumps in, its an issue with maven. I'm mobile abd be more helpful I'm afraid. Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: Nate

[Lift] Re: Problems downloading dependencies, can't get started

2009-11-14 Thread Nate Martin
Fantastic, that worked great! Mentioning this tip in the tutorial might be a good idea. Thanks! On Nov 14, 4:37 pm, Jim Barrows jim.barr...@gmail.com wrote: Nate there is a directory in your home directory called .m2.  Delete that and retry. If that doesn't work, and nobody else jumps in,

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

2009-11-14 Thread Neil.Lv
Hi all, Thanks for your tips, and I have some silly question about this. 1:) a directory that's not part of the app's exploded WAR file The direcotry tree like this, and Where is i can create a well defined directory that's not part of the app's exploded WAR file ? I'm not

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

2009-11-14 Thread Neil.Lv
I want to save the images to a directory, because this images will be used in the flash params. This file path will be used in the javascript code . ### var imag=new Array(); imag[3]=/images/01.jpg; ### Cheers, Neil On Nov 15, 12:05 pm, Neil.Lv anim...@gmail.com wrote: Hi all,  

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

2009-11-14 Thread Naftoli Gugenheim
The file not found error may be because the directory doesn't exist. Try calling file.mkdirs first. - Neil.Lvanim...@gmail.com wrote: I want to save the images to a directory, because this images will be used in the flash params. This file path will