Ajax 单击primefaces中的命令按钮后,不会显示消息

Ajax 单击primefaces中的命令按钮后,不会显示消息,ajax,jsf,primefaces,Ajax,Jsf,Primefaces,我使用了输入文本、上载文件和命令按钮属性。我的文件上载模式是基本模式。在命令按钮中,我在两个字段中使用了ajax=false。我在两个字段中都使用了required=true。当单击“用空字段保存”时,相应的方法正在执行,消息在控制台中显示,但错误消息未在UI中显示 <p:dialog widgetVar="addDialogWidgetVar" id="addDialogWidgetVarId" dynamic="true" > <tabl

我使用了输入文本、上载文件和命令按钮属性。我的文件上载模式是基本模式。在命令按钮中,我在两个字段中使用了ajax=false。我在两个字段中都使用了required=true。当单击“用空字段保存”时,相应的方法正在执行,消息在控制台中显示,但错误消息未在UI中显示

<p:dialog widgetVar="addDialogWidgetVar" id="addDialogWidgetVarId"  dynamic="true" >

                <table  style="width: 100%;">
                        <tr>
                            <td>
                                <p:messages for="errorMsgId" id="errorMsgId" autoUpdate="true" showDetail="false" showSummary="true" closable="true"/>
                            </td>
                        </tr>
                    </table>

                <h:form id="formId" enctype="multipart/form-data">



                    <table>
                        <tr>
                            <td>
                                <label style="margin-top: 5%"><h:outputText value="Name:"/><h:outputText value="*" style="color:red"/></label>
                            </td>
                            <td width="10%"/>
                            <td>
                                <p:inputText value="#{manageBean.attachment.fileName}" id="fileNameId" maxlength="60" style="width:70"
                                            required="#{not empty param[save.clientId]}" requiredMessage="Please enter Attachment name"></p:inputText>
                            </td>
                        </tr>
                        <tr height="10"></tr>
                        <tr>
                            <td>
                                <label style="margin-top: 5%"><h:outputText value="Upload Attachment:"/><h:outputText value="*" style="color:red"/></label>
                            </td>
                            <td width="10%"/>
                            <td>
                                <p:fileUpload label="Select a file" mode="simple" value="#{manageBean.attachment.file}"
                                            allowTypes="/(\.|\/)(pdf|doc|docx|xls|xlsx|gif|jpg|jpeg|png|PNG|GIF|JPG|JPEG)$/"
                                            invalidFileMessage="Allow only (pdf|doc|docx|xls|xlsx|gif|jpg|jpeg|png|PNG|GIF|JPG|JPEG) file."
                                            multiple="false" required="#{not empty param[save.clientId]}" requiredMessage="Please select a file" >
                                </p:fileUpload>

                            </td>
                        </tr>
                        </table>
                        <br />
                        <table style="margin-left: 30%;">                           
                        <tr align="center">

                            <td>
                                <p:commandButton value="Close" actionListener="#{manageBean.cancelAttachment}" oncomplete="addDialogWidgetVar.hide()" />
                            </td>

                            <td> 
                                <p:commandButton id="submitbtnid" value="Save" ajax="false" binding="#{save}"
                                            actionListener="#{manageBean.saveAttachment}" update=":errorMsgId"/>
                            </td>
                        </tr>
                    </table>

                </h:form>

            </p:dialog>

尝试在不使用ajax的情况下提交测试,并在页面中放置p:growl,尝试在不使用更新消息组件的情况下获取消息并查找bug