我有一個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) –