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 < Now, which shows the correct in the rendered page, but the console is still using lift 1.0 Thanks. value Print: Hogge :: Empty
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
Post a Comment