Apache Isis(v1.14.0):在JAXB视图模型中,属性不可编辑

时间:2017-06-19 07:47:19

标签: isis

我已经创建了这个JAXB视图模型:

@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;
}

但“editableField”属性不可编辑: JAXB viewmodel property

这个问题与此有关 Apache Isis: @Property(editing = Editing.ENABLED) doesn't work for ViewModels

谢谢。

1 个答案:

答案 0 :(得分:0)

将在Apache Isis 1.15.0版本中修复。