scala - play framework type mismatch; found : Int required: String -
i beginner play framework , scala, i'm trying develop simple web project play on scala, i'm using eclipse ide!
my problem when change parameter of view template, despite fact pass "same new" parameter in action calling view, have error this:
type mismatch; found : int required: string
to simplify, assuming have view takes parameter @(value:string)
can call view action ok(html.say(value))
such value declared string.
in case, well!
but when change parameter of view take int @(value:int)
, call view action ok(html.say(value))
despite changed type of value string int, get:
compilation error: type mismatch; found : int required: string
i did clean on project didn't help. problem?
make sure compile play console, either typing compile
or reloading page (when running application). recompile template. can refresh eclipse make pick changes.
Comments
Post a Comment