I... stuck o.O
I've params in foreign request:
param[62537]=abc;
param[20356]=cde;
param[92837]=fgh;
And I'm looking for any way for binding them ie. with DynamicForm
.
I can get param with:
DynamicForm dynamicForm = form().bindFromRequest();
String firstParam = dynamicForm.field("param[62537]").value();
But of course I dont know the indexes as they are selected within the client-side
form created by the independent app.
When I'm trying to use:
String[] firstParam = dynamicForm.field("param").value(); // it's NULL
String[] firstParam = dynamicForm.get("param"); // it's NULL
or even
String[] params = request().body().asFormUrlEncoded().get("param");
// it's still NULL
Did I miss something really basic, or Play just can't do that?