[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
On Mar 1, 3:53 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: I'm not sure if this can be handled with the standard ParsePath, but it is fairly easy to write your own extractor that can handle more complex scenarios. Here's an example: object ParamsExtractor { def

Re: [Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Jeppe Nejsum Madsen
Neil.Lv anim...@gmail.com writes: On Mar 1, 3:53 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: I'm not sure if this can be handled with the standard ParsePath, but it is fairly easy to write your own extractor that can handle more complex scenarios. Here's an example: object

[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
On Mar 1, 5:10 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Ahh yes, the example was from a Loc rewrite, The principle is the same I guess, you should be able to do something like this: case RewriteRequest(ParamsExtractor(account,orgUnit) , _, _) = RewriteResponse(path, Map(account -

Re: [Lift] New logging code is in master

2010-03-01 Thread Jeppe Nejsum Madsen
On Mon, Mar 1, 2010 at 12:20 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Excellent! We have the deprecations turned off in the pom.xml file by default... but gotta turn the deprecation warnings on post M3. Not sure what this means? Do the generated jars on scala-tools not contain

[Lift] snakify and abbreviations

2010-03-01 Thread Jeppe Nejsum Madsen
Hi, Eager to use the new Mapper support for snake_case I discovered that the snakify method doesn' handle abbreviations well: StringHelpers.snakify(HTML) res5: java.lang.String = h_t_m_l StringHelpers.snakify(HTMLEditor) res6: java.lang.String = h_t_m_l_editor I would expect those to be html

[Lift] Re: Javascript Dependencies

2010-03-01 Thread Marius
Yes I believe this needs a bit more thinking. I didn;t spend too much time into this but perhaps add a LiftRules function to describe the dependency tree per page: i.e. var jsDependencies : (Req) = JsDependencyTree where case class JsDependencyTree (url: String, dependencies: JsDependencyTree

[Lift] Newbie Q: Lift suitable as webgui for java 6 app with embedded webserver and no database ?

2010-03-01 Thread mortench
Hi All, I am considering if Lift might be a good solution for implementing a web gui frontend for a java 6 application which among other things has an embedded web server with HTTP/HTTPS support. When the application is launced the webserver can be started so that the web gui can be accessed

[Lift] Re: Javascript Dependencies

2010-03-01 Thread Marius
On Mar 1, 1:50 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Marius marius.dan...@gmail.com writes: Yes I believe this needs a bit more thinking. I didn;t spend too much time into this but perhaps add a LiftRules function to describe the dependency tree per page: i.e. var

Re: [Lift] Re: Javascript Dependencies

2010-03-01 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: [...] I'm not sure that doing this per snippet is the right approach. Maybe we differ in our thinking then :-) I'm thinking more in a component oriented approach where I would like to put a widget on a page. I'll just add the correct snippet tags to my

Re: [Lift] Newbie Q: Lift suitable as webgui for java 6 app with embedded webserver and no database ?

2010-03-01 Thread Jeppe Nejsum Madsen
mortench morte...@gmail.com writes: Hi All, [...] How suited would Lift be for this scenario or to be more precise: a) Is a lift web app as fast to startup as a normal jave jsp/servlet app ? Depends mostly on your own code. If you have an empty Boot, startup is 1s. b) Can lift be used

[Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So I was thinking that it would be an idea to add a MapperRules.nameToDisplayName such as this var nameToDisplayName: ( Mapper[_], String) = (_,name) = name This would

[Lift] reload application.properties

2010-03-01 Thread Martin
Hi is there any way to reload application.properties file after boot.scala finishes? I would like to do dynamic localization of properties on my site, without need to stop/start application. Mayby there is much better way to accomplish it. I would really appreciate any help. best regards,

[Lift] Re: Javascript Dependencies

2010-03-01 Thread Marius
Yes we do have different perspectives. I'm saying for page X here these are the JS dependencies whether you seem to say here is a snippet, and it needs these dependencies I'd still prefer my paradigm (not because of my ego) because it'd be easier to manage redundancies, it applies generically for

[Lift] newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread ojonam
Hello all, I am trying to launch a lift web app on my computer, but trying to use Snapshot 2.0 instead of 1.0 (which seems to have some problems with Scala 2.7.7). I have taken the following steps : - tried to create a lift blank app with 2.0-snapshot, adapting the archetype:generate command

Re: [Lift] Re: Javascript Dependencies

2010-03-01 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: Yes we do have different perspectives. I'm saying for page X here these are the JS dependencies whether you seem to say here is a snippet, and it needs these dependencies Yes I'd still prefer my paradigm (not because of my ego) because it'd be easier

[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
I add these code in the Boot class, but it doesn't work. How can write the correct code to parse the url ? # object ParamsExtractor { def unapply(pp: ParsePath): Option[(String)] = { Log.info(wholePath: + pp.wholePath) val path = List(test) val result:Box[(String)] = if

[Lift] Re: newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread ojonam
- tried to create a lift blank app with 2.0-snapshot, adapting the archetype:generate command from the book as required Try to show the complete command. Or look in the ML for commands that work with 2.0-SNAPSHOT So I tried two things - type mvn archetype:generate and then follow the

Re: [Lift] Re: newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread David Pollak
If you set -darchetypeVersion to 1.0, then you'll get Lift 1.0 built on Scala 2.7.3. If you use 1.0.3 then you'll get the latest branch of Lift 1.0... built with Scala 2.7.7. I strong recommend you use 2.0-M2 which is also built with 2.7.7 Connected by MOTOBLUR™ on T-Mobile -Original

Re: [Lift] Re: newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread Jeppe Nejsum Madsen
On Mon, Mar 1, 2010 at 4:35 PM, ojonam manojo10...@gmail.com wrote: - tried to create a lift blank app with 2.0-snapshot, adapting the archetype:generate command from the book as required Try to show the complete command. Or look in the ML for commands that work with 2.0-SNAPSHOT So I

[Lift] Compile error

2010-03-01 Thread Donald McLean
I just updated to Lift 2.0m2 and Scala 2.7.7 and now I'm getting this error message. I would greatly appreciate a suggestion on how to resolve this. Donald java.lang.RuntimeException: malformed Scala signature of Loc at 5720; reference value common of package liftweb refers to nonexisting

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 8:03 AM, Donald McLean dmclea...@gmail.com wrote: I just updated to Lift 2.0m2 and Scala 2.7.7 and now I'm getting this error message. I would greatly appreciate a suggestion on how to resolve this. This is a known bug in the Scala compiler. To fix it, do: mvn clean

Re: [Lift] Compile error

2010-03-01 Thread Donald McLean
I appreciate the response but I'm not using Maven, I'm using Ant. If you could tell me what that would accomplish I could probably figure out the equivalent. Thank you, Donald On Mon, Mar 1, 2010 at 11:07 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 8:03 AM,

Re: [Lift] ByList using OR instead of IN?

2010-03-01 Thread David Pollak
It used to be IN and then someone asked that it be changed to the current OR and they had a reasonable argument, so we changed it. On Sun, Feb 28, 2010 at 11:17 PM, aw anth...@whitford.com wrote: From reading Exploring Lift (Section 6.1, page 81), it says that ByList corresponds to the “field

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jim Barrows
On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So your replacing code boilerplate with property file boilerplate? The boilerplate has to go

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 8:19 AM, Donald McLean dmclea...@gmail.com wrote: I appreciate the response but I'm not using Maven, I'm using Ant. If you could tell me what that would accomplish I could probably figure out the equivalent. whatever does a clean... whatever deletes all the .class

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows jim.barr...@gmail.com wrote: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So your

Re: [Lift] reload application.properties

2010-03-01 Thread David Pollak
The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are things to vary, build an administrative interface or some other thingy (e.g., a separate HTTP listener) that allows you to manipulate

Re: [Lift] Newbie Q: Lift suitable as webgui for java 6 app with embedded webserver and no database ?

2010-03-01 Thread David Pollak
Jeppe gave a great answer. Just to reinforce that Lift's webkit is totally agnostic to the data being presented. As long as that data can be materialized as instances of objects in the JVM, you can use Lift. On Mon, Mar 1, 2010 at 4:54 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: mortench

Re: [Lift] Compile error

2010-03-01 Thread Donald McLean
That didn't help. The problem is related to the Lift-2.0-M2 libraries. I went to 1.0.3 and it is fine. Donald On Mon, Mar 1, 2010 at 11:51 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 8:19 AM, Donald McLean dmclea...@gmail.com wrote: I appreciate the response

[Lift] Lift 2.0-M3 code slush

2010-03-01 Thread David Pollak
Folks, The Lift master branch is now in code slush in anticipation of a late Wednesday March 3rd PST release of Lift 2.0 Milestone 3. If you are a committer: THANK YOU!! for working hard and working as a team to make M3 a reality. If you committed something to M3, please contact me privately

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 9:28 AM, Donald McLean dmclea...@gmail.com wrote: That didn't help. The problem is related to the Lift-2.0-M2 libraries. I went to 1.0.3 and it is fine. If you can put together a reproduceable example, we'll look into it. Donald On Mon, Mar 1, 2010 at 11:51 AM,

Re: [Lift] Compile error

2010-03-01 Thread Donald McLean
Fortunately, I'm doing a tech-eval prototype so I can just send the whole kit-n-caboodle. It's just under 700k as a tar file. Where should I send it? Donald On Mon, Mar 1, 2010 at 12:32 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 9:28 AM, Donald McLean

[Lift] Emerging Languages Face Off: Scala, Go, Clojure and Ruby

2010-03-01 Thread David Pollak
Folks, I'll be representing Scala in an emerging languages face-off at http://www.sdforum.org/index.cfm?fuseaction=Calendar.eventDetaileventID=13632 Interestingly, Scala and Clojure and both functional languages... indicating that FP is gaining interest from folks inside 2 standard deviations

Re: [Lift] Compile error

2010-03-01 Thread David Pollak
Send it to me directly, but please make sure that there are no hard-coded paths or dependencies other than Ant and Ivy that I might not have on my machine. On Mon, Mar 1, 2010 at 9:46 AM, Donald McLean dmclea...@gmail.com wrote: Fortunately, I'm doing a tech-eval prototype so I can just send

Re: [Lift] Emerging Languages Face Off: Scala, Go, Clojure and Ruby

2010-03-01 Thread Jim Barrows
Best of luck! Will you be facing off with swords or... oh wait.. never mind... ;) On Mon, Mar 1, 2010 at 10:50 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'll be representing Scala in an emerging languages face-off at

Re: [Lift] About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread David Pollak
On Sun, Feb 28, 2010 at 8:28 PM, Neil.Lv anim...@gmail.com wrote: Hi all, I have a silly question about the url rewrite in the lift. It has another two params in the url after the img. http://localhost:8080/show/img/version/id The url works fine. = http://localhost:8080/show/img =

Re: [Lift] snakify and abbreviations

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 2:46 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Eager to use the new Mapper support for snake_case I discovered that the snakify method doesn' handle abbreviations well: StringHelpers.snakify(HTML) res5: java.lang.String = h_t_m_l

Re: [Lift] Less boilerplate in your specifications / tests

2010-03-01 Thread David Pollak
Eric, You're a Lift committer. Feel very encouraged to clean up the tests! Thanks, David On Sun, Feb 28, 2010 at 4:42 PM, etorreborre etorrebo...@gmail.com wrote: Hi all Lift-developers, I have noticed a few commits recently where the declarations for specifications could be reduced to

Re: [Lift] Emerging Languages Face Off: Scala, Go, Clojure and Ruby

2010-03-01 Thread Mads Hartmann Jensen
Any chance that there'll be an audio version after? Would love the hear it :) On 01/03/2010, at 19.53, Jim Barrows wrote: Best of luck! Will you be facing off with swords or... oh wait.. never mind... ;) On Mon, Mar 1, 2010 at 10:50 AM, David Pollak feeder.of.the.be...@gmail.com

Re: [Lift] Emerging Languages Face Off: Scala, Go, Clojure and Ruby

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 11:18 AM, Mads Hartmann Jensen mads...@gmail.comwrote: Any chance that there'll be an audio version after? Would love the hear it :) I don't know. Miking/mixing 4 participants is non-trivial (beyond what I can do with my traveling AV stuff) On 01/03/2010, at

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows jim.barr...@gmail.com wrote: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Jim Barrows jim.barr...@gmail.com writes: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So your replacing code boilerplate with property

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jim Barrows
On Mon, Mar 1, 2010 at 12:54 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Jim Barrows jim.barr...@gmail.com writes: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the

Re: [Lift] reload application.properties

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are things to vary, build an administrative interface or some other thingy (e.g., a

Re: [Lift] Less boilerplate in your specifications / tests

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Eric, You're a Lift committer. Feel very encouraged to clean up the tests! But if you do, please have in mind that not all the niceties of Specs are supported very well by IDEs, which may be why some tests are as they are :-( Hopefully

[Lift] Running parallel site load balanced

2010-03-01 Thread John Pletka
I was tasked with designing a new web-based application that has the requirement of being able to run on multiple servers that could be 1) Load balanced without requiring sticky sessions and 2) Single nodes could be transparently shutdown or added without the users noticing I would like to use

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 12:29 PM, John Pletka jple...@abraxis.com wrote: I was tasked with designing a new web-based application that has the requirement of being able to run on multiple servers that could be 1) Load balanced without requiring sticky sessions and 2) Single nodes could be

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Jim Barrows jim.barr...@gmail.com writes: My point was that you've moved the boilerplate, not eliminated it. If what you suggest was in place you'd have to add 100+ properties in a file. I'm not sure if we're wandering out on a philosophical tangent here, but would genuinely like to hear if

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread Jeppe Nejsum Madsen
John Pletka jple...@abraxis.com writes: I was tasked with designing a new web-based application that has the requirement of being able to run on multiple servers that could be 1) Load balanced without requiring sticky sessions and 2) Single nodes could be transparently shutdown or added

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread John Pletka
It is a business application - lots of forms, reports, data lookups. I'm not too concerned about the performance on a single node - at any given time we'll probably have a max of 1000 requests a minute coming in which I've seen Lift handle easily. The biggest problem is we need near 100%

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread Jeppe Nejsum Madsen
Ahh just saw David beat me to it with the other reply :-) John Pletka jple...@abraxis.com writes: It is a business application - lots of forms, reports, data lookups. I'm not too concerned about the performance on a single node - at any given time we'll probably have a max of 1000 requests a

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 1:19 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Ahh just saw David beat me to it with the other reply :-) John Pletka jple...@abraxis.com writes: It is a business application - lots of forms, reports, data lookups. I'm not too concerned about the performance on

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread David Pollak
If the mechanism was something more along the lines of: display name calculator: (Mapper[_], Locale, String) = Box[String] // we could use Lift's factory mechanism here Then you have lots of room to keep the current implementation as the default if there is no actual name calculated. Further,

