結果に基づいて @ManagedBean から条件付きでオーバーレイパネルを表示/非表示にするにはどうすればよいですか。
以下のコードでは:p:overlayPanel
は forp:commandButton
です。アクションメソッドから条件付きでオーバーレイパネルを表示したい。
現在、コマンドボタンをクリックするたびに表示されています。
<h:form id="form">
<h:outputLabel value="Town Name:"/>
<h:inputText value="#{myBean.town}"/>
<p:commandButton id="checkBtn" value="Check" action="#{myBean.action}"/>
<p:overlayPanel widgetVar="overL" id="over" for="checkBtn">
<h:outputText value="This town is not Listed in our records"/>
</p:overlayPanel>
</h:form>
注:** Primefaces 3.5 **を使用しています