Skip to content

Missing documentation / bug? - What is HalFormsOptions.selectedValue about? #2400

@cpoulsen-dezide

Description

@cpoulsen-dezide

The specification mentions property.value (to express a single, selected value) and property.options.selectedValues to express a list of selected values.

The HalFormsOptions.selectedValue field seems to be neither of those things?

The field seems to become property.value (singular) in the template, but in that case the naming seems off (it should not be part of the "property.options", but it should be directly on the property. The property.options only has the selectedValues field for the values, according to the specification.

The javadoc for the HalFormsOptions.getSelectedValue() is also missing, making it hard to guess the intent of this field. Is this an oversight?

It would be great to have a HalFormsOptions.getSelectedValues() that behaves according to the specification and maybe the currentHalFormsOptions.getSelectedValue() should be deprecated and replaced by something else, that is related to the property more clearly (instead of sitting on the options sub-object).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions