Skip to content

Implementing a plain old fashioned form #31

@d6y

Description

@d6y

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions