Other than Enum

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Other than Enum

chu_lim
Good Day,

       I just want ask if what another solution, when setting the Messenges.properties for accessing Enum

Type, because I want to make such dynamic Enum.

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Other than Enum

danielfernandez
Administrator
Sorry, I cannot understand your question...

Maybe you are trying to assign a locale-specific label to each value of one of your enums? like:

==Java==
enum { ONE, TWO }

==Messages.properties==
text.ONE=This is the label for value 'ONE'
text.TWO=This is the label for value 'TWO'

Is this what you are trying to do?

Regards,
Daniel.
Reply | Threaded
Open this post in threaded view
|

Re: Other than Enum

chu_lim
Yes thats what I want to to..

==Java==
enum { ONE, TWO }

==Messages.properties==
text.ONE=This is the label for value 'ONE'
text.TWO=This is the label for value 'TWO'


-------------

But I want to be dynamic where in you can set it to the property files or through database. Any other
type to use like enum? but dynamic.