Re: [Lift] Creating a path from a Loc

2010-01-27 Thread Adam Warski
Hello, If you need a String: (for { loc - SiteMap.findLoc(Login) path - loc.createDefaultPath } yield path.text) openOr / right, I could just convert it to text. That works, thanks :). -- Adam Warski http://www.warski.org http://www.softwaremill.eu -- You received this

Re: [Lift] What is purpose of RequestVar/StatefulSnipplet for forms?

2010-01-27 Thread Adam Warski
Hello, What's the purpose of RequestVars and StatefulSnippet? I thought the values were retained anyway through POST. That is, on submit, the functions desc = _ and amount = _ were executed and the so the state was kept... Are those functions only executed after the bind is complete? There

Re: [Lift] Creating a path from a Loc

2010-01-27 Thread Adam Warski
Hello, Instead of building your Loc inline in the SiteMap declaration and using findLoc, simply declare the loc as a val (with the appropriate type parameter) in Boot or a similar object of your choosing. yes, that looks quite nice, although I'm just using User.sitemap for now :). But

[Lift] Re: jQuery 1.4

2010-01-27 Thread Marius
This broke my app ... with flying colors :D But it's not really Lift or jquery's fault. I'm using jstree plugin http://www.jstree.com/ and it doesn't seem to work properly with jquery 1.4. No biggies as I reverted to jquery 1.3.2. but others may hit this as well. Br's, Marius On Jan 26, 9:03 

[Lift] Netty integration

2010-01-27 Thread nick
I'm just about to try and do a Netty integration, which I might be able to contribute back. Searching the group I deduce that this is possible but hasn't been done yet. Before I start I thought I'd just post to check that someone else isn't doing this already. -- You received this message

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Indrajit Raychaudhuri
Hmm, I think this jQuery update should be sent as a separate announcement. As this change that can create create ripple in an application and qualifies as a 'potentially' breaking change. Cheers, Indrajit On 27/01/10 6:16 PM, Marius wrote: This broke my app ... with flying colors :D But

[Lift] Re: Mapper CamelCase vs snake_case

2010-01-27 Thread Jeppe Nejsum Madsen
On Jan 26, 8:04 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: I'v implemented this: In MapperRules add   var columnName: String = String = s = s.toLowerCase (and perhaps tableName, indexName etc. if we want full flexibility) - name: object name unchanged (ie not lower cased) -

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Jonathan Hoffman
Hi Indrajit, I think you're right. I didn't notice at first, but there are documented breaking changes in jQuery 1.4 which are outlined here: http://jquery14.com/day-01/jquery-14#backwards Marius, there's also a backward compatibility plugin(see above link) that might address the jstree

[Lift] Re: Netty integration

2010-01-27 Thread Marius
I'd strongly encourage you to do it. I was planning to work on it but I never seem to find slots for it :( If you run into some problems especially related with provider API please let me know. Br's, Marius On Jan 27, 2:54 pm, nick n...@glynnreeves.plus.com wrote: I'm just about to try and do

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread David Pollak
Do we want to include both and have a switch in LiftRules or somesuch? On Wed, Jan 27, 2010 at 7:19 AM, Jonathan Hoffman jonhoff...@gmail.comwrote: Hi Indrajit, I think you're right. I didn't notice at first, but there are documented breaking changes in jQuery 1.4 which are outlined here:

[Lift] Re: jQuery 1.4

2010-01-27 Thread Marius
Thanks Jon. On Jan 27, 5:19 pm, Jonathan Hoffman jonhoff...@gmail.com wrote: Hi Indrajit, I think you're right.  I didn't notice at first, but there are documented breaking changes in jQuery 1.4 which are outlined here:http://jquery14.com/day-01/jquery-14#backwards Marius, there's also a

[Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-27 Thread Indrajit Raychaudhuri
Some more awesomeness - 280_port_refresh of Lift has moved to Scala-2.8.0.Beta1. Cheers, Indrajit On Jan 26, 12:17 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Jan 24, 2010 at 2:18 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Awesome! Super Ultra Mega

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-27 Thread David Pollak
On Wed, Jan 27, 2010 at 9:32 AM, Indrajit Raychaudhuri indraj...@gmail.comwrote: Some more awesomeness - 280_port_refresh of Lift has moved to Scala-2.8.0.Beta1. Booo YA! Cheers, Indrajit On Jan 26, 12:17 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Jan 24,

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Jonathan Hoffman
I think that makes sense.How is this-- should we leave the default to 1.3.2 for now? object JQueryVersions extends Enumeration(1.3.2, 1.4.1) { val v132, v141 = Value } @volatile var jQueryVersion: JQueryVersions.Value = JQueryVersions.v132 On Jan 27, 2010, at 11:39 AM,

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Naftoli Gugenheim
Is there any way to get maven to decide? If there was some way to set JQuery as a dependency in the pom and have Lift locate it at runtime that may make the most sense, if such a thing is remotely possible. Indrajit, any comment? - Jonathan

[Lift] Json Lift

2010-01-27 Thread Randinn
Does anyone know of some sample code that shows Json extract with a mapper model? -- 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

Re: [Lift] Json Lift

2010-01-27 Thread Naftoli Gugenheim
Do you have a question about lift-json per se, or lift-mapper per se? Or do you want to know whether there is some built in integration? - Randinnrand...@gmail.com wrote: Does anyone know of some sample code that shows Json extract with a mapper model? --

[Lift] Re: Json Lift

2010-01-27 Thread Randinn
Well, I have this snippit and model and need to figure out how to take the extracted information and paste it into the model. I was just looking for some example code to discern how to do it. http://paste.pocoo.org/show/165511/ http://paste.pocoo.org/show/165532/ On Jan 28, 6:10 am, Naftoli

Re: [Lift] Re: Json Lift

2010-01-27 Thread Naftoli Gugenheim
So it's a mapper question? - Randinnrand...@gmail.com wrote: Well, I have this snippit and model and need to figure out how to take the extracted information and paste it into the model. I was just looking for some example code to discern how to do it.

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: Is there any way to get maven to decide? If there was some way to set JQuery as a dependency in the pom and have Lift locate it at runtime that may make the most sense, if such a thing is remotely possible. Indrajit, any comment? I don't think

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-27 Thread Jeppe Nejsum Madsen
Indrajit Raychaudhuri indraj...@gmail.com writes: Some more awesomeness - 280_port_refresh of Lift has moved to Scala-2.8.0.Beta1. Cheers, Indrajit Awesome. How much is supported? Someone running anything substantial on 2.8 yet? I really (really!) want to ditch the 2.7 Eclipse plugin for

Re: [Lift] Re: Lift 2.0 on Scala 2.8 update

2010-01-27 Thread David Pollak
On Wed, Jan 27, 2010 at 11:58 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Indrajit Raychaudhuri indraj...@gmail.com writes: Some more awesomeness - 280_port_refresh of Lift has moved to Scala-2.8.0.Beta1. Cheers, Indrajit Awesome. How much is supported? Right now, nothing... I'm

[Lift] Lift and Scala 2.8 Beta1

2010-01-27 Thread David Pollak
Folks, Lift is currently building against Scala 2.8 Beta1 and currently runs the examples/example app (the app that's at http://demo.liftweb.net). We have disabled many of the tests during the automated build because as of last night, not all the test frameworks (ScalaTest, Specs, and

[Lift] Re: Json Lift

2010-01-27 Thread Randinn
Yes, it seems so. On Jan 28, 6:38 am, Naftoli Gugenheim naftoli...@gmail.com wrote: So it's a mapper question? - Randinnrand...@gmail.com wrote: Well, I have this snippit and model and need to figure out how to take the extracted information and paste

Re: [Lift] Re: Json Lift

2010-01-27 Thread Naftoli Gugenheim
Okay, so can you clarify a bit more? Do you have a mapper class with fields defined? Do you know how to instantiate it? To set the value of its fields? To save it (back) to the database? - Randinnrand...@gmail.com wrote: Yes, it seems so. On Jan 28, 6:38 

[Lift] Lift logging improvements

2010-01-27 Thread Jeppe Nejsum Madsen
Hi, I was thinking about some improvements to Lift's logging code: 1) Make the slf4j logging configurable in the same way as log4j (ie with dev, prod logback files) 2) Add support for MDC to Lift's logging interface (and the log4j slf4j backends) 3) Add more logging to Lift :-) The last part

