public interface IComponentValueConverter
convertible
. Lets you convert between a bean value and the value that is
used for the component or components. For example, you could have a bean property date
, of type Date
.
If you want to have three different input fields, one for the year, one for the month, and one for the day, you can
use the convertible composite component. This way you do not have to add new bean properties for the year, month, and
date, which would require you to keep them in sync with the original date object. See ConvertibleComponent
for an example.Modifier and Type | Method and Description |
---|---|
Object |
componentToExternalValue(Map<String,Object> componentValues) |
default Map<String,Object> |
createOptions(Map<String,Object> componentValues) |
Map<String,Object> |
externalToComponentValue(Object value) |
Map<String,Object> externalToComponentValue(Object value)
value
- The value on the backing bean or the model.Object componentToExternalValue(Map<String,Object> componentValues)
componentValues
- The value on the component.Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.