[Lift] Re: Question about megaprotouser S.error

2009-11-05 Thread DFectuoso
I'm sorry to keep picking on this but i want to undertand, why would MappedPassword have a default value that i can't override and that is shown to user with ProtoUser if i don't override the full signup form's xhtml? I would like to think that i can start any project, extend proto user and have

[Lift] Rendering a template bit

2009-11-05 Thread DFectuoso
I want to do the following pattern, i don't know how(or if its possible) to do it in lift: - I want any part of my code to call a Site.render() where site is a model and render is a function inside that model that will print it the information - I want the xhtml to be in a html file so that any

[Lift] Re: Question about megaprotouser S.error

2009-11-05 Thread DFectuoso
feeder.of.the.be...@gmail.com wrote: On Thu, Nov 5, 2009 at 5:44 PM, DFectuoso santiago1...@gmail.com wrote: I'm sorry to keep picking on this but i want to undertand, why would MappedPassword have a default value that i can't override and that is shown to user with ProtoUser if i don't

[Lift] Re: Rendering a template bit

2009-11-05 Thread DFectuoso
/ Then in YourSnippet.scala: class YourSnippet {   def foo(xhtml: NodeSeq) = Site.render() } Make sure render returns a NodeSeq. -harryh On Nov 5, 9:35 pm, DFectuoso santiago1...@gmail.com wrote: I want to do the following pattern, i don't know how(or if its possible) to do it in lift

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
I would expect that any time the form fails to validate(try clicking submit without typing a password or a valid email in hellolift) i would get a message saying what is wrong. On Nov 3, 12:58 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/11/3 DFectuoso santiago1...@gmail.com

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
Yes, changing the binding to the full errors,notices and warning fixed it, now i just need to override the messages on fail(don't know how to change those password.must.set and the default password) and i'll be over this signup thing On Nov 3, 2:49 pm, DFectuoso santiago1...@gmail.com wrote

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
/lift:warning_class /lift:Msgs in the template, while im doing a lift:Msgs/ Is there a way to override the default password (**) without making all the html of the signup page? On Nov 3, 11:33 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/11/3 DFectuoso santiago1

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
frameworks compete. But to be honest: The others are really nicely designed ... Heiko 2009/11/3 Randinn rand...@gmail.com Nicely designed site, just to go a bit off-topic, very clean. On Nov 4, 4:33 am, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/11/3 DFectuoso

[Lift] Re: Question about megaprotouser S.error

2009-11-03 Thread DFectuoso
of the mappedPassword and not of the ProtoUser. And its a val, i don't know how to override it. What is the reason of this default value? On Nov 3, 11:43 pm, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/11/3 DFectuoso santiago1...@gmail.com Yes, changing the binding to the full errors

[Lift] Question about megaprotouser S.error

2009-11-02 Thread DFectuoso
I am using MegaProtoUser in my user model and a couple of users reported they do not get any kind of feedback if they don't input a valid user in the Sign Up form, i can see the same issue in hellolift and other lift apps out there that is also using this module. I don't know if I am doing

[Lift] API data linked to a user

2009-10-07 Thread DFectuoso
I'm doing a prototype (learning a little bit more of everything) just for fun using lift and a Firefox extension to understand the usual infrastructure of a delicious api kinda thing. Right now i have the communication from the FFext to a restApi in scala (and it was painless to do it =) ), but

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-16 Thread DFectuoso
That seems like a logical reason why this is like this, but if i open 2 tabs of http://demo.liftweb.net/, both tabs start to send ajax request every 100ms, that is 20 ajax request per second, 72k per hour, so if an app had 100 crazy users who happen to open 2 tabs of the app (this happens to me a

[Lift] Crazy idea for lift's mega proto user: admin panel.

2009-09-07 Thread DFectuoso
I was thinking about how wonderful it is to get a login/register/ forgotPassword functionality with mega proto user and how it could become even better with a good tool for creating an admin section. I'm just adding the idea here so maybe if other people find value it could be considered for

[Lift] Re: Problem building my app in Windows

2009-08-23 Thread DFectuoso
traveling laptop is a Windows machine.  I have not experienced any problems with Lift, Scala, or Maven on Windows. On Sat, Aug 22, 2009 at 10:08 PM, DFectuoso santiago1...@gmail.com wrote: Hi, i have been working in linux and mac and having a wonderful time with mvn and everything lift's got

[Lift] Problem building my app in Windows

2009-08-22 Thread DFectuoso
Hi, i have been working in linux and mac and having a wonderful time with mvn and everything lift's got to offer =). Sadly i want to teach lift to a person who uses Windows as he's only OS, so i am trying to configure hes computer, neither him or me are experts on this OS. I installed java 1.6

[Lift] Re: Post form and return file?

2009-08-04 Thread DFectuoso
a link that contains the content? Or do you mean once the user clicks on 'submit' on the agree to these terms, the user immediately receives an file? On Mon, Aug 3, 2009 at 9:23 PM, DFectuoso santiago1...@gmail.com wrote: I'm working on some landing pages that need to capture some

[Lift] Post form and return file?

2009-08-03 Thread DFectuoso
I'm working on some landing pages that need to capture some information and after getting that, i will let the user download a file. The problem is that those files need to be protected so, they cannot be downloaded without submitting the form. So hosting them in a url-accesible way seems like a

[Lift] Re: Simple Javascript question(from a lift snippet of course...)

2009-07-30 Thread DFectuoso
On Jul 30, 8:13 am, DFectuoso santiago1...@gmail.com wrote: This is probably trivial but can't seem to find the lifty way... without hand rolling javascript What is the best way to generate(in the snippet) a javascript command to be run on the window.onload event? Thank you very much you

[Lift] Re: Getting Started tutorial - not understanding some syntax

2009-07-30 Thread DFectuoso
Viktor, that was a great explanation, im sure ben will apraciate that kind of teaching =) A follow up question that just made me wonder, what is the diference between val square = (x : Int) = x * x and def square(x:Int):Int = x * x ? On Jul 30, 1:49 pm, Viktor Klang viktor.kl...@gmail.com

