SHtml's functions rely on autogenerated names to work. Among other things it makes sites more secure. If you need a custom name, don't use SHtml. Rather output an xml element manually, either inline or via a template, and use S.param to get the URL query parameter when the form is submitted. It returns a Box that's empty when the parameter does not exist and Full when it does.
------------------------------------- rk<[email protected]> wrote: I'm new to Scala/Lift, i have a question reg SHtml.Text, If i have the following code bind("entry",xhtml, "something" -> SHtml.text(something, something = _), "submit" -> SHtml.submit("Add", processAdd)) i can get the value entered within processAdd for ex, println("Val..." + something) works fine.. But if i want to have a fixed name for the input something like - bind("entry",xhtml, "something" -> SHtml.text(something, something = _,"name"- >"something"), "submit" -> SHtml.submit("Add", processAdd)) the above code has "name" attr, how should i get the entered value from the form ? using S.attr("something") ? i tried this but doesn't work. Am i doing something wrong.. Thanks -- 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. -- 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.
