Re: [Lift] **Potential breaking change**

2010-03-05 Thread Mads Hartmann Jensen
Tried to post this to lift-announce but I don't have permission - I did join the group though so not sure why. How do i optain permission? I think that Ross Mellgren is having the same issue Thanks Mads Hartmann Jensen On 04/03/2010, at 22.37, Mads Hartmann wrote: If 'blob' is not a keyword

[Lift] Newbie Q: how to append html on ajaxForm submission

2010-03-05 Thread Lukasz Kuczera
Hi Folks, I've hard time to figure out how to append html snippet after ajaxForm is submitted. I know how to make it in jQuery but i would prefer to have it in one place. My code is: http://pastebin.com/wgAXd2ag I would love to have AppendHtml(afterId: String, body: NodeSeq) method. -- You

[Lift] Re: Newbie Q: how to append html on ajaxForm submission

2010-03-05 Thread Lukasz Kuczera
So i've solved it on my own :D Using jQuery in Lift :D Lift is so complex but once you wrap your head around it is so easy :D http://pastebin.com/J5msUQ56 On Mar 5, 9:57 am, Lukasz Kuczera kuk...@gmail.com wrote: Hi Folks, I've hard time to figure out how to append html snippet after ajaxForm

[Lift] Re: Newbie Q: how to append html on ajaxForm submission

2010-03-05 Thread ced
There is an AppendHtml object in net.liftweb.http.js.jquery.JqJsCmds that generates a JsCmd. AppendHtml(my-element-id, spanappend me/span) Is this what you're looking for? On 5 Mrz., 09:57, Lukasz Kuczera kuk...@gmail.com wrote: Hi Folks, I've hard time to figure out how to append html snippet

[Lift] Re: Newbie Q: how to append html on ajaxForm submission

2010-03-05 Thread Lukasz Kuczera
Thanks ced, I've used something like: JqId(new-comment) JqAppend(pPosted By: {author}br/{text}/p) But AppendHtml is more eye pleasant :) On Mar 5, 11:04 am, ced docpom...@googlemail.com wrote: There is an AppendHtml object in net.liftweb.http.js.jquery.JqJsCmds that generates a JsCmd.

Re: [Lift] **Potential breaking change**

2010-03-05 Thread Indrajit Raychaudhuri
Mads/Ross, You have the requisite rights now. Feel free to post to lift-announce :) Cheers, Indrajit On 05/03/10 2:08 PM, Mads Hartmann Jensen wrote: Tried to post this to lift-announce but I don't have permission - I did join the group though so not sure why. How do i optain permission? I

[Lift] Customizing generated form elements without touching scala code

2010-03-05 Thread Julian Backes
Hi, I'm trying to get my first form in Lift running and I'm having the following problem: I use for example SHtml.text(..) to create a text input element. Unfortunately, this element has no specific class or id such that I can customize it using CSS or whatever. I know that I can add some

Re: [Lift] Customizing generated form elements without touching scala code

2010-03-05 Thread Jeppe Nejsum Madsen
On Fri, Mar 5, 2010 at 1:07 PM, Julian Backes julianbac...@googlemail.com wrote: Hi, I'm trying to get my first form in Lift running and I'm having the following problem: I use for example SHtml.text(..) to create a text input element. Unfortunately, this element has no specific class or id

[Lift] Re: Customizing generated form elements without touching scala code

2010-03-05 Thread Marius
I disagree with the unglyness you are talking about just because Snipets are UI elements. However you can preserve the attributes from the markup such as: def doit(xhtml: NodeSeq): NodeSeq = { bind(f, xhtml, text -% SHtml.text(name, println _) ) } and in the markup

[Lift] email validation configuration

2010-03-05 Thread GA
Hello guys, could you please let me know where I can find information about how to configure the email validation for the MegaProtoUser? I do not know how to tell Lift about our SMTP server, Authentication data, etc. I was searching in the wiki and this list but I could not find anything.

Re: [Lift] email validation configuration

2010-03-05 Thread Jeppe Nejsum Madsen
On Fri, Mar 5, 2010 at 2:21 PM, GA my_li...@me.com wrote: Hello guys, could you please let me know where I can find information about how to configure the email validation for the MegaProtoUser? I do not know how to tell Lift about our SMTP server, Authentication data, etc. I was