[Lift] Simple Javascript question(from a lift snippet of course...)

2009-07-29 Thread DFectuoso
This is probably trivial but can't seem to find the lifty way... without hand rolling javascript What is the best way to generate(in the snippet) a javascript command to be run on the window.onload event? Thank you very much you divine and infinite source or lift knowledge AKA lift google group

[Lift] Re: Hear podcast interview with David Pollack about Lift

2009-07-28 Thread DFectuoso
Cheers! That was a great podcast! On Jul 28, 11:48 am, David Pollak feeder.of.the.be...@gmail.com wrote: I had a great time on the podcast... the pondjumpers are a cool pair of dudes. On Mon, Jul 27, 2009 at 11:40 AM, Goldfish gregt...@mindspring.com wrote:

[Lift] Re: Lift runtime stats snippet

2009-07-28 Thread DFectuoso
Funny thing to display in a website Mixing that with the runmode and displaying a div with that information could be useful for development(im doing this with twitter api request limit status, i will add it there =) ) On Jul 28, 5:18 pm, David Pollak feeder.of.the.be...@gmail.com wrote: This

[Lift] Re: S.getHeaders, could i get some examples?

2009-07-21 Thread DFectuoso
is for retrieving headers that are set in the *response*, not the request. I can update the docs to make that more clear, although it seems like this is confusing. Perhaps we should make a getRequestHeader method. Thoughts? Derek On Mon, Jul 20, 2009 at 7:49 PM, DFectuoso santiago1...@gmail.com

[Lift] S.getHeaders, could i get some examples?

2009-07-20 Thread DFectuoso
Im trying to get information about the browser the user is using and wanted to get some working snippets around S.getHeaders. Can't get it to work ( S.getHeaders(List((User-Agent,))) returns (User-Agent, )). I guess I'm not calling it right. --~--~-~--~~~---~--~~

[Lift] Re: S.getHeaders, could i get some examples?

2009-07-20 Thread DFectuoso
20, 2009 at 4:20 PM, DFectuoso santiago1...@gmail.com wrote: Im trying to get information about the browser the user is using and wanted to get some working snippets around S.getHeaders. Can't get it to work ( S.getHeaders(List((User-Agent,))) returns (User-Agent, )). I guess I'm

[Lift] Nice 404's?

2009-07-14 Thread DFectuoso
How can I implement nice 404's so instead of getting The Requested URL /dsdsa was not found on this server I Could have some HTML there? Pretty simple question =) (If there's a tutorial or documentation about this out there just point me there and ill serve myself, sorry for a simple post I

[Lift] Re: Nice 404's?

2009-07-14 Thread DFectuoso
I don't know how i missed that wiki page I think : // Redirect LiftRules.uriNotFound.prepend{ case (req, _) = PermRedirectResponse(404, req) } Is all i needed =) And yes the entry is understandable enought. Thanks! On Jul 14, 5:04 pm, Xavi Ramirez xavi@gmail.com wrote: Here's a

