You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by Adam Jenkins <ma...@adamjenkins.net> on 2005/09/03 23:19:08 UTC
working with enums
Hi All,
Can action forms work with enums? If so, does anyone have an example?
Cheers
Adam
Re: working with enums
Posted by Eddie O'Neil <ek...@gmail.com>.
Adam--
Nice -- that's the right way to do it. I've not added documentation
for these kind of "advanced" expression language features like type
conversion and custom iteration. Probably won't get to it for 1.0,
but I'll add documentation shortly after.
Also, there are a few enhancements that I'd like to make there
including custom type converters and error handling on a per JavaBean
property basis.
Any thoughts you've got on the subject would be welcome. :)
Eddie
On 9/4/05, Rich Feit <ri...@gmail.com> wrote:
> Nice sleuthing! Eventually this won't require reading the code to
> figure out. :)
>
> Adam Jenkins wrote:
>
> >I figured it out
> >
> >add to beehive-netui-config.xml
> >
> ><type-converters>
> > <type-converter>
> > <type>MyEnum</type>
> > <converter-class>MyConverter</converter-class>
> > </type-converter>
> ></type-converters>
> >
> >where MyConverter implements
> >org.apache.beehive.netui.util.type.TypeConverter
> >
> >Cheers
> >
> >On Sun, 2005-09-04 at 07:19 +1000, Adam Jenkins wrote:
> >
> >
> >>Hi All,
> >>
> >>Can action forms work with enums? If so, does anyone have an example?
> >>
> >>Cheers
> >>Adam
> >>
> >>
> >>
> >
> >
> >
> >
>
Re: working with enums
Posted by Rich Feit <ri...@gmail.com>.
Nice sleuthing! Eventually this won't require reading the code to
figure out. :)
Adam Jenkins wrote:
>I figured it out
>
>add to beehive-netui-config.xml
>
><type-converters>
> <type-converter>
> <type>MyEnum</type>
> <converter-class>MyConverter</converter-class>
> </type-converter>
></type-converters>
>
>where MyConverter implements
>org.apache.beehive.netui.util.type.TypeConverter
>
>Cheers
>
>On Sun, 2005-09-04 at 07:19 +1000, Adam Jenkins wrote:
>
>
>>Hi All,
>>
>>Can action forms work with enums? If so, does anyone have an example?
>>
>>Cheers
>>Adam
>>
>>
>>
>
>
>
>
Re: working with enums
Posted by Adam Jenkins <ma...@adamjenkins.net>.
I figured it out
add to beehive-netui-config.xml
<type-converters>
<type-converter>
<type>MyEnum</type>
<converter-class>MyConverter</converter-class>
</type-converter>
</type-converters>
where MyConverter implements
org.apache.beehive.netui.util.type.TypeConverter
Cheers
On Sun, 2005-09-04 at 07:19 +1000, Adam Jenkins wrote:
> Hi All,
>
> Can action forms work with enums? If so, does anyone have an example?
>
> Cheers
> Adam
>