6 Replies Latest reply on Nov 5, 2008 7:31 AM by Ilya Shaikovsky

    Modal panel vanishes after being displayed

    Bernd Winterstein Newbie

      Hi, I tried to move a call to a modal panel from a a4j:commandLink into a menu. But the panel vanishes after being displayed

      Call from commandLink:
      <a4j:commandLink id="deleteInvoice2"
      value="#{I18nBean['1.10004']}" onclick="deleteSelectedInvoices()" />

      Call from menu:
      <rich:menuItem id="deleteInvoice"
      value="#{I18nBean['1.10004']}" onselect="deleteSelectedInvoices()" />


      JS stub:
      <a4j:jsFunction name="deleteSelectedInvoices" reRender="confirm_delete_wrapper"
      actionListener="#{invoice.updateSelection}"
      oncomplete="Richfaces.showModalPanel('confirm_delete', {width :600, top :230});" />

      Any ideas?