Re: [Lift] Re: Customizing generated form elements without touching scala code

2010-03-05 Thread Julian Backes
Thank you for your answer, also thanks to Jeppe who posted the same solution. I disagree with the unglyness you are talking about just because Snipets are UI elements. I already read that and although I don't want to start a discussion on this, I want to share my opinion with you: I already

Re: [Lift] Re: Newbie Q: how to append html on ajaxForm submission

2010-03-05 Thread David Pollak
On Fri, Mar 5, 2010 at 2:00 AM, Lukasz Kuczera kuk...@gmail.com wrote: So i've solved it on my own :D Using jQuery in Lift :D Lift is so complex but once you wrap your head around it is so easy :D Glad you found the answer... and yes... it's good to build your own JavaScript helpers for Lift.

Re: [Lift] email validation configuration

2010-03-05 Thread David Pollak
If you set the Mailer.authenticator in Boot, that will do authentication for mail sending. On Fri, Mar 5, 2010 at 5:33 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Fri, Mar 5, 2010 at 2:21 PM, GA my_li...@me.com wrote: Hello guys, could you please let me know where I can find

[Lift] Re: Lift security vulnerability

2010-03-05 Thread Dano
I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also observed that the Wizard example is still broken (paste binary characters into 'First Name' and then click the Next button). I have not

[Lift] Wow... Lift has some amazing stats

2010-03-05 Thread David Pollak
Folks, I just looked at Lift's stats on ohloh. ( http://www.ohloh.net/p/liftweb ) A couple of key items: Very large, active development team Over the past twelve months, 33 developershttp://www.ohloh.net/p/liftweb/contributorscontributed new code to Lift http://www.ohloh.net/p/liftweb. This

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread Naftoli Gugenheim
Can you reproduce the vulnerability in your own M3 app? - Danoolearydani...@gmail.com wrote: I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also

[Lift] Re: Lift security vulnerability

2010-03-05 Thread Dano
I can reproduce it in our application, but I think it is not necessarily due to Lift. This is what I am trying to sort out. We have client-side javascript which is sending JSON commands to the server and things blow up once things come back from the server. In this case, Lift is not responsible

[Lift] BSON support in lift-json

2010-03-05 Thread Tim Nelson
I finally had the opportunity to look into the couchdb code and I must say it is rather impressive. I would like to utilize the code in JSONRecord.scala in scamongo [1]. However, MongoDB uses a variation of JSON they call BSON, which they actually just published a spec [2] for, due to interest

Re: [Lift] Wow... Lift has some amazing stats

