Allow other formats when binding parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
Fix Committed
|
Wishlist
|
Nicolas Leroux | ||
1.0 |
Won't Fix
|
Wishlist
|
Nicolas Leroux | ||
1.1 |
Fix Committed
|
Wishlist
|
Nicolas Leroux |
Bug Description
In case of a resource url, users can bind define binding on date.
/document/
However, currently we cannot specified the date format and we cannot retrieve the date format according to the locale:
the URL of any resources should not change depending of the locale.
http://
Add a new annotation that allows to specify the date format: @As("dd-MM-yyyy")
for example:
public static show(@As(
...
}
Note that the same kind of annotation could be used in another use case:
/mailboxes/
and then
public static show(@Separator
...
}
or
/books/{languages}/ -> /books/fr,ja,de/
public static show(@Separator
...
}
This is basically the same idea, and thus means that the mechanism must be flexible.
Related branches
Changed in play: | |
status: | New → In Progress |
Changed in play: | |
status: | In Progress → Fix Committed |