-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
I stick to my initial answer (it uses Locale as value class, not String!), the most flexible way is to use a ListModel with the available choices and then use a template to render render custom or localized labels.
ZK handles the conversion as you can see in your updated example, all I do is specialize the labels in various ways just to give you an idea of the many possible ways.
2 | No.2 Revision |
I stick to my initial answer (it uses Locale as value class, not String!), the most flexible way is to use a ListModel with the available choices and then use a template to render render custom or localized labels.
ZK handles the conversion as you can see in your updated example, all I do is specialize the labels in various ways just to give you an idea of the many possible ways. ways.
I use a map of "mylabels" to simulate the ZK predifined variable "labels" which is used for localization (there is just no way to add new label properties in fiddle)