[Lift] Snippet knowing all the possible parameters?

2009-07-14 Thread DFectuoso
I don't know if its possible, but lift have surprised me so many times so far that it worth to ask. I have a html lift binding that i would like to place on several places of my web application like: lift:Foo.Bar variable=value/ lift:Foo.Bar variable=value1/ lift:Foo.Bar variable=value2/ Is

[Lift] http://wiki.liftweb.net request

2009-07-11 Thread DFectuoso
How can people get editing power on the wiki? Is it intended to be used as a (real) wiki? Who is responsable right now for hosting that and keeping it up? I was fizzling around today with mySql and lift following the advice there and decided I would like to expand the article with some problems

[Lift] Re: Background jobs

2009-07-10 Thread DFectuoso
On Jul 9, 5:27 pm, Vlad Seryakov vserya...@gmail.com wrote: I am building Web application using Lift (my first one) which is the port of existing Tcl/Aolserver based application. In the existing one i have two parts: Web and backend. Backedn part consists of jobs running in the background

[Lift] Re: Code Review for Unique Key Constraints

2009-07-10 Thread DFectuoso
I for one would like to say: Cool! Thanks! If i need unique indexes in the next couple of weeks i'll get this baby to the war( .war thats it ) =) On Jul 9, 11:30 am, Calen Pennington calen.penning...@gmail.com wrote: As mentioned is this issue (http://github.com/dpp/liftweb/issues#issue/19),

[Lift] Actor and clusters?

2009-07-10 Thread DFectuoso
I'm hosting some experiments on Stax and right now im pondering over the idea of checking out how to have a database backed session so the SessionVars work in a cluster of 5 boxes; With that in mind, have anyone worked with actors and clustering? Is there some documentation around that? should it

[Lift] Re: Typesafe JSON builder?

2009-07-10 Thread DFectuoso
I've read some stuff about Jorge Ortiz's Json Parser and how its super type safe, i guess you could use that same logic to create your builder (and I would not be surprised if theres something like that laying around in Lift). I hope if there is, someone will point you in the right direction, all

[Lift] Re: Actor and clusters?

2009-07-10 Thread DFectuoso
to be processed by the same node. IMHO using Lift apps in a cluster env. without sticky sessions can be a very tricky thing to achieve. Br's, Marius On Jul 10, 6:32 am, DFectuoso santiago1...@gmail.com wrote: I'm hosting some experiments on Stax and right now im pondering over the idea of checking

[Lift] Re: Actor and clusters?

2009-07-10 Thread DFectuoso
Cool, thanks, this pretty much solves the question =) On Jul 10, 12:54 am, marius d. marius.dan...@gmail.com wrote: On Jul 10, 10:40 am, DFectuoso santiago1...@gmail.com wrote: Thanks, that was very useful, to enable sticky variables i would do something like (explain herehttp

[Lift] Speeding load time; liftAjax.js and other javascript minified?

2009-07-10 Thread DFectuoso
I dont know how liftAjax.js is generated, or if it changes or not, also I have no idea (if it regenerated) how it could be minified, and I know that minification seem like a micro-optimization but... With just GZipping and Javascript minification working together, the load time dropped from 16

[Lift] Re: Speeding load time; liftAjax.js and other javascript minified?

2009-07-10 Thread DFectuoso
liftAjax.js during the build of lift... marius is probally the best man for this as this stuff is pretty much his baby. Cheers, Tim On Jul 10, 9:00 am, DFectuoso santiago1...@gmail.com wrote: I dont know how liftAjax.js is generated, or if it changes or not, also I have

[Lift] Re: Speeding load time; liftAjax.js and other javascript minified?

2009-07-10 Thread DFectuoso
during the build of lift... marius is probally the best man for this as this stuff is pretty much his baby. Cheers, Tim On Jul 10, 9:00 am, DFectuoso santiago1...@gmail.com wrote: I dont know how liftAjax.js is generated, or if it changes or not, also I have no idea

[Lift] Re: Actor and clusters?

2009-07-10 Thread DFectuoso
wrote: On Fri, Jul 10, 2009 at 12:40 AM, DFectuoso santiago1...@gmail.comwrote: Thanks, that was very useful, to enable sticky variables i would do something like (explain here http://wiki.stax.net/w/index.php/Application_Clustering ) that? So bottom line? An actor can send a message

[Lift] Pick n random elements from a list?

2009-07-08 Thread DFectuoso
Hi! I have a list, lets say its List.range(1,100) and i want to pick n random elements from it. Basicly I know that i can create n diferente randon numbers inside the limits and pick each element, but that would look something like this store List.range(1,100); store randonNumbers generated by

[Lift] Re: Web service with DB access - Lift required?

2009-07-08 Thread DFectuoso
Since i (personally) have no background in java, and have no idea how to get a request in a container(such as tomcat or jetty) to call me code inside a war file... if I where you i would set up a very simple lift app(it will take care many things like the db connection and other stuff). Keep in

[Lift] Re: license expired

2009-07-08 Thread DFectuoso
The license of javaRebel packed with lift expired a couple of days ago, there's already a couple of solutions (you can read all about it http://groups.google.com/group/liftweb/browse_thread/thread/f78ccc29771e7a6a/6786c9be242b6f06?lnk=gstq=license#6786c9be242b6f06 here) The best solution, for

[Lift] Re: Overriding a lazy val and super?

2009-07-08 Thread DFectuoso
MegaFoo extends Foo {   lazy val bar = Hello } trait SuperMegaFoo extends MegaFoo {   override lazy val bar = Super Duper } println((new SuperMegaFoo{}).bar)  // Super Duper On Tue, Jul 7, 2009 at 11:46 PM, DFectuoso santiago1...@gmail.com wrote: I'm getting a little bit confused

[Lift] So, how to get from format to hosting a lift app?

2009-06-29 Thread DFectuoso
I'm having a lot of trouble getting some code into production in my wiredtree VPS where i use apache and other stuff; so I decided to leave that host alone. I started playing with comet and some dispatch hacks that dont work on the GAE; so I decided to leave GAE alone. So I need a new hosting to

[Lift] Re: So where is that OAuth?

2009-06-22 Thread DFectuoso
got the chance to add it. Br's, Marius On Jun 21, 9:29 am, DFectuoso santiago1...@gmail.com wrote: Im trying to integrate OAuth (with twitter) in one of my projects... and i saw the lift-oauth, but i cant find the code, documentation or examples around this module; so i guess either its

[Lift] Re: So where is that OAuth?

2009-06-22 Thread DFectuoso
Well i will start working on that tonight(after work of course) and keep you guys updated! Cheers! On Jun 22, 8:59 am, marius d. marius.dan...@gmail.com wrote: On Jun 22, 3:25 am, DFectuoso santiago1...@gmail.com wrote: Well i went ahead and learn a lot from the lift-openId implementation

[Lift] Re: Jetty and Apache

2009-06-21 Thread DFectuoso
memory footprint.  On my servers, I run nginx at port 80 and proxy to apache for php sites. On Jun 20, 2009 3:11 PM, DFectuoso santiago1...@gmail.com wrote: I have a VPS in wiredtree where i would like to run a scala/lift application with jeety in a server that is running a LAMP stack. I want

[Lift] Re: Jetty and Apache

2009-06-21 Thread DFectuoso
80 and proxy to apache for php sites. On Jun 20, 2009 3:11 PM, DFectuoso santiago1...@gmail.com wrote: I have a VPS in wiredtree where i would like to run a scala/lift application with jeety in a server that is running a LAMP stack. I want to use comet actors so i will be using the long http

[Lift] Re: your first Lift application on GAE/J

2009-06-21 Thread DFectuoso
You sir, you rock!!! Thanks for this awesome tutorial! On Jun 8, 7:28 pm, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Mon, Jun 8, 2009 at 11:38 PM, Amit Kumar Vermacdac.a...@gmail.com wrote: $ mvn package ... ---  T

[Lift] So where is that OAuth?

2009-06-21 Thread DFectuoso
Im trying to integrate OAuth (with twitter) in one of my projects... and i saw the lift-oauth, but i cant find the code, documentation or examples around this module; so i guess either its somewhere else or people is doing their twitter integrations with other class(maybe java)... So what are

[Lift] Jetty and Apache

2009-06-20 Thread DFectuoso
I have a VPS in wiredtree where i would like to run a scala/lift application with jeety in a server that is running a LAMP stack. I want to use comet actors so i will be using the long http hack and i dont know if that would be important. So what options do i have? How can i achieve this? I

[Lift] Very basic questions

2009-06-18 Thread DFectuoso
Hi! I'm starting to use lift/scala(I don't know either) and already I have a couple of (very very basic) questions. I'm reading The definitive guide to lift and even tho it's been enough to actually understand some of the key elements of a lift application I am having some problems understanding