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

余生颓废 提交于 2019-12-12 04:46:34

问题


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:

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

Thank you.


回答1:


Will be fixed in Apache Isis 1.15.0 version.



来源:https://stackoverflow.com/questions/44624897/apache-isis-v1-14-0-property-is-not-editable-in-jaxb-view-model

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!