[Lift] Re: Two how-to questions

2009-11-05 Thread Derek Chen-Becker
I'm not sure how much complexity you want, but Quartz might be good for #1: http://www.opensymphony.com/quartz/ Derek On Mon, Nov 2, 2009 at 12:40 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Could someone give me a quick code sample to get me started on each of the following? 1. A

[Lift] Re: Milestone 7 released

2009-11-05 Thread jlist9
Congrats on the new release! Just curious - what are the differences between Lift Actor and Akka Actor when used locally? On Wed, Nov 4, 2009 at 11:18 PM, Charles F. Munat c...@munat.com wrote: The Lift Web Framework team is pleased to announce the lift-1.1-M7 release! Lift is an expressive

[Lift] Re: Milestone 7 released

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 10:53 AM, jlist9 jli...@gmail.com wrote: Congrats on the new release! Just curious - what are the differences between Lift Actor and Akka Actor when used locally? Akka actors have a whole monitor hierarchy and other goodies (Jonas can tell us about these). Lift

[Lift] javax.mail 1.4.3-SNAPSHOT

2009-11-05 Thread aw
I upgraded to 1.1-M7 and was surprised to see that javax.mail-1.4.3- SNAPSHOT is now appearing as a dependency. Generally speaking, we don't want SNAPSHOT dependencies because they aren't re-creatable, but somehow, it sneaked into the Java.Net Maven 2 Repository:

[Lift] Re: Question about megaprotouser S.error

2009-11-05 Thread Heiko Seeberger
2009/11/4 David Pollak feeder.of.the.be...@gmail.com It is a bug in MappedPassword (not ProtoUser): It's not a bug, it's by design. Well , issue 157 (MappedPassword contains misspelled key for unset password) is a bug, but ** as default value is by design, of course. Heiko My job:

[Lift] Re: javax.mail 1.4.3-SNAPSHOT

2009-11-05 Thread David Pollak
Yikes. Please file a ticket for this. We'll fix it. I think there's going to be a M7-SUPL release in the SNAPSHOT repo that addresses a bug that Jon reported. Thanks, David On Thu, Nov 5, 2009 at 12:54 PM, aw anth...@whitford.com wrote: I upgraded to 1.1-M7 and was surprised to see that

[Lift] Re: lift jpa maven

2009-11-05 Thread David Pollak
Hmmm... I am seeing the same thing. It appears that there's no archetype.xml file as part of the archetype JARs. Please file a ticket here: http://github.com/dpp/liftweb/issues We will add testing of the archetypes as part of the build process. On Thu, Nov 5, 2009 at 4:29 AM, ivan

[Lift] Re: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread David Pollak
In general, the information at http://wiki.github.com/dpp/liftweb is up to date. The stuff on wiki.liftweb.net is many years out of date and mostly refers to pre-1.0 Lift. We had a project to migrate the content, but it foundered... :-( On Thu, Nov 5, 2009 at 9:41 AM, jhonig j...@xs4all.nl

[Lift] Re: form input tag name values changed when moving from M6 to M7

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 8:50 AM, ben b...@primrose.org.uk wrote: Hi, I was running 1.1-M6 with 2.7.6 with run.mode=test, and had written a bunch of acceptance tests using Cucumber. I just upgraded to 1.1-M7 with 2.7.7 and all the name values of form input tags have changed, failing all my

[Lift] Re: Access to cached object in mapper (.obj)

2009-11-05 Thread David Pollak
Makes sense. Please open a ticket: http://github.com/dpp/liftweb/issues On Thu, Nov 5, 2009 at 6:44 AM, Jean-Adrien jean.vauc...@gmail.com wrote: Hello, I have a question regarding the .obj field in MappedForeignKey trait; If I load a persisted object, if see that I can modify the value of

[Lift] Re: record framework questions

2009-11-05 Thread David Pollak
On Wed, Nov 4, 2009 at 3:24 AM, Tim Nelson tnell...@gmail.com wrote: I have been working on a back end implementation for Record that uses MongoDB and I have a couple of quick questions; Is there a reason that valMinLen and valMaxLen were not copied into StringField? It has been argued

[Lift] Re: Two how-to questions

2009-11-05 Thread Naftoli Gugenheim
Hi. Thanks for responding. I haven't looked it up, but I don't really need anything very specialized. I didn't mean that the time it runs each day has to be very precise. The point is just to back up the database daily. Should I use java.util.Timer.scheduleAtFixedRate?

