Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing a plain old fashioned form #31

Open
d6y opened this issue Mar 16, 2012 · 1 comment
Open

Implementing a plain old fashioned form #31

d6y opened this issue Mar 16, 2012 · 1 comment
Assignees
Labels

Comments

@d6y
Copy link
Owner

d6y commented Mar 16, 2012

Problem:

You want a regular HTML form and process the values on the server.

Solution:

Use StatefulSnippet and instance vars.

(insert example here)

Discussion:

Because... https://groups.google.com/forum/?fromgroups#!topic/liftweb/2pxQf4VMk-c and the links from it

RequestVars are good for sharing between snippets. Don't work for comet.
"The purpose of RequestVars is to share state across snippets during a single request. I advise against using RequestVars when snippet instance variables are available." (dpp in https://groups.google.com/forum/?fromgroups#!msg/liftweb/gTkrnu8588o/dxaKFPrI5y4J)

Mention Wizard as another useful way to handle simple form stuff?

See also

4.3 Stateful Snippets
http://simply.liftweb.net/index-4.3.html

4.4 RequestVars
http://simply.liftweb.net/index-4.4.html

@d6y
Copy link
Owner Author

d6y commented Mar 21, 2012

And find a way to link to: http://tech.damianhelme.com/understanding-lifts-requestvars

@ghost ghost assigned d6y Apr 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant