scala - lift net.liftweb.http.S#param doesnt works like wiki says -


I try to copy Wikipedia in example examples

For example HelloForm2.scala

"submit" - & gt; Submit (? ("Send"), () = & gt; {println ("value:" + + + "::" absolute "(" johnfold ")},

Always print

  Price: full (hogehoge) :: Blank "even if I set which object" Expands RequestVar (Full ("World")  

Am I doing something wrong?

I am sorry to post the complete code, I already try the other way down the wiki. Html

  lift: = "content" on "default" Ground & gt; & lt; h2 & gt; Welcome to Your Project! & Lt; / h2 & gt; Lift: HelloWald.show form = "Post" & gt; Hello & lt; hello: Which /> ; label = "whoField" & gt; Who: & lt; / label & gt; hello: johfild / & gt; hello: deposit />     

and < class hallowld {object that extends requestVar (full ("world"); DEF show (XHTML: nodesec): nodesec = {bind ("Hello", XHTML, "Joefill E "- & gt; Text (Jo.OpenAir (""), V => Joe (full)% ("" "" "" "-" 10 ")% (" id "->" whoField ") , "Submit" - & gt; Submit (? ("Send"), () = & gt; {println ("value:" + J. Open ("") + "::" Ultimate ("Jofield" ), "Joe" - & gt; Joe.OpenAir ("")}

Now, which shows the correct in the rendered page, but the console is still value Print: Hogge :: Empty

using lift 1.0

Thanks.

You also have to change that code, as in the example in the wiki page (I , V = & gt; "size" - & gt; "10")% ("id" -> "whoField"), "submit" - & gt; submit (? ("Send"), ( } = & Gt; {println ("value:" + J. Open ("") + "::" the ultimate ("johnfield")}}, "joe" - & gt; joe.penner ("")) < / Code>

Note that Joefield is very different defined.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -