[Lift] Re: Tomcat css access problem

2009-08-27 Thread Yousry Abdallah
Hi, your suggestion didn't work for me because I'm using url-rewrite in my application. Something like http://...application/parameterA/ http://...application/parameterA/parameterB/ Therefore the relative path wouldn't match. The CSSHelper function fixes the absolute path. This is

[Lift] Re: 1.1-SNAPSHOT issue?

2009-08-27 Thread E. Biggs
Ok here's the problem stripped down. The merge happens but the head node isn't being removed from the body Let me know if you'd like it in some other format. templates-hidden/outer.html: html head meta name=description content=Head Merge Test / /head body lift:bind name=content

[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-08-27 Thread Viktor Klang
On Thu, Aug 27, 2009 at 10:27 AM, Marc Boschma marc+lift...@boschma.cxmarc%2blift...@boschma.cx wrote: Personally I use:

[Lift] about QueryParams

2009-08-27 Thread XiaomingZheng
there are two kinds of QueryParams in Lift, one uses raw sql clauses and the other not. My question is, when using the raw sql clauses, the security must be checked by programmer self, and declare safety by IHaveValidatedThisSQL, but when using the now raw methods, does Lift framework checks

[Lift] error in http authetication and openid

2009-08-27 Thread iboy
Hi all i am new to scala and lift. while trying to do a sample project i tried to use httpauthentication code given in liftbook (7.14 authentication example) and i am getting following errors a) while using import auth._ error: value auth not found if i try using

[Lift] Re: Bug in MappedEmail: emailPattern is wrong

2009-08-27 Thread Marc Boschma
Your right... I've been thinking about that and how the current mapper only does the regex check.. could always override the validate method... Marc On 27/08/2009, at 6:39 PM, Viktor Klang wrote: On Thu, Aug 27, 2009 at 10:27 AM, Marc Boschma marc+lift...@boschma.cx wrote: Personally I

[Lift] some questions on lift

2009-08-27 Thread surfman
I am totally new and interested in scala lift. what I have is a little Java knowledge. Aftering reading to-do application at the website, I got the following questions: 1) where and how to setup database? the tutorial never mentions database setup, 2) how does lift support database migration?

[Lift] Re: about QueryParams

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 2:12 AM, XiaomingZheng xiaomingzhen...@gmail.comwrote: there are two kinds of QueryParams in Lift, one uses raw sql clauses and the other not. My question is, when using the raw sql clauses, the security must be checked by programmer self, and declare safety by

[Lift] Re: some questions on lift

2009-08-27 Thread marius d.
Tim has a magic articles bag :) On Aug 27, 4:20 pm, Timothy Perrett timo...@getintheloop.eu wrote: Checkout my article here on how to localize with Lift:  http://is.gd/1NXGN Cheers, Tim On 27/08/2009 14:08, surfman chinasmile...@gmail.com wrote: 3) internationalization support. how does

[Lift] Re: some questions on lift

2009-08-27 Thread Timothy Perrett
Checkout my article here on how to localize with Lift: http://is.gd/1NXGN Cheers, Tim On 27/08/2009 14:08, surfman chinasmile...@gmail.com wrote: 3) internationalization support. how does lift support this? --~--~-~--~~~---~--~~ You received this message

[Lift] Props.userName minor minor minor suggestion

2009-08-27 Thread Richard Dallaway
As Props.userName is public, it would be good if it didn't include a trailing . in the return value. I see why it does for use in toTry but as a user of Lift it was a surprise to ask for Props.userName and see the . on the end. The same applies for Props.hostName (even though there's

[Lift] GAE (google apps engine) Lift Eclipse Setup

2009-08-27 Thread Andreas
Hi, I have a working GAE Scala Eclipse setup based on: http://penguinparens.blogspot.com/2009/04/further-steps-scalagwtapp-engineeclipse.html How do I integrate the Lift framework from: http://github.com/ymnk/liftweb/tree/master thanks Andreas

[Lift] Re: some questions on lift

