Revision history [back]

click to hide/show revision 1
initial version

answered 2014-09-23 22:44:30 +0800

cor3000 gravatar image cor3000

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.

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)

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More