Enum Netui Converter

View: New views
2 Messages — Rating Filter:   Alert me  

Enum Netui Converter

by jnt30 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The question I have is in regards to type converters and binding enums.

I have seen other postings about enum conversion and the necessity to create type converters for String -> enum.  I have been able to successfully declare a type converter for String -> enum, however I would like to be able to create a more generic type converter that will convert between a String to any enum.  Is it possible to declare a type converter for anything other than the explicit class defined in the beehive-netui-config.xml file?

Thanks in advance,
Justin

Re: Enum Netui Converter

by Eddie O'Neil-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  Hi, Justin -- unfortunately, NetUI doesn't support the base Enum
type in Java without explicitly listing all of the enums explicitly.

Cheers,
Eddie

On Mon, Feb 2, 2009 at 3:10 PM, jnt30<justin.r.nauman+nabble@...> wrote:

>
> The question I have is in regards to type converters and binding enums.
>
> I have seen other postings about enum conversion and the necessity to create
> type converters for String -> enum.  I have been able to successfully
> declare a type converter for String -> enum, however I would like to be able
> to create a more generic type converter that will convert between a String
> to any enum.  Is it possible to declare a type converter for anything other
> than the explicit class defined in the beehive-netui-config.xml file?
>
> Thanks in advance,
> Justin
> --
> View this message in context: http://www.nabble.com/Enum-Netui-Converter-tp21798448p21798448.html
> Sent from the Beehive - User mailing list archive at Nabble.com.
>
>