Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Jeppe Nejsum Madsen
On Mon, Feb 22, 2010 at 8:48 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Folks, I really do not understand the value of setting the run mode statically via code in LiftRules. The run mode should be set externally, right? In order to use the same artifact (WAR) on a dev or a prod

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Heiko Seeberger
On 22 February 2010 09:20, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: The default would still be the current lookup in system properties, but you could change this to look at servlet params, hostname, day of month etc :-) Ah, OK. I agree if and only you will also enable setting the run

[Lift] Re: What is the current working pattern for storing timestamps?

2010-02-22 Thread Peter Robinett
Hi Hannes, Jonathan's suggestion of MappedDateTime is a good one and one that I have used. However, I haven't been super happy about how time is handled by, in my case, MappedDateTime + java.util.Date + MySQL Datetime. I played around a little with making a MappedField that holds a ScalaTime (ie

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Indrajit Raychaudhuri
Given that setting initParams is the usual webapp idiom, should we not consider that at all? That would have served the purpose for Petr. So the calcRunMode could roughly have something like: customRunMode or context.initParam(run.mode) or Box.!!(System.getProperty(run.mode)) with provision

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Heiko Seeberger
On 22 February 2010 10:52, Indrajit Raychaudhuri indraj...@gmail.comwrote: Given that setting initParams is the usual webapp idiom, should we not consider that at all? That would have served the purpose for Petr. customRunMode or context.initParam(run.mode) or

[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-22 Thread tbje
Hi Indrajit, I was a little bit lazy and updated an old pom by hand. Just pushed a new pom.xml using the following mvn archetype:generate : mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=2.0- scala280-SNAPSHOT

[Lift] Textmate bundle with codecompletion (beta)

2010-02-22 Thread Mads Hartmann
Hello everyone, I've been working a bit on a TextMate bundle for Lift projects that has codecompletion. It's still very beta but I'm sure someone would find it helpfull :) If you're interested you can read a bit more about it here:

Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-22 Thread Indrajit Raychaudhuri
Understood, just wanted to ensure. Cheers, Indrajit On 22/02/10 4:25 PM, tbje wrote: Hi Indrajit, I was a little bit lazy and updated an old pom by hand. Just pushed a new pom.xml using the following mvn archetype:generate : mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -

Re: [Lift] Textmate bundle with codecompletion (beta)

2010-02-22 Thread Indrajit Raychaudhuri
Heavens! Need to give this a shot. On 22/02/10 4:55 PM, Mads Hartmann wrote: Hello everyone, I've been working a bit on a TextMate bundle for Lift projects that has codecompletion. It's still very beta but I'm sure someone would find it helpfull :) If you're interested you can read a bit more

Re: [Lift] Textmate bundle with codecompletion (beta)

2010-02-22 Thread Mads Hartmann Jensen
Don't get too excited, it's very beta right now ;) Sent from my iPhone On 22/02/2010, at 13.04, Indrajit Raychaudhuri indraj...@gmail.com wrote: Heavens! Need to give this a shot. On 22/02/10 4:55 PM, Mads Hartmann wrote: Hello everyone, I've been working a bit on a TextMate bundle for

[Lift] Re: ProtoUser i18n

2010-02-22 Thread Indrajit Raychaudhuri
On RB: http://reviewboard.liftweb.net/r/223/ Cheers, Indrajit On Feb 3, 9:36 pm, Indrajit Raychaudhuri indraj...@gmail.com wrote: Thanks Adam, I'll take this one up :) - Indrajit On 03/02/10 12:48 PM, Adam Warski wrote: Sure: (a)http://github.com/dpp/liftweb/issues/issue/320

RE: [Lift] Re: redirectTo in (Stateful)Snippets

2010-02-22 Thread Restel, Hannes
Hi Nico, thanks for your answer. I think you misunderstood me: I want to redirect to a HTML-page without using a SiteMap at all. So the page I redirect to is not registered in any place. It simply resides in my 'webapp' folder. But when trying to redirect to that page, the resource (i.e. my

[Lift] Tricky question regarding menus

2010-02-22 Thread Heiko Seeberger
Hi, I want to create a menu with the following structure: main1 main2 main3... sub1a sub1b sub2a sub2b sub3a ... page1a1 page1a2 ... Now I want some of the main and sub menus not to have their own pages but have the same link as certain child pages. Example: When the user clicks main1 the page

[Lift] **IMPORTANT** White space separator is discontinued for resource keys

2010-02-22 Thread Indrajit Raychaudhuri
Folks, If you are an i18n type, read it! Going forward we are making two policy changes in the naming convention for i18n resource keys; viz., Discontinuing the usage of white space to separate keys and preferring all.lower.case for the keys. So in you locale properties file, instead of:

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Indrajit Raychaudhuri
On 22/02/10 3:22 PM, Indrajit Raychaudhuri wrote: Given that setting initParams is the usual webapp idiom, should we not consider that at all? That would have served the purpose for Petr. So the calcRunMode could roughly have something like: customRunMode or context.initParam(run.mode) or

Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-22 Thread Jim Barrows
*grumble smurf* Ok. I'll just use the link then, and try to get an example up. On Sat, Feb 20, 2010 at 12:26 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Feb 20, 2010 at 10:59 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Sat, Feb 20, 2010 at 7:36 PM, Marius

[Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Stuart Roebuck
Sorry for the slow response—was away for a family weekend! I have limited knowledge of Lift internals… However, my view is that it is often easier to document code when you don't know it well than when you do, because you soon loose interest in documenting things that are obvious to you. What I

Re: [Lift] Re: London Lift talk

2010-02-22 Thread Richard Dallaway
On Sun, Feb 21, 2010 at 1:09 AM, Timothy Perrett timo...@getintheloop.eu wrote: Man, I really must try and drag my ass along to this... There'll be a trip to the pub after, if that's any use as an incentive to come along :-) Cheers Richard -- @d6y -- You received this message because you are

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Timothy Perrett
We are interested in the contribution of course... I think the issue is mostly about how we take patches for this. Someone on the team would need to own this and merge your documentation changes into the master (provided DPP has no objections to this - seeing as its documentation I doubt he

Re: [Lift] Re: London Lift talk

2010-02-22 Thread Timothy Perrett
The problem is that im based in the westcountry... so its more getting there in the first instance if im not in the city for work. Cheers, Tim On 22 Feb 2010, at 17:04, Richard Dallaway wrote: There'll be a trip to the pub after, if that's any use as an incentive to come along :-) --

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Stuart Roebuck
Perhaps it's easier for me to do a fork on GitHub? Then any documentation submissions can be taken across at a time that suits whoever is doing it rather than synced with my submission timeline? On 22 Feb 2010, at 17:05, Timothy Perrett wrote: We are interested in the contribution of

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Ross Mellgren
I will do this, and give feed back if it ever becomes too much load. -Ross On Feb 22, 2010, at 12:05 PM, Timothy Perrett wrote: We are interested in the contribution of course... I think the issue is mostly about how we take patches for this. Someone on the team would need to own this and

[Lift] Advice for maintaining application state

2010-02-22 Thread sean8223
Apologies in advance for the long post, but I have a question for the group about best practices for handling application state in Lift. By way of background, our team members are Lift newbies but have been building web applications for well over a decade, using many different languages and

[Lift] Re: Versions: Netbeans, Scala and Lift

2010-02-22 Thread Peter Robinett
I'm running Netbeans 6.7.1 with the Maven and Scala 2.7 plugins quite happily on OS X. Peter On Feb 21, 10:34 pm, Caoyuan dcaoy...@gmail.com wrote: Yes, Scala plugin for NetBeans 6.8 needs Scala 2.8, thus lift's 280 branches. For Maven project, there is no need to set Scala home and dependent

Re: [Lift] Re: Cached CSS (and Javascript?) issue

2010-02-22 Thread Jeppe Nejsum Madsen
On Sun, Feb 21, 2010 at 9:49 AM, Marius marius.dan...@gmail.com wrote: Guys, I'm starting to have second thoughts about having css or js combine (concatenation of multiple files into a single response) on lift side. I'm starting to question that real benefits as in production sites in many

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread David Pollak
I've closed Jeppe's ticket. Why? WebKit depends on util. Props (where the runmode is defined) is in util, so there would be a circular reference if LiftRules was used to calculate the runmode. Further, util can be used outside of the context of WebKit/Boot. We want to encourage that. So,

Re: [Lift] Re: Versions: Netbeans, Scala and Lift

2010-02-22 Thread David Pollak
On Mon, Feb 22, 2010 at 9:56 AM, Peter Robinett pe...@bubblefoundry.comwrote: I'm running Netbeans 6.7.1 with the Maven and Scala 2.7 plugins quite happily on OS X. For mainline Lift development, I'm very happily using NB 6.7.1 and the 2.7.7 plugin. For 2.8.0 related Lift and Goat Rodeo

Re: [Lift] Re: redirectTo in (Stateful)Snippets

2010-02-22 Thread David Pollak
On Mon, Feb 22, 2010 at 1:53 AM, Restel, Hannes hannes.res...@isst.fraunhofer.de wrote: Hi Nico, thanks for your answer. I think you misunderstood me: I want to redirect to a HTML-page without using a SiteMap at all. So the page I redirect to is not registered in any place. It simply

[Lift] unCamelCase,camelCase capify

2010-02-22 Thread Jeppe Nejsum Madsen
Hi, I'm finally returning to #155 (support for snake_case in Mapper) and found a few inconsistencies In StringHelpers we have capify commafy (which I don't really understand, but never mind :-) In ClassHelpers we have camelCase camelCaseMethod unCamelCase The methods in ClassHelpers are just

[Lift] Re: Versions: Netbeans, Scala and Lift

2010-02-22 Thread Arie
Thanks very much, this is great support. I e-mailed Caoyuan separately, to hedge my bet and prompted by him I ended up finding this post - http://groups.google.com/group/liftweb/browse_thread/thread/768c6798017b5b6b/9961710446c7dd20- which managed to clear everything up, I didn't know about

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Jeppe Nejsum Madsen
On Mon, Feb 22, 2010 at 7:13 PM, David Pollak feeder.of.the.be...@gmail.com wrote: I've closed Jeppe's ticket.  Why? WebKit depends on util.  Props (where the runmode is defined) is in util, so there would be a circular reference if LiftRules was used to calculate the runmode. Further, util

Re: [Lift] Re: What is the current working pattern for storing timestamps?

2010-02-22 Thread Hannes
Hi Peter, Thanks in advance. I was browsing through the list and read, that there's a lot of problems with the Java stuff. That's why I asked. I'll have a look at this JodaTime thing... thanks. Hi Hannes, Jonathan's suggestion of MappedDateTime is a good one and one that I have used.

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Timothy Perrett
Whilst we are talking about Props, I wouldn't mind seeing a level of abstraction on Props so that it can load stuff from things other than .props files. For instance, Im using configgy more and more these days as its much more preferable to properties files for app configuration. Anyone got

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread David Pollak
On Mon, Feb 22, 2010 at 10:42 AM, Timothy Perrett timo...@getintheloop.euwrote: Whilst we are talking about Props, I wouldn't mind seeing a level of abstraction on Props so that it can load stuff from things other than .props files. For instance, Im using configgy more and more these days as

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Timothy Perrett
Sorry David, do you mean you don't like configgy because it can change configurations at runtime? It can only do that if you specifically tell it to. Without registered observers, changes to the .conf file are ignored. Certainly, thats the way it works within all my applications that i've used

Re: [Lift] Re: how to put UTF string into the redirect URL?

2010-02-22 Thread David Pollak
On Sat, Feb 20, 2010 at 11:51 PM, Marius marius.dan...@gmail.com wrote: I think you need to URL encode it. S.redirectTo(/foo?bar=+Helpers.urlEncode(str)) On 21 feb., 04:33, wm min...@gmail.com wrote: I need put some UTF string into the URL to be redirected, e.g.: str = 'some-UTF-str'

[Lift] anybody used OPA?

2010-02-22 Thread Raoul Duke
http://mlstate.com -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at

Re: [Lift] anybody used OPA?

2010-02-22 Thread Timothy Perrett
This is related to Lift how? It appears to be a framework itself... Cheers, Tim On 22 Feb 2010, at 19:51, Raoul Duke wrote: http://mlstate.com -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread David Pollak
Folks, Please join me in welcoming John De Goes as a Lift committer. John burst onto the Lift scene a week or so ago with some excellent enhancements to the Lift-json stuff and the rest is history. Welcome John... looking forward to excellent contributions from you and your latest partner in

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread Stuart Roebuck
Great... okay, I’d better do some writing :-) In the absence of a decision I’ll try to minimise special coding in comments but use Scaladoc 2 standard if necessary rather than HTML as that makes it future proof but still readable for both. Stuart On 22 Feb 2010, at 17:32, Ross Mellgren wrote:

[Lift] Re: Lift security vulnerability

2010-02-22 Thread Dano
More information on this in case anyone is interested. If you go to the lift demo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For

Re: [Lift] anybody used OPA?

2010-02-22 Thread Raoul Duke
This is related to Lift how? It appears to be a framework itself... ja, i figure people who use Lift are the kinds of people who might have their ear to the ground for other approaches to the web problem, and might have insight into Competitor X, Y, or Z. i've certainly seen people talk about

[Lift] Lift tool survey

2010-02-22 Thread Mads Hartmann
Hello everyone Coming from other web-frameworks or just in general what are the tools you miss the most when working on your lift project? I'm trying to create the foundation for a Google of Summer Code project and would really like to work on tooling for lift, so if you would take the time to

[Lift] Re: Welcome John De Goes as a Lift committer

2010-02-22 Thread Mads Hartmann
Welcome John De Goes! On Feb 22, 9:55 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming John De Goes as a Lift committer.  John burst onto the Lift scene a week or so ago with some excellent enhancements to the Lift-json stuff and the rest is history.

Re: [Lift] Lift tool survey

2010-02-22 Thread Timothy Perrett
Mads, What is your timeline? I have something cooking with the boys over at SBT if your interested... we have laid the ground work and made modifications to SBT itself but it requires an implementation on the Lift side (of which we have I fairly good plan for) Interested? Ping me off list

