Hi,
I am developing using Play 2.0 now, and i have problem with Form:
If i use this code:
val testingForm = Form(
of (
"id" -> text,
"title" -> requiredText,
"content" -> requiredText,
"slug" -> requiredText
)
)
Above code works well, but i add new element, it always fail.
Example if i add "test":
val testingForm = Form(
of (
"id" -> text,
"title" -> requiredText,
"content" -> requiredText,
"slug" -> requiredText,
"test" -> requiredText
)
)
That code cause me got exception message:
...
overloaded method value of with alternatives: [A, B, C, D](a: (String, play.api.data.Mapping[A]), b: (String, play.api.data.Mapping[B]), c: (String, play.api.data.Mapping[C]), d: (String, play.api.data.Mapping[D]))play.api.data.Mapping[(A, B, C, D)] .
I don't really understand well when reading scala play.api docs, but I think the play.api.data.Mapping only accept maximum 4 elements? Is that correct?
Thanks
Best regards,
Isak Rickyanto
----------------------
BeritaTeknologi.com