Rise: How to Create Forms with Design Templates?
As a test, I am trying to create a form in an elevator with a design template. I am using Lift 2.5
I've already managed to create a working form using forForm, but I'm just looking into all the possible ways.
My html file contains the following code:
...
<span class="lift:Util.entry?form=post">
<span id="etitle"></span>
<span id="ebody"></span>
<span id="esubmit"></span>
</span>
...
And in my Util.scala I have defined an entry fragment as shown below:
def entry = {
"#etitle *" #> SHtml.text(title, title = _)
"#ebody *" #> SHtml.text(body, body = _)
"#submit *" #> SHtml.submit("Save", saveEntry)
}
All spans remain empty; What am I doing wrong?
Thank!
+3
source to share