[Lift] [widgets][flot] how to make the .js and .css accessable?

2010-02-01 Thread Jarod Liu
I found flot generated the following code: script type=text/javascript src=/classpath/flot/ jquery.flot.js/script !--[if IE]script language=javascript type=text/javascript src=/classpath/flot/excanvas.pack.js/script![endif]-- link href=/classpath/flot/jquery.flot.css type=text/css

Re: [Lift] CRUDify Date picker

2010-02-01 Thread Jeppe Nejsum Madsen
The Trav the.t...@gmail.com writes: Hi All, I've been chasing this one for a while and found a few posts dancing around the edge, but so far I haven't seen any solid answer on it. Most MappedTypeField's have auto generated form fields, including Select elements if you override the correct

Re: [Lift] [widgets][flot] how to make the .js and .css accessable?

2010-02-01 Thread Jeppe Nejsum Madsen
Jarod Liu liuyuan...@gmail.com writes: I found flot generated the following code: script type=text/javascript src=/classpath/flot/ jquery.flot.js/script !--[if IE]script language=javascript type=text/javascript src=/classpath/flot/excanvas.pack.js/script![endif]-- link

Re: [Lift] Single log in for three contexts

2010-02-01 Thread Timothy Perrett
Chas, I've done exactly this using a cookie with a 192bit encrypted value. I cant share the code, but i would advise you to make a LocParam subtype and use that as the authenticator as it is evaluated much before anything else. Cheers, Tim On 29 Jan 2010, at 23:02, c...@munat.com wrote: I

Re: [Lift] [widgets][flot] how to make the .js and .css accessable?

2010-02-01 Thread Jarod Liu
Jeppe, Thanks Jeppe Nejsum Madsen wrote: Jarod Liu liuyuan...@gmail.com writes: I found flot generated the following code: script type=text/javascript src=/classpath/flot/ jquery.flot.js/script !--[if IE]script language=javascript type=text/javascript

[Lift] Snippet attribute pass through

2010-02-01 Thread ced
I want to set a node attribute in the template markup exactly like it is done in example 7.13 from the Lift Book. I'll paste it here: // the markup lift:Ledger.balance ledger:time ledger:id=myId/ /lift:Ledger.balance // The snippet class class Ledger { def balance (content : NodeSeq ) : NodeSeq

[Lift] Re: Snippet attribute pass through

2010-02-01 Thread Marius
Replace your bind with: bind (ledger, content, time -% span{(new java.util.Date).toString}/span) ledger:id is not anymore preserved as after the was out this was considered a not intended feature and got moved. -% should do what you want. Br's, Marius On Feb 1, 5:57 pm, ced

[Lift] ProtoUser i18n

2010-02-01 Thread Adam Warski
Hello, I'm using ProtoUser and all strings in the user menu, login, forgot password forms are localized except the Sign Up and Edit user forms. The problem is that in ProtoUser, the display names are defined as: def firstNameDisplayName = ??(First Name) instead using e.g. first.name.

[Lift] NPE in MappedTextarea

2010-02-01 Thread Adam Warski
Hello, if the value of a MappedTextarea field is null, an NPE is thrown. The problem is in the _toForm method. For example in MappedString, the method does: value={is match {case null = case s = s.toString}} while in MappedTextarea, the value is simply {is.toString}, which causes the NPE. So

Re: [Lift] Re: Snippet attribute pass through

2010-02-01 Thread Naftoli Gugenheim
Anyone want to fix the book? :) Anyway, once you're using -% you want it to be id, not ledger:id. - Mariusmarius.dan...@gmail.com wrote: I'm eating letters as after the was out should be as after the the book was out :D On Feb 1, 6:03 pm, Marius

[Lift] Re: Upgrade to Flot 0.6

2010-02-01 Thread Peter Robinett
Ok guys, I'll work on this in the next few days (I'm out of town right now). Peter On Jan 31, 3:20 pm, Timothy Perrett timo...@getintheloop.eu wrote: It seems like peter will take ownership of this and make it happen   ASAP so a patch / diff should not be needed. Peter, please confirm when

Re: [Lift] Re: Upgrade to Flot 0.6

