0

i have many command links within an accordian panel . one such link calls the dialog during the onclick event . Below is the xhtml snippet .

<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>

But the problem is , it gets called sometimes and sometimes it is not . i followed every step as said in this thread (commandButton/commandLink/ajax action/listener method not invoked or input value not updated) . any help please ?

But if i remove the onclick event , it works fine . But if it is present , the action is not invoked at all sometimes(in all the browsers) . It misbehaves .( using IE v-10 , firefox v-30 , chrome v-31) .

The LRUStatus page takes about 30 secs to fetch the data from DB and to populate the fields in this xhtml . So i just thought of freezing the screen for those seconds (using "modal" attribute in dialog)

Community
  • 1
  • 1
murthi
  • 175
  • 1
  • 4
  • 18

0 Answers0