newValues[i] = values[i];
}
newValues[valLen] = conv.getResult();
field.setValues(newValues);
} else if (this.currentWidget instanceof DataWidget) {
DataWidget data = (DataWidget) this.currentWidget;
Datatype type = data.getDatatype();
ConversionResult conv = type.convertFromString(input, this.locale);
if (!conv.isSuccessful()) {
throw new SAXException("Could not convert: " + input +
" to " + type.getTypeClass());
}
data.setValue(conv.getResult());
} else if (this.currentWidget instanceof BooleanField) {
// FIXME: BooleanField should implement DataWidget, which
// would make this case unnecessary
if ("true".equals(input))
this.currentWidget.setValue(Boolean.TRUE);