ユーザーが編集ボタンをクリックするとレンダリングされるページモーダルダイアログがあります。ダイアログでユーザー名とパスワードを尋ね、送信ボタンがあります。ユーザー名とパスワードが検証されない場合、エラーが表示されます。Primefacesダイアログ背景の不透明度がダイアログでアクションが失敗したときに倍になる
ユーザー名とパスワードが認証されないと、認証が失敗するたびにモーダルバックグラウンドが暗くなります。
何が原因でしょうか?
<p:dialog id="dialog" header="Login To Edit" widgetVar="dialog" visible="#{fundingBacker.loginVisible}" modal="true"
resizable="false" closable="false" draggable="true" rendered="#{!userBean.loggedIn}">
<h:form>
<p:ajaxStatus style="width:16px;height:16px;">
<f:facet name="start">
<p:graphicImage value="../images/loading4.gif" />
</f:facet>
<f:facet name="complete">
<h:outputText value="" />
</f:facet>
</p:ajaxStatus>
<p:messages autoUpdate="true" showDetail="true" />
<h:panelGrid columns="2" cellpadding="5">
<h:outputLabel for="lanId" value="LanID:" />
<p:inputText value="#{currentUser.lanID}" id="lanId" required="true" label="lanId" requiredMessage="Lan ID is required" />
<h:outputLabel for="password" value="Password:" />
<p:password value="#{currentUser.password}" id="password" required="true" label="password" feedback="false" requiredMessage="Password is required" />
<p:commandButton id="loginButton" value="Login" type="submit" styleClass="primaryButton" action="#{currentUser.performLogin}" update="dialog"/>
</h:panelGrid>
</h:form>
</p:dialog>
'update ="ダイアログ "を削除しました。ありがとう。 – Catfish
ようこそ。 – BalusC