0
我有一個窗體它有一個鏈接,當點擊一個鏈接時,它會打開一個彈出窗口,因爲我有一個窗體,當驗證失敗時它的形式必須在彈出窗口中顯示錯誤信息,但錯誤信息顯示在主窗體中以解決它。彈出驗證錯誤信息顯示主窗體不在彈出窗口中如何解決它
我想在相同的彈出窗口中彈出驗證信息。
爲什麼它沒有顯示在彈出錯誤封郵件
彈出面板代碼
<rich:popupPanel id="lp" modal="false" autosized="true" resizeable="false" >
<f:facet name="header">
<h:outputText value="Add New Doctor" />
</f:facet>
<f:facet name="controls">
<h:outputLink value="#" onclick="#{rich:component('lp')}.hide(); return false;">
X
</h:outputLink>
</f:facet>
<h:form id="drRegiForm">
<h:panelGrid columns="4">
<h:outputText value="Doctor Name" style="font-size: medium" ></h:outputText>
<h:inputText value="#{doctorBean.doctorName}" id="doctorName" size="37" required="true"/>
<h:message for="doctorName" />
<br/>
<h:outputText value="Place" style="font-size: medium"></h:outputText>
<h:inputText value="#{doctorBean.place}" id="place" required="true"/>
<h:message for="place"/>
<br/>
<h:outputText value="Phone Number" style="font-size: medium"></h:outputText>
<h:inputText value="#{doctorBean.phoneNumber}" id="phoneNumner"/>
<br/>
</h:panelGrid>
<a4j:commandButton value="Submit" action="#{doctorBean.registration}" execute="" onclick="#{rich:component('popup')}.hide()" />
</h:form> <p>
<a href="#" onclick="#{rich:component('popup')}.hide()"></a>
</p> </rich:popupPanel>