[Lift] Re: Problem with RequestVar

2009-10-27 Thread Heiko Seeberger
Hi, 2009/10/27 sunanda sunanda.pa...@gmail.com Hi, I need to retain the value of gridid throughout the session. Then use a SessionVar instead of a RequestVar. Heiko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Newbie: zero parameter functions, bind call-by-name function curiosity

2009-10-27 Thread Strom
I'm not sure if this is a scala or a lift related question, but when I try to bind a submit button, I'm having some confusion on using zero parameter functions as the () - Any parameter in the submit signature. The signature for the method in question is SHtml.submit(value : String, func : () =

[Lift] Re: Newbie: zero parameter functions, bind call-by-name function curiosity

2009-10-27 Thread Marius
On Oct 27, 8:52 am, Strom strommo...@gmail.com wrote: I'm not sure if this is a scala or a lift related question, but when I try to bind a submit button, I'm having some confusion on using zero parameter functions as the () - Any parameter in the submit signature. The signature for the

[Lift] record support redis?

2009-10-27 Thread monty chen
Record is a new refactorization of Mapper that is backing-store agnostic at its core, so it doesn’t matter whether you want to save your data to JDBC, JPA, or even something such as XML Redis is a key-value database. It is similar to memcached but the dataset is not volatile, and values can be

[Lift] Re: Firefox issue with ajaxSelectObj and page refresh

2009-10-27 Thread David Pollak
What's the JavaScript to force the correct item to be selected? I think we could append the JavaScript to the ajaxSelectObj to force the right thing to happen. On Mon, Oct 26, 2009 at 4:27 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, When using ajaxSelectObj and I have the currently

[Lift] Re: Playing around with Loc

2009-10-27 Thread David Pollak
Kris, This all looks very good to me. Unless others object, please open a ticket (nothing going into Lift without a ticket... the tyranny of process). Let's roll this stuff in post M7. Also, please prepare an email to send to this list and the Lift-announce list with the breaking changes.

[Lift] Re: Easy way to force IE7 only to quirks mode

2009-10-27 Thread David Pollak
On Mon, Oct 26, 2009 at 9:27 PM, Charles F. Munat c...@munat.com wrote: I have an ExtJS form that it failing in IE7 Standards mode (works fine on IE8 or in quirks mode on IE7). I don't want to force quirks mode on all browsers or serve the form improperly. I read that inserting a comment

[Lift] Re: Easy way to force IE7 only to quirks mode

2009-10-27 Thread Charles F. Munat
Thanks! David Pollak wrote: On Mon, Oct 26, 2009 at 9:27 PM, Charles F. Munat c...@munat.com mailto:c...@munat.com wrote: I have an ExtJS form that it failing in IE7 Standards mode (works fine on IE8 or in quirks mode on IE7). I don't want to force quirks mode on all

[Lift] Re: How to give a time lmit to display a message

2009-10-27 Thread David Pollak
On Mon, Oct 26, 2009 at 6:23 PM, sunanda sunanda.pa...@gmail.com wrote: I am trying to display the message for 2 seconds and remove the message using following code. It is displaying the meassage but not removing after 2 seconds. Where am I going wrong. SetHtml(editcoldefmsg,Text(Edited

[Lift] Re: how to use mapper like clause questions

2009-10-27 Thread David Pollak
On Mon, Oct 26, 2009 at 4:52 PM, george geo...@mattandgeorge.com wrote: Is there any way to do this, but have it match on OR instead of AND? User.findAll(Like(User.firstName, % + q + %), Like(User.lastName, % + q + %)) I couldn't see a way to do it, so I tried out BySQL instead. However,

[Lift] Re: how to use mapper like clause questions

2009-10-27 Thread george
I have not validated this, but try: BySql(users.email like ?, ..., %+q+%) that works thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: Newbie: zero parameter functions, bind call-by-name function curiosity

2009-10-27 Thread Ross Mellgren
Did you mean () = processForm by chance? () - processForm is a pair of () and processForm's result. -Ross On Oct 27, 2009, at 2:52 AM, Strom wrote: I'm not sure if this is a scala or a lift related question, but when I try to bind a submit button, I'm having some confusion on using zero

[Lift] Folder for resource bundles possible?

2009-10-27 Thread Heiko Seeberger
Hi, Is there a way to configure Lift such that it is possible to but resource bundles (properties files, used by S.?) into another folder but the top level one? I would like to put them into a i18n folder, just like the core-lift properties. Thanks, Heiko -- My job: weiglewilczek.com My blog:

[Lift] Changes in 1.1 production mode?

2009-10-27 Thread Yousry Abdallah
Hi, at the moment I'm testing my application against 1.1 snapshot and I noticed that while running lift in production mode: - Drun.mode=production aside from blueprints IE6 fallback: !--[if IE]link rel=stylesheet href=/classpath/blueprint/ ie.css type=text/css media=screen, projection![endif]--

[Lift] Re: Changes in 1.1 production mode?

2009-10-27 Thread David Pollak
Please see LiftRules.stripComments. You can do LiftRules.stripComments(false) On Tue, Oct 27, 2009 at 8:18 AM, Yousry Abdallah yous...@gmail.com wrote: Hi, at the moment I'm testing my application against 1.1 snapshot and I noticed that while running lift in production mode: -

[Lift] How to receive content-type application/json in a Lift API

2009-10-27 Thread GA
Hello guys, I have a small Lift API that has to receive JSON content. The content- type is specified as application/json. The API method is written as follows: def jsonTest(req: Req): LiftResponse = { implicit val formats = net.liftweb.json.DefaultFormats // Brings in

[Lift] Re: How to receive content-type application/json in a Lift API

2009-10-27 Thread David Pollak
On Tue, Oct 27, 2009 at 9:05 AM, GA my_li...@me.com wrote: Hello guys, I have a small Lift API that has to receive JSON content. The content- type is specified as application/json. The API method is written as follows: def jsonTest(req: Req): LiftResponse = { implicit val

[Lift] Two entity class map onto one DB table?

2009-10-27 Thread Ferdinand Chan
Hi, I'm a newbie to Lift and still learning Lift by coding a pet project. One question I have is about the Mapper. For example, if I have two classes, say Promotion and Discount. They are two different classes but having a one to one relationship to each other, i.e. Each Promotion will have

[Lift] Re: record support redis?

2009-10-27 Thread Timothy Perrett
It's not on our road map so unless one of the commiters wants to take this on for a particular reason youll probally get a faster solution by implementing it yourself. Redis has a fairly simple interface so overlaying the record stuff should be easy. Was this a general ask or have you

[Lift] Re: How to receive content-type application/json in a Lift API

2009-10-27 Thread GA
Thanks David. It works with a little change. I cannot do parse(new String(req.body, UTF-8)) directly, because the type of req.body is net.liftweb.util.Box[Array[Byte]]. So I did this: var message = for (i - req.body) { message = new String(i, UTF-8) }

[Lift] Re: Two entity class map onto one DB table?

2009-10-27 Thread David Pollak
Sure. Please remember to set the dbTableName in each of your classes to the same value: class Promotion extends LongKeyedMapper[Promotion] { override def dbTableName = shared_table_name } On Tue, Oct 27, 2009 at 9:08 AM, Ferdinand Chan unique...@gmail.com wrote: Hi, I'm a newbie to Lift

[Lift] Re: How to receive content-type application/json in a Lift API

2009-10-27 Thread David Pollak
On Tue, Oct 27, 2009 at 10:02 AM, GA my_li...@me.com wrote: Thanks David. It works with a little change. I cannot do parse(new String(req.body, UTF-8)) directly, because the type of req.body is net.liftweb.util.Box[Array[Byte]]. So I did this: var message = for (i -

[Lift] Re: Folder for resource bundles possible?

2009-10-27 Thread Marius
well we use ResourceBundles which means that you should be able to use any base name that you want. Please see LiftRules.resourceBundleFactories Br's, Marius On Oct 27, 5:05 pm, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, Is there a way to configure Lift such that it is

[Lift] Re: Two entity class map onto one DB table?

2009-10-27 Thread Naftoli Gugenheim
Why do you want this? What's wrong with one Mapper or two tables? - Ferdinand Chanunique...@gmail.com wrote: Hi, I'm a newbie to Lift and still learning Lift by coding a pet project. One question I have is about the Mapper. For example, if I have two

[Lift] Re: Two entity class map onto one DB table?

2009-10-27 Thread Ferdinand Chan
David, Thanks for the quick reply. Cheers, Ferdinand On Oct 28, 1:03 am, David Pollak feeder.of.the.be...@gmail.com wrote: Sure. Please remember to set the dbTableName in each of your classes to the same value: class Promotion extends LongKeyedMapper[Promotion] {   override def

[Lift] build issue - javax.mail - is anyone having this problem?

2009-10-27 Thread Dano
Hello, We did a build this morning and are getting an error from maven on the javax.mail dependency (see below). We are currently referencing version 1.4. It seems to get this from the central maven repository (http://repo2.maven.org/maven2). The site appears to be up and has version 1.4.

[Lift] Re: build issue - javax.mail - is anyone having this problem?

2009-10-27 Thread Ross Mellgren
I had this problem -- updating the maven-scala-plugin from 2.10 to 2.12.1 fixed it for me. -Ross On Oct 27, 2009, at 1:39 PM, Dano wrote: Hello, We did a build this morning and are getting an error from maven on the javax.mail dependency (see below). We are currently referencing

[Lift] Re: Newbie: zero parameter functions, bind call-by-name function curiosity

2009-10-27 Thread Strom
Yes Ross, I did mean () = processForm. Thanks for the clarification. The one thing in moving from Java to Scala is that there are a lot of things that look similar that aren't, as you've pointed out. Newbie error caught ;) Thanks Marius, I made that assumption, but it still bugs me that the

[Lift] Re: Dynamic radio button

2009-10-27 Thread Derek Chen-Becker
I think that we should be able to provide an SHtml.ajaxRadio method that generates an AJAXified radio button. Please file an issue. Derek On Thu, Oct 22, 2009 at 4:06 PM, sunanda sunanda.pa...@gmail.com wrote: Hi Derek, I am displaying the contents of a table in ReadOnly mode as follows.

[Lift] Re: Foreign Key Constraints in PostgreSQL through MappedLongForeignKey fields?

2009-10-27 Thread Derek Chen-Becker
At this time we don't support it, but feel free to file an issue. I'll have time at some point to work on it, and I think that it would be useful to generate. Derek On Fri, Oct 23, 2009 at 10:04 AM, yk ying.kwang...@gmail.com wrote: I was running the models of One-To-Many example from WiKi

[Lift] Re: Newbie: zero parameter functions, bind call-by-name function curiosity

2009-10-27 Thread Marius
On Oct 27, 8:50 pm, Strom strommo...@gmail.com wrote: Yes Ross, I did mean () = processForm. Thanks for the clarification. The one thing in moving from Java to Scala is that there are a lot of things that look similar that aren't, as you've pointed out. Newbie error caught ;) Thanks

[Lift] Re: Lift 1.1 Milestone 7

2009-10-27 Thread David Pollak
On Mon, Oct 26, 2009 at 7:59 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Could someone fix #121 (loginRedirect using S.uri; not getting part after '?') I've got a fix for this on review board. It'd be ideal if you could build dpp_issue_121 and insure that it does what you want.

[Lift] Milestone 7, getting very slushy

2009-10-27 Thread David Pollak
Folks, Just a reminder that Milestone 7 will be built on November 4th. Any tickets that are blocking for your project that you want in Milestone 7 need to be coded by end of day Thursday. Please, please, please make sure you post to the Lift list liftweb@googlegroups.com any tickets you need

[Lift] Re: Proposal : Lift ticketing system

2009-10-27 Thread Derek Chen-Becker
OK, I just pushed the initial revision of my model to GitHub at http://github.com/dchenbecker/LiftTicket. I think that this covers most of the features that Marius discussed in his response. I agree with all of it, although I'm not 100% sure about having both a severity and priority field on the

[Lift] Re: Proposal : Lift ticketing system

2009-10-27 Thread Marius
In my mind the severity says the level of impact for the submitter, and priority is the result of comitters' bandwidth. But it's not a big issue. Br's, Marius On Oct 27, 11:23 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: OK, I just pushed the initial revision of my model to GitHub

[Lift] Re: Firefox issue with ajaxSelectObj and page refresh

2009-10-27 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: What's the JavaScript to force the correct item to be selected? I think we could append the JavaScript to the ajaxSelectObj to force the right thing to happen. For jQuery, something like $(#dropdown).val(2); should work. But the issue is

[Lift] Re: Proposal : Lift ticketing system

2009-10-27 Thread Derek Chen-Becker
Makes sense :) On Tue, Oct 27, 2009 at 3:28 PM, Marius marius.dan...@gmail.com wrote: In my mind the severity says the level of impact for the submitter, and priority is the result of comitters' bandwidth. But it's not a big issue. Br's, Marius On Oct 27, 11:23 pm, Derek Chen-Becker

[Lift] Re: Proposal : Lift ticketing system

2009-10-27 Thread Jeppe Nejsum Madsen
Derek Chen-Becker dchenbec...@gmail.com writes: OK, I just pushed the initial revision of my model to GitHub at http://github.com/dchenbecker/LiftTicket. I think that this covers most of the features that Marius discussed in his response. I agree with all of it, although I'm not 100% sure

[Lift] Source file missing from -sources.jars?

2009-10-27 Thread Jeppe Nejsum Madsen
Hi, It seems the *.scala files are missing from some of the 1.1-SNAPSHOT-sources.jars. But not all of them: lift-webkit lift-mapper only has the resource files lift-util looks ok /Jeppe --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Firefox issue with ajaxSelectObj and page refresh

2009-10-27 Thread Jeppe Nejsum Madsen
On Tue, Oct 27, 2009 at 10:59 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: David Pollak feeder.of.the.be...@gmail.com writes: What's the JavaScript to force the correct item to be selected?  I think we could append the JavaScript to the ajaxSelectObj to force the right thing to happen.

[Lift] Re: Lift 1.1 Milestone 7

2009-10-27 Thread Naftoli Gugenheim
I won't be at a connection too soon. Could you paste the diff into the body of an email? Thanks! - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Oct 26, 2009 at 7:59 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Could someone fix #121

[Lift] Re: Proposal : Lift ticketing system

2009-10-27 Thread Naftoli Gugenheim
I'm not by an internet connection now (won't be for a while). Would it be possible for you to paste your code in an email to me (in the body)? Thanks. - Derek Chen-Beckerdchenbec...@gmail.com wrote: OK, I just pushed the initial revision of my model to

[Lift] Loc questions

2009-10-27 Thread Kris Nuttycombe
I'm somewhat puzzled by the signature of Loc.Link.createLink - principally by the fact that it returns Box[NodeSeq] instead of some more path-like object. Due to having this signature, you can't simply override createLink to create an actual link (the way it's used by SiteMap inhibits this).

[Lift] Re: Lift 1.1 Milestone 7

2009-10-27 Thread David Pollak
On Tue, Oct 27, 2009 at 4:27 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I won't be at a connection too soon. Could you paste the diff into the body of an email? diff --git a/lift-base/lift-webkit/src/main/scala/net/liftweb/http/S.scala

[Lift] Re: Lift 1.1 Milestone 7

2009-10-27 Thread Naftoli Gugenheim
Looking in to it... Why does uriAndQueryString return a Box? Also I think it could be shortened to uriAndQuery. Not sure if it makes sense to shorten queryString. Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Oct 27, 2009 at 4:27 PM,

[Lift] The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Neil.Lv
Hi all, I use the datepicker to chose the date, and the value is missing when posted to the server. 1: This is some code: ### In the model object date_time extends MappedDateTime(this) { final val dateFormat = DateFormat.getDateInstance(DateFormat.SHORT) override def

[Lift] Missing comm when use the Text in the model, Update version to M7 ?

2009-10-27 Thread Neil.Lv
Hi all, How can i update my app to M7 version ? My app 's current version is 1.1-M6 . If i update the version whether the app will be broken ? Thanks very much! Cheers, Neil --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Missing comm when use the Text in the model, Update version to M7 ?

2009-10-27 Thread David Pollak
On Tue, Oct 27, 2009 at 7:52 PM, Neil.Lv anim...@gmail.com wrote: Hi all, How can i update my app to M7 version ? M7 is not released. You can try your app on 1.1-SNAPSHOT by updating your pom.xml file and changing 1.1-M6 to 1.1-SNAPSHOT and adding: repository

[Lift] Re: Loc questions

2009-10-27 Thread David Pollak
createLink returns an Option[NodeSeq]. The reason for it is that the Scala XML literals do very well with Option[NodeSeq]: a href={Some(Text(/foo/bar))}/ // a href=/foo/bar/ a href={None}/ // a/ I'm cool with a helper method that returns a Box[String] or something that would otherwise be more

[Lift] Re: Firefox issue with ajaxSelectObj and page refresh

2009-10-27 Thread David Pollak
On Tue, Oct 27, 2009 at 4:02 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Tue, Oct 27, 2009 at 10:59 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: David Pollak feeder.of.the.be...@gmail.com writes: What's the JavaScript to force the correct item to be selected? I think we

[Lift] Re: Register new StatefulSnippet

2009-10-27 Thread David Pollak
I opened a ticket for this. I'll expose functionality so you can register stateful snippets as part of the request process. On Sun, Oct 25, 2009 at 1:09 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: This may be more of a feature request than a question. I generally use StatefulSnippets

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

2009-10-27 Thread David Pollak
On Wed, Oct 21, 2009 at 2:44 PM, harryh har...@gmail.com wrote: It's going to load the user for each stateful request. What do you mean by a stateful request? I guess we can change it up to make the load lazy so it'll only happen in the requestvar is actually accessed. Does that sould

[Lift] Re: The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Neil.Lv
I print the S.attr and get something like this: ...Left(form).. println(S.attr) And how can i get the form value from the form that posted to the server. I can't get the date_time value via the DatePicker. Thanks for any help! Cheers, Neil On Oct 28, 9:17 am, Neil.Lv

[Lift] Re: The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Naftoli Gugenheim
I think you want S.param, not S.attr. Is the form being submitted via GET? What do you see in the URL string? Look first at the HTML source to see the name attribute generated by Lift--it's different each time. - Neil.Lvanim...@gmail.com wrote: I print