JSF命令链接,onclick操作不起作用?
我在一个手风琴面板中有许多命令链接。一个这样的链接在onclick事件期间调用对话框。下面是xhtml代码片段JSF命令链接,onclick操作不起作用?,jsf,jsf-2,primefaces,Jsf,Jsf 2,Primefaces,我在一个手风琴面板中有许多命令链接。一个这样的链接在onclick事件期间调用对话框。下面是xhtml代码片段 <p:accordionPanel id="accordion" activeIndex="#{activeIndex.store}"> <p:tab> <p:commandLink value="LRU Status Summary" action="LRUStatusSummary.xhtml?fa
<p:accordionPanel id="accordion" activeIndex="#{activeIndex.store}">
<p:tab>
<p:commandLink value="LRU Status Summary"
action="LRUStatusSummary.xhtml?faces-redirect=true"
style="#{menuBean.getMenuItemCss('LRUStatus')}" onclick="PF('progress').show()"
actionListener="#{menuBean.initiate('LRUStatus')}">
</p:commandLink>
</p:tab>
</p:accordionPanel>
<p:dialog modal="true" widgetVar="progress"
closable="false" showHeader="false" resizable="false">
<center>
<p:graphicImage value="/images/ajax-loader-transparent.gif" />
</center>
</p:dialog>
但问题是,它有时会被调用,有时不会。我按照这篇文章中所说的每一步去做。需要帮忙吗
但是如果我删除onclick事件,它就可以正常工作。但是,如果存在,则在所有浏览器中,有时根本不会调用该操作。它行为不端。使用IE v-10、firefox v-30、chrome v-31
LRUStatus页面从数据库获取数据并填充此xhtml中的字段大约需要30秒。所以我只是想在对话框中使用模态属性将屏幕冻结几秒钟您正在单击进行redirec…您想做什么?@Makky,问题已更新实际它正在工作,但有时它不工作!!为什么我做不到?有什么具体原因吗?如果你用p:commandLink替换h:commandLink会怎么样?@Periklis!!我得到了相同的输出!!它没有被重定向!!