Re: [Lift] Lift logging improvements

2010-01-27 Thread David Pollak
It all sounds good to me as long as API breakage is minimal (or non-existent) On Wed, Jan 27, 2010 at 1:59 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I was thinking about some improvements to Lift's logging code: 1) Make the slf4j logging configurable in the same way as log4j (ie

[Lift] Re: Json Lift

2010-01-27 Thread Randinn
I think so, the code on the paste site is the model and the snippit (I have made some minor changes since I posted those), the trouble I'm having is figuring out how to save it (to take it from the extracted Json). On Jan 28, 8:58 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Okay, so can

Re: [Lift] Re: Json Lift

2010-01-27 Thread David Pollak
Have you looked at .asJs which will render your component as a JsExp? If you're looking for bi-directional stuff, please see http://groups.google.com/group/liftweb/browse_thread/thread/80e8b2e871a2a8d4/2e30e7342689d147?#2e30e7342689d147 On Wed, Jan 27, 2010 at 11:23 AM, Randinn rand...@gmail.com

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread David Pollak
On Wed, Jan 27, 2010 at 11:00 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is there any way to get maven to decide? If there was some way to set JQuery as a dependency in the pom and have Lift locate it at runtime that may make the most sense, if such a thing is remotely possible.

Re: [Lift] Re: Mapper CamelCase vs snake_case

2010-01-27 Thread David Pollak
On Wed, Jan 27, 2010 at 5:53 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Jan 26, 8:04 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: I'v implemented this: In MapperRules add var columnName: String = String = s = s.toLowerCase (and perhaps tableName, indexName etc. if we

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Naftoli Gugenheim
I meant as an alternative to adding special API to set the jQuery version. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Wed, Jan 27, 2010 at 11:00 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is there any way to get maven to decide? If there was

Re: [Lift] Re: Json Lift

2010-01-27 Thread Naftoli Gugenheim
What does I think so mean? I asked you four very specific questions. Mapper, like any ORM, is a way of holding data in objects that map to tables in a database, and knows how to transfer both ways. - Randinnrand...@gmail.com wrote: I think so, the code on the

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread David Pollak
On Wed, Jan 27, 2010 at 2:42 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I meant as an alternative to adding special API to set the jQuery version. That'd be counter to the way Lift works. Configuration is done in Boot, not at build time. - David

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Naftoli Gugenheim
I didn't mean maven as opposed to other dependency management. I mean that Lift should use whichever jQuery is in the webapp, and let that be determined via maven etc. In other words, if there is a maven artifact for jQuery that can be used to put the .js file in the war, then at run time Lift

Re: [Lift] Lift logging improvements

2010-01-27 Thread Alex Boisvert
I think that's a great idea. alex On Wed, Jan 27, 2010 at 2:03 PM, David Pollak feeder.of.the.be...@gmail.com wrote: It all sounds good to me as long as API breakage is minimal (or non-existent) On Wed, Jan 27, 2010 at 1:59 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, I was

[Lift] Re: Json Lift

2010-01-27 Thread Randinn
No, I haven't, I'll research .asjs, thank you for the info. On Jan 28, 9:13 am, David Pollak feeder.of.the.be...@gmail.com wrote: Have you looked at .asJs which will render your component as a JsExp? If you're looking for bi-directional stuff, please

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread Jonathan Hoffman
I generally have a mild preference toward pushing the latest and greatest-- especially on top of some other latest and greatest project. I think as long as this change is loudly communicated via an announce and in the M2 release notes, people should be ok. Another change that comes to mind:

[Lift] Using Stateful Snippets

2010-01-27 Thread Jay Cain
I am a newbie to Lift and Scala. I'm registering users and once they have entered the information in successfully. I want to redirect to a thank_you page that will display a snippet lift:UserOps.thanksMessage p entry:fullname/ thanks for joining Echo. The confirmation

Re: [Lift] Using Stateful Snippets

2010-01-27 Thread Naftoli Gugenheim
When you redirect you start a new request, so RequestVars are fresh. redirectTo has an overload that take additionally a function to execute in the new request. Set the RequestVar there. - Jay Caincain@gmail.com wrote: I am a newbie to Lift and Scala.

