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

2010-01-28 Thread Jonathan Ferguson
Thanks that appears to have most of the build working, it now fails with the below error. However I can build the module I need to, so if there is no immediate answer don't worry. Thanks again for you help. Cheers Jono [INFO] [INFO]

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

2010-01-28 Thread Indrajit Raychaudhuri
Great! Next up move to Maven 2.2.1. Cheers, Indrajit On 28/01/10 2:15 PM, Jonathan Ferguson wrote: Thanks that appears to have most of the build working, it now fails with the below error. However I can build the module I need to, so if there is no immediate answer don't worry. Thanks again

[Lift] is there way to set multipart in ajaxform?

2010-01-28 Thread wm
Hi, I want to upload files in AJAX, is there a way to set the multipart=true? I checked the html code generated by the ajaxForm: form id=F347910659087FDI action=javascript:// onsubmit=liftAjax.lift_ajaxHandler(jQuery ('#'+quot;F347910659087FDIquot;).serialize(), null, null,

[Lift] Re: is there way to set multipart in ajaxform?

2010-01-28 Thread Marius
I don't think it's possible to do files upload via Ajax. There are workarounds but not directly with Ajax. If it would be possible Lift would have expose it already. Please look into widgets project on the upload widget. It does a fiel upload ajax-like including progress bar. Br's, Marius On Jan

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

2010-01-28 Thread Jonathan Ferguson
Thats it ! Cheers Jono 2010/1/28 Indrajit Raychaudhuri indraj...@gmail.com Great! Next up move to Maven 2.2.1. Cheers, Indrajit On 28/01/10 2:15 PM, Jonathan Ferguson wrote: Thanks that appears to have most of the build working, it now fails with the below error. However I can build

Re: [Lift] Re: Mapper CamelCase vs snake_case

2010-01-28 Thread Jeppe Nejsum Madsen
aw anth...@whitford.com writes: 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

Re: [Lift] Re: Mapper CamelCase vs snake_case

2010-01-28 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: but I'm running into a problem with the test cases. Since the names of the Mapped objects are fixed once determined, it's hard to reuse the different models in MapperSpecs for the different naming conventions. I was thinking about adding

Re: [Lift] Re: Lift logging improvements

2010-01-28 Thread Jeppe Nejsum Madsen
aw anth...@whitford.com writes: 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. Indeed. That is one of the things I would try to

[Lift] Re: Lift logging improvements

2010-01-28 Thread Marius
+1 On Jan 27, 11:59 pm, 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 interface (and

Re: [Lift] Re: Lift logging improvements

2010-01-28 Thread Adam Warski
Also another logging-related problem that I sometimes have is that if an ajax call throws an exception, nothing is shown in the container logs. I can only see the stacktrace when I open up the ajax call's response in firebug. This sometimes takes time to figure out as at first it seems that

Re: [Lift] MetaMapper.foreach

2010-01-28 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: 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

Re: [Lift] Re: Image resize code

2010-01-28 Thread Jeppe Nejsum Madsen
Strom strommo...@gmail.com writes: Where exactly is the code? I don't see anything about image resizing here. Try here http://github.com/dpp/liftweb/tree/master/framework/lift-modules/lift-imaging/ /Jeppe -- You received this message because you are subscribed to the Google Groups Lift

[Lift] Loc hidden if type parameter is Unit and default value is Empty

2010-01-28 Thread Adam Warski
Hello, I just found something very strange. I have my own loc, which extends Loc[Unit]. If the default value is empty (def defaultValue = Empty), then the loc won't be shown in the menu (I don't have any LocParams). If the default value is Full(()), then it is shown. I have other locs with

Re: [Lift] MetaMapper.foreach

