@form(routes.Reports.createReport(), 'id -> "form")
I get a compilation error:
not enough arguments for method createReport: (beginDate: org.joda.time.LocalDate, endDate: org.joda.time.LocalDate)play.api.mvc.Call. Unspecified value parameters beginDate, endDate.
I have a workaround, namely give the parameters a default value (?= new LocalDate).
But is this a bug? Because if the query string is empty it is still a valid route, isn't it? And it is not necessary that the reverse routes fills the query string, is it?
Thanks,
Leonard
--
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/-/Dbd1H3bAGyYJ.
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.
> --
> 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/-/Dbd1H3bAGyYJ.
> 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.
--
Guillaume Bort
What Guillaume is referring to:
Define your route as follows:
GET /report controllers.Reports.createReport
Then in your controller, just use a DynamicForm to retrieve the values
- you don't need a backing class in this case.
> --
> 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/-/Ah_fyT024oUJ.
--
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/-/fqLtbOPr7ggJ.