I got a cast error , when i use customer IChoiceRender
class ColumnRender implements IChoiceRendererColumnInfo {
public Object getDisplayValue(ColumnInfo object) {
return object.getFormattedName();
}
public String getIdValue(ColumnInfo object, int index) {
return object.getId();
}
if i look at this:
new DropDownChoiceColumnInfo
(form, columnId,
columnMangerService.selectAllColumnInfo(), new ColumnRender());
then it seems to me that columnId is a id (integer)
So it doesn't hold a ColumnInfo object but the id of that object.
Then your choice renderer is wrong.