[Lift] Re: Latest API Documentation

2009-11-05 Thread David Pollak
On Wed, Nov 4, 2009 at 10:44 PM, aw anth...@whitford.com wrote: When clicking on the API Documentation link, it links to 1.0 documentation... Is there a link for 1.1-M7 documentation? (I tried going to http://scala-tools.org/scaladocs/liftweb/1.1-M7/ but that didn't work...) Try:

[Lift] Re: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread jhonig
Thank you James, What I tried first was taken from http://wiki.github.com/dpp/liftweb/about-lift-tags. I don't have the code anymore. It was a surround without at attribute, and with multiple bind-at-s inside. Nothing got bound, as far as I could see. When I replaced the bind-at's with

[Lift] Re: AutoComplete, but optional

2009-11-05 Thread David Pollak
On Thu, Oct 29, 2009 at 5:10 PM, Trav wilhel...@gmail.com wrote: My goal is to use auto complete for suggested text box values. Unfortunately, when using the AutoComplete wiget, the onsubmit function receives an empty string if a value is not selected from the drop down. Is there any way

[Lift] Re: Access to cached object in mapper (.obj)

2009-11-05 Thread Naftoli Gugenheim
See also LongMappedMapper. - David Pollakfeeder.of.the.be...@gmail.com wrote: Makes sense. Please open a ticket: http://github.com/dpp/liftweb/issues On Thu, Nov 5, 2009 at 6:44 AM, Jean-Adrien jean.vauc...@gmail.com wrote: Hello, I have a question

[Lift] Re: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread Jim Barrows
On Thu, Nov 5, 2009 at 3:04 PM, jhonig j...@xs4all.nl wrote: Thank you James, What I tried first was taken from http://wiki.github.com/dpp/liftweb/about-lift-tags. I don't have the code anymore. It was a surround without at attribute, and with multiple bind-at-s inside. Nothing got

[Lift] Re: Two how-to questions

2009-11-05 Thread Derek Chen-Becker
That would probably work in the simple case. Derek On Thu, Nov 5, 2009 at 3:19 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Hi. Thanks for responding. I haven't looked it up, but I don't really need anything very specialized. I didn't mean that the time it runs each day has to be very

[Lift] Re: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 2:30 PM, Jim Barrows jim.barr...@gmail.com wrote: On Thu, Nov 5, 2009 at 3:04 PM, jhonig j...@xs4all.nl wrote: Thank you James, What I tried first was taken from http://wiki.github.com/dpp/liftweb/about-lift-tags. I don't have the code anymore. It was a surround

[Lift] Re: Latest API Documentation

2009-11-05 Thread Jonathan Ferguson
Is it practical to build the snapshot documentation or is it being built to often? Jono 2009/11/6 David Pollak feeder.of.the.be...@gmail.com On Wed, Nov 4, 2009 at 10:44 PM, aw anth...@whitford.com wrote: When clicking on the API Documentation link, it links to 1.0 documentation... Is

[Lift] Re: Latest API Documentation

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 2:45 PM, Jonathan Ferguson j...@spiralarm.comwrote: Is it practical to build the snapshot documentation or is it being built to often? Indrajit is probably the best person to answer that question, but I think it'd be a good thing (tm) Jono 2009/11/6 David Pollak

[Lift] Re: S.notices, etc broken from within AJAX/JSON calls in 1.1-SNAPSHOT

2009-11-05 Thread David Pollak
Please open a ticket for this issue. I may have broken it when I was addressing some other issues related to JSON in the last few weeks. On Thu, Nov 5, 2009 at 3:18 PM, Ross Mellgren dri...@gmail.com wrote: Hey all, I had some code working where the snippet generates a JSON callback

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-05 Thread David Pollak
On Wed, Nov 4, 2009 at 10:02 AM, jon jonhoff...@gmail.com wrote: Hi, I just noticed OrderBy statements cause Inner selects to break in h2: I query such as: User.findAll(In(User.id, Dog.owner, OrderBy(Dog.name, Ascending)), MaxRows(5)) Produces: Message: org.h2.jdbc.JdbcSQLException:

[Lift] Re: record framework questions

2009-11-05 Thread Tim Nelson
Thanks David. Ticket has been filed: http://github.com/dpp/liftweb/issues/#issue/162 Regarding my last question about stability of the record files; I'm trying to decide if I should use the record framework and the back end implementation I wrote to build my website or if I should use the more

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-05 Thread jon
I just verified that the newer h2 fixes the problem. Thanks for investigating! On Nov 5, 6:33 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Nov 4, 2009 at 10:02 AM, jon jonhoff...@gmail.com wrote: Hi, I just noticed OrderBy statements cause Inner selects to break in h2:

[Lift] Re: record framework questions

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 3:39 PM, Tim Nelson tnell...@gmail.com wrote: Thanks David. Ticket has been filed: http://github.com/dpp/liftweb/issues/#issue/162 Regarding my last question about stability of the record files; I'm trying to decide if I should use the record framework and the back end

[Lift] Re: 1.1-SNAPSHOT In() with OrderBy mapper bug

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 3:47 PM, jon jonhoff...@gmail.com wrote: I just verified that the newer h2 fixes the problem. Thanks for investigating! Sure thing. Party on! On Nov 5, 6:33 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Nov 4, 2009 at 10:02 AM, jon

[Lift] Changes to scala-tools.org Hudson

2009-11-05 Thread Josh Suereth
Scala-tools.org's Hudson server will no longer allow local deployment to the repository. You *must* submit all snapshot/release artifacts through the nexus webapp. The hudson server will provide a server id ( nexus.scala-tools.org) that will have appropriate (and appropriately hidden)

[Lift] Re: S.notices, etc broken from within AJAX/JSON calls in 1.1-SNAPSHOT

2009-11-05 Thread Ross Mellgren
Done: http://github.com/dpp/liftweb/issues/#issue/164 Thanks David, -Ross On Nov 5, 2009, at 6:24 PM, David Pollak wrote: Please open a ticket for this issue. I may have broken it when I was addressing some other issues related to JSON in the last few weeks. On Thu, Nov 5, 2009 at

[Lift] Re: Question about megaprotouser S.error

2009-11-05 Thread DFectuoso
I'm sorry to keep picking on this but i want to undertand, why would MappedPassword have a default value that i can't override and that is shown to user with ProtoUser if i don't override the full signup form's xhtml? I would like to think that i can start any project, extend proto user and have

[Lift] Rendering a template bit

2009-11-05 Thread DFectuoso
I want to do the following pattern, i don't know how(or if its possible) to do it in lift: - I want any part of my code to call a Site.render() where site is a model and render is a function inside that model that will print it the information - I want the xhtml to be in a html file so that any

[Lift] H2 Database

2009-11-05 Thread sunanda
Hi, Though this question is not related to Lift I would appreciate if anyone can suggest me how to configure h2 database on eclipse. I was trying with Hsql , but came to know that Lift does not support Hsql. Sunanda. --~--~-~--~~~---~--~~ You received this message

[Lift] Re: H2 Database

2009-11-05 Thread Naftoli Gugenheim
What do you mean configure it? - sunandasunanda.pa...@gmail.com wrote: Hi, Though this question is not related to Lift I would appreciate if anyone can suggest me how to configure h2 database on eclipse. I was trying with Hsql , but came to know that Lift

[Lift] Re: Question about megaprotouser S.error

2009-11-05 Thread David Pollak
On Thu, Nov 5, 2009 at 5:44 PM, DFectuoso santiago1...@gmail.com wrote: I'm sorry to keep picking on this but i want to undertand, why would MappedPassword have a default value that i can't override and that is shown to user with ProtoUser if i don't override the full signup form's xhtml?

[Lift] Re: Question about megaprotouser S.error

2009-11-05 Thread DFectuoso
I just want to learn and understand why it is like that, i love lift and I keep doing different project with it. I DO understand i can change anything in different scales and layers and so far i have been able to solve any problem one way or another. Thank you. On Nov 5, 9:01 pm, David Pollak

[Lift] Re: Rendering a template bit

2009-11-05 Thread harryh
What you want can be done with very basic usage of snippets (the way that templates interface with code in Lift). In your template: lift:YourSnippet.foo/ Then in YourSnippet.scala: class YourSnippet { def foo(xhtml: NodeSeq) = Site.render() } Make sure render returns a NodeSeq. -harryh

[Lift] Re: Rendering a template bit

2009-11-05 Thread DFectuoso
The thing is that i want the NodeSeq to reside in a html file, not inside the model. On Nov 5, 10:20 pm, harryh har...@gmail.com wrote: What you want can be done with very basic usage of snippets (the way that templates interface with code in Lift).  In your template: lift:YourSnippet.foo/

[Lift] using Dispatch library for Http

2009-11-05 Thread jack
I'm using the Dispatch Databinder library for Http. http://bit.ly/NPWcW My code is this simple method. def testCheckPage(url:String):String = { try { var http = new Http var request = new Request (url) val req_with_agent = request : Map(User-Agent - Mozilla/ 5.0)

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Ross Mellgren
Many exceptions do not have a message, e.g. NullPointerException (unless thrown by hand). Maybe: try { ... } catch { case ex: Exception if ex.getMessage == null = Message: + ex.toString case ex: Exception = Message: + ex.getMessage } -Ross On Nov 5, 2009, at 11:45 PM,

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Jack Widman
Thanks Ross, I'll try it. On Thu, Nov 5, 2009 at 11:51 PM, Ross Mellgren dri...@gmail.com wrote: Many exceptions do not have a message, e.g. NullPointerException (unless thrown by hand). Maybe: try { ... } catch { case ex: Exception if ex.getMessage == null = Message: +

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Jack Widman
Tried and I see now that the exception is java.nio.BufferUnderflowException Any idea what might be causing this? On Thu, Nov 5, 2009 at 11:51 PM, Ross Mellgren dri...@gmail.com wrote: Many exceptions do not have a message, e.g. NullPointerException (unless thrown by hand). Maybe: try {

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Ross Mellgren
I'm not familiar with Dispatch, sorry, perhaps use ex.printStackTrace to see where in the Dispatch code and look up the source to see what it's doing? -Ross On Nov 5, 2009, at 11:59 PM, Jack Widman wrote: Tried and I see now that the exception is java.nio.BufferUnderflowException Any

[Lift] Re: javax.mail 1.4.3-SNAPSHOT

2009-11-05 Thread Indrajit Raychaudhuri
On 06/11/09 2:24 AM, aw wrote: I upgraded to 1.1-M7 and was surprised to see that javax.mail-1.4.3- SNAPSHOT is now appearing as a dependency. Generally speaking, we don't want SNAPSHOT dependencies because they aren't re-creatable, but somehow, it sneaked into the Java.Net Maven 2

[Lift] Re: lift jpa maven

2009-11-05 Thread Indrajit Raychaudhuri
The archetypes needs some spit and polish. I'll take them up next week. Cheers, Indrajit On 06/11/09 2:54 AM, David Pollak wrote: Hmmm... I am seeing the same thing. It appears that there's no archetype.xml file as part of the archetype JARs. Please file a ticket here:

[Lift] Re: Latest API Documentation

2009-11-05 Thread Indrajit Raychaudhuri
Of course we build the entire documentation during a snapshot build. See: http://scala-tools.org/mvnsites-snapshots/liftweb/ for the latest and greatest. The scaladoc stays in the Project Report section for respective package. However, we still don't 'aggregate' the generated scaladoc by

[Lift] Re: record framework questions

2009-11-05 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: The most important driver of Record is people using it. Tim has been doing some stuff with it. If you start using it actively, you'll be the guy driving a lot of the changes. I think a big blocker for more people starting to use Record is

[Lift] Re: Rendering a template bit

2009-11-05 Thread Jeppe Nejsum Madsen
DFectuoso santiago1...@gmail.com writes: The thing is that i want the NodeSeq to reside in a html file, not inside the model. Have a look at TemplateFinder.findAnyTemplate, it will load the template from file. If you want to process a complete template, look at S.runTemplate /Jeppe

[Lift] Re: Changes to scala-tools.org Hudson

2009-11-05 Thread Indrajit Raychaudhuri
Josh, thank you for driving us do the 'right thing' :) Hudson build would trigger when the pom.xml changes. So do you want your fork (b9588f...) to be applied right away. Or do you want us to wait for a pre-set time for the transition? Committers, do you insist a ticket/reviewboard for this.

[Lift] Re: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread jhonig
James, That would be because those are examples of tags, not copy-and-paste-code necessarily. I didn't just cut and paste, tried to extract the rule how to do it (of course). I can think of about million definitions of just didn't work. Which one do you mean here? Blank page when I