Skip to content

Document how to use combobox with custom value and binder #1837

@satorstefan

Description

@satorstefan

The trick is to add the custom value to the backend list before the validation of the binder "kicks" in.

This can be done like this:

cb.addCustomValueSetListener(e -> {
            items.add(e.getDetail());
            cb.setItems(items);

            cb.setValue(e.getDetail());
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions