--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/20IfqP7HRIsJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
If I remember correctly, the naming you want to use was not supported in Play 2.0, you had to set indexes in your input names: <input name="type[0]" …
My form looks like this:<input type="checkbox" name="type[]" class="" value="all-types"><input type="checkbox" name="type[]" class="" value="platform">
<input type="checkbox" name="type[]" class="" value="role">...and in my controller I've used--DynamicForm form = form().bindFromRequest();System.out.println(form.field("type[]").value());but it only prints the first item in the list i.e. "platform".Any ideas of what am I doing wrong?Thank you!On Tuesday, July 17, 2012 6:58:36 PM UTC-4, ccchr wrote:I've been searching for a long time, how do you handle multiple checkboxes in JAVA via GET?The url looks similar to: http://localhost:9000/games?type=platform&type=role.How do I access both "type" values in my controller?Thank you!
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/20IfqP7HRIsJ.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/NIxSsRYhDFUJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/K1LlHiutL2oJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.