Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSF命令链接,onclick操作不起作用?_Jsf_Jsf 2_Primefaces - Fatal编程技术网

JSF命令链接,onclick操作不起作用?

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

我在一个手风琴面板中有许多命令链接。一个这样的链接在onclick事件期间调用对话框。下面是xhtml代码片段

<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!!我得到了相同的输出!!它没有被重定向!!