[Lift] Re: Why the liftweb doesn't use mysql as the default database ?

2009-10-20 Thread GA
I absolutely agree with the last statement. We changed from MySQL to PostgreSQL. Most of us here are Oracle DBAs, and we feel at home with PostgreSQL. We have made tests in the three platforms and we have chosen PostgreSQL. PostgreSQL gives us most of the main features of Oracle in an open

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread Derek Chen-Becker
I agree that the goal isn't to remove java.util.Date. For trivial time handling it works just fine. What I'm trying to achieve here is a way to make Joda Time be the default impl while leaving the user a choice. By using separate traits instead of different names on the same trait, we achieve a few

[Lift] Re: html not being evalutated

2009-10-20 Thread jack
OK, I see why this is happening. the {exp} in the NodeSeq convert exp to a String. So I did by creating a string and then converting it to a NodeSeq at the end. Is there a way to do this without using and intermediary string? On Oct 21, 1:03 am, jack wrote: > I have the following method display.

[Lift] html not being evalutated

2009-10-20 Thread jack
I have the following method display. source.body has html tags in it but the actual tags are showing instead of being evaluated. e.g. I'm seeing things like 'Hey There' instead of 'Hey There' in bold. This method is in a CometActor and is running when the page is rendered. Am I missing something o

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread David Pollak
On Tue, Oct 20, 2009 at 6:56 PM, Naftoli Gugenheim wrote: > > I agree with this. > My understanding is that the goal is that Lift should use Joda for its time > functions rather than java.util. This is not the goal. The goal is to make JodeTime available. There is no reason to remove support f

[Lift] Re: css, javascript, images are all in the WEB-INF ?

2009-10-20 Thread David Pollak
On Tue, Oct 20, 2009 at 6:20 PM, Neil.Lv wrote: > > Hi all, > > I have a newbie issue about the path . > > The css, javascript, images folder are all in the WEB-INF or you > can specify the path ? > WEB-INF is where the stuff that's not going to be served by the container lives. Put images

[Lift] Re: S.uri not including query params

2009-10-20 Thread Naftoli Gugenheim
Then my addition to MetaMegaProtoUser of loginRedirect has a bug, because loginFirst sets it based on S.uri. Since I'm not usually around an internet connection, I won't be able to go through filing a ticket, putting a diff on Review Board, and pushing it, in any small amount of time. ---

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread Naftoli Gugenheim
I agree with this. My understanding is that the goal is that Lift should use Joda for its time functions rather than java.util. If the Joda methods have different and longer names, then it's existing side by side with the java.util implementation, not replacing it. To many people, it is importa

[Lift] css, javascript, images are all in the WEB-INF ?

2009-10-20 Thread Neil.Lv
Hi all, I have a newbie issue about the path . The css, javascript, images folder are all in the WEB-INF or you can specify the path ? Thanks for any suggestion! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Lift] Re: How to disable a textfield

2009-10-20 Thread sunanda
Thanks Tim On Oct 20, 6:02 pm, Timothy Perrett wrote: > Change -> to -%> > > Doing this preserves any element attributes, for example: > disabled="disabled" > > Cheers, Tim > > On Oct 20, 6:30 am, sunanda wrote: > > > > > Hi, > > I need to disable all the textfield and then want to enable the f

[Lift] Re: Trouble With JPA Book Example

2009-10-20 Thread AndyM
Still getting the same issue, with mvn -U archetype:generate \ -DarchetypeRepository=http://scala-tools.org/repo-snapshots \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-jpa-basic \ -DarchetypeVersion=1.1-SNAPSHOT \ -DgroupId=com.foo.jpaweb \ -DartifactId=JPADemo \ -Dver

[Lift] Re: Trouble With JPA Book Example

2009-10-20 Thread David Pollak
For some reason the pom.xml files in the JPA archetypes referred to lift M4 rather than SNAPSHOT. I've pushed a change. Once the build ( http://hudson.scala-tools.org/job/Lift/1298/ ) is done, try re-executing your mvn command (make sure you do a mvn -U to pull the latest). To the committers - s

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread Derek Chen-Becker
Or, if you're OK with it, I could just make a lift-joda module that has the traits. That would also keep the Joda Time dependency out of the main lift modules. On Tue, Oct 20, 2009 at 5:48 PM, Derek Chen-Becker wrote: > On Tue, Oct 20, 2009 at 4:59 PM, David Pollak < > feeder.of.the.be...@gmail.c

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread Derek Chen-Becker
On Tue, Oct 20, 2009 at 4:59 PM, David Pollak wrote: > What I checked in allows you to use JodaTime just as easily (well with 2 > extra characters in a few method names) as java.util.Date. How is anything > more "default" than that? > My primary concern with this approach is that it makes chang

[Lift] Trouble With JPA Book Example

2009-10-20 Thread AndyM
I'm having trouble doing an mvn install on the JPA example from the book... > mvn archetype:generate \ -DarchetypeRepository=http://scala-tools.org/repo-snapshots \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-jpa-basic \ -DarchetypeVersion=1.1-SNAPSHOT \ -DgroupId=com.fo

[Lift] Re: maintaining logged in user longer outside of SessionVar

2009-10-20 Thread David Pollak
Please file a ticket. On Mon, Oct 19, 2009 at 7:04 PM, harryh wrote: > > > See ProtoExtendedSession > > It might be kind of annoying to change at this point, but "experation" > is a misspelling in this trait. > > -harryh > > > > -- Lift, the simply functional web framework http://liftweb.net

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread David Pollak
On Tue, Oct 20, 2009 at 7:01 AM, Derek Chen-Becker wrote: > Here is my argument for breaking it out: > > I think that we're in agreement that the *default* impl for Lift should > eventually be Joda Time, after some period of deprecation on the old stuff. What I checked in allows you to use JodaT

[Lift] Re: net.liftweb.widgets.autocomplete in version 1.1-M6

2009-10-20 Thread David Pollak
On Tue, Oct 20, 2009 at 4:15 AM, Tweek wrote: > > Hi, > Previously i was working on version 1.1-M3 of lift framework and i > used autocomplete widget by override _toForm method in my Test.scala > file. It was something like that: > > object Test extends Test with KeyedMetaMapper[Long, Test] with

[Lift] Rolling out the new Lift Actors code

2009-10-20 Thread David Pollak
Folks, I've just pushed the completed Lift Actor code to the dpp_wip_actorize branch. Jonas and I coordinated on the Actor API and Akka Actors will use the same basic trait so Akka Actors could be used to power Lift's Comet. I am ready to push this code to SNAPSHOT. When I do this, there will b

[Lift] Re: Menu entry to perform action then redirect

2009-10-20 Thread harryh
Menu(Loc("logout", List("logout"), "logout", Template(() => { User.logout }), ifLoggedIn)) :: object User { def logout = { logUserOut S.redirectTo("/") } } On Oct 20, 5:50 pm, Naftoli Gugenheim wrote: > Could someone give an example of a Sitemap menu entry that performs an > action

[Lift] Re: Menu entry to perform action then redirect