Re: [Lift] reload application.properties

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 12:30 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are

[Lift] Re: ByList using OR instead of IN?

2010-03-01 Thread aw
I was searching for a prior thread and couldn't find it last night, but I think I found it today: http://groups.google.com/group/liftweb/browse_thread/thread/1cf5c0e153e98b47/5b60451a961ad78d?lnk=gstq=ByList# Is this the thread you are referring to? It leaves me with much to be desired since

[Lift] Re: New logging code is in master

2010-03-01 Thread aw
Very nice! I am looking forward to this. On Feb 28, 8:14 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: The new logging code is now in master and should be fully usable. Therefore, the existing logging code has been deprecated. I've added a Wiki article

[Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Neil.Lv
OK, Got it, Thank you very much! On Mar 2, 3:01 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Feb 28, 2010 at 8:28 PM, Neil.Lv anim...@gmail.com wrote: Hi all, I have a silly question about the url rewrite in the lift. It has another two params in the url after the img.

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread John Pletka
The ProtoExtendedSession looks like it might match what I'm looking for. With that, they won't have to re-login, right? We're trying to avoid multi-page state-full workflows so that is not a problem. Are you saying if they have a form up, then submit it (say to update a record), that will fail?

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread Naftoli Gugenheim
When you bind a form, you write functions that handle parts of the form. They are stored in memory and when the form is submitted they are executed. They are triggered by assigning them a unique id and using it as the form element's name. There's no way to preserve the functions to survive a

Re: [Lift] Re: ByList using OR instead of IN?

2010-03-01 Thread Naftoli Gugenheim
Maybe there could be case class Or(qps: QueryParam*) extends QueryParam or something like it? This way ByList could use IN but one can also do OR? - awanth...@whitford.com wrote: I was searching for a prior thread and couldn't find it last night, but I think I

Re: [Lift] reload application.properties

2010-03-01 Thread Naftoli Gugenheim
Is a dynamic menu not advantageous for production apps (e.g., a CMS)? Would changing setSiteMap (if that's what it's called) to take a call by name be a bad idea? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 12:30 PM, Jeppe Nejsum

Re: [Lift] newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread Naftoli Gugenheim
I think that AbstractMethodError always means either mismatched scala version or out of date class file. - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: On Mon, Mar 1, 2010 at 3:39 PM, ojonam manojo10...@gmail.com wrote: Hello all, I am trying to launch a

[Lift] what's the equivalent of php's var $_FILES in lift?

2010-03-01 Thread wm
http://php.net/manual/en/reserved.variables.files.php i.e. the array of items uploaded to the current script via the HTTP POST method. I know there is FileParamHolder, but I want to get multiple files in the array. Thanks. -- You received this message because you are subscribed to the Google

[Lift] how to override superUser.dbDisplay_? = false

2010-03-01 Thread wm
superUser is defined in ProtoUser. class User extends ProtoUser[User] { // I cannot make it work //override def superUser = override def dbDisplay_? = false } -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to