2010-03-05 Thread Timothy Perrett
w00t!! Go team - maybe one of these years we'll have a team meet ;-) Cheers, Tim On 5 Mar 2010, at 17:46, David Pollak wrote: Folks, I just looked at Lift's stats on ohloh. ( http://www.ohloh.net/p/liftweb ) A couple of key items: Very large, active development team Over the

Re: [Lift] BSON support in lift-json

2010-03-05 Thread Timothy Perrett
Probably a sub-ordinate module would be preferable... one that builds on the lift-json stuff and doesn't pollute the normal JSON usage. Joni, what are your thoughts? Cheers, Tim On 5 Mar 2010, at 17:59, Tim Nelson wrote: I finally had the opportunity to look into the couchdb code and I

[Lift] Re: Wow... Lift has some amazing stats

2010-03-05 Thread Marius
I'm sooo proud being a little part of it ;) On 5 mar., 19:46, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I just looked at Lift's stats on ohloh.  (http://www.ohloh.net/p/liftweb) A couple of key items: Very large, active development team Over the past twelve months, 33

Re: [Lift] BSON support in lift-json

2010-03-05 Thread Tim Nelson
I definitely agree with keeping the BSON code separate or possibly having a strict JSON mode. Tim On Fri, Mar 5, 2010 at 12:13 PM, Timothy Perrett timo...@getintheloop.eu wrote: Probably a sub-ordinate module would be preferable... one  that builds on the lift-json stuff and doesn't pollute

[Lift] Re: Lift security vulnerability

2010-03-05 Thread Dano
I think I would like to amend my last post by asking if it is possible that the lift-json library support the ability to strip out binary characters since many times an application uses the results of JSON operations to render back to the client. Thanks. Dan On Mar 5, 9:53 am, Dano

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
On Fri, Mar 5, 2010 at 9:32 AM, Dano olearydani...@gmail.com wrote: I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also observed that the Wizard example is still broken (paste binary

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
On Fri, Mar 5, 2010 at 10:26 AM, Dano olearydani...@gmail.com wrote: I think I would like to amend my last post by asking if it is possible that the lift-json library support the ability to strip out binary characters since many times an application uses the results of JSON operations to

Re: [Lift] Re: Wow... Lift has some amazing stats

2010-03-05 Thread Timothy Perrett
Me too Marius... what the team has achieved is absolutely amazing. Without a shadow of a doubt being part of this amazing team has changed my life and im very, very proud to be a part of it. Long may it continue :-) Cheers, Tim On 5 Mar 2010, at 18:15, Marius wrote: I'm sooo proud being a

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread Timothy Perrett
Agreed - it works fine even with double byte characters... Cheers, Tim On 5 Mar 2010, at 18:41, David Pollak wrote: I don't know what you mean by pasting binary characters -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send

Re: [Lift] Re: LiftRules.rewrite, 404 error

2010-03-05 Thread Timothy Perrett
Why do you have // in the URL? Cheers, Tim On 4 Mar 2010, at 13:34, Gang wrote: Could somebody answer my question? If it's too stupid a question to answer, please let me know that too. It just seems to me that unless I add a link to SiteMap, the links(a tag) in my page just return 404.

Re: [Lift] Re: Response Optimizations too aggressive

2010-03-05 Thread Timothy Perrett
This really needs to go on the wiki! gold! Cheers, Tim On 4 Mar 2010, at 17:50, David Pollak wrote: On Thu, Mar 4, 2010 at 9:27 AM, aw anth...@whitford.com wrote: On Mar 4, 6:56 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How about LiftRules.stripComments.default.set( () =

[Lift] Re: File Download

2010-03-05 Thread DavidV
I have recreated a number of StreamingResponse methods from both the Loop link above and the Lift book and I still can't seem to get the desired effect. I have been able to get a PlainTextResponse to work by using LiftRules.dispatch in the Boot, like so: LiftRules.dispatch.prepend {

[Lift] Re: Lift security vulnerability

2010-03-05 Thread Dano
I should have been more clear on 'pasting binary characters'. At the url http://www.webmasterworld.com/forum39/1098.htm, they talk about an issue with binary characters. I copied the 'square character' text (which I have confirmed are binary) from that page into the Wizard example on the demo

Re: [Lift] BSON support in lift-json

2010-03-05 Thread Ross Mellgren
The JSON stuff is mostly just an AST and encoding/decoding from the JSON wire format is almost just an addon. Then, it would be a matter of adding AST objects for those new things. Could be a use for phantom types ;-) I'd be interested to hear Joni's view on how it might fit, since he's the

Re: [Lift] Re: Lift security vulnerability

2010-03-05 Thread David Pollak
On Fri, Mar 5, 2010 at 12:06 PM, Dano olearydani...@gmail.com wrote: I should have been more clear on 'pasting binary characters'. At the url http://www.webmasterworld.com/forum39/1098.htm, they talk about an issue with binary characters. I copied the 'square character' text (which I have

[Lift] passwordReset bug or misunderstanding?

2010-03-05 Thread David Dearing
I'm a relative Lift newbie, but encountered something that seems like an error or could just be a misunderstanding on my part. In MetaMegaProtoUser's passwordReset(id: String) method, there is a call to user.uniqueId.reset().save that occurs when the page loads and a user is found. Since the

[Lift] Lift or Scala first?

2010-03-05 Thread Mini Naim
Hi guys: I have a simple question, it's necessary to learn Scala first? or i can go with Lift framework, without learn Scala language? Thanks -- 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.

Re: [Lift] Lift or Scala first?

2010-03-05 Thread Mads Hartmann Jensen
I would say it would be very wise to get the basics of scala before diving into Lift :) On 05/03/2010, at 18.19, Mini Naim wrote: Hi guys: I have a simple question, it's necessary to learn Scala first? or i can go with Lift framework, without learn Scala language? Thanks -- You

[Lift] Re: Lift or Scala first?

2010-03-05 Thread Lukasz Kuczera
As i posted in other thread lift is uber complex until you wrap your head around it then its stupid simple. Scala is static so there is not as much magic happening around as in groovy/ruby. But on the other hand if you have any functional background it might be the good option. On Mar 5, 6:19 pm,

[Lift] Re: Lift or Scala first?

2010-03-05 Thread Peter Robinett
Yes, yes, yes! David's book was a fantastic guide for me as I learned Scala and Lift at the same time. Going back to the original question, I've learned a language and a framework at the same time twice (Lift and Scala, Pylons and Python) and I'm torn. On one hand having lots of high quality

[Lift] Re: LiftRules.rewrite, 404 error

2010-03-05 Thread Gang
That was just a typo, when I manually typed in the word app-context- path. Here is the real one, http://localhost:8080/com.bestem_inventory_war_1.0-SNAPSHOT/images/CBDU-1098-BCV?F4219154671502KB=_ I compared this URL with the one coming with CRUDify, the Edit link. There is nothing different

[Lift] Re: Scaladocs

2010-03-05 Thread aw
Is there a way to get a consolidated scaladocs for 2.0-M3, just like http://scala-tools.org/scaladocs/liftweb/1.0/ ? The above link, for example, is just for common. It is a major pain to have to traverse through the various projects finding the right package, and the 1.0 docs are too out of date.

Re: [Lift] Re: Lift or Scala first?

2010-03-05 Thread David Pollak
Try working through: http://liftweb.net/docs/getting_started/mod_master.html If you find yourself confused about stuff at the language/syntax level, then by all means, buy my book. ;-) On Fri, Mar 5, 2010 at 2:42 PM, Peter Robinett pe...@bubblefoundry.comwrote: Yes, yes, yes! David's book was

[Lift] 2.0-M3 SLF4J Logging

2010-03-05 Thread aw
I just upgraded my code to M3 and also replaced my LOGGERs with the new Loggable trait. I am using LogBack (not Log4j). I thought that with 2.0-M3, the following call would be deprecated and no longer necessary: Slf4jLogBoot.enable() Alas, I discovered that it is still mandatory, otherwise I

[Lift] 2.0-M3 JQuery 1.4

2010-03-05 Thread aw
I understand from Issue 363 that I can control which version of JQuery to use. I generally prefer the latest and greatest, and I see that I am using 1.3.2, so I want to set it to 1.4.2. According to this thread:

[Lift] superficial first impressions from a rails junkie

2010-03-05 Thread cageface
Like many other web developers, I abandoned some heavyweight Java web frameworks about 6 years ago for Rails and have been working pretty much exclusively in Rails ever since. However, I've always had a secret lust for functional languages so when I heard about Scala and Lift I decided to take a

[Lift] Re: Problem with FocusOnLoad and passing attributes through bind

2010-03-05 Thread Luke Nezda
Hello, Bumping my own post since I hadn't received any feedback on this in a few weeks. Maybe I didn't describe my issue well ? Thanks in advance, - Luke On Feb 21, 8:12 pm, Luke Nezda lne...@gmail.com wrote: Hello, I am new to Scala and Lift.  I am having a problem using 2 features

Re: [Lift] superficial first impressions from a rails junkie

2010-03-05 Thread Warren Henning
tl;dr Want a cookie for your efforts? If you don't like Lift, don't use it. Problem solved. Hooray, turkey for everyone! -- 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

[Lift] Re: superficial first impressions from a rails junkie

2010-03-05 Thread ngocdaothanh
I think with its power and number of developers, Lift can have a better home page. At least better than this because it only has one developer: http://nitrogenproject.com/ -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email

[Lift] Re: Problem with FocusOnLoad and passing attributes through bind

2010-03-05 Thread Marius
On 22 feb., 04:12, Luke Nezda lne...@gmail.com wrote: Hello, I am new to Scala and Lift.  I am having a problem using 2 features together which seem to work fine individually.  Here's a simplified piece of the code: class Ajax {   def someResult(q:String) = spansome results for query

[Lift] Re: superficial first impressions from a rails junkie

2010-03-05 Thread Marius
Yes we know ... we are working to change the Lift website but it's going slower than I expected to. On 6 mar., 08:34, ngocdaothanh ngocdaoth...@gmail.com wrote: I think with its power and number of developers, Lift can have a better home page. At least better than this because it only has one