[Lift] Re: date management

2009-06-25 Thread g-man
OK, things are working well with RequestVar, but now I need to know how to kill it! After I create and save my record, if I refresh the browser, I get another record created. I did a temporary hack-fix with: if(! myRecord.saved_?) but I would just like to kill the RequestVar after the first

[Lift] Re: lift presentation

2009-06-25 Thread marius d.
I'm giving today a presentation for Transylvania JUG ... I'll email you my material. Br's, Marius On Jun 25, 8:04 am, Wilson MacGyver wmacgy...@gmail.com wrote: Hi, I'm doing a presentation on lift to my local java user group next month. I'm wondering if any of you have slides on lift

[Lift] Re: higher-kinded types

2009-06-25 Thread Meredith Gregory
All, The following code works without going through the M-P-O construction. It enjoys approximately the same brevity as a Haskell type class. // smallest expression of monad i can find trait MBrace[C[_] : MBrace[C,A],A] { def nest( a : A ) : C[A] def flatten[T : C[C[A]]]( bsq : T ) : C[A] }

[Lift] Re: lift presentation

2009-06-25 Thread Timothy Perrett
You can find all of DPP's preso's here: http://is.gd/1cUi0 Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from

[Lift] Re: Can't embed a snippet

2009-06-25 Thread Marc Boschma
Wouldn't this work with the Scala XML parser? xml:group h2Welcome/h2 pPut welcome details here./p /xml:group On 25/06/2009, at 1:08 AM, Nolan Darilek wrote: On 06/24/2009 09:40 AM, Derek Chen-Becker wrote: Wait a second. I have plenty of templates that have multiple elements in them. What

[Lift] Re: Getting Username and Password from URL of form hxxp://user:passw...@foo.org

2009-06-25 Thread Timothy Perrett
Are you using the builtin support for basic authentication in lift? If not, please see my example here: http://is.gd/1cYhR The format you mention is standard HTTP Basic, and in accordance with the RFC's - it should be Base64 encoded. Lift supports both HTTP basic and HTTP digest. Cheers, Tim

[Lift] Re: lift presentation

2009-06-25 Thread fan...@gmail.com
Wilson MacGyver a écrit : Hi, I'm doing a presentation on lift to my local java user group next month. I'm wondering if any of you have slides on lift that I can borrow/leverage? :) I did a presentation some weeks ago, the slides are under a creative common licence, so use them if you

[Lift] Re: lift presentation

2009-06-25 Thread Francois Armand
I did a presentation some weeks ago, the slides are under a creative common licence, so use them if you want ! http://fanf42.blogspot.com/2009/06/tour-of-scala-ossgtp-paris-oss-user.html OK, just ignore this message, it was a *Scala* presentation, not a *Lift* one - sorry, I read your post

[Lift] Re: Anyone working on the flot widget?

2009-06-25 Thread Jeppe Nejsum Madsen
On 25 Jun 2009, Francois Bertrand wrote: Hi Jeppe Great to see you are interested in the flot widget. My current to-do list for the flot widget, is: - create more Lift JsExp and JsCmd to modify a already displayed flot graph. They should be used in AJAX and Comet applications -

[Lift] Re: lift presentation

2009-06-25 Thread Wilson MacGyver
Thank you very much! On Thu, Jun 25, 2009 at 2:16 AM, marius d. marius.dan...@gmail.com wrote: I'm giving today a presentation for Transylvania JUG ... I'll email you my material. Br's, Marius On Jun 25, 8:04 am, Wilson MacGyver wmacgy...@gmail.com wrote: Hi, I'm doing a

[Lift] Re: lift presentation

2009-06-25 Thread Wilson MacGyver
heheh, no problem. I did the one on Scala back in Feb. :) On Thu, Jun 25, 2009 at 7:31 AM, Francois Armandfan...@gmail.com wrote: I did a presentation some weeks ago, the slides are under a creative common licence, so use them if you want !

[Lift] Re: New mapper class: MappedEnumString

2009-06-25 Thread Jeppe Nejsum Madsen
On Thu, Jun 25, 2009 at 1:12 AM, Oliver Lambert olambo...@gmail.com wrote: Looks very nice. One thing I'm wondering, what if I wanted the displayed value outside of the mapper, such as TestTypes.Item1.displayValue. Would you use an implicit conversion to provide this or is the display

[Lift] Re: lift presentation