2009-08-27 Thread Timothy Perrett
HAHA - indeed I do... I've written so many articles on lift now I forget what stuff is in the bag ;-) Perhaps this will also be helpful: http://is.gd/sfyT To be honest, ive not done a great deal with Mapper so someone else will have to help you there (I usually use JPA) Cheers, Tim On

[Lift] Small wiki contribution for log4j configuration

2009-08-27 Thread Richard Dallaway
What's the protocol for making a Wiki contribution: just go in and do it? Turns out I'm not that brave. I've pulled together the start of a logging wiki entry, just covering what is (for me) the common case. I've put it here for the moment...

[Lift] Re: some questions on lift

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 6:08 AM, surfman chinasmile...@gmail.com wrote: I am totally new and interested in scala lift. what I have is a little Java knowledge. Aftering reading to-do application at the website, I got the following questions: 1) where and how to setup database? the tutorial

[Lift] Re: GAE (google apps engine) Lift Eclipse Setup

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 7:49 AM, Andreas andreas.heissenber...@gmail.comwrote: Hi, I have a working GAE Scala Eclipse setup based on: http://penguinparens.blogspot.com/2009/04/further-steps-scalagwtapp-engineeclipse.html How do I integrate the Lift framework from:

[Lift] Re: Props.userName minor minor minor suggestion

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 7:07 AM, Richard Dallaway dalla...@gmail.comwrote: As Props.userName is public, it would be good if it didn't include a trailing . in the return value. I see why it does for use in toTry but as a user of Lift it was a surprise to ask for Props.userName and see the .

[Lift] (beginner question) Liftweb View folder

2009-08-27 Thread Daniel Nelson
Hello, *Problem* I'm new to Lift/Scala and trying to understand/experiment with Lift's View folder. I've not gotten past a 404 error on the browser (as it relates to the View folder; templates render fine). *Background/Environment* I've been reading Exploring Lift (~Section 3.7) along with

[Lift] Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
I am using Lift 1.0 with the Mapper ORM module from Lift. I am a newbie to Scala and Lift. I have auto-generated my ORM classes from a .sql file. Given that these classes are auto-generated I would prefer not to edit them directly and provide additional functionality via inheritance. Say I

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
With a parser combinator I wrote to parse .sql and it outputs scala orm files. Please note it is very specific to my needs (i.e. only works with certain grammars (INSERTS) but that particular grammar is all I needed to process at the time) but is written in a way that could be extended to the

[Lift] Re: Ajax in ToDo application hanging

2009-08-27 Thread David Pollak
I'm running tests from Firefox running locally, Chrome running locally and Safari running remotely to see if I can reproduce the issue (I'm running against Lift 1.1-SNAPSHOT) On Thu, Aug 27, 2009 at 4:38 AM, Dorinel dorinel.munte...@gmail.com wrote: I was implementing application from

[Lift] Re: SparkLines broken in 1.1-SNAPSHOT

