4 Replies Latest reply on Jun 9, 2008 12:01 PM by molif

    Richfaces - modal panel closes 5 seconds after it's opened

    kvang

      The modal panel closes itself 5 seconds after I opened it. Here's the code. The commandLink is used to show the modal panel. How do I get the modal panel to stay open until I close it?

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

      OCI Report: Report Filter



      <h:form>

      <h:panelGrid id="grid20">
      <h:commandLink onnclick="javascript:Richfaces.showModalPanel('empModalSearch',{width:600, top:200})" value="show"></h:commandLink>
      </h:panelGrid>

      <rich:modalPanel id="empModalSearch" minHeight="300" minWidth="600"
      height="300" width="600" zindex="2000" resizeable="true" moveable="true">
      <f:facet name="header">
      <h:outputText value="Employee Search" />
      </f:facet>
      <f:facet name="controls">
      <h:graphicImage value="/image/close.bmp" style="cursor:pointer"
      onclick="Richfaces.hideModalPanel('empModalSearch')" />
      </f:facet>
      </rich:modalPanel>

      </h:form>