我有一个primeface页面certHollderList.xhtml: 在这个页面我有一个到期的链接。并点击一个动作被激发,并在处理完动作后,我想在同一页面打开一个对话框。处理链接动作后显示对话框
code 1:Expire Link::
<h:commandLink id="expire" value="#{label.expire}" action="expire" immediate="true" oncomplete="dlg3.show()"
update="dialogPanel">
code 2 :: In the same page i added one outputpanel having a dialog box.
<h:form>
<p:outputPanel id="dialogPanel" rendered="# {certHolderSearchHandler.openDialog eq 'Success'}">
<p:dialog header="Expire Holder Information" widgetVar="dlg3"
showEffect="bounce" hideEffect="explode" appendToBody="true">
<p:outputPanel id="dialogPanel1"
rendered="#{certHolderSearchHandler.openDialog eq 'Success'}">
<h:panelGrid columns="2">
<h:outputText value="Do you want to continue?" />
<p:spacer width="30" height="10" />
<h:outputText />
<p:spacer width="30" height="10" />
</h:panelGrid>
<div align="left"><p:commandButton immediate="true"
value="Yes" action="continue" /> <p:spacer width="25" height="5" />
<p:commandButton value="No" action="cancel" /></div>
</p:outputPanel>
</p:dialog>
</p:outputPanel>
</h:form>
而当我点击过期链接时,它不会打开对话框页面。 请告诉我.... :(
我测试了它,它没有调用弹出:( – Vikas
@BalauC ....请看看这个问题....我是新面孔... – Vikas
@Vikas我已经更新了这一秒,并且记住“update”是Primefaces API的一部分,它不是绑定到 (使用p:commandLink) –