Re: [Lift] Re: jQuery 1.4

2010-01-27 Thread David Pollak
On Wed, Jan 27, 2010 at 2:52 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I didn't mean maven as opposed to other dependency management. I mean that Lift should use whichever jQuery is in the webapp, and let that be determined via maven etc. I'm not sure what problem you're trying to

[Lift] Re: Json Lift

2010-01-27 Thread Randinn
Thank you Naftoli and David for taking your time to help me. On Jan 28, 9:55 am, Randinn rand...@gmail.com wrote: No, I haven't, I'll research .asjs, thank you for the info. On Jan 28, 9:13 am, David Pollak feeder.of.the.be...@gmail.com wrote: Have you looked at .asJs which will render

[Lift] Re: Using Stateful Snippets

2010-01-27 Thread Jay Cain
I think that this would work // Set up a requestVar to track the user object object userVar extends RequestVar(new User()) S.redirectTo(thank_you, () = {userVar(user);}) but no bueno. On Jan 27, 4:56 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: When you redirect you start a new

[Lift] Re: Debug message

2010-01-27 Thread Naftoli Gugenheim
Anyone? On Tue, Jan 5, 2010 at 11:15 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What does this message mean? Msgs: Default Error is not rendered as the default title is the empty string -- You received this message because you are subscribed to the Google Groups Lift group. To post

Re: [Lift] Lift logging improvements

2010-01-27 Thread Heiko Seeberger
+1 On Wednesday, January 27, 2010, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, I was thinking about some improvements to Lift's logging code: 1) Make the slf4j logging configurable in the same way as log4j (ie with dev, prod logback files) 2) Add support for MDC to Lift's logging

[Lift] MetaMapper.foreach

2010-01-27 Thread Naftoli Gugenheim
MetaMapper has a findAll method, which creates a statement based on its parameters, and then iterates over the ResultSet creating Mappers and putting them into a List. It would be neat if it was possible to process the generated Mappers one by one instead of loading them into a list. This way

Re: [Lift] New ticketing system

2010-01-27 Thread Naftoli Gugenheim
Could some people take LiftTicket for a spin and comment? To clarify, it's already pretty functional. Here are some things not yet working or partially working, according to Derek: - File attachments - Possibly user comments (changes are logged), may be just lack of UI - Ticket changes

[Lift] Error attempting to build lift source.

2010-01-27 Thread Jonathan Ferguson
Hi all, I get the following error when attempting to build the lift source code. [ERROR] Exception in thread main java.lang.NoClassDefFoundError: -DpackageLinkDefs=file:///Users/jono/Documents/workspace/read only/liftweb/framework/lift-base/lift-common/target/packageLinkDefs/properties I've

Re: [Lift] Error attempting to build lift source.

2010-01-27 Thread Indrajit Raychaudhuri
Can you please rename the folder read only to read_only and give it another try? Cheers, Indrajit On 28/01/10 12:24 PM, Jonathan Ferguson wrote: Hi all, I get the following error when attempting to build the lift source code. [ERROR] Exception in thread main java.lang.NoClassDefFoundError:

[Lift] Re: Lift logging improvements

2010-01-27 Thread aw
One thing that bugs me is how all the logging comes from one logger: lift [Slf4jLogger.scala:110] As a result, you don't have the granularity to adjust just org.liftweb.http or org.liftweb.mapper, for example. I liked your suggestion about adding a Logging trait:

[Lift] Re: Mapper CamelCase vs snake_case

2010-01-27 Thread aw
Would it make sense to have the ConnectionIdentifier play a role? (Including DefaultConnectionIdentifier.) Because, for me, the decision to use snake_case or camelCase depends on the capabilities of the database. If I have an application with multiple database connections, the decision for

[Lift] Re: Image resize code

2010-01-27 Thread Strom
Where exactly is the code? I don't see anything about image resizing here. Thanks, Strom On Jan 15, 2:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: I've added the code here: http://github.com/dpp/liftweb/tree/wip_tim_285 Cheers, Tim On Jan 15, 8:52 pm, Ross Mellgren