Re: [Lift] LiftRules organization

2010-01-11 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: A while ago I started working on having separate parsers and formatters in LiftRules for date, date-time, and time values. These could then be used by Mapped(Date)(Time). Great! I would like to continue working on it, and I would appreciate

[Lift] Re: JNDI error when switching to M8 ?

2010-01-11 Thread Neil.Lv
Does anyone know that what's wrong with it ? Cheers, Neil On Jan 10, 9:50 pm, Neil.Lv anim...@gmail.com wrote: Here is the test code . g...@github.com:anim510/two_db_demo.git It works fine when using only one database, it failed when using two db connection. Thanks.!

[Lift] Re: LiftRules organization

2010-01-11 Thread Timothy Perrett
+1 object in the http package sounds good to me for logical ordering. Cheers, Tim On Jan 11, 8:37 am, Marius marius.dan...@gmail.com wrote: On Jan 11, 10:27 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: A while ago I started working on

[Lift] Re: Parcing Json

2010-01-11 Thread Joni Freeman
Ok, thanks for clarification. Unfortunately my knowledge about mapper is very limited (I've previously used ScalaQuery for db persistence). Maybe someone else can answer the question better, the question being: What is the easiest way to store instances of Observations into database using mapper.

Re: [Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Adam Warski
Hello, this almost works :). Right now in my form I have a hidden element where the type of the operation to execute will be set: input type=hidden id=operation_id name=operation_id value= / (the name is needed for jquery to set the value, and the id so that I can later read the value using

Re: [Lift] Re: Parcing Json

2010-01-11 Thread Timothy Perrett
Hey Joni, What did you think of ScalaQuery btw? Have you used it inside a lift app? Cheers, Tim On 11 Jan 2010, at 11:07, Joni Freeman wrote: Ok, thanks for clarification. Unfortunately my knowledge about mapper is very limited (I've previously used ScalaQuery for db persistence). Maybe

[Lift] Chat Input (order)

2010-01-11 Thread aw
I'm playing with the Chat example, and I am trying to do something trivial, but I can't get it to work and am at a loss as to why... Basically, I am interested in having the chat:input at the top of the page, before the chat:body/. As a result, I figured that I could simply edit the Chat.html

[Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Marius
On Jan 11, 1:09 pm, Adam Warski a...@warski.org wrote: Hello, this almost works :). Right now in my form I have a hidden element where the type of the operation to execute will be set: input type=hidden id=operation_id name=operation_id value= / (the name is needed for jquery to set the

[Lift] **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Indrajit Raychaudhuri
Folks, Lift master branch is on 2.0 series now and a milestone release is coming soon! Please refer to the original discussion/announcement for Lift 2.0 [1] and the subsequent announcement of Lift 2.0 branch [2] for the requisite backdrop. Here is a quick rundown of the key points that you

[Lift] Problem with validation

2010-01-11 Thread dominikgr
Hallo I have a dynamic form, it is created with from list of data. I use on this form jqeury validation, and it works with submit button. But I created link that works like submit button. And the problem is that validation is not checked. I made link submit buton in this way : submit -

[Lift] Two database are broken in 1.1-M8, works fine in 1.1-M7 .

2010-01-11 Thread Neil.Lv
Hi all, There is a problem when i upgrading the 1.1-M7 to 1.1-M8, the db connection is broken. I use two database connection in my app, it's broken in 1.1-M8. ### object OneDB extends ConnectionIdentifier { override def jndiName = lift_proto } object TwoDB extends ConnectionIdentifier {

Re: [Lift] How many memory are assigned by default when starting the Jetty ?

2010-01-11 Thread Alex Boisvert
The standard jetty.sh doesn't explicitly set JVM memory settings. It relies on default JVM ergonomics ( http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html). You can explicitly set your memory requirements in ~/.jettyrc, e.g., #!/bin/sh JAVA_OPTIONS=-noverify

Re: [Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Adam Warski
Hello, However for some reason, when I click the button, in the callback I get a new elements RequestVar (so it's initialized to an initial value) and moreover, nothing gets redrawn on the page. What is also quite weird is that the RequestVar is re-initialized, but the snippet instance

Re: [Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Adam Warski
Hello, I don't think you need a SessionVar. You can just capture the RequestVar's value in a local val and refer to that in the closure. Basically if I understand correctly, this is a typical scenario where you output a form and associate functions with its fields which are to be executed

Re: [Lift] Record and nulls / missing values

2010-01-11 Thread Ross Mellgren
*sigh* Me and record aren't getting along so well :-/ I'm thinking the right thing would be to add additional fields into net.liftweb.record.field for optional/nullable versions, e.g. OptionalStringField[OwnerType] extends Field[Option[String], OwnerType] and then make my JSON-specific

Re: [Lift] Re: LiftRules organization

2010-01-11 Thread Naftoli Gugenheim
Hmm, now this begs the question--does a ConversionRules object indeed belong in http? - Timothy Perretttimo...@getintheloop.eu wrote: +1 object in the http package sounds good to me for logical ordering. Cheers, Tim On Jan 11, 8:37 am, Marius

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Timothy Perrett
That would be because 2.0-M1 has not been released yet... as Indrajit's first note, that will be coming in the next few days. Cheers, Tim On 11 Jan 2010, at 17:08, Yuan wrote: Hi Indrajit, I cannot find 2.0-M1 in http://scala-tools.org/repo-snapshots, only 2.0-SNAPSHOT . and the

[Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Mads Hartmann
Awesome :) I'm currently preparing for a exam but i'll give it a go tomorrow when I'm done with my exam On Jan 11, 6:21 pm, Timothy Perrett timo...@getintheloop.eu wrote: That would be because 2.0-M1 has not been released yet... as Indrajit's first note, that will be coming in the next few

[Lift] Re: LiftRules organization

2010-01-11 Thread Marius
I think so because it's about user's defined rules ... it's just an extension of LiftRules, amd LiftRules lives in http package. Br's, Marius On Jan 11, 6:45 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Hmm, now this begs the question--does a ConversionRules object indeed belong in http?

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Timothy Perrett
There might be an element of manual merge, but as your working on a local branch (you are working on a branch, right?) then it should be fine. Cheers, Tim On 11 Jan 2010, at 17:14, Naftoli Gugenheim wrote: It's not out yet, until Wednesday. Indrajit or anyone, if I have changes in my local

[Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread aw
2. We are still on Scala 2.7.7. No excitement :) Lift is very sensitive to Scala version and the stability of Lift (and it's dependencies including Scala) is very important for those who are critically dependent on Lift. That said, Heiko maintains Lift's port on Scala 2.8.0 280_port actively.

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Heiko Seeberger
Or will Lift support only ONE Scala version? Yes, Lift 2.0 will be for Scala 2.8 only. Heiko My job: weiglewilczek.com My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net -- You received this

[Lift] Re: Parcing Json

2010-01-11 Thread Joni Freeman
Tim, ScalaQuery is a great DSL to interface relational database and to construct type safe SQL queries. I find that kind of approach often preferable compared to full blown ORMs (like Hibernate etc.) since it gives full control over SQL queries and does not impose any constraints on object model.

Re: [Lift] Problem with validation

2010-01-11 Thread Sergei Drannikov
Hi Dominik. Did you try to return false from your javascript function (submitForm) in case of invalid input? Regards, Sergey On Mon, Jan 11, 2010 at 5:37 PM, dominikgr domini...@gmail.com wrote: Hallo I have a dynamic form, it is created with from list of data. I use on this form jqeury

[Lift] TimeHelpers and SimpleDateFormat

2010-01-11 Thread aw
See: http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html --- Synchronization Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized

Re: [Lift] Re: Parcing Json

2010-01-11 Thread Timothy Perrett
Yeah i've been watching it for a while; not that there is anything wrong with mapper / jpa, but ScalaQuery appears to be a more functional design and the whole its not an ORM thing that is favoured by quite a number of people makes it very interesting indeed. Cheers, Tim On 11 Jan 2010, at

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Timothy Perrett
Is there an ETA from EPFL yet on when we'll see a proper 2.8 RC? Whilst these beta-betas are a good cycle as they are finding bugs, it would be good to know what they are planning. Cheers, Tim On 11 Jan 2010, at 18:28, Heiko Seeberger wrote: Or will Lift support only ONE Scala version?

Re: [Lift] TimeHelpers and SimpleDateFormat

2010-01-11 Thread Timothy Perrett
The whole Date class in Java is not thread safe. We considered swapping to JodaTime and I know DCB was working on it, but im not sure from the top of my head if he ever committed / merged what he was working on... Cheers, Tim On 11 Jan 2010, at 20:10, aw wrote: See:

Re: [Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Adam Warski
Hello, trying the solution a bit more I came into another problem which I can't solve elegantly. The solution below works nicely for an add button, but a delete button causes more problems: the problem is that with delete, you must know which element should get deleted. In a no-ajax

[Lift] TableSorter with CRUDify

2010-01-11 Thread Jim Wise
So, I'm trying to get a CRUDify'ed mapper class to render using Tablesorter. So far, I've: a.) added TableSorter.init to Boot.scala b.) added the following to my CRUDify'ed object: override def showAllClass = tablesorter override def pageWrapper(body: NodeSeq): NodeSeq =

Re: [Lift] TableSorter with CRUDify

2010-01-11 Thread Jim Wise
Jim Wise jw...@draga.com writes: b.) added the following to my CRUDify'ed object: override def showAllClass = tablesorter override def pageWrapper(body: NodeSeq): NodeSeq = lift:surround with=default at=content { TableSorter(show_all) } { body

Re: [Lift] TimeHelpers and SimpleDateFormat

2010-01-11 Thread Jeppe Nejsum Madsen
Timothy Perrett timo...@getintheloop.eu writes: The whole Date class in Java is not thread safe. We considered swapping to JodaTime and I know DCB was working on it, but im not sure from the top of my head if he ever committed / merged what he was working on... Cheers, Tim On 11 Jan

Re: [Lift] TimeHelpers and SimpleDateFormat

2010-01-11 Thread Naftoli Gugenheim
Is it a problem if two threads *read* it at the same time? Is anything being modified? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Timothy Perrett timo...@getintheloop.eu writes: The whole Date class in Java is not thread safe. We considered swapping to

Re: [Lift] TimeHelpers and SimpleDateFormat

2010-01-11 Thread Ross Mellgren
The call to DateFormat.format mutates internal state of the DateFormat object and will cause two concurrent format calls to mix up dates that are being formatted. We've had this happen at work. I think Jeppe is probably right that it should be a def (and therefore manufacture a new format each

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Naftoli Gugenheim
To what exent has the git folder structure changed? - Timothy Perretttimo...@getintheloop.eu wrote: There might be an element of manual merge, but as your working on a local branch (you are working on a branch, right?) then it should be fine. Cheers, Tim On

[Lift] Backbutton for Ajax

2010-01-11 Thread greekscala
Hello Lift people! I would like to know how experienced lift devs think and what they do about ajax backbutton support. with best regards -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To

[Lift] Re: Ajax button + submitting a form

2010-01-11 Thread Marius
Adam I was thinking of a slightly different approach that does not involve hidden fields: Say you have your current form with SHtml.text, checkboxes or whatever have you: then your ajax buttons (outside the form) like: def ajaxButton(text: NodeSeq, formId: String, func: () = JsCmd, attrs:

[Lift] Re: Backbutton for Ajax

2010-01-11 Thread Marius
Could you please be more specific? ... what use case are you thinking of? Br's, Marius On Jan 11, 11:55 pm, greekscala hellectro...@gmail.com wrote: Hello Lift people! I would like to know how experienced lift devs think and what they do about ajax backbutton support. with best regards

Re: [Lift] Backbutton for Ajax

2010-01-11 Thread Alex Boisvert
I've been playing with sammy.js http://code.quirkey.com/sammy/ recently and I like the way they update the URL fragment identifier (hash) when doing AJAX which makes apps more back-button friendly, in a manner that's similar to GMail. It would be nice to have something similar in Lift. alex On

[Lift] Re: Backbutton for Ajax

2010-01-11 Thread greekscala
Hello Marius, I have some pages that will be located over a normal url. But then there will be ajax interaction. I would like to have the backbutton work in this situations. best regards On 11 Jan., 23:02, Marius marius.dan...@gmail.com wrote: Could you please be more specific? ... what use

[Lift] Re: Backbutton for Ajax

2010-01-11 Thread greekscala
Hello Alex! I will take a look at sammy.js . I would like to have some way for this in Lift too. Since with Lift it is easy to do alot of ajax. with best regards On 11 Jan., 23:05, Alex Boisvert alex.boisv...@gmail.com wrote: I've been playing with sammy.js http://code.quirkey.com/sammy/

Re: [Lift] Re: Backbutton for Ajax

2010-01-11 Thread Timothy Perrett
I'm not sure what is stopping you using something like this in conjunction with lift? If you want something baked in, can you be specific with what and how you might want it to work? Cheers, Tim Sent from my iPhone On 11 Jan 2010, at 23:13, greekscala hellectro...@gmail.com wrote:

[Lift] binding form fields while using jquery plugin

2010-01-11 Thread Madhav
hi all I am trying to use jquery calculation plugin ( http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm) with my lift project. What i am trying to do is to use this plugin to do mathematical operation like addition,substarction of some textfields values and display

[Lift] Re: Code generation plugin for SBT

2010-01-11 Thread Brian Hsu
Hello, I'm interested in this project. Just in case that there are someone eles is working on this too. Currently I have started working on the part of generate Lift website skeleton corresponding to lift-archetype-blank / lift-archetype-basic in mvn repo. I've not finished it yet, but as soon

Re: [Lift] binding form fields while using jquery plugin

2010-01-11 Thread Naftoli Gugenheim
Can you fill in some more specifics? What code do you bind with? What output do you see in View Source? - Madhavmail.madhavsha...@gmail.com wrote: hi all I am trying to use jquery calculation plugin (

[Lift] Re: problems with file upload inside modal

2010-01-11 Thread stephanos
I don't want to appear pushy but this thing is really show stopper for me and I bet it's pretty obvious/easy for you to fix. If not I apologize for my impatience :-) On Jan 9, 10:15 am, stephanos stephan.beh...@googlemail.com wrote: Okay, this took my a while (new to git/github) - but here is my

[Lift] Re: binding form fields while using jquery plugin

2010-01-11 Thread Madhav
hi Naftoli my snippet has following code for binding bind(form, xhtml, text1 - SHtml.text(text1, text1= _), text2 - SHtml.text(text2,text2 = _), result -SHtml.text(result, result = _, ), submit -

Re: [Lift] Re: problems with file upload inside modal

2010-01-11 Thread Naftoli Gugenheim
If you mean David I think he's off the list until Wednesday. Maybe one of the other committers or knowledgable users can help though. - stephanosstephan.beh...@googlemail.com wrote: I don't want to appear pushy but this thing is really show stopper for me and

Re: [Lift] Re: problems with file upload inside modal

2010-01-11 Thread Naftoli Gugenheim
Is that code appearing in a modal dialog? Or is that the whole page? - stephanosstephan.beh...@googlemail.com wrote: I don't want to appear pushy but this thing is really show stopper for me and I bet it's pretty obvious/easy for you to fix. If not I apologize

Re: [Lift] Re: **IMPORTANT** Lift 2.0 Milestone1 is coming and it's time to test the SNAPSHOT in master

2010-01-11 Thread Indrajit Raychaudhuri
lift-base, lift-persistence and lift-modules have moved under framework. Rest have been rearranged under archetypes, examples and references. So you have: lift-base - framework/lift-base lift-persistence - framework/lift-persistence lift-modules - framework/lift-modules lift-archetypes -

Re: [Lift] Re: binding form fields while using jquery plugin

2010-01-11 Thread Naftoli Gugenheim
You're surrounding the input tag with the form:text1 element? If you look at View Source in the browser you'll see that the output of SHtml.text does not include your input tag, but uses its own. The simplest solution is to put your custom attributes in the scala code: SHtml.text(text1, text1 =

[Lift] Re: binding form fields while using jquery plugin

2010-01-11 Thread Madhav
Thanks Naftoli i will just try your solution and come back. Madhav -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to