Hello,
You need to use a converter.
For my project, Cobia, I have built
a generic enum converter and enum
UISelectItems component/tag.
These are used like this:
<h:selectOneRadio value="#{form.education}"
layout="pageDirection">
<cobia:enumSelectItems type="org.example.EducationEnum"/>
<cobia:enumConverter type="org.example.EducationEnum"/>
</h:selectOneRadio>
The 'type' attribute is the fully-qualified
class name for the enum type. These mechanisms
use resource bundles for I18N support.
If you don't need such flexibility,
then I would recommend building your
own Converter specifically for the
Education enum. However, if you use
a lot of enums that are exposed in the
UI, then you will probably want to invest
in a more general solution.
Contact me personally if you want to see
the Cobia code for this.
Regards,
Bryan