This content has been marked as final. 
    
Show                 7 replies
    
- 
        1. Re: Seam-Richfaces application - home page loading very slowoguzyalcin.oguzhanyalcin.gazi.edu.tr Mar 16, 2009 4:58 PM (in response to pramod_bs)Maybe you'd better give details about the page and components. Maybe the home page's source code. But without these, I experienced same problem at first, when using tabpanel with switchtype set to client. 
- 
        2. Re: Seam-Richfaces application - home page loading very slowpramod_bs Mar 16, 2009 5:15 PM (in response to pramod_bs)<!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:ui="http://java.sun.com/jsf/facelets"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:f="http://java.sun.com/jsf/core"
 xmlns:s="http://jboss.com/products/seam/taglib"
 xmlns:rich="http://richfaces.org/rich">
 
 
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title>AutoAuctions Admin Login</title>
 <link href="stylesheet/theme.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
 <h:form>
 
 <rich:panel width="100%"
 style="padding:0px; border:0; background-color: #ECF4FE; height: 700px;">
 
 <table cellspacing="0" cellpadding="0" width="100%">
 <tr style=" height : 55px;background-color:white;">
 <td align="left"><h:graphicImage height="55" value="/img/gsalogo.gif" /></td>
 <td align="left"><rich:spacer width="15">
 
 </rich:spacer>
 </td>
 <td align="right"><h:graphicImage width="100%" height="60" value="/img/usaflag1.gif" /></td>
 <td align="right"><h:graphicImage width="100%" height="60" value="/img/usaflag2.gif" /></td>
 </tr>
 </table>
 
 <rich:spacer height="80px"/>
 <center>
 <rich:panel
 style="padding:1px; border:10; background-color: #ECF4FE; width: 350px; align:center">
 <f:facet name="header">Login to AutoAuctions Admin</f:facet>
 <rich:spacer height="20px"/>
 <h:panelGrid columns="2">
 <h:outputText value="Name: "/>
 <h:inputText value="#{autoauctionsadminfacade.adminLoginName}"/>
 <h:outputText value="Password: "/>
 <h:inputSecret value="#{autoauctionsadminfacade.adminLoginPwd}"/>
 </h:panelGrid>
 <h:commandButton action="#{autoauctionsadminfacade.doAdminLogin()}"
 style="align:center" value="Login" />
 
 </rich:panel>
 </center>
 </rich:panel>
 </h:form>
 </body>
 </html>
- 
        3. Re: Seam-Richfaces application - home page loading very slowpramod_bs Mar 16, 2009 5:20 PM (in response to pramod_bs)The thing that worries me is the time taken to load between framework.pack.js and org/richfaces/ui.pack.js It takes almost 7 secs to load (please see below the timestamp). I am not sure where the time lag is. Is this the browser is taking so much time to load the js.
 8.15.129.134 - - [16/Mar/2009:09:17:41 -0500] "GET /autoauctions/a4j/g/3_3_0.GA/org/ajax4jsf/framework.pack.js HTTP/1.1" 200 303479
 8.15.129.134 - - [16/Mar/2009:09:17:49 -0500] "GET /autoauctions/a4j/g/3_3_0.GA/org/richfaces/ui.pack.js HTTP/1.1" 200 620864
- 
        4. Re: Seam-Richfaces application - home page loading very slowmarcioendo.marcioendo.gmail.com Mar 16, 2009 6:39 PM (in response to pramod_bs)Can you post your web.xml? I had this problem when I first started a seamgen'd project. Removing all RichFaces configurations (leaving the defaults, I guess) from web.xml solved the problem. 
- 
        5. Re: Seam-Richfaces application - home page loading very slowpramod_bs Mar 16, 2009 6:46 PM (in response to pramod_bs)<blockquote>
 _Marcio Endo wrote on Mar 16, 2009 18:39:_<br/>
 Can you post your web.xml?
 I had this problem when I first started a seamgen'd project. Removing all RichFaces configurations (leaving the defaults, I guess) from web.xml solved the problem.
 </blockquote>
 I am using richfaces a lot. So I don't think it is an option for me to remove richfaces references.
 <?xml version="1.0" ?>
 <web-app xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
 version="2.5">
 <!-- RichFaces -->
 
 <context-param>
 <param-name>org.richfaces.SKIN</param-name>
 <param-value>blueSky</param-value>
 </context-param>
 
 <!-- Suppress spurious stylesheets -->
 
 <context-param>
 <param-name>org.richfaces.CONTROL_SKINNING</param-name>
 <param-value>disable</param-value>
 </context-param>
 
 <context-param>
 <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
 <param-value>disable</param-value>
 </context-param>
 
 <!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs -->
 
 <context-param>
 <param-name>org.richfaces.LoadStyleStrategy</param-name>
 <param-value>ALL</param-value>
 </context-param>
 
 <context-param>
 <param-name>org.richfaces.LoadScriptStrategy</param-name>
 <param-value>ALL</param-value>
 </context-param>
 
 <!-- Seam -->
 
 <listener>
 <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
 </listener>
 
 <filter>
 <filter-name>Seam Filter</filter-name>
 <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
 </filter>
 <filter-mapping>
 <filter-name>Seam Filter</filter-name>
 <url-pattern>/*</url-pattern>
 </filter-mapping>
 
 <servlet>
 <servlet-name>Seam Resource Servlet</servlet-name>
 <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
 </servlet>
 
 <servlet-mapping>
 <servlet-name>Seam Resource Servlet</servlet-name>
 <url-pattern>/seam/resource/*</url-pattern>
 </servlet-mapping>
 
 <!-- Facelets development mode (disable in production) -->
 
 <context-param>
 <param-name>facelets.DEVELOPMENT</param-name>
 <param-value>true</param-value>
 </context-param>
 
 <!-- JSF -->
 
 <context-param>
 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 <param-value>.xhtml</param-value>
 </context-param>
 <servlet>
 <servlet-name>Faces Servlet</servlet-name>
 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
 <load-on-startup>1</load-on-startup>
 </servlet>
 
 <servlet-mapping>
 <servlet-name>Faces Servlet</servlet-name>
 <url-pattern>*.seam</url-pattern>
 </servlet-mapping>
 
 <security-constraint>
 <display-name>Restrict raw XHTML Documents</display-name>
 <web-resource-collection>
 <web-resource-name>XHTML</web-resource-name>
 <url-pattern>*.xhtml</url-pattern>
 </web-resource-collection>
 <auth-constraint/>
 </security-constraint>
 
 
 </web-app>
- 
        6. Re: Seam-Richfaces application - home page loading very slowmarcioendo.marcioendo.gmail.com Mar 16, 2009 6:53 PM (in response to pramod_bs)<!-- Suppress spurious stylesheets --> <context-param> <param-name>org.richfaces.CONTROL_SKINNING</param-name> <param-value>disable</param-value> </context-param> <context-param> <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name> <param-value>disable</param-value> </context-param> <!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs --> <context-param> <param-name>org.richfaces.LoadStyleStrategy</param-name> <param-value>ALL</param-value> </context-param> <context-param> <param-name>org.richfaces.LoadScriptStrategy</param-name> <param-value>ALL</param-value> </context-param> Try removing/commenting out the above section. See if it helps. 
- 
        7. Re: Seam-Richfaces application - home page loading very slowpramod_bs Apr 6, 2009 11:15 PM (in response to pramod_bs)It sesms like the TidyParser was taking too much time to parse. When I added the foll in web.xml it speeds up the loading.
 <context-param>
 <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
 <param-value>NONE</param-value>
 </context-param>
 Hopefully this will not cause any other issues.
 
     
    