2011/10/19 Mikael <mikael...@gmail.com>:
> Have you tried something like this in your Article:
> @OrderBy("categoryName DESC")
> List<Category> categories
>
> --
> 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/-/BC0uinvpBtAJ.
> 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.
>
--
С уважением, Илья Скорик
Yours faithfully, Ilya Skorik
In relationField tag add:
%{
sortedArray = _field.choices
try {
Collections.sort(sortedArray);
} catch (Exception ex) {
}
%}
And change:
%{ _field.choices.each() { }%
to
%{ sortedArray.each() { }%
Than add Comparable interface to Model
19 октября 2011 г. 16:01 пользователь Илья Скорик <il...@skorik.me> написал:
public List<Object> getChoices() {
return property.choices.list();
}
I found no way to pass parameters to this method without significant
modifications to the CRUD and Play code.
2011/10/19 Aishwarya Singhal <asing...@gmail.com>:
--