|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
|
|
Question about megaprotouser S.errorI 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 something wrong or if anyone can replicate this. I tried to look at the source of ProtoUser.scala and found the testSignup, but did not see any obvious cause for this trouble in: def testSignup() { theUser.validate match { case Nil => actionsAfterSignup(theUser) S.redirectTo(homePage) case xs => S.error(xs) ; signupFunc(Full(innerSignup _)) } } I think that S.error should be the one giving me the errors in the <lift:msgs/> handler right? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.error2009/11/3 DFectuoso <santiago1717@...> My job: weiglewilczek.com
What exactly is a valid user in your case? def testSignup() { Yes. Cheers, Heiko -- My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorI 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...@...> wrote: > 2009/11/3 DFectuoso <santiago1...@...> > > > > > 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 > > What exactly is a valid user in your case? > > def testSignup() { > > > theUser.validate match { > > case Nil => > > actionsAfterSignup(theUser) > > S.redirectTo(homePage) > > > case xs => S.error(xs) ; signupFunc(Full(innerSignup _)) > > } > > } > > > I think that S.error should be the one giving me the errors in the > > <lift:msgs/> handler right? > > Yes. > > Cheers, > > Heiko > > -- > > My job: weiglewilczek.com > My blog: heikoseeberger.name > Follow me: twitter.com/hseeberger > OSGi on Scala: scalamodules.org > Lift, the simply functional web framework: liftweb.net You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.error2009/11/3 DFectuoso <santiago1717@...>
That's how it works. Go to http://174.143.152.248:8080/kix-1.0/ to see a live demo: Try to sign up and (thereafter) to login with invalid data. Go to http://github.com/hseeberger/kix/ and take a look at the User class (and object).
Heiko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorWow, its working allright, let me compare your code with mine, so far the only diff is that you are using the full error snippet <lift:Msgs showAll="true"> <lift:error_class>error</lift:error_class> <lift:notice_class>notice</lift:notice_class> <lift:warning_class>error</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...@...> wrote: > 2009/11/3 DFectuoso <santiago1...@...> > > > > > 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. > > That's how it works. > Go tohttp://174.143.152.248:8080/kix-1.0/to see a live demo: Try to sign > up and (thereafter) to login with invalid data. Go tohttp://github.com/hseeberger/kix/and take a look at the User class (and > object). > > Heiko You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorNicely designed site, just to go a bit off-topic, very clean. On Nov 4, 4:33 am, Heiko Seeberger <heiko.seeber...@...> wrote: > 2009/11/3 DFectuoso <santiago1...@...> > > > > > 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. > > That's how it works. > Go tohttp://174.143.152.248:8080/kix-1.0/to see a live demo: Try to sign > up and (thereafter) to login with invalid data. Go tohttp://github.com/hseeberger/kix/and take a look at the User class (and > object). > > Heiko You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.error2009/11/3 DFectuoso <santiago1717@...>
Then show me your Mapper class (and object) please ... Is there a way to override the "default password" (******) without Good question. Looking at MappedPassword I think it will be some work ... Heiko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorThank you. It's my contribution to the W-JAX Challenge where several web frameworks compete.
But to be honest: The others are really nicely designed ... Heiko
2009/11/3 Randinn <randinn@...>
-- Heiko Seeberger My job: weiglewilczek.com My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorYou can find my User.scala file in http://etherpad.com/someScalaCode (saved on rev 1). I need to add an EULA and thats it tho... i would like to keep it as simple as possible(i hate the idea of having html hardcoded in a model, and using signupFields is great! so my only real issues to solve is removing the "******" from the default form( i have no idea why the password would be prefilled in a sign up form) and the feedback from malformed emails. On Nov 3, 1:42 pm, Heiko Seeberger <heiko.seeber...@...> wrote: > Thank you. It's my contribution to the W-JAX Challenge where several web > frameworks compete. > But to be honest: The others are really nicely designed ... > > Heiko > > 2009/11/3 Randinn <rand...@...> > > > > > > > Nicely designed site, just to go a bit off-topic, very clean. > > > On Nov 4, 4:33 am, Heiko Seeberger <heiko.seeber...@...> > > wrote: > > > 2009/11/3 DFectuoso <santiago1...@...> > > > > > 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. > > > > That's how it works. > > > Go tohttp://174.143.152.248:8080/kix-1.0/tosee a live demo: Try to sign > > > up and (thereafter) to login with invalid data. Go tohttp:// > > github.com/hseeberger/kix/and take a look at the User class (and > > > object). > > > > Heiko > > -- > Heiko Seeberger > > My job: weiglewilczek.com > My blog: heikoseeberger.name > Follow me: twitter.com/hseeberger > OSGi on Scala: scalamodules.org > Lift, the simply functional web framework: liftweb.net You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorYes, 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...@...> wrote: > You can find my User.scala file inhttp://etherpad.com/someScalaCode > (saved on rev 1). I need to add an EULA and thats it tho... i would > like to keep it as simple as possible(i hate the idea of having html > hardcoded in a model, and using signupFields is great! so my only real > issues to solve is removing the "******" from the default form( i have > no idea why the password would be prefilled in a sign up form) and the > feedback from malformed emails. > > On Nov 3, 1:42 pm, Heiko Seeberger <heiko.seeber...@...> > wrote: > > > Thank you. It's my contribution to the W-JAX Challenge where several web > > frameworks compete. > > But to be honest: The others are really nicely designed ... > > > Heiko > > > 2009/11/3 Randinn <rand...@...> > > > > Nicely designed site, just to go a bit off-topic, very clean. > > > > On Nov 4, 4:33 am, Heiko Seeberger <heiko.seeber...@...> > > > wrote: > > > > 2009/11/3 DFectuoso <santiago1...@...> > > > > > > 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. > > > > > That's how it works. > > > > Go tohttp://174.143.152.248:8080/kix-1.0/toseea live demo: Try to sign > > > > up and (thereafter) to login with invalid data. Go tohttp:// > > > github.com/hseeberger/kix/and take a look at the User class (and > > > > object). > > > > > Heiko > > > -- > > Heiko Seeberger > > > My job: weiglewilczek.com > > My blog: heikoseeberger.name > > Follow me: twitter.com/hseeberger > > OSGi on Scala: scalamodules.org > > Lift, the simply functional web framework: liftweb.net You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorI think all you'd need to do is throw some CSS and Jquery in and you'll there :) On Nov 4, 6:42 am, Heiko Seeberger <heiko.seeber...@...> wrote: > Thank you. It's my contribution to the W-JAX Challenge where several web > frameworks compete. > But to be honest: The others are really nicely designed ... > > Heiko > > 2009/11/3 Randinn <rand...@...> > > > > > > > Nicely designed site, just to go a bit off-topic, very clean. > > > On Nov 4, 4:33 am, Heiko Seeberger <heiko.seeber...@...> > > wrote: > > > 2009/11/3 DFectuoso <santiago1...@...> > > > > > 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. > > > > That's how it works. > > > Go tohttp://174.143.152.248:8080/kix-1.0/tosee a live demo: Try to sign > > > up and (thereafter) to login with invalid data. Go tohttp:// > > github.com/hseeberger/kix/and take a look at the User class (and > > > object). > > > > Heiko > > -- > Heiko Seeberger > > My job: weiglewilczek.com > My blog: heikoseeberger.name > Follow me: twitter.com/hseeberger > OSGi on Scala: scalamodules.org > Lift, the simply functional web framework: liftweb.net You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.error2009/11/3 DFectuoso <santiago1717@...> Heiko
"password.must.set" is a key that will be looked up from the core lift properties. You can override these, but not on a single key base, you have to replace all.
But obviously this is a bug! The core lift properties should contain an entry. But they do not. Well, they do, but the key is "password.must.be.set" which is a ways better key IMHO. So the bug is in the Scala code of ProtoUser. I will open a ticket and fix it, but do not know if this will make it into M7.
-- My job: weiglewilczek.com My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorwell that seems great! I use the snapshot so if you finish that and want to make someone very happy, you can send me an example of how it ended up working and i will be very very thankful! The last piece of the puzzle is the "******" default value of the mappedPassword, since its part 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...@...> wrote: > 2009/11/3 DFectuoso <santiago1...@...> > > > > > 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 > > "password.must.set" is a key that will be looked up from the core lift > properties. You can override these, but not on a single key base, you have > to replace all. > > But obviously this is a bug! The core lift properties should contain an > entry. But they do not. Well, they do, but the key is "password.must.be.set" > which is a ways better key IMHO. So the bug is in the Scala code of > ProtoUser. I will open a ticket and fix it, but do not know if this will > make it into M7. > > Heiko > > -- > > My job: weiglewilczek.com > My blog: heikoseeberger.name > Follow me: twitter.com/hseeberger > OSGi on Scala: scalamodules.org > Lift, the simply functional web framework: liftweb.net You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.error2009/11/4 DFectuoso <santiago1717@...>
It is a bug in MappedPassword (not ProtoUser):
You will find it very soon in the snapshot. The last piece of the puzzle is the "******" default value of the Please open a ticket on the GitHub issue tracker, e.g. "Allow different default value for MappedPassword". Heiko My job: weiglewilczek.com My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.error2009/11/4 Heiko Seeberger <heiko.seeberger@...> Heiko Seeberger
My job: weiglewilczek.com My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorOn Wed, Nov 4, 2009 at 12:04 AM, Heiko Seeberger <heiko.seeberger@...> wrote:
It's not a bug, it's by design.
-- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.error2009/11/4 David Pollak <feeder.of.the.bears@...>
Well , issue 157 ("MappedPassword contains misspelled key for unset password") is a bug, but "******" as default value is by design, of course.
Heiko My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorI'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 a register/login system that is very easy to undertand for all user and i know that having a pre-filled value seems to be a "non- important" issue, still is one of the most voted things in my uservoice! At this moment i will override and create the html for the form to avoid having two fields prefilled with ******. On Nov 5, 2:59 pm, Heiko Seeberger <heiko.seeber...@...> wrote: > 2009/11/4 David Pollak <feeder.of.the.be...@...> > > It is a bug in MappedPassword (not ProtoUser): > > > > > It's not a bug, it's by design. > > Well , issue 157 ("MappedPassword contains misspelled key for unset > password") is a bug, but "******" as default value is by design, of course. > > Heiko > > My job: weiglewilczek.com > My blog: heikoseeberger.name > Follow me: twitter.com/hseeberger > OSGi on Scala: scalamodules.org > Lift, the simply functional web framework: liftweb.net You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorOn Thu, Nov 5, 2009 at 5:44 PM, DFectuoso <santiago1717@...> wrote:
If you do not like the way a particular feature is implemented in Lift, you can copy the source code and change the implementation (Lift's Apache 2 license allows for that). Lift is layered. You can change out pieces that don't suit your needs. You don't like the issues related to MegaProtoUser (like the whole templates in code thing), then copy the code into your user class and change the template calls to load the templates however you want. If you don't like how MappedPassword is implemented, then do your own implementation.
-- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Question about megaprotouser S.errorI just want to learn and understand why it is like that, i love lift and I keep doing different project with it. I DO understand i can change anything in different scales and layers and so far i have been able to solve any problem one way or another. Thank you. On Nov 5, 9:01 pm, David Pollak <feeder.of.the.be...@...> wrote: > On Thu, Nov 5, 2009 at 5:44 PM, DFectuoso <santiago1...@...> 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 override the full signup > > form's xhtml? > > If you do not like the way a particular feature is implemented in Lift, you > can copy the source code and change the implementation (Lift's Apache 2 > license allows for that). Lift is layered. You can change out pieces that > don't suit your needs. You don't like the issues related to MegaProtoUser > (like the whole templates in code thing), then copy the code into your user > class and change the template calls to load the templates however you want. > If you don't like how MappedPassword is implemented, then do your own > implementation. > > > > > > > I would like to think that i can start any project, extend proto user > > and have a register/login system that is very easy to undertand for > > all user and i know that having a pre-filled value seems to be a "non- > > important" issue, still is one of the most voted things in my > > uservoice! > > > At this moment i will override and create the html for the form to > > avoid having two fields prefilled with ******. > > > On Nov 5, 2:59 pm, Heiko Seeberger <heiko.seeber...@...> > > wrote: > > > 2009/11/4 David Pollak <feeder.of.the.be...@...> > > > > It is a bug in MappedPassword (not ProtoUser): > > > > > It's not a bug, it's by design. > > > > Well , issue 157 ("MappedPassword contains misspelled key for unset > > > password") is a bug, but "******" as default value is by design, of > > course. > > > > Heiko > > > > My job: weiglewilczek.com > > > My blog: heikoseeberger.name > > > Follow me: twitter.com/hseeberger > > > OSGi on Scala: scalamodules.org > > > Lift, the simply functional web framework: liftweb.net > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Surf the harmonics You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |