0

在我的表格上

<h:inputText id="name" value="#{pointController.selected.name}" title="#{bundle.CreatePointTitle_name}" required="true" />

<h:inputText id="term" value="#{pointController.selected.term}" title="#{bundle.CreatePointTitle_term}" required="true" />

<p:commandButton styleClass="btn btn-primary" action="#{pointController.create}" value="#{bundle.CreatePointSaveLink}" oncomplete="handleComplete(xhr, status, args)" />

javascript

function handleComplete(xhr, status, args) {  
    if(args.validationFailed) {  
        alert("failed");
    }  
}  

我如何知道哪些输入字段未输入或存在验证问题?

4

0 回答 0