yeah,
there is already a bug, with a patch too.
need to apply next days.
On 8/22/07, Simon Lessard <[EMAIL PROTECTED]> wrote:
> Hello Bryan,
>
> Actually, in JSF 1.2, enums should be natively supported I think. Let me
> check the spec some more to be sure.
>
>
> Regards,
>
> ~ Simon
>
>
> On 8/22/07, Bryan Basham <[EMAIL PROTECTED]> wrote:
> >
> > 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
> >
> >
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org