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

2009-10-20 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com 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

[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 sunanda.pa...@gmail.com 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

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

2009-10-20 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com 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

[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 je...@ingolfs.dk wrote: David Pollak feeder.of.the.be...@gmail.com writes: At least the most recent version of Boot.scala has reasonable testing of connection validity:     case x :: xs = try {           x.setAutoCommit(false)          

[Lift] lift:bind-at get warnings for every request

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

[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

[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

[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 dchenbec...@gmail.comwrote: 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

[Lift] Re: lift:bind-at 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 lift:bind-at, the result page is fine

[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

[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 freeman.j...@gmail.comwrote: Added a way to change how 'type hints' are processed. The default is NoTypeHints which will never output 'jsonClass' field. Then

[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,

[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 sunanda.pa...@gmail.com wrote: Thats what I wonder. It should work. When I refer to a css file with the border setting it

[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

[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

[Lift] Re: lift:bind-at 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 dri...@gmail.com wrote: I encountered these and sent a message to the list last week or so. I   didn't hear anything back, maybe the best

[Lift] Re: lift:bind-at 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: 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 dchenbec...@gmail.com wrote: Are you putting

[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 Oct

[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 d.sztwio...@gmail.com 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

[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: 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 ccebelen...@gmail.comwrote: replying to myself a bit here - starting to figure some of

[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 ccebelen...@gmail.comwrote: replying to myself a bit here - starting to figure some of this out: Turns

[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 har...@gmail.com wrote: Yes, but then how can I distinguish back on the server

[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

[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,

[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 naftoli...@gmail.comwrote: Could someone give an example of a Sitemap menu entry that performs an action and then

[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 naftoli...@gmail.comwrote: 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:

[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 naftoli...@gmail.com wrote: Could someone give an example of a Sitemap menu entry that performs

[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

[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 d.sztwio...@gmail.com 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

[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 dchenbec...@gmail.comwrote: 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

[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 har...@gmail.com 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

[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 \

[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 dchenbec...@gmail.comwrote: On Tue, Oct 20, 2009 at 4:59 PM, David Pollak

[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 \

[Lift] Re: How to disable a textfield

2009-10-20 Thread sunanda
Thanks Tim On Oct 20, 6:02 pm, Timothy Perrett timo...@getintheloop.eu wrote: Change - to -% Doing this preserves any element attributes, for example: disabled=disabled Cheers, Tim On Oct 20, 6:30 am, sunanda sunanda.pa...@gmail.com wrote: Hi, I need to disable all the textfield

[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

[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: 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 anim...@gmail.com 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.

[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 naftoli...@gmail.comwrote: 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

[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 'bHey There/b' instead of 'Hey There' in bold. This method is in a CometActor and is running when the page is rendered. Am I missing