2009-10-20 Thread David Pollak
Loc("Feedback", List("feedback"), "Feedback", Loc.EarlyResponse(() => {println("I like to redirect"); S.redirectTo(S.referer openOr "/")}) On Tue, Oct 20, 2009 at 2:50 PM, Naftoli Gugenheim wrote: > Could someone give an example of a Sitemap menu entry that performs an > action and then redirects

[Lift] Re: S.uri not including query params

2009-10-20 Thread David Pollak
On Tue, Oct 20, 2009 at 2:48 PM, Naftoli Gugenheim wrote: > Is S.uri supposed to return the part of the URL after '?'? > No > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf

[Lift] S.uri not including query params

2009-10-20 Thread Naftoli Gugenheim
Is S.uri supposed to return the part of the URL after '?'? --~--~-~--~~~---~--~~ 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 this group, se

[Lift] Menu entry to perform action then redirect

2009-10-20 Thread Naftoli Gugenheim
Could someone give an example of a Sitemap menu entry that performs an action and then redirects?Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googl

[Lift] Re: how to use JqKeypress?

2009-10-20 Thread Derek Chen-Becker
With the current function you can't. I can see a need for having the ajax fired on key press and not on blur, so please open an issue and reference this conversation. Derek On Tue, Oct 20, 2009 at 1:05 PM, harryh wrote: > > Yes, but then how can I distinguish back on the server whether func is

[Lift] Re: reCaptcha integration

2009-10-20 Thread David Pollak
For a little more on Box (and Option), see http://blog.lostlake.org/index.php?/archives/50-The-Scala-Option-class-and-how-lift-uses-it.html On Tue, Oct 20, 2009 at 9:49 AM, CodeSlave9000 wrote: > > replying to myself a bit here - starting to figure some of this out: > > Turns out it doesn't subm

[Lift] Re: reCaptcha integration

2009-10-20 Thread Naftoli Gugenheim
S.param("recaptcha_challenge_field") match { case Full(value) => // work with the value of 'value' case _ => // deal with the fact that there's no result. } On Tue, Oct 20, 2009 at 12:49 PM, CodeSlave9000 wrote: > > replying to myself a bit here - starting to figure some of this out: > > Turn

[Lift] Re: how to use JqKeypress?

2009-10-20 Thread harryh
Yes, but then how can I distinguish back on the server whether func is being executed because of a blur (in which case I don't really want to do anything) or because of a keypress of enter (in which case I want to perform an action as if the go button had been pressed). -harryh On Oct 20, 11:27 

[Lift] Re: net.liftweb.widgets.autocomplete in version 1.1-M6

2009-10-20 Thread Naftoli Gugenheim
Does it help to change map to flatMap? On Tue, Oct 20, 2009 at 7:15 AM, Tweek wrote: > > Hi, > Previously i was working on version 1.1-M3 of lift framework and i > used autocomplete widget by override _toForm method in my Test.scala > file. It was something like that: > > object Test extends Tes

[Lift] Re: javascript with an ajaxbutton

2009-10-20 Thread Marius
I was hoping to see something minimalistic and isolated so I can quickly try it out. I'm not sure what you do with redirect("/workflow/claims") but from Ajax function you should probably use JsCmd.RedirectTo .. Hopefully I'll have some time this weekend to play with tinyMCE Br's, Marius On Oc

[Lift] Re: Including the class name in the JSON field

2009-10-20 Thread Joni Freeman
Hi, Yes I'll put these to Review Board soon. I just add some documentation, rerun serialization benchmark and do a little bit testing. Unless someone wants to discuss details/alternatives/etc more... Cheers Joni On 20 loka, 18:22, Derek Chen-Becker wrote: > Are you putting these changes in Rev

[Lift] Re: get warnings for every request

2009-10-20 Thread Ross Mellgren
Here's the link to my previous report -- I did some code review when looking at it last time, in case it's helpful for anyone. http://groups.google.com/group/liftweb/browse_thread/thread/c40316267412460b/16c405be378566a0 -Ross On Oct 20, 2009, at 1:13 PM, Marius wrote: > > Yup please file a

[Lift] Re: get warnings for every request

2009-10-20 Thread Marius
Yup please file a ticket. I think Derek worked on this a while ago. Derek, please correct me if I'm wrong Br's, Marius On Oct 20, 5:16 pm, Ross Mellgren wrote: > I encountered these and sent a message to the list last week or so. I   > didn't hear anything back, maybe the best route is to file

[Lift] Re: reCaptcha integration

2009-10-20 Thread CodeSlave9000
replying to myself a bit here - starting to figure some of this out: Turns out it doesn't submit the values in the form, but rather as parameters to the submission. I see I can get at those through S.param("recaptcha_challenge_field"), etc. This returns a Box (Full), which I now need to fi

[Lift] reCaptcha integration

2009-10-20 Thread CodeSlave9000
Hi - I think I'm following the rules in integrating reCaptcha into a page, but I'm not seeing anything in the hidden fields when the form is submitted. Am I making some kind of assumption I shouldn't be? I'm rather new to Lift (and web development), so something on the simple example side would p

[Lift] Re: Setting Table Border

2009-10-20 Thread Derek Chen-Becker
Get firebug and look at the CSS hierarchy for the element. That should locate where it's being overridden pretty quickly. Derek On Mon, Oct 19, 2009 at 9:53 PM, sunanda wrote: > > Thats what I wonder. It should work. When I refer to a css file with > the border setting it works, > but not with

[Lift] Re: how to use JqKeypress?

2009-10-20 Thread Derek Chen-Becker
I think that the ajaxText already handles an "enter" key as field submission. Here's the code that defines an ajaxText field: 1. private def ajaxText_*(value: String, jsFunc: Box[Call], func: AFuncHolder, attrs: (String, String)*): Elem = { 2. val raw = (funcName: String, value:St

[Lift] Re: Including the class name in the JSON field

2009-10-20 Thread Derek Chen-Becker
Are you putting these changes in Review Board, or is this still experimental work? Derek On Mon, Oct 19, 2009 at 9:02 AM, Joni Freeman wrote: > > Added a way to change how 'type hints' are processed. The default is > NoTypeHints which will never output 'jsonClass' field. Then there's > ShortType

[Lift] Re: scalajpa - wrong database?

2009-10-20 Thread Derek Chen-Becker
Another note is that ScalaJPA provides a pretty thin wrapper on a JPA persistence unit. Each persistence unit represents *one* database, so you actually need more than one persistence unit to have connections to two databases. I recently added support in 1.2-SNAPSHOT so that you can provide a prope

[Lift] Re: get warnings for every request

2009-10-20 Thread Ross Mellgren
I encountered these and sent a message to the list last week or so. I didn't hear anything back, maybe the best route is to file an issue? http://github.com/dpp/liftweb/issues -Ross On Oct 20, 2009, at 5:30 AM, night_stalker wrote: > > Hi all. > When using , the result page is fine as I wish

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread Derek Chen-Becker
s/version 1.2-final/some future version/ On Tue, Oct 20, 2009 at 8:01 AM, Derek Chen-Becker wrote: > Here is my argument for breaking it out: > > I think that we're in agreement that the *default* impl for Lift should > eventually be Joda Time, after some period of deprecation on the old stuff.

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread Derek Chen-Becker
Here is my argument for breaking it out: I think that we're in agreement that the *default* impl for Lift should eventually be Joda Time, after some period of deprecation on the old stuff. I also agree with your earlier comment that it should be something that the developer can choose. I'm sure th

[Lift] Re: scalajpa - wrong database?

2009-10-20 Thread Jean-Luc
Which liftweb version are you using ? I've signaled a bug a few month ago, it was very very quickly fixed (thank you again Derek for your reactivity !). My jpa apps are in production and I have no such issue remaining, scalajpa looks like to be very stable. Once, I wrongly specified a wrong "persi

[Lift] net.liftweb.widgets.autocomplete in version 1.1-M6

2009-10-20 Thread Tweek
Hi, Previously i was working on version 1.1-M3 of lift framework and i used autocomplete widget by override _toForm method in my Test.scala file. It was something like that: object Test extends Test with KeyedMetaMapper[Long, Test] with CRUDify [Long,Test] { (...) } class Test extends KeyedMappe

[Lift] get warnings for every request

2009-10-20 Thread night_stalker
Hi all. When using , the result page is fine as I wished, yet these warnings run into the log for every request: WARN - Unused binding values for : content, main WARN - Unused binding values for : sidebar, main WARN - Unused binding values for : sidebar Am I missing something, or, can I disable

[Lift] Re: Problem with default Connection pool/CP for use with lift?

2009-10-20 Thread Jeppe Nejsum Madsen
On Tue, Oct 20, 2009 at 10:34 AM, Jeppe Nejsum Madsen wrote: > David Pollak writes: > >> At least the most recent version of Boot.scala has reasonable testing of >> connection validity: >> >>     case x :: xs => try { >>           x.setAutoCommit(false) >>           Full(x) >>         } catch {

[Lift] Re: Problem with default Connection pool/CP for use with lift?

2009-10-20 Thread Jeppe Nejsum Madsen
David Pollak writes: > At least the most recent version of Boot.scala has reasonable testing of > connection validity: > > case x :: xs => try { > x.setAutoCommit(false) > Full(x) > } catch { > case e => try { > pool = xs > poolSi

[Lift] Re: How to disable a textfield

2009-10-20 Thread Timothy Perrett
Change -> to -%> Doing this preserves any element attributes, for example: disabled="disabled" Cheers, Tim On Oct 20, 6:30 am, sunanda wrote: > Hi, > I need to disable all the textfield and then want to enable the fields > for editing on click of a button. > How can i do this with the followin