i tried to put custom attributes in scala code
but still its nt working. Auto calculation is'nt happening yet.
my view source in browser shows <form method="post" action="/mop">
<fieldset> <legend>Addition</legend>
<pre><p>text1 :<input name="F567656735301UY5" type="text" value="" />:
1</p></pre>
<pre><p>Text2 :<input name="F567656735302UA4" type="text" value="" /
></p></pre>
<pre><p>result :<input name="F567656735303ZCZ" type="text"
value="" /></p></pre>
<input name="F567656735306I01" type="submit" value="ADD" />
</fieldset>
</form>
and my modified snippet code is :
bind("form", xhtml,
"text1" -> SHtml.text(text1, text1= _,"name"-
>"sum"),
"text2" -> SHtml.text(text2,text2 = _,"id"-
>"sum"),
"result" ->SHtml.text(result, result = _, "id"-
>"totalsum","name"->"totalsum"),
"submit" -> SHtml.submit(add, addition))
any ideas where am i going wrong or missing something??
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.