myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Bilski <>
Subject Re: Sorted SelectItem objects in selectOneChoice
Date Thu, 09 Jul 2009 05:47:27 GMT

Mike Quentel wrote:

> I tried using some of the java.util.Collections classes, but did not get 
> this to work.

You have to add SelectItems to list in your specific order. If you don't 
want to sort entries in your database (which would be fastest), you can 
always write Comparator (or implement Comparable) for your objects and 
then use Collections.sort().


Jacek Bilski

View raw message