I'm porting a Play application written in Java to Scala. I had no problems until I stuck with DynamicForm. I just can't find this class in the Scala version of Play. There is no such thing like DynamicForm. How would you port this code to Scala?!
DynamicForm data = form().bindFromRequest();The next problem arises when I use ObjectNode:
ObjectNode respJSON = Json.newObject();
//...
return ok(respJSON);
var respJSON = Json.newObject
//...
Ok(respJSON)
Cannot write an instance of org.codehaus.jackson.node.ObjectNode to HTTP response. Try to define a Writeable[org.codehaus.jackson.node.ObjectNode]
Anyone, who could help me?
Thanks in advance!
Stefano
import play.data.DynamicForm
//...
val data = new DynamicForm().bindFromRequest()
java.lang.RuntimeException: There is no HTTP Context available from here.
It depends of what you are actually trying to do.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
DynamicForm data = form().bindFromRequest();String foo = data.get("my-input-id");