[Lift] Re: What is the current working pattern for storing timestamps?

2010-02-22 Thread Peter Robinett
Yep, the consensus seems to be that you should use JodaTime (and scala- time). You can use scala-time with Maven (URL: http://scala-tools.org/repo-releases/org/scala-tools/time/) but it was compiled with Scala 2.7.4. However, I didn't have any noticeable problems running it on 2.7.7. Peter On

Re: [Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread Heiko Seeberger
Hi John ;-) On 22 February 2010 21:55, David Pollak feeder.of.the.be...@gmail.comwrote: Folks, Please join me in welcoming John De Goes as a Lift committer. John burst onto the Lift scene a week or so ago with some excellent enhancements to the Lift-json stuff and the rest is history.

Re: [Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread Ross Mellgren
re-welcome! All official this time and everything. -Ross On Feb 22, 2010, at 3:55 PM, David Pollak wrote: Folks, Please join me in welcoming John De Goes as a Lift committer. John burst onto the Lift scene a week or so ago with some excellent enhancements to the Lift-json stuff and the

Re: [Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread Rick R
John De Goes as in the author of Cutting-Edge 3d Game Programming With C++ ? That book convinced me that I could be a professional computer (and game) programmer. I still have that book on my bookshelf :) I look forward to seeing what you can do with Lift. I might decide to become a web

Re: [Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread Atsuhiko Yamanaka
Welcome John De Goes! On Tue, Feb 23, 2010 at 5:55 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Please join me in welcoming John De Goes as a Lift committer.  John burst onto the Lift scene a week or so ago with some excellent enhancements to the Lift-json stuff and the rest

[Lift] Confused about request scope, session scope

2010-02-22 Thread Strom
This seems like a silly question to me, but what is considered the scope of a request vs the scope of a session? Which is longer? I'm trying to figure how to go about having an object fetched from the DB in memory so I don't have to fetch from the DB every time someone submits the form. In my

Re: [Lift] Confused about request scope, session scope

2010-02-22 Thread Ross Mellgren
Session scope is until the LiftSession expires (which is tied to the container session) and is longer. Request scope is during the current page which means the original page request and any associated AJAX callbacks and other function bindings. -Ross On Feb 22, 2010, at 8:20 PM, Strom wrote:

[Lift] Re: Confused about request scope, session scope

2010-02-22 Thread Strom
Thanks for responding Ross. Always helpful. On Feb 22, 5:25 pm, Ross Mellgren dri...@gmail.com wrote: Session scope is until the LiftSession expires (which is tied to the container session) and is longer. How does one determine the container session scope? Anywhere I can read up on this basic

Re: [Lift] Re: Confused about request scope, session scope

2010-02-22 Thread Ross Mellgren
On Feb 22, 2010, at 8:39 PM, Strom wrote: Thanks for responding Ross. Always helpful. On Feb 22, 5:25 pm, Ross Mellgren dri...@gmail.com wrote: Session scope is until the LiftSession expires (which is tied to the container session) and is longer. How does one determine the container

[Lift] Re: Confused about request scope, session scope

2010-02-22 Thread Strom
Sometimes the best solution is the simplest, and in this case, overlooked. Thanks Ross! Strom On Feb 22, 5:46 pm, Ross Mellgren dri...@gmail.com wrote: On Feb 22, 2010, at 8:39 PM, Strom wrote: Thanks for responding Ross. Always helpful. On Feb 22, 5:25 pm, Ross Mellgren dri...@gmail.com

Re: [Lift] Re: Confused about request scope, session scope

2010-02-22 Thread David Pollak
On Mon, Feb 22, 2010 at 5:58 PM, Strom strommo...@gmail.com wrote: Sometimes the best solution is the simplest, and in this case, overlooked. Please keep in mind that if you carry the primary key around in the URL, then (1) you've exposed the primary key to the world (this can have negatives

Re: [Lift] Re: Documenting the source code / supplementing the API docs

2010-02-22 Thread David Pollak
The easiest thing is if Stuart signs an IP assignment, becomes a full-fledged committer and thus we keep the IP clean. Stuart, if you're interested in learning more, please contact me off-list. In terms of the documentation standards, I'm okay with anything that the rest of you-all want. I'm

[Lift] Re: Tricky question regarding menus

2010-02-22 Thread Heiko Seeberger
Hi, Sorry for being pushy, but this one is really urgent. Maybe I did not describe my issue properly, so I will give it another and simpler try: I want a menu to link to a subpage, i.e. have the same link as one of its child menus. But the menu shall also be active for every other active child

Re: [Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Folks, Please join me in welcoming John De Goes as a Lift committer. John burst onto the Lift scene a week or so ago with some excellent enhancements to the Lift-json stuff and the rest is history. Welcome John... looking forward to

Re: [Lift] Re: Tricky question regarding menus

2010-02-22 Thread Jeppe Nejsum Madsen
Heiko Seeberger heiko.seeber...@googlemail.com writes: Hi, Sorry for being pushy, but this one is really urgent. Maybe I did not describe my issue properly, so I will give it another and simpler try: I want a menu to link to a subpage, i.e. have the same link as one of its child menus. But