Re: Boolean IChoiceRenderer and i18n

2010-06-17 Thread Ernesto Reinaldo Barreiro
I would create a BooleanDropDownChoice component and put localizations on that component: that way it would be easier to reuse it for different "projects". For the IChoiceRenderer I would do something similar to EnumChoiceRenderer: i.e. return localized values for "Boolean.TRUE" and "Boolen.FALSE"

Boolean IChoiceRenderer and i18n

2010-06-17 Thread Sam Zilverberg
I've created a simple BooleanChoiceRenderer that I use along with ChoiceFilteredPropertyColumn that maps to a Boolean property. public class BooleanChoiceRenderer implements IChoiceRenderer { public BooleanChoiceRenderer() { } public Object getDisplayValue(Boolean object) { r