System.out.println("setFieldDomain("+fieldDef.name+","+fieldDef.domain+","+")");
EntityAttributeDescriptor attr = (EntityAttributeDescriptor)criterion.getAttribute();
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
FacesCtrlHierBinding treeData = (FacesCtrlHierBinding)bindings.getControlBinding(fieldDef.domain);
if ( treeData == null) {
throw new IllegalArgumentException("ADF tree binding is null: "+fieldDef.domain);
}
List<SelectItem> list = new ArrayList<SelectItem>();
Row[] rows = treeData.getAllRowsInRange();
for (Row row : rows) {
list.add(new SelectItem( row.getAttribute(fieldDef.domainKeyField), (String)row.getAttribute(fieldDef.domainValueFields)));
}
System.out.println("showtype: "+fieldDef.showType.getShowType() + " is numeric: "+ attr.isNumericType());