10 Replies Latest reply on Jul 10, 2008 5:17 AM by Ilya Shaikovsky

    ModalPanel shown very slowly!!

    Lotfi Mellouk Master

      Hi all,

      I get some performance problem with modalPanel; dont know id it's a common problem or it is related to my environement or my soure code..
      could please give us some hints show to show modalPanel quickly? there exist any recommendation for the best manner to show modalPanal and the content inside it ??

      the modalPanel below, takes ~10s befor appearing the first time and ~5s other times.
      why the first time is more slowly.wath's wrong on this cod?

      <f:subview xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
       <f:loadBundle basename="messages" var="msg" />
      
       <rich:modalPanel id="_panel" width="600" height="670"
       headerClass="tab_title" resizeable="true">
      
       <f:facet name="header">
       <h:outputText value="User details"></h:outputText>
       </f:facet>
       <f:facet name="controls">
       <h:graphicImage value="/images/close.png" style="cursor:pointer"
       onclick="Richfaces.hideModalPanel('_panel')" />
       </f:facet>
       <a4j:outputPanel id="panel_details_user" layout="block" style="overflow: scroll;">
       <h:form id="user_form">
       <h:panelGrid columns="2" align="center" id="details"
       columnClasses="modal_col1,modal_col2">
       <h:outputText value="#{msg.label_lastName}"></h:outputText>
       <h:outputText value="#{bean.lastName}" />
       <h:outputText value="#{msg.label_firstName}" />
       <h:outputText value="#{bean.firstName}" />
       <h:outputText value="#{msg.label_lastUpdate}" />
       <h:outputText value="#{bean.updateDate}">
       <f:convertDateTime pattern="MM/dd/yyyy" />
       </h:outputText>
       <h:outputText value="#{msg.label_email}" />
       <h:outputText value="#{bean.email}" />
       <h:outputText value="#{msg.label_company}" />
       <h:outputText value="#{bean.company}" />
      
       </h:panelGrid>
       </h:form>
       </a4j:outputPanel>
       </rich:modalPanel>
      </f:subview>
      
      


      thanks!!