isis

Apache Isis (v1.14.0): Property is not editable in JAXB view model


I've created this JAXB view model:

@XmlRootElement(name = "homePageViewModel")
@XmlType(
        propOrder = {
                "editableField"
        }
)
@XmlAccessorType(XmlAccessType.FIELD)
public class HomePageViewModel {

    @XmlElement(required = true)
    @Setter @Getter
    @Property(editing = Editing.ENABLED)
    private String editableField;

    public TranslatableString title() {
        return TranslatableString.tr("Home page");
    }

    public List<SimpleObject> getObjects() {
        return simpleObjectRepository.listAll();
    }

    @XmlTransient
    @javax.inject.Inject
    SimpleObjectRepository simpleObjectRepository;
}

But "editableField" property is not editable: JAXB viewmodel property

This question is related to Apache Isis: @Property(editing = Editing.ENABLED) doesn't work for ViewModels

Thank you.


Solution

  • Will be fixed in Apache Isis 1.15.0 version.