Object singleValue = convertToUIInputValue(converterFactory, input, itValue); if (singleValue != null) Object singleValue = convertToUIInputValue(converterFactory, input, value); if (singleValue != null)
private static void setSingleInputValue(final ConverterFactory converterFactory, final InputComponent<?, ?> input, final Object value, boolean defaultValue) { final Object convertedType; if (value != null) { convertedType = convertToUIInputValue(converterFactory, input, value); } else { convertedType = null; } if (defaultValue) { ((SingleValued) input).setDefaultValue(convertedType); } else { ((SingleValued) input).setValue(convertedType); } }