Speaking just in abstract terms, a Set isn't an ordered collection, but a display of a collection on a page will be - even if only geometrically. So it's not unreasonable to be required to convert to an ordered collection before rendering.
I know this thread is old, but it explains my current problem perfectly.
Since I have entity beans declared as managed beans I can't just change Set declarations and their getters to List.
So what's the suggestion?
Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
I know how to convert set to list or collection. Btw there is a much easier way to do this: just by using the corresponding constructors:
The situation is that my entities are declared as managed beans. So I do not have an intermediate cap between front and back. The database structure demands usage of Set while JSF can't inject directly into the entity variables because of the unsupported type. So I was looking for a way to cast/convert Set there and back to solve the conflict with JSF. Maybe by using a converter or some annotation...