Primefaces args.validationFailed为true但没有验证消息

时间:2015-05-28 12:33:09

标签: jsf-2 primefaces jsf-2.2

我用按钮提交一些字段:

<p:commandButton value="#{msgs['label.button.editPropertiesSave']}" update=":editPropertyFormId:editPropertiesDialogContentId @(.resultlistActionGrid) " process=":editPropertyFormId:editPropertiesDialogContentId @this"  action="#{editPropertyBL.save()}" oncomplete="resetDocValueChangedIfValidationOk();" />


function resetDocValueChangedIfValidationOk(args) {
    if (args) {
        if (!args.validationFailed) {
            resetDocValueChanged();
        }
    }
}

如果我使用有效输入提交,则调用支持bean方法editPropertyBL.save(),但args.validationFailedtrue且我的javascript未执行。 我在页面中有一个p:messages autoUpdate="true",其中显示了有关保存的信息消息,但未显示任何验证错误。 为什么args.validationFailed在这种情况下可以成立? 问候 奥利弗

0 个答案:

没有答案