Hello,
> What's the purpose of RequestVars and StatefulSnippet? I thought the
> values were retained anyway through POST. That is, on submit, the
> functions "desc = _" and "amount = _" were executed and the so the
> state was kept...
>
> Are those functions only executed after the bind is comple
Hi,
I'm reading the lift book about forms, and in reference to this code:
def add (xhtml : NodeSeq) : NodeSeq = {
var desc = ""
var amount = "0"
def processEntryAdd () { ... }
bind("entry", xhtml,
"description" -> SHtml.text(desc, desc = _),
"amount" -> SHtml.text(amount, amount = _),
"submit"