[Lift] Re: Forms validation formatter

2009-03-31 Thread Clemens Oertel
Hello, Sorry for the delay in my response, but I only get to play with lift on the weekends, and I wanted to look into your suggestions in more detail. I ported the toForm code from Record to Mapper (and by port, I mean mostly cut'n'paste). While doing so, I noticed 2 things: - Why not

[Lift] A gap in my knowledge, JsCommands

2009-03-31 Thread TylerWeir
I'm wading into an area that I'm a bit unfamiliar with and not sure if I'm running in a bug. Snippet code: class HelloWorld { def ajaxFunc1() : JsCmd = JsRaw(alert('Button1 clicked')) def ajaxFunc2(str: String) : JsCmd = { Log.info(Received + str) JsRaw(alert('Button2 clicked')) }

[Lift] Re: HTML 5 Web Sockets ?

2009-03-31 Thread David Pollak
On Tue, Mar 31, 2009 at 2:35 AM, Matthias Wessendorf mwessend...@gmail.comwrote: Hi, I wonder if Lift does support HTML 5's Web Sockets. I think that I read it somewhere ... Lift 1.1 will support Web Sockets. I'm working with the Kaazing folks to make sure things work well with their

[Lift] Re: Forms validation formatter

2009-03-31 Thread marius d.
On Mar 31, 5:06 pm, Clemens Oertel clemens.oer...@gmail.com wrote: Hello, Sorry for the delay in my response, but I only get to play with lift   on the weekends, and I wanted to look into your suggestions in more   detail. I ported the toForm code from Record to Mapper (and by port, I

[Lift] SessionVar or RequestVar example

2009-03-31 Thread DavidV
Does anyone know where I could find some example code of SessionVar or RequestVar in use? I am writing an application and I need to use a SessionVar or a RequestVar so that I can maintain and update the value of a variable throughout a session, but since I'm new to Lift I'm not sure how to use

[Lift] Re: Forms validation formatter

2009-03-31 Thread Clemens Oertel
Marius: On 31-Mar-09, at 12:31 PM, marius d. wrote: On Mar 31, 5:06 pm, Clemens Oertel clemens.oer...@gmail.com wrote: - Why not provide the same template mechanism used for forms for HTML output? This way I can reuse the same template for both - given that my records have at least

[Lift] MappedDateTime - Do we have a Date? Or is it a timestamp?

2009-03-31 Thread Clemens Oertel
While trying to figure out why my MappedDateTime fields get stored in the DB with all the time info set to 0, I noticed the following: MappedDateTime (v. 1.0) claims to be a TimeStamp: def targetSQLType = Types.TIMESTAMP. However, it uses java.sql.Date for its JDBC- friendly converted

[Lift] Re: MappedDateTime - Do we have a Date? Or is it a timestamp?

2009-03-31 Thread Jorge Ortiz
I was on IRC trying to help Clemens with this. The name (MappedDateTime), targetSQLType (java.sql.Types.TIMESTAMP), and type (extends MappedField[java.util.Date, _]) of this class suggests millisecond precision (java.sql.Timestamp and java.util.Date have millisecond precision). However, methods

[Lift] Re: MappedDateTime - Do we have a Date? Or is it a timestamp?

2009-03-31 Thread TylerWeir
For an internal project I used JodaTime, twas a dream. I have switched to using MappedLong along with Unix time for dates now. ( hooray for ancedotes! ) On Mar 31, 3:21 pm, Jorge Ortiz jorge.or...@gmail.com wrote: I was on IRC trying to help Clemens with this. The name (MappedDateTime),

[Lift] Re: Forms validation formatter

2009-03-31 Thread marius d.
On Mar 31, 9:09 pm, Clemens Oertel clemens.oer...@gmail.com wrote: Marius: On 31-Mar-09, at 12:31 PM, marius d. wrote: On Mar 31, 5:06 pm, Clemens Oertel clemens.oer...@gmail.com wrote: - Why not provide the same template mechanism used for forms for HTML output? This way I can

[Lift] Re: Menu widget

2009-03-31 Thread DavidV
I would like to use this new MenuWidget, so I got the source code from GitHub and put it into my application as a snippet. I also downloaded all of the necessary superfish .css and .js files from the superfish website and put those in local sub-directories of the src/main/ webapp folder. When I

[Lift] Re: SessionVar or RequestVar example

2009-03-31 Thread DavidV
I figured out what I needed by checking out the counting link on the Lift demo page. However, I'd like to see some more examples of Session or RequestVar in use, so if anyone has some I'd still appreciate it. On Mar 31, 12:44 pm, DavidV david.v.villa...@gmail.com wrote: Does anyone know where

[Lift] Re: SessionVar or RequestVar example

2009-03-31 Thread Timothy Perrett
Check out the JPA example, that has some neat use of hooking JPA into lifts RequestVar On Mar 31, 10:49 pm, DavidV david.v.villa...@gmail.com wrote: I figured out what I needed by checking out the counting link on the Lift demo page.  However, I'd like to see some more examples of Session or

[Lift] Re: MappedDateTime - Do we have a Date? Or is it a timestamp?

2009-03-31 Thread Timothy Perrett
chronologies (calendar systems). It's also completely immutable (oh, you didn't know java.util.Calendar isn't thread-safe? you're lucky to have never had to track down that bug). LOL!!! Its not thread safe!? Thats somewhat of an oversight isnt it...

[Lift] Re: lift:Menu.group

2009-03-31 Thread bradford
So, how would I test this function in specs? I would need to create a mock object of S, right? Thanks, Bradford On Mar 29, 8:02 pm, bradford fingerm...@gmail.com wrote: This can probably be improved (and I've done little testing on it), but I've come up with something to satisfy my

[Lift] autocomplete - options

2009-03-31 Thread bradford
The autocomplete widget is very cool, but I can't figure out how to use it to change some of the JQuery autocomplete options such as the delay and minChars. Also, how could I modify the JQuery autocomplete result handler? Thanks, Bradford --~--~-~--~~~---~--~~

[Lift] Re: MappedDateTime - Do we have a Date? Or is it a timestamp?

2009-03-31 Thread Kris Nuttycombe
I'm also using joda-time, and very pleased with it. In fact, I use it in my Lift project - via JPA with the provided Hibernate extensions for mapping of DateTime, Period, etc. Kris On Tue, Mar 31, 2009 at 1:54 PM, TylerWeir tyler.w...@gmail.com wrote: For an internal project I used JodaTime,