2010-02-01 Thread Aaron Valade
Thanks Peter! One of the other things that changed between Flot 0.4 and 0.6 is that a plugin structure was introduced and some functionality was pushed out of the core and into a plugin, specifically the selection functionality which can be used for zooming and other interactions with the charted

[Lift] Re: Snippet attribute pass through

2010-02-01 Thread Marius
Well the book reflects Lift at that point in time. Since then there were quite a few updates. I know Derek at some point tried to keep it up to date but I'm not sure now. This is not about fixing the book. Br's, Marius On 1 feb., 18:39, Naftoli Gugenheim naftoli...@gmail.com wrote: Anyone want

Re: [Lift] NPE in MappedTextarea

2010-02-01 Thread David Pollak
Thanks. A fix will be on review board by end of day. On Mon, Feb 1, 2010 at 8:26 AM, Adam Warski a...@warski.org wrote: Hello, if the value of a MappedTextarea field is null, an NPE is thrown. The problem is in the _toForm method. For example in MappedString, the method does: value={is

Re: [Lift] ProtoUser i18n

2010-02-01 Thread David Pollak
We'll accept a patch for this issue. On Mon, Feb 1, 2010 at 8:07 AM, Adam Warski a...@warski.org wrote: Hello, I'm using ProtoUser and all strings in the user menu, login, forgot password forms are localized except the Sign Up and Edit user forms. The problem is that in ProtoUser, the

Re: [Lift] Re: should use getColumnLabel insead of getColumnName in DB.resultSetToXXX

2010-02-01 Thread David Pollak
On Sun, Jan 31, 2010 at 7:04 PM, Jarod Liu liuyuan...@gmail.com wrote: david, sorry, i closed the ticket. do you accept my proposal If we make the change, it will subtly break all the apps that are relying on the current behavior. There are two options: overload the calls with a

Re: [Lift] Lift-OpenID should default to openid_identifier for post param name

2010-02-01 Thread David Pollak
I've changed the code from a val to a def and changed the default value to openid_identifier. If this causes code breakage, folks can change it back to the old value. Thanks for the suggestion. On Sat, Jan 30, 2010 at 7:58 AM, Erkki Lindpere vill...@gmail.com wrote: Hi, I suggest that

Re: [Lift] Re: should use getColumnLabel insead of getColumnName in DB.resultSetToXXX

2010-02-01 Thread David Pollak
On Mon, Feb 1, 2010 at 3:39 PM, Lachlan Deck lachlan.d...@gmail.com wrote: On 02/02/2010, at 10:29 AM, David Pollak wrote: On Sun, Jan 31, 2010 at 7:04 PM, Jarod Liu liuyuan...@gmail.com wrote: david, sorry, i closed the ticket. do you accept my proposal If we make the change, it

Re: [Lift] Re: should use getColumnLabel insead of getColumnName in DB.resultSetToXXX

2010-02-01 Thread Lachlan Deck
On 02/02/2010, at 10:56 AM, David Pollak wrote: On Mon, Feb 1, 2010 at 3:39 PM, Lachlan Deck lachlan.d...@gmail.com wrote: We are not going to do this. We don't expect our users to read release notes for subtle stuff like this. We use the Scala type system to signal breakage... if

Re: [Lift] Re: should use getColumnLabel insead of getColumnName in DB.resultSetToXXX

2010-02-01 Thread David Pollak
On Mon, Feb 1, 2010 at 4:27 PM, Lachlan Deck lachlan.d...@gmail.com wrote: On 02/02/2010, at 10:56 AM, David Pollak wrote: On Mon, Feb 1, 2010 at 3:39 PM, Lachlan Deck lachlan.d...@gmail.com wrote: We are not going to do this. We don't expect our users to read release notes for

[Lift] MYSQL TEXT field

2010-02-01 Thread XiaomingZheng
hi guys: my app needs to use one field of mysql text type, but in Lift mapper package, and i don't find any MappedField is suitable. any ideas? thanks -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] [widgets][flot] jquery.flot.css breaks the chart in IE8

2010-02-01 Thread Jarod Liu
I don't use the blueprint css. It works fine without jquery.flot.css. Maybe it would better do not generate the link to jquery.flot.css by default( I think most real world app won't use the blueprint css). And add some kind of options to make flot generate the link -- You received this message