2009-08-27 Thread David Pollak
Fixed. Thanks! On Wed, Aug 26, 2009 at 10:28 PM, jon jonhoff...@gmail.com wrote: Hi, Looks like the JS is being double escaped. Changed following methods to fix: def onLoad(id: String, graphStyle: SparklineStyle.Value, data: JsArray, opts: JsObj) : NodeSeq = { head script

[Lift] Overriding widgets stylesheets

2009-08-27 Thread Marius
Someone encountered the problem where he couldn't override the stylesheet used by some widget. Damn I can't find any more that thread ... Anyways here it is: 1. Include the widget in your application say monthview. 2. The url to the stylesheet is: /classpath/calendars/monthview/ style.css 3. In

[Lift] Re: 1.1-SNAPSHOT issue?

2009-08-27 Thread E. Biggs
Many thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to

[Lift] Re: Modularization of Lift code

2009-08-27 Thread glenn
David, Returning menu items from your init function is OK, but forces the user of your module to guess on function-call order, or be forced to glean it from the source, which he should not be required to do. Putting code such as this, instead, in your init function helps, but does not eliminate

[Lift] Re: Small wiki contribution for log4j configuration

2009-08-27 Thread David Pollak
Richard, Our new wiki is at http://wiki.github.com/dpp/liftweb You're encouraged to copy stuff from the old wiki to the new wiki and update content that's out of date and enhance any content. Thanks, David On Thu, Aug 27, 2009 at 7:56 AM, Richard Dallaway dalla...@gmail.comwrote: What's

[Lift] Re: Small wiki contribution for log4j configuration

2009-08-27 Thread Timothy Perrett
Looks great to me! Add it to the lift wiki with the prefix How To: as that follows our convention. Cheers, Tim On 27/08/2009 15:56, Richard Dallaway dalla...@gmail.com wrote: What's the protocol for making a Wiki contribution: just go in and do it? Turns out I'm not that brave. I've

[Lift] Re: Ajax in ToDo application hanging

2009-08-27 Thread David Pollak
I've reproduced and fixed this issue. Thanks for reporting it. On Thu, Aug 27, 2009 at 9:13 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I'm running tests from Firefox running locally, Chrome running locally and Safari running remotely to see if I can reproduce the issue (I'm

[Lift] Re: Modularization of Lift code

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 11:22 AM, glenn gl...@exmbly.com wrote: David, Returning menu items from your init function is OK, but forces the user of your module to guess on function-call order I don't understand... what function call order are you talking about? The order in which the

[Lift] has anyone seen this exception?

2009-08-27 Thread jack
Has anyone seen this error? I get it while transforming a Stream into a String. The stream is from an http request I just made. Message: java.io.IOException: Premature EOF sun.net.www.http.ChunkedInputStream.readAheadBlocking (ChunkedInputStream.java:556)

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
Thanks for the answers everyone. What David hit upon about wanting objects to be subclassible is the conclusion I came to that would work..if it existed. I was hoping there was a way. :(. Well, I guess Naftoli has provided a possible solution but seems more involved than I have the experience

[Lift] Re: Lift transactions

2009-08-27 Thread David Pollak
On Wed, Aug 26, 2009 at 4:03 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I'm using POJT (plain old JDBC transactions :-) with a single db. I would like to: 1) Manually rollback changes if some validations fail 2) Have the tx rolled back if an error happens I think 1) can be

[Lift] Contributing to Lift

2009-08-27 Thread Tim Dion
Hi all, I am a Smalltalker, looking to transition into Scala and Lift. How can I contribute to Lift? Thanks, Tim Dion http://www.linkedin.com/pub/tim-dion-csdp/1/785/208 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: has anyone seen this exception?

2009-08-27 Thread David Pollak
This happens sometimes when the client disconnects before the communications with the server is complete. I see them from time to time and they indicate to me that the Internet is a random place. On Thu, Aug 27, 2009 at 12:06 PM, jack jack.wid...@gmail.com wrote: Has anyone seen this error? I

[Lift] Re: Something you might find useful: easy lazy loading of page sections

2009-08-27 Thread Charles F. Munat
Nice! David Pollak wrote: This is nifty... I think it's worthy of inclusion in Lift. Thanks for the suggestion! On Wed, Aug 26, 2009 at 2:44 PM, harryh har...@gmail.com mailto:har...@gmail.com wrote: Let's say you have a bit of a page like so: lift:SomeSnippet.section

[Lift] Re: Multiple sites, same login

2009-08-27 Thread Charles F. Munat
This is good to know about. Thanks! Marc Boschma wrote: Maybe https://opensso.dev.java.net/ might be of interest? Might also be a bit of work... Marc On 26/08/2009, at 2:53 AM, Charles F. Munat wrote: Now this is an interesting idea. I'll think about it... Thanks! Chas. David

[Lift] Re: (beginner question) Liftweb View folder

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 9:49 AM, Daniel Nelson dpn53...@gmail.com wrote: Hello, *Problem* I'm new to Lift/Scala and trying to understand/experiment with Lift's View folder. I've not gotten past a 404 error on the browser (as it relates to the View folder; templates render fine). I'd

[Lift] lift request param

2009-08-27 Thread DavidV
For the laboratory website I am building I need to keep track of batches of samples as they are being processed, and would like to do so with a request parameter in the URL. Right now, I am manually adding this parameter to every link: object batch extends MappedLong(this) { override def

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread Naftoli Gugenheim
How do you auto-generate them? On Thu, Aug 27, 2009 at 1:03 PM, rstradling ryanstradl...@gmail.com wrote: I am using Lift 1.0 with the Mapper ORM module from Lift. I am a newbie to Scala and Lift. I have auto-generated my ORM classes from a .sql file. Given that these classes are

[Lift] Re: Lift Record Documentation

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 11:48 AM, inca incarn...@whiteants.net wrote: Ok, thanks. Another question then. As far as I can see from sources, basic KeyedRecord trait depends on some Mapper classes. Does Record use Mapper for JDBC operations under the covers? Yes. On 27 авг, 01:25, Timothy

[Lift] Re: Contributing to Lift

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 9:41 AM, Tim Dion tim_d...@yahoo.com wrote: Hi all, I am a Smalltalker, looking to transition into Scala and Lift. Welcome. How can I contribute to Lift? Initially by asking questions and then helping to document the answers on the wiki. Then by answering the

[Lift] Re: Modularization of Lift code

2009-08-27 Thread glenn
David, Besides the very detailed discussion here about the problems of Boot initialization and the immutability of sitemap and liftrules, that strikes me as a sufficient barrier to real modularization. I hadn't thought about turning reuseable code into traits and assigning those around in jar

[Lift] weirdness with stateful snippets and multiple forms on the page

2009-08-27 Thread harryh
Are stateful snippets considered a good way to do multi-step wizard like interfaces? They seem like a good fit, but I'm running into 1 annoying problem. I'm seeting things up so in my .html file I have something like this: lift:MyPage.stepOne form=POST // HTML for step 1 /lift:MyPage.stepOne

[Lift] Re: Contributing to Lift

2009-08-27 Thread Timothy Perrett
Without doubt the most accesible way would be with writing wiki articles... We really lack documentation. Provided you have a github account you can get cracking straight away :-) Cheers, Tim Sent from my iPhone On 27 Aug 2009, at 17:41, Tim Dion tim_d...@yahoo.com wrote: Hi all,

[Lift] Re: Ajax in ToDo application hanging

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 3:19 PM, Dorinel dorinel.munte...@gmail.com wrote: It's great! By the way, by default ToDo application runs on 1.1-SNAPSHOT? I think it uses 1.0 by default... but I prefer 1.1-SNAPSHOT because it's got the most developer-friend features. On Aug 27, 9:45 pm, David

[Lift] Re: Small wiki contribution for log4j configuration

2009-08-27 Thread Richard Dallaway
Thanks David, Thanks Tim I've added the page, and also copied over what appears to be relevant from the old wiki page. http://wiki.github.com/dpp/liftweb/how-to-configure-logging Right: back to some coding now... Cheers Richard On Thu, Aug 27, 2009 at 5:34 PM, Timothy

[Lift] Scope issues with CometActors

2009-08-27 Thread Spencer Uresk
Hey all, I'm trying to build an app that takes advantage of the Comet support in Lift. This is a simple app that displays all messages from a given person and shows new messages as they are added. At first, I struggled with trying to pull the request parameter (the url looks like this -

[Lift] Re: Modularization of Lift code

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 2:00 PM, glenn gl...@exmbly.com wrote: David, Besides the very detailed discussion here about the problems of Boot initialization and the immutability of sitemap and liftrules, that strikes me as a sufficient barrier to real modularization. Are you talking about

[Lift] Fwd: [dpp/liftweb] 4bc64d: Stateful snippets work correctly with empty result...

2009-08-27 Thread David Pollak
Fix to the empty stateful snippet form issue. -- Forwarded message -- From: nore...@github.com Date: Thu, Aug 27, 2009 at 8:06 PM Subject: [dpp/liftweb] 4bc64d: Stateful snippets work correctly with empty result... To: feeder.of.the.be...@gmail.com Branch: refs/heads/master

[Lift] Re: Scope issues with CometActors

2009-08-27 Thread David Pollak
lift:comet type=YourCometClass name={person_number} / The optional name attribute allows you to have different comet actor names (e.g., one per person). You can retrieve the CometActor's name via the name method, which returns a Box[String]. In your CometActor, make sure to: override def

[Lift] Re: Newbie Question design pattern for ORM in Lift

2009-08-27 Thread rstradling
git clone git://github.com/rstradling/DDLtoLiftORM.git is the location of the git code. http://github.com/rstradling/DDLtoLiftORM is the web address I hope this is helpful to others. On Aug 27, 3:13 pm, rstradling ryanstradl...@gmail.com wrote: Thanks for the answers everyone.  What David

[Lift] authentication and access control

2009-08-27 Thread Chris Lewis
Lift users, I'm curious what you all are using for user access control (Mapper users excluded). I'm seriously evaluating lift for a project that will use JPA. My full time job uses Spring Security, which while nice in that it stays out of the way, is too clunky for my tastes. I haven't

[Lift] Using Lift to build a Web Service and the PUT HTTP method??

2009-08-27 Thread Alan M
I'm trying to use PUT with Lift and it seems to be working, except I can't find the content I put. I'm using jQuery on the front end (a custom front-end) and firebug seems to think the data gets sent. Although it doesn't show me the raw request, it adds a PUT tab that shows the key and value(I

[Lift] Re: has anyone seen this exception?

2009-08-27 Thread Jack Widman
Here is the code I am using. The exception is happening at line 12, the line that goes line = br.readLine() The exception is happening alot. Any ideas? package com.authoritude.snippet import java.io.{InputStreamReader, BufferedInputStream,

[Lift] Re: Ajax in ToDo application hanging

2009-08-27 Thread Dorinel
Is there a way to update ToDo application to use 1.1-SNAPSHOT? On Aug 28, 1:38 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Aug 27, 2009 at 3:19 PM, Dorinel dorinel.munte...@gmail.com wrote: It's great! By the way, by default ToDo application runs on 1.1-SNAPSHOT? I

[Lift] Re: has anyone seen this exception?

2009-08-27 Thread David Pollak
I'd suggest that you use import net.liftweb.util.Helpers._ def streamToString(stream: InputStream) = new String(readWholeStream(stream), UTF-8) See if that makes things better. On Thu, Aug 27, 2009 at 4:28 PM, Jack Widman jack.wid...@gmail.com wrote: Here is the code I am using. The exception

[Lift] Re: Ajax in ToDo application hanging

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 6:24 PM, Dorinel dorinel.munte...@gmail.com wrote: Is there a way to update ToDo application to use 1.1-SNAPSHOT? Edit your pom.xml file. Change the Scala version to 2.7.5. Change the net.liftweb dependencies to 1.1-SNAPSHOT and make sure the repositories tag

[Lift] Re: has anyone seen this exception?

2009-08-27 Thread Jack Widman
Great. Thanks David. I'll try that. On Fri, Aug 28, 2009 at 12:27 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I'd suggest that you use import net.liftweb.util.Helpers._ def streamToString(stream: InputStream) = new String(readWholeStream(stream), UTF-8) See if that makes things

[Lift] Re: weirdness with stateful snippets and multiple forms on the page

2009-08-27 Thread David Pollak
Lift's multi-step wizard support is less than optimal. I'm working with some folks to improve the situation and it's part of the 1.1 roadmap. On Thu, Aug 27, 2009 at 1:40 PM, harryh har...@gmail.com wrote: Are stateful snippets considered a good way to do multi-step wizard like interfaces?