0 Replies Latest reply on Jul 11, 2011 12:15 PM by Rishi gautam

    rich:modalPanel appearing for some seconds only

    Rishi gautam Newbie

      Hi,

      I have used rich:menuItem to display rich:modalpanel. Code of rich:menuItem is as follow:

       

      <rich:menuItem>

          <a4j:commandLink

              value="Add Machine"

              oncomplete="#{rich:component('addMachinePanel')}.show()"

              reRender="addMachinePanel">

         </a4j:commandLink>

      </rich:menuItem>

       

       

      And rich:modalpanel  code is

       

      <rich:modalPanel id="addMachinePanel">

          <a4j:form>

              <a4j:commandButton value="Cancel"

                  action="#{adminBean.cleanupMachineToEdit}"

                  onclick="#{rich:component('addMachinePanel')}.hide(); return false;" />

          </a4j:form>

      </rich:modalPanel>

       

      With above piece of code, rich:modalpanel is appearing for one or two seconds and again disappear.

       

      Please help me to find out the issue.

      Thanks