[Lift] Re: file upload

2009-06-12 Thread Oliver Lambert
Whats serious uploading? I uploaded 15,000 records using it today - seemedto handle it OK. On Fri, Jun 12, 2009 at 9:48 AM, Timothy Perrett timo...@getintheloop.euwrote: FYI - its not a streaming upload at the moment, so its great for smallish files, but you wouldnt want to do much serious

[Lift] Re: file upload

2009-06-12 Thread Timothy Perrett
Hey Oliver, I was referring to large uploads - with the current scheme the entire file is read into memory, so if you upload, say, a 400 or 500mb file you'll find that your entire stack bloats in size. Thanks, Tim On Jun 12, 11:53 am, Oliver Lambert olambo...@gmail.com wrote: Whats serious

[Lift] Re: file upload

2009-06-12 Thread wapgui
I do similar things. First there is a snippet using the bind functionality. var image : FileParamHolder = _ bind(widget, xhtml, image - fileUpload(image = _) } Now write out: val wbos : ByteArrayOutputStream = build(image) val fout = new File(outputFilename) if (fout.exists()) {

[Lift] Re: YA menu question: separate menus

2009-06-12 Thread glenn
Derek, I'd love to test the changes you made to Menu, but my build fails when I run mvn install on the pom in the lift directory of the download from http://github.com/dpp/liftweb/tree/wip-dcb-menu-addons Here's what maven reports: [WARNING] Warning in manifest for

[Lift] Re: YA menu question: separate menus

2009-06-12 Thread glenn
My error. Ignore this. I did a mvn clean then mvn install outside of Eclipse on the parent pom and everything worked fine. Glenn... On Jun 12, 4:45 am, glenn gl...@exmbly.com wrote: Derek, I'd love to test the changes you made to Menu, but my build fails when I run mvn install on the pom

[Lift] Re: Wolfram Alpha integration for Lift

2009-06-12 Thread Timothy Perrett
Greg, If you have any thoughts on effective ways to model this query grammar id be interested in your thoughts :-) Cheers, Tim On Jun 11, 10:38 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: All, Thanks for all this input. It certainly helps me see the value-prop better. Best

[Lift] Re: YA menu question: separate menus

2009-06-12 Thread Derek Chen-Becker
OK, let me know how your testing goes and whether the change meets your requirements. Derek On Fri, Jun 12, 2009 at 5:59 AM, glenn gl...@exmbly.com wrote: My error. Ignore this. I did a mvn clean then mvn install outside of Eclipse on the parent pom and everything worked fine. Glenn...

[Lift] Re: YA menu question: separate menus

2009-06-12 Thread glenn
Derek, Your new Menu snippet works great. I created a superfish-style menu using a list of groups, like so: object MenuWidgetEx { def apply(groups:List[String]) = new MenuWidgetEx(groups, MenuStyle.HORIZONTAL, JsObj()) render def apply(groups:List[String], style: MenuStyle.Value) = new

[Lift] Lift Shopping Cart?

2009-06-12 Thread David Persons
I am experimenting with Lift / Scala and am thinking about using it for some projects in the future. Really like it. For a website I need shopping cart functionality. In last years post 'Making modular lift functionality' I read about plans for making a Lift shopping cart module. What is the

[Lift] Re: Lift Shopping Cart?

2009-06-12 Thread marius d.
There is a PayPal module I think. Br's, Marius On Jun 12, 5:08 pm, David Persons dhwpers...@gmail.com wrote: I am experimenting with Lift / Scala and am thinking about using it for some projects in the future. Really like it. For a website I need shopping cart functionality. In last years

[Lift] Re: Lift Shopping Cart?

2009-06-12 Thread Timothy Perrett
The paypal module simply covers transactional integration - there is no support for paypal shopping cart. You could of course write your own shopping car JAR and just hook that into lift any which way you would like. Cheers, Tim On Jun 12, 3:24 pm, marius d. marius.dan...@gmail.com wrote:

[Lift] URL Rewriting problem

2009-06-12 Thread glenn
RewriteRequest isn't working in my app, so I must be doing something wrong, or leaving something important out. I have a menu in my siteMap: Menu(Loc(contact, List(info, contact), Contact Us, LocGroup (info))) My boot.scala contains this: LiftRules.rewrite.append { case

[Lift] Re: URL Rewriting problem

2009-06-12 Thread Derek Chen-Becker
Do you have a menu item that matches List(content)? If not, that's why you're getting the 403. If you use SiteMap it has to be exhaustive for all content on your site. Anything that doesn't match as SiteMap entry will get a 403 error like you got here. If you don't want to show a menu item for a

[Lift] Re: URL Rewriting problem

2009-06-12 Thread David Pollak
On Fri, Jun 12, 2009 at 10:44 AM, glenn gl...@exmbly.com wrote: RewriteRequest isn't working in my app, so I must be doing something wrong, or leaving something important out. I have a menu in my siteMap: Menu(Loc(contact, List(info, contact), Contact Us, LocGroup (info))) My boot.scala

[Lift] Re: URL Rewriting problem

2009-06-12 Thread glenn
David, Here's my scenario. I've got about 30 menus organized into about 7 or 8 groups. Thanks to help from you and Derek and others in this discussion, I can display nested menus in groups as a horizontal superfish menu. Using URL Rewriting, as described in the master lift book, I created a

[Lift] Re: URL Rewriting problem

2009-06-12 Thread David Pollak
So, you want custom content with menus generated from the database... well... class BaseContentLoc(val name: String, _aspect: String) extends Loc[CustomContent] { // the name of the page // def name = Content val BaseAspect = _aspect def defaultParams =

[Lift] Lift and Scala for Non-Java Programmers

2009-06-12 Thread Peter Robinett
Hi guys, I know this is more a Scala question than a Lift one but I do all my web programming within frameworks and I find it's easiest to learn a language when doing a real project... Are there any tutorials, let alone good ones, introducing Scala (and Lift) to programmers with no knowledge or

[Lift] Re: Lift and Scala for Non-Java Programmers

2009-06-12 Thread David Pollak
Peter, If you want to learn enough Scala to make Programming in Scala a good read, I'd like to suggest my book, Beginning Scala. While it does do some comparison between Scala and Java, it does so with two goals: (1) to use Java as a generic OO-ish language and (2) to show how Scala's syntax and

[Lift] Re: Wolfram Alpha integration for Lift

2009-06-12 Thread Meredith Gregory
Tim, Thanks for the prompt. Can you point me to a description of what's possible with W|A? i can put together a draft that you can then rev. Best wishes, --greg On Fri, Jun 12, 2009 at 6:26 AM, Timothy Perrett timo...@getintheloop.euwrote: Greg, If you have any thoughts on effective ways

[Lift] Mapper record deletion

2009-06-12 Thread g-man
As I move deeper into learning Lift, I now want to start deleting Mapper records in the ToDo example. My first problem is how to get an ECMAscript or jQuery 'Confirm delete' dialog to actually delegate an affirmative 'OK' button click to the deletion, and conversely, to do nothing for the