Re: [Lift] Re: Tricky question regarding menus

2010-02-22 Thread Jeppe Nejsum Madsen
Heiko Seeberger 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 the menu shall also b

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

2010-02-22 Thread Jeppe Nejsum Madsen
David Pollak 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 excellent contributions from

[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 chil

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 nei

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 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 including giving p

[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 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 wrote: > >> Session scope

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 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?

[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 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 knowledge? > R

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] 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 case

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 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. > > Welcome J

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 progra

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

2010-02-22 Thread David Pollak
On Mon, Feb 22, 2010 at 3:15 PM, Arie wrote: > Hi, > > Can I clarify, is this a general issue to do with 2.8 Scala/Comet > Actors? I think I may be having the same problem. > It's not CometActors that are causing the issue. In Scala 2.8, XML Node equality testing is changed and supplying a lab

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

2010-02-22 Thread Arie
Hi, Can I clarify, is this a general issue to do with 2.8 Scala/Comet Actors? I think I may be having the same problem. Arie On Feb 22, 12:02 pm, Indrajit Raychaudhuri wrote: > Understood, just wanted to ensure. > > Cheers, Indrajit > > On 22/02/10 4:25 PM, tbje wrote: > > > > > Hi Indrajit, >

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

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 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. > > Welcome John... looking f

[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 Feb

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 and

[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 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. > > Welcome John... lookin

[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 he

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 o

[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.

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] 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 cri

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...@go

[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] 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 c

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 wrote: > 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 prefer

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 an

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. How

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 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 can be used outside of

[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 6.7.1

[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

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 wrote: > I think you need to URL encode it. > S.redirectTo("/foo?bar="+Helpers.urlEncode(str)) > > On 21 feb., 04:33, wm wrote: > > I need put some UTF string into the URL to be redirected, e.g.: > > > > str = 'some-UTF-str' > > S.redirectTo("/foo?bar=

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 simpl

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 wrote: > 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 development, I'm using NB

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, crea

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 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 cases the lift app

[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 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 > libs in NetBe

[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 framew

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 an

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 course

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 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 has)

Re: [Lift] Re: London Lift talk

2010-02-22 Thread Richard Dallaway
On Sun, Feb 21, 2010 at 1:09 AM, Timothy Perrett 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 subscribed to the Googl

[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: 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 wrote: > >> On Sat, Feb 20, 2010 at 7:36 PM, Marius wrote: >> > In b

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 Bo

[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: Current

[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 pag

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 page

[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 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 > > (b)http://

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 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 projects that ha

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 a

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 - Darchetyp

[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: http://www.sidewayscoding.com/2010/02/lift-textmate-bundle-now-wit

[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 -DarchetypeRep

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

2010-02-22 Thread Heiko Seeberger
On 22 February 2010 10:52, 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. > > customRunMode or context.initParam("run.mode") or > Box.!!(System.getProperty("run.mode")) > >

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 provis

[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 J

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

2010-02-22 Thread Heiko Seeberger
On 22 February 2010 09:20, Jeppe Nejsum Madsen 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 mode depending

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 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 server. > Heiko Agreed. Th