2010-01-28 Thread David Pollak
def findMap[T](by: QueryParam[A]*)(f: A = Box[T]) Your function, f, will be called as each row is pulled back from the database. If your function returns Empty, the row will not be included in the final result. You can also do fun stuff like: MyModel.findMap(){ row - row.name.is match {

Re: [Lift] Loc hidden if type parameter is Unit and default value is Empty

2010-01-28 Thread David Pollak
This sounds like behavior introduced when Kris changed the default Loc type parameter... I wonder if Kris has any thoughts. On Thu, Jan 28, 2010 at 4:06 AM, Adam Warski a...@warski.org wrote: Hello, I just found something very strange. I have my own loc, which extends Loc[Unit]. If the

Re: [Lift] New ticketing system

2010-01-28 Thread David Pollak
On Wed, Jan 27, 2010 at 10:15 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 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 -

Re: [Lift] New ticketing system

2010-01-28 Thread Heiko Seeberger
On 28 January 2010 15:06, David Pollak feeder.of.the.be...@gmail.comwrote: I can host an instance. The big issue as I see it is have a reliable maintainer. In order to use LiftTicket, we need someone who is around most of the time (46+ weeks a year), can fix bugs in a few days, has a solid

[Lift] Is there any open source web apps based on lift ?

2010-01-28 Thread Boern
Hi,all: I am newbie for lift web framework and I hope * there are some open source web apps based on lift to practice or refer ,so is there any open source projects based on lift ? maybe,the offical site lists them !!!* -- Boern Parx -- You received this message because you are subscribed to

[Lift] Unable to find the OSGi and Lift example

2010-01-28 Thread Murtaza Rampurawala
Hello, I am a newbie in OSGi and lift and trying to get up to speed. I was trying to work through the example by Heiko, where he put lift on OSGi using Pax-Runner. I discovered it in the mailing list. However I am not sure how to get the example app sites/examples-osgi/ hello I would

Re: [Lift] Re: is there way to set multipart in ajaxform?

2010-01-28 Thread James Harman
Yeah - you can't do file submit via ajax. The browsers don't support it. James On Thu, Jan 28, 2010 at 2:17 AM, Marius marius.dan...@gmail.com wrote: I don't think it's possible to do files upload via Ajax. There are workarounds but not directly with Ajax. If it would be possible Lift

[Lift] Re: Unable to find the OSGi and Lift example

2010-01-28 Thread TylerWeir
http://github.com/dpp/liftweb/tree/master/examples/examples-osgi/hello/ On Jan 28, 10:53 am, Murtaza Rampurawala murtaz...@gmail.com wrote: Hello, I am a newbie in OSGi and lift and trying to get up to speed. I was trying to work through the example by Heiko, where he put lift on OSGi using

Re: [Lift] Is there any open source web apps based on lift ?

2010-01-28 Thread Jeppe Nejsum Madsen
Boern cayso...@gmail.com writes: Hi,all: I am newbie for lift web framework and I hope * there are some open source web apps based on lift to practice or refer ,so is there any open source projects based on lift ? maybe,the offical site lists them !!!* ESME http://incubator.apache.org/esme/

Re: [Lift] Is there any open source web apps based on lift ?

2010-01-28 Thread Alex Boisvert
And there's a simpler example mentioned here, http://www.mail-archive.com/liftweb@googlegroups.com/msg15536.html alex On Thu, Jan 28, 2010 at 7:55 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Boern cayso...@gmail.com writes: Hi,all: I am newbie for lift web framework and I hope * there

Re: [Lift] Re: is there way to set multipart in ajaxform?

2010-01-28 Thread Jonathan Hoffman
You might also want to look at http://swfupload.org/ On Jan 28, 2010, at 10:51 AM, James Harman wrote: Yeah - you can't do file submit via ajax. The browsers don't support it. James On Thu, Jan 28, 2010 at 2:17 AM, Marius marius.dan...@gmail.com wrote: I don't think it's possible to

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

2010-01-28 Thread tommycli
What do you mean these functions are called only on submit? Is that when the POST goes through and the page is rendered again? On Jan 27, 1:57 am, Adam Warski a...@warski.org wrote: Hello, What's the purpose of RequestVars and StatefulSnippet? I thought the values were retained anyway

[Lift] Re: Image resize code

2010-01-28 Thread Strom
Thanks for pointing out the location. ImageHelpers is a good idea. As far as want to see, is there any way to effectively group this helper with Image serving and uploading and make them have some sort of caching? That would be really useful to be able to have a decently working image cache with

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

2010-01-28 Thread Naftoli Gugenheim
In request 1, the page is rendered the first time and registers form functions. In request 2--the result of submitting--they are executed, and later the form is rendered again. When the functions are executed, they can capture references from request 1. If they reference a field or local

Re: [Lift] Re: Image resize code

2010-01-28 Thread Jonathan Hoffman
By caching, I assume that you mean persistent storage? You could store onto the file system after resizing. I was snooping around Ross's github projects and noticed this example for serving images back from the filesystem:

[Lift] different apps -- same session data

2010-01-28 Thread Rogelio
Hello, Admitted Scala and Lift newbie here. I've been searching and reading (Lift book and this newsgroup about 10 times day :-) about how to do this for over a month and have yet to find an answer (or at least one that I recognized :-) This list seems very friendly to us newbies, so here goes.

Re: [Lift] Re: Mapper CamelCase vs snake_case

2010-01-28 Thread David Pollak
On Thu, Jan 28, 2010 at 3:09 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: but I'm running into a problem with the test cases. Since the names of the Mapped objects are fixed once determined, it's hard to reuse the different models in

Re: [Lift] different apps -- same session data

2010-01-28 Thread David Pollak
On Thu, Jan 28, 2010 at 11:45 AM, Rogelio rogbo...@gmail.com wrote: Hello, Admitted Scala and Lift newbie here. I've been searching and reading (Lift book and this newsgroup about 10 times day :-) about how to do this for over a month and have yet to find an answer (or at least one that I

[Lift] Re: Image resize code

2010-01-28 Thread Strom
By caching I mean like EHCache, where you serve an image from the cache (some folder on the file system) instead of retrieving the blob from the db to reduce db fetching. So I guess it would be stored in the file system :) I might just be tempted to implement EHCache anyways, but I'll take a

[Lift] Re: different apps -- same session data

2010-01-28 Thread Rogelio
Thanks for the quick reply. I think it points me in the right (ie. different than what I was thinking) direction. I don't have an authentication server (yet), so my apps would all be under Glassfish or Jetty on the same server. So I'm off to read about JSESSIONID with these containers now. Rog

[Lift] Question about loggerByClass

2010-01-28 Thread Jeppe Nejsum Madsen
Hi, Looking at the loggers, I see var loggerByClass: Class[AnyRef] = LiftLogger How can you get a Class[AnyRef]? Using loggerByClass(classOf[C]) yields: console:7: error: type mismatch; found : java.lang.Class[C] required: Class[AnyRef] Should this signature be Class[_] = LiftLogger

Re: [Lift] Question about loggerByClass

2010-01-28 Thread David Pollak
On Thu, Jan 28, 2010 at 1:11 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Looking at the loggers, I see var loggerByClass: Class[AnyRef] = LiftLogger How can you get a Class[AnyRef]? Using loggerByClass(classOf[C]) yields: console:7: error: type mismatch; found :

[Lift] Always log through Slf4j?

2010-01-28 Thread Jeppe Nejsum Madsen
Last logging question, I promise! I'm about to implement MDC in Lift's logging, but it seems more and more layers are introduced. So before adding another adapter on top of e.g. Slf4j which is already an adapter on top of e.g. logback I thought I would see if there are any objections to making

Re: [Lift] Always log through Slf4j?

2010-01-28 Thread Heiko Seeberger
No more APIs on top of APIs! slf4j is very OSGi friendly, by the way. If side effects are minimal, I vote for it. Heiko On Thursday, January 28, 2010, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Last logging question, I promise! I'm about to implement MDC in Lift's logging, but it seems more

Re: [Lift] Always log through Slf4j?

2010-01-28 Thread David Pollak
On Thu, Jan 28, 2010 at 2:11 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Last logging question, I promise! I'm about to implement MDC in Lift's logging, but it seems more and more layers are introduced. So before adding another adapter on top of e.g. Slf4j which is already an adapter on

[Lift] Passing attributes to bound elements

2010-01-28 Thread Adam Warski
When trying to use datepicker on a form, I found a post (by Derek Chen-Becker) from august which says: OK, the key there is the entrydate id. If you look at src/main/webapp/index.html, you'll see the markup in the Add Entry form: tde:dateOf e:id=entrydate e:maxlength=10//td That

Re: [Lift] Lift and Scala 2.8 Beta1

2010-01-28 Thread Meredith Gregory
Dear David, Did the jars get pushed up to the Scala-tools.org Maven repository? Best wishes, --greg On Wed, Jan 27, 2010 at 1:01 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Lift is currently building against Scala 2.8 Beta1 and currently runs the examples/example app

Re: [Lift] MetaMapper.foreach

2010-01-28 Thread Naftoli Gugenheim
Neat. So it's a flatMap? Should we replace the pattern used often in binding lists Author.findAll.flatMap { a = bind ... } with Author.findMap() { a = bind ... } when the list is large or its elements are big? - David Pollakfeeder.of.the.be...@gmail.com wrote:

Re: [Lift] Lift and Scala 2.8 Beta1

2010-01-28 Thread Indrajit Raychaudhuri
Dear Greg, It would be, in next couple of hours or so. Cheers, Indrajit On 29/01/10 5:42 AM, Meredith Gregory wrote: Dear David, Did the jars get pushed up to the Scala-tools.org Maven repository? Best wishes, --greg On Wed, Jan 27, 2010 at 1:01 PM, David Pollak

Re: [Lift] Lift and Scala 2.8 Beta1

2010-01-28 Thread Indrajit Raychaudhuri
The Lift 2.0 snapshot jars for Scala 2.8 are now available on scala-tools Maven repository. Feel free to try your Lift application against 2.0-scala280-SNAPSHOT jars. You can change Lift artifact dependencies version to 2.0-scala280-SNAPSHOT in you application pom and proceed to build as

[Lift] Re: Using Stateful Snippets

2010-01-28 Thread Jay Cain
it appears that the user still creates a new User. it is because I tell it to do that each time a new request is made. // Set up a requestVar to track the user object object userVar extends RequestVar(new User()) So I guess my question is how prevent it from doing that and still pass a User

Re: [Lift] Re: Using Stateful Snippets

2010-01-28 Thread Naftoli Gugenheim
You didn't answer my question. At the time the closure passed to redirectTo is executed, what is the value of 'user'? - Jay Caincain@gmail.com wrote: it appears that the user still creates a new User. it is because I tell it to do that each time a new

[Lift] Re: Exception notification?

2010-01-28 Thread Marius
See LiftRules.exceptionHandler On Jan 29, 12:33 am, Yu-Shan Fung ambivale...@gmail.com wrote: Hi All, A bit of a shot in the dark, but is there an easy way to setup email notification on an lift app whenever an uncaught exception occurs? Seems like a common enough use-case, just wonder if

[Lift] [lift] Issue with my first Lift project

2010-01-28 Thread tomLee
Got error when I run it: D:\MySource\oterh\myliftmvn jetty:run [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking for updates from central [INFO]

Re: [Lift] Exception notification?

2010-01-28 Thread Jeppe Nejsum Madsen
Yu-Shan Fung ambivale...@gmail.com writes: Hi All, A bit of a shot in the dark, but is there an easy way to setup email notification on an lift app whenever an uncaught exception occurs? Seems like a common enough use-case, just wonder if there's a standard way to do it before I roll my

Re: [Lift] Always log through Slf4j?

2010-01-28 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: On Thu, Jan 28, 2010 at 2:11 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: [...] So before adding another adapter on top of e.g. Slf4j which is already an adapter on top of e.g. logback I thought I would see if there are any objections to

Re: [Lift] [lift] Issue with my first Lift project

2010-01-28 Thread David Bernard
I suppose it's your first run of mvn jetty:run. try : mvn jetty:run -U to force download of jetty. see http://wiki.github.com/dpp/liftweb/about-maven-mini-guide /davidB On Fri, Jan 29, 2010 at 04:04, tomLee tomcatl...@gmail.com wrote: Got error when I run it: D:\MySource\oterh\myliftmvn