2009-06-25 Thread Jeremy Day
Guys, I just want to say that I haven't started using Lift yet but I already love it. This community is very supportive and responsive. Keep up the awesome work! Jeremy On Thu, Jun 25, 2009 at 7:21 AM, Wilson MacGyver wmacgy...@gmail.comwrote: heheh, no problem. I did the one on Scala back

[Lift] Re: date management

2009-06-25 Thread TylerWeir
The code Derek included: // Set the up the RequstVar to initialize a new MyUserClass by default object userVar extends RequestVar[MyUserClass](MyUserClass.create) By default creates a MyUserClass instance. Maybe you want to init the RequestVar as an Empty Box and then conditionally modify it.

[Lift] From JPA question to ScalaQuery to Collection Abstractions

2009-06-25 Thread Meredith Gregory
All, Again -- many thanks to the posters and responders on this thread. i've moved on to attempt to use ScalaQueryhttp://github.com/szeiger/scala-query/tree/masteras the target for the SQL persistence. Stefan Szeiger describes his work

[Lift] MySQL connection pool

2009-06-25 Thread ph
It's not strictly Lift question... Is connection pool a feature of MySQL JDBC driver? It is a feature of MySQL ODBC driver... Looking into this article http://dev.mysql.com/tech-resources/articles/connection_pooling_with_connectorj.html it's not clear to me wheather connection pool is

[Lift] Lift website page renders incorrectly in IE

2009-06-25 Thread samreid
This lift page renders incorrectly in IE: http://liftweb.net/docs/getting_started.html The text is much too far to the right. My coworker pointed this out to me and I reproduced the problem, let me know if you have any problems identifying or reproducing the problem.

[Lift] Re: Lift website page renders incorrectly in IE

2009-06-25 Thread Timothy Perrett
This is a known issue - I'll get round to rebuilding the site soon (it was originally thrown up in a matter of hours so it not the smoothest) so we can eliminate these kinds of bugs. Thanks Tim On 25/06/2009 17:43, samreid samrr...@gmail.com wrote: This lift page renders incorrectly in

[Lift] Re: JPA and auto generation of id

2009-06-25 Thread Derek Chen-Becker
I've used JPA with MySQL in the past and I don't recall having to specify a generator to get auto-incremenet IDs working. Does the schema for this particular entity have AUTO_INCREMENT set for the id column? Derek On Wed, Jun 24, 2009 at 5:29 PM, David Persons dhwpers...@gmail.com wrote:

[Lift] Re: MySQL connection pool

2009-06-25 Thread Derek Chen-Becker
The MySQL driver may have facilities for connection pooling, but generally you use a pool provider (dbcp, c3po, etc) or write your own. Derek On Thu, Jun 25, 2009 at 11:31 AM, ph pkirsa...@gmail.com wrote: It's not strictly Lift question... Is connection pool a feature of MySQL JDBC driver?

[Lift] Re: Can't embed a snippet

2009-06-25 Thread Marc Boschma
Sleeping on it the snippet would be as simple as def group(c : scala.xml.NodeSeq) : scala.xml.NodeSeq = scala.xml.Group(c) which would allow for: lift:group h2Welcome/h2 pPut welcome details here/p /lift:group The advantage is that it is in the lift name space... Marc On

[Lift] form element specific error messages

2009-06-25 Thread Trav
I have a form such as: lift:Customer.newCustomer form=POST divnewCustomer:firstName/newCustomer:firstName/div divnewCustomer:lastName/newCustomer:lastName/div divnewCustomer:submit //div /lift:Customer.newCustomer and a bind: bind(newCustomer, xhtml, firstName - text(XXX), lastName

[Lift] Re: Modify CRUDify XHTML

2009-06-25 Thread Peter Robinett
Naftoli, you would overload the _editTemplate field or the editTemplate method, I imagine. Peter On Jun 24, 11:49 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How would you customize the edit view, say to allow editing all child entities on the same screen? On Wed, Jun 24, 2009 at 2:01

[Lift] Re: New mapper class: MappedEnumString

2009-06-25 Thread Oliver Lambert
On Thu, Jun 25, 2009 at 10:49 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Thu, Jun 25, 2009 at 1:12 AM, Oliver Lambert olambo...@gmail.com wrote: Looks very nice. One thing I'm wondering, what if I wanted the displayed value outside of the mapper, such as