omnifaces / optimusfaces

Utility library for OmniFaces + PrimeFaces combined

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show Enum via toString() instead of name()

mydeadlyvenoms opened this issue · comments

When using columns implemented as enums, filtering applies to the toString() value, which is great. Wouldn't it make sense to also use the toString() value of an enum instead of name() within the view? I know a possible "workaround" is to create a custom facelet tag.

Clever.

Hi @BalusC
I can confirm it works for Enum(s), can you also enable it for @ElementCollection(s) containing Enum(s)?
Thank you very much for your help!

@BalusC can we also reopen this one (@ElementCollection is missing)?

Fixed.

Same here, I can confirm that it works. 👍